@wellesley/settings 1.0.141 → 1.0.142

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.
Files changed (2) hide show
  1. package/index.mjs +6 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var EW=Object.defineProperty,CW=(e,t,n)=>t in e?EW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hx=(e,t,n)=>CW(e,"symbol"!=typeof t?t+"":t,n);function RW(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function po(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var AW="function"==typeof Symbol&&Symbol.observable||"@@observable",t9=AW,Gx=()=>Math.random().toString(36).substring(7).split("").join("."),TW={INIT:`@@redux/INIT${Gx()}`,REPLACE:`@@redux/REPLACE${Gx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Gx()}`},Gb=TW;function Ul(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function R8(e,t,n){if("function"!=typeof e)throw new Error(po(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(po(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(po(1));return n(R8)(e,t)}let r=e,a=t,o=new Map,i=o,s=0,c=!1;function l(){i===o&&(i=new Map,o.forEach(((e,t)=>{i.set(t,e)})))}function u(){if(c)throw new Error(po(3));return a}function f(e){if("function"!=typeof e)throw new Error(po(4));if(c)throw new Error(po(5));let t=!0;l();const n=s++;return i.set(n,e),function(){if(t){if(c)throw new Error(po(6));t=!1,l(),i.delete(n),o=null}}}function d(e){if(!Ul(e))throw new Error(po(7));if(typeof e.type>"u")throw new Error(po(8));if("string"!=typeof e.type)throw new Error(po(17));if(c)throw new Error(po(9));try{c=!0,a=r(a,e)}finally{c=!1}return(o=i).forEach((e=>{e()})),e}return d({type:Gb.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(po(10));r=e,d({type:Gb.REPLACE})},[t9]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(po(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[t9](){return this}}}}}function IW(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Gb.INIT})>"u")throw new Error(po(12));if(typeof n(void 0,{type:Gb.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(po(13))}))}function HR(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}const r=Object.keys(n);let a;try{IW(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<r.length;a++){const s=r[a],c=n[s],l=e[s],u=c(l,t);if(typeof u>"u")throw t&&t.type,new Error(po(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function Kb(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function PW(...e){return t=>(n,r)=>{const a=t(n,r);let o=()=>{throw new Error(po(15))};const i={getState:a.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(i)));return o=Kb(...s)(a.dispatch),{...a,dispatch:o}}}function A8(e){return Ul(e)&&"type"in e&&"string"==typeof e.type}var GR=Symbol.for("immer-nothing"),Ey=Symbol.for("immer-draftable"),Ri=Symbol.for("immer-state");function ho(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fm=Object.getPrototypeOf;function Lc(e){return!!e&&!!e[Ri]}function jc(e){var t;return!!e&&(T8(e)||Array.isArray(e)||!!e[Ey]||!(null==(t=e.constructor)||!t[Ey])||$_(e)||O_(e))}var $W=Object.prototype.constructor.toString();function T8(e){if(!e||"object"!=typeof e)return!1;const t=fm(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===$W}function OW(e){return Lc(e)||ho(15,e),e[Ri].base_}function x1(e,t){0===um(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function um(e){const t=e[Ri];return t?t.type_:Array.isArray(e)?1:$_(e)?2:O_(e)?3:0}function Wy(e,t){return 2===um(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Kx(e,t){return 2===um(e)?e.get(t):e[t]}function I8(e,t,n){const r=um(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function zW(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function $_(e){return e instanceof Map}function O_(e){return e instanceof Set}function Zh(e){return e.copy_||e.base_}function uC(e,t){if($_(e))return new Map(e);if(O_(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&T8(e))return fm(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ri];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const a=r[t],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(fm(e),n)}function KR(e,t=!1){return Kw(e)||Lc(e)||!jc(e)||(um(e)>1&&(e.set=e.add=e.clear=e.delete=MW),Object.freeze(e),t&&x1(e,((e,t)=>KR(t,!0)))),e}function MW(){ho(2)}function Kw(e){return Object.isFrozen(e)}var Hy,dC={};function dm(e){const t=dC[e];return t||ho(0,e),t}function DW(e,t){dC[e]||(dC[e]=t)}function P8(){return Hy}function NW(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function n9(e,t){t&&(dm("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function pC(e){hC(e),e.drafts_.forEach(LW),e.drafts_=null}function hC(e){e===Hy&&(Hy=e.parent_)}function r9(e){return Hy=NW(Hy,e)}function LW(e){const t=e[Ri];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function a9(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ri].modified_&&(pC(t),ho(4)),jc(e)&&(e=Qb(t,e),t.parent_||Yb(t,e)),t.patches_&&dm("Patches").generateReplacementPatches_(n[Ri].base_,e,t.patches_,t.inversePatches_)):e=Qb(t,n,[]),pC(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==GR?e:void 0}function Qb(e,t,n){if(Kw(t))return t;const r=t[Ri];if(!r)return x1(t,((a,o)=>o9(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Yb(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let a=t,o=!1;3===r.type_&&(a=new Set(t),t.clear(),o=!0),x1(a,((a,i)=>o9(e,r,t,a,i,n,o))),Yb(e,t,!1),n&&e.patches_&&dm("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function o9(e,t,n,r,a,o,i){if(Lc(a)){const i=Qb(e,a,o&&t&&3!==t.type_&&!Wy(t.assigned_,r)?o.concat(r):void 0);if(I8(n,r,i),!Lc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(jc(a)&&!Kw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Qb(e,a),(!t||!t.scope_.parent_)&&Yb(e,a)}}function Yb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&KR(t,n)}function jW(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:P8(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=QR;n&&(a=[r],o=Gy);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var QR={get(e,t){if(t===Ri)return e;const n=Zh(e);if(!Wy(n,t))return BW(e,n,t);const r=n[t];return e.finalized_||!jc(r)?r:r===Qx(e.base_,t)?(Yx(e),e.copy_[t]=gC(r,e)):r},has:(e,t)=>t in Zh(e),ownKeys:e=>Reflect.ownKeys(Zh(e)),set(e,t,n){const r=$8(Zh(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Qx(Zh(e),t),a=null==r?void 0:r[Ri];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(zW(n,r)&&(void 0!==n||Wy(e.base_,t)))return!0;Yx(e),mC(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Qx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Yx(e),mC(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Zh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){ho(11)},getPrototypeOf:e=>fm(e.base_),setPrototypeOf(){ho(12)}},Gy={};function Qx(e,t){const n=e[Ri];return(n?Zh(n):e)[t]}function BW(e,t,n){var r;const a=$8(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function $8(e,t){if(!(t in e))return;let n=fm(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=fm(n)}}function mC(e){e.modified_||(e.modified_=!0,e.parent_&&mC(e.parent_))}function Yx(e){e.copy_||(e.copy_=uC(e.base_,e.scope_.immer_.useStrictShallowCopy_))}x1(QR,((e,t)=>{Gy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Gy.deleteProperty=function(e,t){return Gy.set.call(this,e,t,void 0)},Gy.set=function(e,t,n){return QR.set.call(this,e[0],t,n,e[0])};var FW=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...a){return r.produce(e,(e=>t.call(this,e,...a)))}}let r;if("function"!=typeof t&&ho(6),void 0!==n&&"function"!=typeof n&&ho(7),jc(e)){const a=r9(this),o=gC(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?pC(a):hC(a)}return n9(a,n),a9(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===GR&&(r=void 0),this.autoFreeze_&&KR(r,!0),n){const t=[],a=[];dm("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}ho(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){jc(e)||ho(8),Lc(e)&&(e=O8(e));const t=r9(this),n=gC(e,void 0);return n[Ri].isManual_=!0,hC(t),n}finishDraft(e,t){const n=e&&e[Ri];(!n||!n.isManual_)&&ho(9);const{scope_:r}=n;return n9(r,t),a9(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=dm("Patches").applyPatches_;return Lc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function gC(e,t){const n=$_(e)?dm("MapSet").proxyMap_(e,t):O_(e)?dm("MapSet").proxySet_(e,t):jW(e,t);return(t?t.scope_:P8()).drafts_.push(n),n}function O8(e){return Lc(e)||ho(10,e),z8(e)}function z8(e){if(!jc(e)||Kw(e))return e;const t=e[Ri];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=uC(e,t.scope_.immer_.useStrictShallowCopy_)}else n=uC(e,!0);return x1(n,((e,t)=>{I8(n,e,z8(t))})),t&&(t.finalized_=!1),n}function UW(){const e="replace",t="add",n="remove";function r(e){if(!jc(e))return e;if(Array.isArray(e))return e.map(r);if($_(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(O_(e))return new Set(Array.from(e).map(r));const t=Object.create(fm(e));for(const n in e)t[n]=r(e[n]);return Wy(e,Ey)&&(t[Ey]=e[Ey]),t}function a(e){return Lc(e)?r(e):e}DW("Patches",{applyPatches_:function(a,o){return o.forEach((o=>{const{path:i,op:s}=o;let c=a;for(let e=0;e<i.length-1;e++){const t=um(c);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&ho(19),"function"==typeof c&&"prototype"===n&&ho(19),c=Kx(c,n),"object"!=typeof c&&ho(18,i.join("/"))}const l=um(c),u=r(o.value),f=i[i.length-1];switch(s){case e:switch(l){case 2:return c.set(f,u);case 3:ho(16);default:return c[f]=u}case t:switch(l){case 1:return"-"===f?c.push(u):c.splice(f,0,u);case 2:return c.set(f,u);case 3:return c.add(u);default:return c[f]=u}case n:switch(l){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(o.value);default:return delete c[f]}default:ho(17,s)}})),a},generatePatches_:function(r,o,i,s){switch(r.type_){case 0:case 2:return function(r,o,i,s){const{base_:c,copy_:l}=r;x1(r.assigned_,((r,u)=>{const f=Kx(c,r),d=Kx(l,r),p=u?Wy(c,r)?e:t:n;if(f===d&&p===e)return;const h=o.concat(r);i.push(p===n?{op:p,path:h}:{op:p,path:h,value:d}),s.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:a(f)}:{op:e,path:h,value:a(f)})}))}(r,o,i,s);case 1:return function(r,o,i,s){let{base_:c,assigned_:l}=r,u=r.copy_;u.length<c.length&&([c,u]=[u,c],[i,s]=[s,i]);for(let t=0;t<c.length;t++)if(l[t]&&u[t]!==c[t]){const n=o.concat([t]);i.push({op:e,path:n,value:a(u[t])}),s.push({op:e,path:n,value:a(c[t])})}for(let e=c.length;e<u.length;e++){const n=o.concat([e]);i.push({op:t,path:n,value:a(u[e])})}for(let e=u.length-1;c.length<=e;--e){const t=o.concat([e]);s.push({op:n,path:t})}}(r,o,i,s);case 3:return function(e,r,a,o){let{base_:i,copy_:s}=e,c=0;i.forEach((e=>{if(!s.has(e)){const i=r.concat([c]);a.push({op:n,path:i,value:e}),o.unshift({op:t,path:i,value:e})}c++})),c=0,s.forEach((e=>{if(!i.has(e)){const i=r.concat([c]);a.push({op:t,path:i,value:e}),o.unshift({op:n,path:i,value:e})}c++}))}(r,o,i,s)}},generateReplacementPatches_:function(t,n,r,a){r.push({op:e,path:[],value:n===GR?void 0:n}),a.push({op:e,path:[],value:t})}})}var as=new FW,z_=as.produce,M8=as.produceWithPatches.bind(as);as.setAutoFreeze.bind(as),as.setUseStrictShallowCopy.bind(as);var i9=as.applyPatches.bind(as);function VW(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function qW(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function WW(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}as.createDraft.bind(as),as.finishDraft.bind(as);var s9=e=>Array.isArray(e)?e:[e];function HW(e){const t=Array.isArray(e[0])?e[0]:e;return WW(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function GW(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var KW=class{constructor(e){this.value=e}deref(){return this.value}},QW=typeof WeakRef<"u"?WeakRef:KW,YW=0,c9=1;function Fv(){return{s:YW,v:void 0,o:null,p:null}}function Ky(e,t={}){let n=Fv();const{resultEqualityCheck:r}=t;let a,o=0;function i(){var t;let i=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=Fv(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=Fv(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===c9?l=i.v:(l=e.apply(null,arguments),o++),c.s=c9,r){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&r(e,l)&&(l=e,0!==o&&o--),a="object"==typeof l&&null!==l||"function"==typeof l?new QW(l):l}return c.v=l,l}return i.clearCache=()=>{n=Fv(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function D8(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),VW(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=Ky,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=s9(l),h=s9(f),m=HW(e),y=c((function(){return r++,i.apply(null,arguments)}),...p),g=u((function(){a++;const e=GW(m,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var go=D8(Ky),ZW=Object.assign(((e,t=go)=>{qW(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>ZW});function N8(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var XW=N8(),JW=N8,eH={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/settings/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/settings/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.14.0/bin",TURBO_HASH:"c842ef5034645afc",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_package_name:"@wellesley/settings",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.141",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/settings"},tH=(...e)=>{const t=D8(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Lc(e)?O8(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};tH(Ky);var nH=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Kb:Kb.apply(null,arguments)},rH=e=>e&&"function"==typeof e.match;function Ir(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Ha(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>A8(t)&&t.type===e,n}var L8=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function l9(e){return jc(e)?z_(e,(()=>{})):e}function yC(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Ha(10));const r=n.insert(t,e);return e.set(t,r),r}function aH(e){return"boolean"==typeof e}var oH=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{};let o=new L8;return t&&(aH(t)?o.push(XW):o.push(JW(t.extraArgument))),o},f1="RTK_autoBatch",Z0=()=>e=>({payload:e,meta:{[f1]:!0}}),j8=e=>t=>{setTimeout(t,e)},iH=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:j8(10),sH=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,o=!1,i=!1;const s=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?iH:"callback"===e.type?e.queueNotification:j8(e.timeout),l=()=>{i=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>a&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){var t;try{return a=!(null!=(t=null==e?void 0:e.meta)&&t[f1]),o=!a,o&&(i||(i=!0,c(l))),r.dispatch(e)}finally{a=!0}}})},cH=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new L8(e);return n&&r.push(sH("object"==typeof n?n:void 0)),r},lH="production"===eH.NODE_ENV;function fH(e){const t=oH(),{reducer:n,middleware:r,devTools:a=!0,preloadedState:o,enhancers:i}=e;let s,c;if("function"==typeof n)s=n;else{if(!Ul(n))throw new Error(Ha(1));s=HR(n)}c="function"==typeof r?r(t):t();let l=Kb;a&&(l=nH({trace:!lH,..."object"==typeof a&&a}));const u=PW(...c),f=cH(u);return R8(s,o,l(..."function"==typeof i?i(f):f()))}function B8(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Ha(28));if(r in t)throw new Error(Ha(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function uH(e){return"function"==typeof e}function dH(e,t){let n,[r,a,o]=B8(t);if(uH(e))n=()=>l9(e());else{const t=l9(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,n)=>{if(n){if(Lc(e)){const r=n(e,t);return void 0===r?e:r}if(jc(e))return z_(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Ha(9))}return r}}return e}),e)}return i.getInitialState=n,i}var pH="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Qw=(e=21)=>{let t="",n=e;for(;n--;)t+=pH[64*Math.random()|0];return t},F8=(e,t)=>rH(e)?e.match(t):e(t);function vp(...e){return t=>e.some((e=>F8(e,t)))}function Cy(...e){return t=>e.every((e=>F8(e,t)))}function Yw(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function M_(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function YR(...e){return 0===e.length?e=>Yw(e,["pending"]):M_(e)?t=>vp(...e.map((e=>e.pending)))(t):YR()(e[0])}function S1(...e){return 0===e.length?e=>Yw(e,["rejected"]):M_(e)?t=>vp(...e.map((e=>e.rejected)))(t):S1()(e[0])}function Zw(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||M_(e)?n=>Cy(S1(...e),t)(n):Zw()(e[0])}function bp(...e){return 0===e.length?e=>Yw(e,["fulfilled"]):M_(e)?t=>vp(...e.map((e=>e.fulfilled)))(t):bp()(e[0])}function _C(...e){return 0===e.length?e=>Yw(e,["pending","fulfilled","rejected"]):M_(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return vp(...n)(t)}:_C()(e[0])}var hH=["name","message","stack","code"],Zx=class{constructor(e,t){Hx(this,"_type"),this.payload=e,this.meta=t}},f9=class{constructor(e,t){Hx(this,"_type"),this.payload=e,this.meta=t}},mH=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of hH)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},u9=(()=>{function e(e,t,n){const r=Ir(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=Ir(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=Ir(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||mH)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,c)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):Qw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let y;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(yH(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(l,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:l,arg:e},{getState:s,extra:c}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Zx(e,t),fulfillWithValue:(e,t)=>new f9(e,t)})).then((t=>{if(t instanceof Zx)throw t;return t instanceof f9?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){y=t instanceof Zx?o(null,l,e,t.payload,t.meta):o(t,l,e)}finally{f&&u.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&o.match(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(gH)})}}),{pending:a,rejected:o,fulfilled:r,settled:vp(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function gH(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function yH(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var _H=Symbol.for("rtk-slice-createasyncthunk");function vH(e,t){return`${e}/${t}`}function bH({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[_H];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Ha(11));const a=("function"==typeof e.reducers?e.reducers(kH()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Ha(12));if(n in i.sliceCaseReducersByType)throw new Error(Ha(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?B8(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return dH(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=a[r],i={reducerName:r,type:vH(t,r),createNotation:"function"==typeof e.reducers};SH(o)?CH(i,o,s,n):xH(i,o,s)}));const l=e=>e,u=new Map;let f;function d(e,t){return f||(f=c()),f(e,t)}function p(){return f||(f=c()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function a(t=l){const r=yC(u,n,{insert:()=>new WeakMap});return yC(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=wH(o,t,p,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:d},n),{...m,...h(a,!0)}}};return m}}function wH(e,t,n,r){function a(a,...o){let i=t(a);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var Ca=bH();function kH(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function xH({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!EH(r))throw new Error(Ha(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?Ir(e,i):Ir(e))}function SH(e){return"asyncThunk"===e._reducerDefinitionType}function EH(e){return"reducerWithPrepare"===e._reducerDefinitionType}function CH({type:e,reducerName:t},n,r,a){if(!a)throw new Error(Ha(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:c,settled:l,options:u}=n,f=a(e,o,u);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),s&&r.addCase(f.pending,s),c&&r.addCase(f.rejected,c),l&&r.addMatcher(f.settled,l),r.exposeCaseReducer(t,{fulfilled:i||Uv,pending:s||Uv,rejected:c||Uv,settled:l||Uv})}function Uv(){}var RH=(e,t)=>{if("function"!=typeof e)throw new Error(Ha(32))},ZR="listenerMiddleware",AH=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=Ir(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(Ha(21));return RH(o),{predicate:a,type:t,effect:o}},TH=Object.assign((e=>{const{type:t,predicate:n,effect:r}=AH(e);return{id:Qw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Ha(22))}}}),{withTypes:()=>TH}),IH=Object.assign(Ir(`${ZR}/add`),{withTypes:()=>IH});Ir(`${ZR}/removeAll`);var PH=Object.assign(Ir(`${ZR}/remove`),{withTypes:()=>PH}),$H=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,OH=e=>e.flatMap((e=>$H(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),XR=Symbol.for("rtk-state-proxy-original"),zH=e=>!!e&&!!e[XR],MH=new WeakMap,DH=(e,t)=>yC(MH,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===XR)return e;const a=Reflect.get(e,n,r);if(typeof a>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Qw()});if(typeof t>"u")throw new Error(Ha(24));return t}}return a}})}),NH=e=>{if(!zH(e))throw new Error(Ha(25));return e[XR]},LH=(e={})=>e;function jH(...e){const t=Object.fromEntries(OH(e)),n=()=>Object.keys(t).length?HR(t):LH;let r=n();function a(e,t){return r(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,n){return function(r,...a){return e(DH(n?n(r,...a):r,t),...a)}}),{original:NH});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,c=t[i];return!o.overrideExisting&&c&&c!==s||(t[i]=s,r=n()),a},selector:o})}function Ha(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const BH={data:null,isPending:!1,isSuccess:!1},Qy=Ca({name:"profileSettings",initialState:BH,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),bt={openaiConfigModel:"wellesley.openai.config.model",openaiConfigApiKey:"wellesley.openai.config.apiKey",uploadsProvider:"wellesley.uploads.provider",uploadsS3:"wellesley.uploads.s3",uploadsPolicyImageExtensions:"wellesley.uploads.policy.image.extensions",uploadsPolicyImageKeepOriginal:"wellesley.uploads.policy.image.keepOriginal",uploadsPolicyImageResolutions:"wellesley.uploads.policy.image.resolutions",uploadsPolicyImageMaxResolution:"wellesley.uploads.policy.image.maxResolution",uploadsPolicyImageMaxMatrix:"wellesley.uploads.policy.image.maxMatrix",uploadsPolicyImageMaxSize:"wellesley.uploads.policy.image.maxSize",uploadsPolicyVideoExtensions:"wellesley.uploads.policy.video.extensions",uploadsPolicyVideoResolutions:"wellesley.uploads.policy.video.resolutions",uploadsPolicyVideoKeepOriginal:"wellesley.uploads.policy.video.keepOriginal",uploadsPolicyVideoMaxResolution:"wellesley.uploads.policy.video.maxResolution",uploadsPolicyVideoMaxMatrix:"wellesley.uploads.policy.video.maxMatrix",uploadsPolicyVideoMaxSize:"wellesley.uploads.policy.video.maxSize",uploadsPolicyVideoMaxDuration:"wellesley.uploads.policy.video.maxDuration",uploadsPolicyVideoStreamingThreshold:"wellesley.uploads.policy.video.streamingThreshold",uploadsPolicyAudioExtensions:"wellesley.uploads.policy.audio.extensions",uploadsPolicyAudioKeepOriginal:"wellesley.uploads.policy.audio.keepOriginal",uploadsPolicyAudioMaxSize:"wellesley.uploads.policy.audio.maxSize",uploadsPolicyDocExtensions:"wellesley.uploads.policy.doc.extensions",uploadsPolicyDocMaxSize:"wellesley.uploads.policy.doc.maxSize",mediacacheEnabled:"wellesley.mediacache.enabled",mediacacheMaxTotalSize:"wellesley.mediacache.maxTotalSize",mediacacheMaxFileSize:"wellesley.mediacache.maxFileSize",mediacacheLimitPerRun:"wellesley.mediacache.limitPerRun",mediacacheSingleRun:"wellesley.mediacache.singleRun",mediacacheCheckInterval:"wellesley.mediacache.checkInterval",postsMaxMediaAttachments:"wellesley.posts.max_media_attachments",postsMaxCharacters:"wellesley.posts.max_characters",postsMaxPins:"wellesley.posts.max_pins",registrationMode:"wellesley.registration.mode",registrationInvitesEnabled:"wellesley.registration.invitesEnabled",registrationReasonToJoin:"wellesley.registration.reasonToJoin",registrationShowCaptcha:"wellesley.registration.showCaptcha",registrationNotAvailableMessage:"wellesley.registration.notAvailableMessage",captchaVerifyUrl:"wellesley.captcha.verifyUrl",captchaSecretKey:"wellesley.captcha.secretKey",captchaSiteKey:"wellesley.captcha.siteKey",confirmationCodeCodeExpirationMinutes:"wellesley.confirmationCode.codeExpirationMinutes",confirmationCodeCounterExpirationMinutes:"wellesley.confirmationCode.counterExpirationMinutes",confirmationCodeLimitStoreAttempts:"wellesley.confirmationCode.limitStoreAttempts",confirmationCodeLimitCheckAttempts:"wellesley.confirmationCode.limitCheckAttempts",translation:"wellesley.translation"},CWe=[bt.uploadsPolicyImageExtensions,bt.uploadsPolicyImageKeepOriginal,bt.uploadsPolicyImageResolutions,bt.uploadsPolicyImageMaxResolution,bt.uploadsPolicyImageMaxMatrix,bt.uploadsPolicyImageMaxSize,bt.uploadsPolicyVideoExtensions,bt.uploadsPolicyVideoResolutions,bt.uploadsPolicyVideoKeepOriginal,bt.uploadsPolicyVideoMaxResolution,bt.uploadsPolicyVideoMaxMatrix,bt.uploadsPolicyVideoMaxSize,bt.uploadsPolicyVideoMaxDuration,bt.uploadsPolicyVideoStreamingThreshold,bt.uploadsPolicyAudioExtensions,bt.uploadsPolicyAudioKeepOriginal,bt.uploadsPolicyAudioMaxSize,bt.uploadsPolicyDocExtensions,bt.uploadsPolicyDocMaxSize,bt.mediacacheEnabled,bt.mediacacheMaxTotalSize,bt.mediacacheMaxFileSize,bt.mediacacheLimitPerRun,bt.mediacacheSingleRun,bt.mediacacheCheckInterval,bt.postsMaxMediaAttachments,bt.postsMaxCharacters,bt.postsMaxPins,bt.registrationMode,bt.registrationInvitesEnabled,bt.registrationReasonToJoin,bt.registrationShowCaptcha,bt.registrationNotAvailableMessage],RWe="wellesley",uo={followAutoAccept:"user.follow.autoAccept",notificationsPrefsFollow:"user.notifications.prefs.follow",notificationsPrefsFollow_request:"user.notifications.prefs.followRequest",notificationsPrefsLike:"user.notifications.prefs.like",notificationsPrefsComment:"user.notifications.prefs.comment",notificationsPrefsMention:"user.notifications.prefs.mention",notificationsPrefsRepost:"user.notifications.prefs.repost",notificationsPrefsList_post_create:"user.notifications.prefs.list_post_create",notificationsPrefsPost_update:"user.notifications.prefs.post_update",notificationsPrefsSubscribeOnComment:"user.notifications.prefs.subscribeOnComment",notificationsPrefsAlwaysSendEmail:"user.notifications.prefs.alwaysSendEmail",notificationsShowPopup:"user.notifications.prefs.showPopup",notificationsPolicyBlockNonFollowers:"user.notifications.policy.blockNonFollowers",notificationsPolicyBlockNonFollowing:"user.notifications.policy.blockNonFollowing",notificationsPolicyBlockNonFollowingMessages:"user.notifications.policy.blockNonFollowingMessages",notificationsPolicyBlockNewAccounts:"user.notifications.policy.blockNewAccounts",privacyShowPublicPosts:"user.privacy.showPublicPosts",privacyShowProfilePage:"user.privacy.showProfilePage",privacyShowFollowers:"user.privacy.showFollowers",translation:"user.translation"},AWe="user",FH=["wellesley.posts","wellesley.captcha","wellesley.registration","wellesley.confirmationCode","wellesley.uploads.policy.doc","wellesley.uploads.policy.audio","wellesley.uploads.policy.image","wellesley.uploads.policy.video","wellesley.translation"],UH=["wellesley.admin.sms","wellesley.admin.auth","wellesley.admin.openai","wellesley.admin.uploads","wellesley.admin.captcha","wellesley.admin.language","wellesley.admin.mediacache","wellesley.admin.translation"],VH={sms:"wellesley.admin.sms",auth:"wellesley.admin.auth",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation"},qH={posts:"wellesley.posts",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha"},WH={data:null,isPending:!1},{posts:Xx,uploadsPolicyDoc:d9,uploadsPolicyAudio:Jx,uploadsPolicyImage:Vv,uploadsPolicyVideo:X0,registration:HH,captcha:GH}=qH,{captcha:KH,language:QH,translation:YH,openai:ZH}=VH,U1=e=>e.data,XH=go(U1,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[Xx])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[Xx])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[Xx])?void 0:r.max_pins)||0}})),U8=go(U1,(e=>{var t,n,r;return{...null==e?void 0:e[Vv],maxSize:(null==(t=null==e?void 0:e[Vv])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Vv])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[Vv])?void 0:r.maxResolution)||0}})),V8=go(U1,(e=>{var t,n,r,a;return{...null==e?void 0:e[X0],maxSize:(null==(t=null==e?void 0:e[X0])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[X0])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[X0])?void 0:r.maxDuration)||0,maxResolution:(null==(a=null==e?void 0:e[X0])?void 0:a.maxResolution)||0}})),q8=go(U1,(e=>{var t,n;return{...null==e?void 0:e[Jx],maxSize:null==(t=null==e?void 0:e[Jx])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[Jx])?void 0:n.keepOriginal)||0}})),W8=go(U1,(e=>{var t;return{...null==e?void 0:e[d9],maxSize:(null==(t=null==e?void 0:e[d9])?void 0:t.maxSize)||0}})),H8=go([U8,V8,q8,W8],((e,t,n,r)=>({IMAGE:null==e?void 0:e.extensions,VIDEO:null==t?void 0:t.extensions,AUDIO:null==n?void 0:n.extensions,DOCUMENT:null==r?void 0:r.extensions}))),JH=go(H8,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),Ry=Ca({name:"platformSettings",initialState:WH,reducers:{setSettings:(e,t)=>{e.data={...e.data,...t.payload}},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectSettings:U1,selectPostConfig:XH,selectDocPolicy:W8,selectImagePolicy:U8,selectVideoPolicy:V8,selectAudioPolicy:q8,selectSupportedExtensions:H8,selectFullExtensionsList:JH,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[HH]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[QH]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[YH]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[ZH]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[GH]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[KH]}}});var js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ql(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p9,h9,m9,g9,e3={exports:{}},J0={},t3={exports:{}},Jt={};
1
+ var EW=Object.defineProperty,CW=(e,t,n)=>t in e?EW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hx=(e,t,n)=>CW(e,"symbol"!=typeof t?t+"":t,n);function RW(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function po(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var AW="function"==typeof Symbol&&Symbol.observable||"@@observable",t9=AW,Gx=()=>Math.random().toString(36).substring(7).split("").join("."),TW={INIT:`@@redux/INIT${Gx()}`,REPLACE:`@@redux/REPLACE${Gx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Gx()}`},Gb=TW;function Ul(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function R8(e,t,n){if("function"!=typeof e)throw new Error(po(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(po(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(po(1));return n(R8)(e,t)}let r=e,a=t,o=new Map,i=o,s=0,c=!1;function l(){i===o&&(i=new Map,o.forEach(((e,t)=>{i.set(t,e)})))}function u(){if(c)throw new Error(po(3));return a}function f(e){if("function"!=typeof e)throw new Error(po(4));if(c)throw new Error(po(5));let t=!0;l();const n=s++;return i.set(n,e),function(){if(t){if(c)throw new Error(po(6));t=!1,l(),i.delete(n),o=null}}}function d(e){if(!Ul(e))throw new Error(po(7));if(typeof e.type>"u")throw new Error(po(8));if("string"!=typeof e.type)throw new Error(po(17));if(c)throw new Error(po(9));try{c=!0,a=r(a,e)}finally{c=!1}return(o=i).forEach((e=>{e()})),e}return d({type:Gb.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(po(10));r=e,d({type:Gb.REPLACE})},[t9]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(po(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[t9](){return this}}}}}function IW(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Gb.INIT})>"u")throw new Error(po(12));if(typeof n(void 0,{type:Gb.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(po(13))}))}function HR(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}const r=Object.keys(n);let a;try{IW(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<r.length;a++){const s=r[a],c=n[s],l=e[s],u=c(l,t);if(typeof u>"u")throw t&&t.type,new Error(po(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function Kb(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function PW(...e){return t=>(n,r)=>{const a=t(n,r);let o=()=>{throw new Error(po(15))};const i={getState:a.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(i)));return o=Kb(...s)(a.dispatch),{...a,dispatch:o}}}function A8(e){return Ul(e)&&"type"in e&&"string"==typeof e.type}var GR=Symbol.for("immer-nothing"),Ey=Symbol.for("immer-draftable"),Ri=Symbol.for("immer-state");function ho(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fm=Object.getPrototypeOf;function Lc(e){return!!e&&!!e[Ri]}function jc(e){var t;return!!e&&(T8(e)||Array.isArray(e)||!!e[Ey]||!(null==(t=e.constructor)||!t[Ey])||$_(e)||O_(e))}var $W=Object.prototype.constructor.toString();function T8(e){if(!e||"object"!=typeof e)return!1;const t=fm(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===$W}function OW(e){return Lc(e)||ho(15,e),e[Ri].base_}function x1(e,t){0===um(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function um(e){const t=e[Ri];return t?t.type_:Array.isArray(e)?1:$_(e)?2:O_(e)?3:0}function Wy(e,t){return 2===um(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Kx(e,t){return 2===um(e)?e.get(t):e[t]}function I8(e,t,n){const r=um(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function zW(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function $_(e){return e instanceof Map}function O_(e){return e instanceof Set}function Zh(e){return e.copy_||e.base_}function uC(e,t){if($_(e))return new Map(e);if(O_(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&T8(e))return fm(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ri];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const a=r[t],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(fm(e),n)}function KR(e,t=!1){return Kw(e)||Lc(e)||!jc(e)||(um(e)>1&&(e.set=e.add=e.clear=e.delete=MW),Object.freeze(e),t&&x1(e,((e,t)=>KR(t,!0)))),e}function MW(){ho(2)}function Kw(e){return Object.isFrozen(e)}var Hy,dC={};function dm(e){const t=dC[e];return t||ho(0,e),t}function DW(e,t){dC[e]||(dC[e]=t)}function P8(){return Hy}function NW(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function n9(e,t){t&&(dm("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function pC(e){hC(e),e.drafts_.forEach(LW),e.drafts_=null}function hC(e){e===Hy&&(Hy=e.parent_)}function r9(e){return Hy=NW(Hy,e)}function LW(e){const t=e[Ri];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function a9(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ri].modified_&&(pC(t),ho(4)),jc(e)&&(e=Qb(t,e),t.parent_||Yb(t,e)),t.patches_&&dm("Patches").generateReplacementPatches_(n[Ri].base_,e,t.patches_,t.inversePatches_)):e=Qb(t,n,[]),pC(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==GR?e:void 0}function Qb(e,t,n){if(Kw(t))return t;const r=t[Ri];if(!r)return x1(t,((a,o)=>o9(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Yb(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let a=t,o=!1;3===r.type_&&(a=new Set(t),t.clear(),o=!0),x1(a,((a,i)=>o9(e,r,t,a,i,n,o))),Yb(e,t,!1),n&&e.patches_&&dm("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function o9(e,t,n,r,a,o,i){if(Lc(a)){const i=Qb(e,a,o&&t&&3!==t.type_&&!Wy(t.assigned_,r)?o.concat(r):void 0);if(I8(n,r,i),!Lc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(jc(a)&&!Kw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Qb(e,a),(!t||!t.scope_.parent_)&&Yb(e,a)}}function Yb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&KR(t,n)}function jW(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:P8(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=QR;n&&(a=[r],o=Gy);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var QR={get(e,t){if(t===Ri)return e;const n=Zh(e);if(!Wy(n,t))return BW(e,n,t);const r=n[t];return e.finalized_||!jc(r)?r:r===Qx(e.base_,t)?(Yx(e),e.copy_[t]=gC(r,e)):r},has:(e,t)=>t in Zh(e),ownKeys:e=>Reflect.ownKeys(Zh(e)),set(e,t,n){const r=$8(Zh(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Qx(Zh(e),t),a=null==r?void 0:r[Ri];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(zW(n,r)&&(void 0!==n||Wy(e.base_,t)))return!0;Yx(e),mC(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Qx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Yx(e),mC(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Zh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){ho(11)},getPrototypeOf:e=>fm(e.base_),setPrototypeOf(){ho(12)}},Gy={};function Qx(e,t){const n=e[Ri];return(n?Zh(n):e)[t]}function BW(e,t,n){var r;const a=$8(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function $8(e,t){if(!(t in e))return;let n=fm(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=fm(n)}}function mC(e){e.modified_||(e.modified_=!0,e.parent_&&mC(e.parent_))}function Yx(e){e.copy_||(e.copy_=uC(e.base_,e.scope_.immer_.useStrictShallowCopy_))}x1(QR,((e,t)=>{Gy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Gy.deleteProperty=function(e,t){return Gy.set.call(this,e,t,void 0)},Gy.set=function(e,t,n){return QR.set.call(this,e[0],t,n,e[0])};var FW=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...a){return r.produce(e,(e=>t.call(this,e,...a)))}}let r;if("function"!=typeof t&&ho(6),void 0!==n&&"function"!=typeof n&&ho(7),jc(e)){const a=r9(this),o=gC(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?pC(a):hC(a)}return n9(a,n),a9(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===GR&&(r=void 0),this.autoFreeze_&&KR(r,!0),n){const t=[],a=[];dm("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}ho(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){jc(e)||ho(8),Lc(e)&&(e=O8(e));const t=r9(this),n=gC(e,void 0);return n[Ri].isManual_=!0,hC(t),n}finishDraft(e,t){const n=e&&e[Ri];(!n||!n.isManual_)&&ho(9);const{scope_:r}=n;return n9(r,t),a9(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=dm("Patches").applyPatches_;return Lc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function gC(e,t){const n=$_(e)?dm("MapSet").proxyMap_(e,t):O_(e)?dm("MapSet").proxySet_(e,t):jW(e,t);return(t?t.scope_:P8()).drafts_.push(n),n}function O8(e){return Lc(e)||ho(10,e),z8(e)}function z8(e){if(!jc(e)||Kw(e))return e;const t=e[Ri];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=uC(e,t.scope_.immer_.useStrictShallowCopy_)}else n=uC(e,!0);return x1(n,((e,t)=>{I8(n,e,z8(t))})),t&&(t.finalized_=!1),n}function UW(){const e="replace",t="add",n="remove";function r(e){if(!jc(e))return e;if(Array.isArray(e))return e.map(r);if($_(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(O_(e))return new Set(Array.from(e).map(r));const t=Object.create(fm(e));for(const n in e)t[n]=r(e[n]);return Wy(e,Ey)&&(t[Ey]=e[Ey]),t}function a(e){return Lc(e)?r(e):e}DW("Patches",{applyPatches_:function(a,o){return o.forEach((o=>{const{path:i,op:s}=o;let c=a;for(let e=0;e<i.length-1;e++){const t=um(c);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&ho(19),"function"==typeof c&&"prototype"===n&&ho(19),c=Kx(c,n),"object"!=typeof c&&ho(18,i.join("/"))}const l=um(c),u=r(o.value),f=i[i.length-1];switch(s){case e:switch(l){case 2:return c.set(f,u);case 3:ho(16);default:return c[f]=u}case t:switch(l){case 1:return"-"===f?c.push(u):c.splice(f,0,u);case 2:return c.set(f,u);case 3:return c.add(u);default:return c[f]=u}case n:switch(l){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(o.value);default:return delete c[f]}default:ho(17,s)}})),a},generatePatches_:function(r,o,i,s){switch(r.type_){case 0:case 2:return function(r,o,i,s){const{base_:c,copy_:l}=r;x1(r.assigned_,((r,u)=>{const f=Kx(c,r),d=Kx(l,r),p=u?Wy(c,r)?e:t:n;if(f===d&&p===e)return;const h=o.concat(r);i.push(p===n?{op:p,path:h}:{op:p,path:h,value:d}),s.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:a(f)}:{op:e,path:h,value:a(f)})}))}(r,o,i,s);case 1:return function(r,o,i,s){let{base_:c,assigned_:l}=r,u=r.copy_;u.length<c.length&&([c,u]=[u,c],[i,s]=[s,i]);for(let t=0;t<c.length;t++)if(l[t]&&u[t]!==c[t]){const n=o.concat([t]);i.push({op:e,path:n,value:a(u[t])}),s.push({op:e,path:n,value:a(c[t])})}for(let e=c.length;e<u.length;e++){const n=o.concat([e]);i.push({op:t,path:n,value:a(u[e])})}for(let e=u.length-1;c.length<=e;--e){const t=o.concat([e]);s.push({op:n,path:t})}}(r,o,i,s);case 3:return function(e,r,a,o){let{base_:i,copy_:s}=e,c=0;i.forEach((e=>{if(!s.has(e)){const i=r.concat([c]);a.push({op:n,path:i,value:e}),o.unshift({op:t,path:i,value:e})}c++})),c=0,s.forEach((e=>{if(!i.has(e)){const i=r.concat([c]);a.push({op:t,path:i,value:e}),o.unshift({op:n,path:i,value:e})}c++}))}(r,o,i,s)}},generateReplacementPatches_:function(t,n,r,a){r.push({op:e,path:[],value:n===GR?void 0:n}),a.push({op:e,path:[],value:t})}})}var as=new FW,z_=as.produce,M8=as.produceWithPatches.bind(as);as.setAutoFreeze.bind(as),as.setUseStrictShallowCopy.bind(as);var i9=as.applyPatches.bind(as);function VW(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function qW(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function WW(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}as.createDraft.bind(as),as.finishDraft.bind(as);var s9=e=>Array.isArray(e)?e:[e];function HW(e){const t=Array.isArray(e[0])?e[0]:e;return WW(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function GW(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var KW=class{constructor(e){this.value=e}deref(){return this.value}},QW=typeof WeakRef<"u"?WeakRef:KW,YW=0,c9=1;function Fv(){return{s:YW,v:void 0,o:null,p:null}}function Ky(e,t={}){let n=Fv();const{resultEqualityCheck:r}=t;let a,o=0;function i(){var t;let i=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=Fv(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=Fv(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===c9?l=i.v:(l=e.apply(null,arguments),o++),c.s=c9,r){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&r(e,l)&&(l=e,0!==o&&o--),a="object"==typeof l&&null!==l||"function"==typeof l?new QW(l):l}return c.v=l,l}return i.clearCache=()=>{n=Fv(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function D8(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),VW(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=Ky,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=s9(l),h=s9(f),m=HW(e),y=c((function(){return r++,i.apply(null,arguments)}),...p),g=u((function(){a++;const e=GW(m,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var go=D8(Ky),ZW=Object.assign(((e,t=go)=>{qW(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>ZW});function N8(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var XW=N8(),JW=N8,eH={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/settings/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/settings/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.14.0/bin",TURBO_HASH:"ef0c1e62b4142a53",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_package_name:"@wellesley/settings",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.142",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/settings"},tH=(...e)=>{const t=D8(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Lc(e)?O8(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};tH(Ky);var nH=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Kb:Kb.apply(null,arguments)},rH=e=>e&&"function"==typeof e.match;function Ir(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Ha(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>A8(t)&&t.type===e,n}var L8=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function l9(e){return jc(e)?z_(e,(()=>{})):e}function yC(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Ha(10));const r=n.insert(t,e);return e.set(t,r),r}function aH(e){return"boolean"==typeof e}var oH=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{};let o=new L8;return t&&(aH(t)?o.push(XW):o.push(JW(t.extraArgument))),o},f1="RTK_autoBatch",Z0=()=>e=>({payload:e,meta:{[f1]:!0}}),j8=e=>t=>{setTimeout(t,e)},iH=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:j8(10),sH=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,o=!1,i=!1;const s=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?iH:"callback"===e.type?e.queueNotification:j8(e.timeout),l=()=>{i=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>a&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){var t;try{return a=!(null!=(t=null==e?void 0:e.meta)&&t[f1]),o=!a,o&&(i||(i=!0,c(l))),r.dispatch(e)}finally{a=!0}}})},cH=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new L8(e);return n&&r.push(sH("object"==typeof n?n:void 0)),r},lH="production"===eH.NODE_ENV;function fH(e){const t=oH(),{reducer:n,middleware:r,devTools:a=!0,preloadedState:o,enhancers:i}=e;let s,c;if("function"==typeof n)s=n;else{if(!Ul(n))throw new Error(Ha(1));s=HR(n)}c="function"==typeof r?r(t):t();let l=Kb;a&&(l=nH({trace:!lH,..."object"==typeof a&&a}));const u=PW(...c),f=cH(u);return R8(s,o,l(..."function"==typeof i?i(f):f()))}function B8(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Ha(28));if(r in t)throw new Error(Ha(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function uH(e){return"function"==typeof e}function dH(e,t){let n,[r,a,o]=B8(t);if(uH(e))n=()=>l9(e());else{const t=l9(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,n)=>{if(n){if(Lc(e)){const r=n(e,t);return void 0===r?e:r}if(jc(e))return z_(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Ha(9))}return r}}return e}),e)}return i.getInitialState=n,i}var pH="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Qw=(e=21)=>{let t="",n=e;for(;n--;)t+=pH[64*Math.random()|0];return t},F8=(e,t)=>rH(e)?e.match(t):e(t);function vp(...e){return t=>e.some((e=>F8(e,t)))}function Cy(...e){return t=>e.every((e=>F8(e,t)))}function Yw(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function M_(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function YR(...e){return 0===e.length?e=>Yw(e,["pending"]):M_(e)?t=>vp(...e.map((e=>e.pending)))(t):YR()(e[0])}function S1(...e){return 0===e.length?e=>Yw(e,["rejected"]):M_(e)?t=>vp(...e.map((e=>e.rejected)))(t):S1()(e[0])}function Zw(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||M_(e)?n=>Cy(S1(...e),t)(n):Zw()(e[0])}function bp(...e){return 0===e.length?e=>Yw(e,["fulfilled"]):M_(e)?t=>vp(...e.map((e=>e.fulfilled)))(t):bp()(e[0])}function _C(...e){return 0===e.length?e=>Yw(e,["pending","fulfilled","rejected"]):M_(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return vp(...n)(t)}:_C()(e[0])}var hH=["name","message","stack","code"],Zx=class{constructor(e,t){Hx(this,"_type"),this.payload=e,this.meta=t}},f9=class{constructor(e,t){Hx(this,"_type"),this.payload=e,this.meta=t}},mH=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of hH)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},u9=(()=>{function e(e,t,n){const r=Ir(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=Ir(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=Ir(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||mH)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,c)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):Qw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let y;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(yH(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(l,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:l,arg:e},{getState:s,extra:c}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Zx(e,t),fulfillWithValue:(e,t)=>new f9(e,t)})).then((t=>{if(t instanceof Zx)throw t;return t instanceof f9?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){y=t instanceof Zx?o(null,l,e,t.payload,t.meta):o(t,l,e)}finally{f&&u.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&o.match(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(gH)})}}),{pending:a,rejected:o,fulfilled:r,settled:vp(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function gH(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function yH(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var _H=Symbol.for("rtk-slice-createasyncthunk");function vH(e,t){return`${e}/${t}`}function bH({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[_H];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Ha(11));const a=("function"==typeof e.reducers?e.reducers(kH()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Ha(12));if(n in i.sliceCaseReducersByType)throw new Error(Ha(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?B8(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return dH(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=a[r],i={reducerName:r,type:vH(t,r),createNotation:"function"==typeof e.reducers};SH(o)?CH(i,o,s,n):xH(i,o,s)}));const l=e=>e,u=new Map;let f;function d(e,t){return f||(f=c()),f(e,t)}function p(){return f||(f=c()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function a(t=l){const r=yC(u,n,{insert:()=>new WeakMap});return yC(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=wH(o,t,p,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:d},n),{...m,...h(a,!0)}}};return m}}function wH(e,t,n,r){function a(a,...o){let i=t(a);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var Ca=bH();function kH(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function xH({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!EH(r))throw new Error(Ha(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?Ir(e,i):Ir(e))}function SH(e){return"asyncThunk"===e._reducerDefinitionType}function EH(e){return"reducerWithPrepare"===e._reducerDefinitionType}function CH({type:e,reducerName:t},n,r,a){if(!a)throw new Error(Ha(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:c,settled:l,options:u}=n,f=a(e,o,u);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),s&&r.addCase(f.pending,s),c&&r.addCase(f.rejected,c),l&&r.addMatcher(f.settled,l),r.exposeCaseReducer(t,{fulfilled:i||Uv,pending:s||Uv,rejected:c||Uv,settled:l||Uv})}function Uv(){}var RH=(e,t)=>{if("function"!=typeof e)throw new Error(Ha(32))},ZR="listenerMiddleware",AH=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=Ir(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(Ha(21));return RH(o),{predicate:a,type:t,effect:o}},TH=Object.assign((e=>{const{type:t,predicate:n,effect:r}=AH(e);return{id:Qw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Ha(22))}}}),{withTypes:()=>TH}),IH=Object.assign(Ir(`${ZR}/add`),{withTypes:()=>IH});Ir(`${ZR}/removeAll`);var PH=Object.assign(Ir(`${ZR}/remove`),{withTypes:()=>PH}),$H=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,OH=e=>e.flatMap((e=>$H(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),XR=Symbol.for("rtk-state-proxy-original"),zH=e=>!!e&&!!e[XR],MH=new WeakMap,DH=(e,t)=>yC(MH,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===XR)return e;const a=Reflect.get(e,n,r);if(typeof a>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Qw()});if(typeof t>"u")throw new Error(Ha(24));return t}}return a}})}),NH=e=>{if(!zH(e))throw new Error(Ha(25));return e[XR]},LH=(e={})=>e;function jH(...e){const t=Object.fromEntries(OH(e)),n=()=>Object.keys(t).length?HR(t):LH;let r=n();function a(e,t){return r(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,n){return function(r,...a){return e(DH(n?n(r,...a):r,t),...a)}}),{original:NH});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,c=t[i];return!o.overrideExisting&&c&&c!==s||(t[i]=s,r=n()),a},selector:o})}function Ha(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const BH={data:null,isPending:!1,isSuccess:!1},Qy=Ca({name:"profileSettings",initialState:BH,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),bt={openaiConfigModel:"wellesley.openai.config.model",openaiConfigApiKey:"wellesley.openai.config.apiKey",uploadsProvider:"wellesley.uploads.provider",uploadsS3:"wellesley.uploads.s3",uploadsPolicyImageExtensions:"wellesley.uploads.policy.image.extensions",uploadsPolicyImageKeepOriginal:"wellesley.uploads.policy.image.keepOriginal",uploadsPolicyImageResolutions:"wellesley.uploads.policy.image.resolutions",uploadsPolicyImageMaxResolution:"wellesley.uploads.policy.image.maxResolution",uploadsPolicyImageMaxMatrix:"wellesley.uploads.policy.image.maxMatrix",uploadsPolicyImageMaxSize:"wellesley.uploads.policy.image.maxSize",uploadsPolicyVideoExtensions:"wellesley.uploads.policy.video.extensions",uploadsPolicyVideoResolutions:"wellesley.uploads.policy.video.resolutions",uploadsPolicyVideoKeepOriginal:"wellesley.uploads.policy.video.keepOriginal",uploadsPolicyVideoMaxResolution:"wellesley.uploads.policy.video.maxResolution",uploadsPolicyVideoMaxMatrix:"wellesley.uploads.policy.video.maxMatrix",uploadsPolicyVideoMaxSize:"wellesley.uploads.policy.video.maxSize",uploadsPolicyVideoMaxDuration:"wellesley.uploads.policy.video.maxDuration",uploadsPolicyVideoStreamingThreshold:"wellesley.uploads.policy.video.streamingThreshold",uploadsPolicyAudioExtensions:"wellesley.uploads.policy.audio.extensions",uploadsPolicyAudioKeepOriginal:"wellesley.uploads.policy.audio.keepOriginal",uploadsPolicyAudioMaxSize:"wellesley.uploads.policy.audio.maxSize",uploadsPolicyDocExtensions:"wellesley.uploads.policy.doc.extensions",uploadsPolicyDocMaxSize:"wellesley.uploads.policy.doc.maxSize",mediacacheEnabled:"wellesley.mediacache.enabled",mediacacheMaxTotalSize:"wellesley.mediacache.maxTotalSize",mediacacheMaxFileSize:"wellesley.mediacache.maxFileSize",mediacacheLimitPerRun:"wellesley.mediacache.limitPerRun",mediacacheSingleRun:"wellesley.mediacache.singleRun",mediacacheCheckInterval:"wellesley.mediacache.checkInterval",postsMaxMediaAttachments:"wellesley.posts.max_media_attachments",postsMaxCharacters:"wellesley.posts.max_characters",postsMaxPins:"wellesley.posts.max_pins",registrationMode:"wellesley.registration.mode",registrationInvitesEnabled:"wellesley.registration.invitesEnabled",registrationReasonToJoin:"wellesley.registration.reasonToJoin",registrationShowCaptcha:"wellesley.registration.showCaptcha",registrationNotAvailableMessage:"wellesley.registration.notAvailableMessage",captchaVerifyUrl:"wellesley.captcha.verifyUrl",captchaSecretKey:"wellesley.captcha.secretKey",captchaSiteKey:"wellesley.captcha.siteKey",confirmationCodeCodeExpirationMinutes:"wellesley.confirmationCode.codeExpirationMinutes",confirmationCodeCounterExpirationMinutes:"wellesley.confirmationCode.counterExpirationMinutes",confirmationCodeLimitStoreAttempts:"wellesley.confirmationCode.limitStoreAttempts",confirmationCodeLimitCheckAttempts:"wellesley.confirmationCode.limitCheckAttempts",translation:"wellesley.translation"},CWe=[bt.uploadsPolicyImageExtensions,bt.uploadsPolicyImageKeepOriginal,bt.uploadsPolicyImageResolutions,bt.uploadsPolicyImageMaxResolution,bt.uploadsPolicyImageMaxMatrix,bt.uploadsPolicyImageMaxSize,bt.uploadsPolicyVideoExtensions,bt.uploadsPolicyVideoResolutions,bt.uploadsPolicyVideoKeepOriginal,bt.uploadsPolicyVideoMaxResolution,bt.uploadsPolicyVideoMaxMatrix,bt.uploadsPolicyVideoMaxSize,bt.uploadsPolicyVideoMaxDuration,bt.uploadsPolicyVideoStreamingThreshold,bt.uploadsPolicyAudioExtensions,bt.uploadsPolicyAudioKeepOriginal,bt.uploadsPolicyAudioMaxSize,bt.uploadsPolicyDocExtensions,bt.uploadsPolicyDocMaxSize,bt.mediacacheEnabled,bt.mediacacheMaxTotalSize,bt.mediacacheMaxFileSize,bt.mediacacheLimitPerRun,bt.mediacacheSingleRun,bt.mediacacheCheckInterval,bt.postsMaxMediaAttachments,bt.postsMaxCharacters,bt.postsMaxPins,bt.registrationMode,bt.registrationInvitesEnabled,bt.registrationReasonToJoin,bt.registrationShowCaptcha,bt.registrationNotAvailableMessage],RWe="wellesley",uo={followAutoAccept:"user.follow.autoAccept",notificationsPrefsFollow:"user.notifications.prefs.follow",notificationsPrefsFollow_request:"user.notifications.prefs.followRequest",notificationsPrefsLike:"user.notifications.prefs.like",notificationsPrefsComment:"user.notifications.prefs.comment",notificationsPrefsMention:"user.notifications.prefs.mention",notificationsPrefsRepost:"user.notifications.prefs.repost",notificationsPrefsList_post_create:"user.notifications.prefs.list_post_create",notificationsPrefsPost_update:"user.notifications.prefs.post_update",notificationsPrefsSubscribeOnComment:"user.notifications.prefs.subscribeOnComment",notificationsPrefsAlwaysSendEmail:"user.notifications.prefs.alwaysSendEmail",notificationsShowPopup:"user.notifications.prefs.showPopup",notificationsPolicyBlockNonFollowers:"user.notifications.policy.blockNonFollowers",notificationsPolicyBlockNonFollowing:"user.notifications.policy.blockNonFollowing",notificationsPolicyBlockNonFollowingMessages:"user.notifications.policy.blockNonFollowingMessages",notificationsPolicyBlockNewAccounts:"user.notifications.policy.blockNewAccounts",privacyShowPublicPosts:"user.privacy.showPublicPosts",privacyShowProfilePage:"user.privacy.showProfilePage",privacyShowFollowers:"user.privacy.showFollowers",translation:"user.translation"},AWe="user",FH=["wellesley.posts","wellesley.captcha","wellesley.registration","wellesley.confirmationCode","wellesley.uploads.policy.doc","wellesley.uploads.policy.audio","wellesley.uploads.policy.image","wellesley.uploads.policy.video","wellesley.translation"],UH=["wellesley.admin.sms","wellesley.admin.auth","wellesley.admin.openai","wellesley.admin.uploads","wellesley.admin.captcha","wellesley.admin.language","wellesley.admin.mediacache","wellesley.admin.translation"],VH={sms:"wellesley.admin.sms",auth:"wellesley.admin.auth",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation"},qH={posts:"wellesley.posts",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha"},WH={data:null,isPending:!1},{posts:Xx,uploadsPolicyDoc:d9,uploadsPolicyAudio:Jx,uploadsPolicyImage:Vv,uploadsPolicyVideo:X0,registration:HH,captcha:GH}=qH,{captcha:KH,language:QH,translation:YH,openai:ZH}=VH,U1=e=>e.data,XH=go(U1,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[Xx])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[Xx])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[Xx])?void 0:r.max_pins)||0}})),U8=go(U1,(e=>{var t,n,r;return{...null==e?void 0:e[Vv],maxSize:(null==(t=null==e?void 0:e[Vv])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Vv])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[Vv])?void 0:r.maxResolution)||0}})),V8=go(U1,(e=>{var t,n,r,a;return{...null==e?void 0:e[X0],maxSize:(null==(t=null==e?void 0:e[X0])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[X0])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[X0])?void 0:r.maxDuration)||0,maxResolution:(null==(a=null==e?void 0:e[X0])?void 0:a.maxResolution)||0}})),q8=go(U1,(e=>{var t,n;return{...null==e?void 0:e[Jx],maxSize:null==(t=null==e?void 0:e[Jx])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[Jx])?void 0:n.keepOriginal)||0}})),W8=go(U1,(e=>{var t;return{...null==e?void 0:e[d9],maxSize:(null==(t=null==e?void 0:e[d9])?void 0:t.maxSize)||0}})),H8=go([U8,V8,q8,W8],((e,t,n,r)=>({IMAGE:null==e?void 0:e.extensions,VIDEO:null==t?void 0:t.extensions,AUDIO:null==n?void 0:n.extensions,DOCUMENT:null==r?void 0:r.extensions}))),JH=go(H8,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),Ry=Ca({name:"platformSettings",initialState:WH,reducers:{setSettings:(e,t)=>{e.data={...e.data,...t.payload}},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectSettings:U1,selectPostConfig:XH,selectDocPolicy:W8,selectImagePolicy:U8,selectVideoPolicy:V8,selectAudioPolicy:q8,selectSupportedExtensions:H8,selectFullExtensionsList:JH,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[HH]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[QH]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[YH]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[ZH]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[GH]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[KH]}}});var js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ql(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p9,h9,m9,g9,e3={exports:{}},J0={},t3={exports:{}},Jt={};
2
2
  /**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -48,7 +48,7 @@ var EW=Object.defineProperty,CW=(e,t,n)=>t in e?EW(e,t,{enumerable:!0,configurab
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */function UG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function VG(...e){return t=>e.forEach((e=>UG(e,t)))}var $p=v.forwardRef(((e,t)=>{const{children:n,...r}=e,a=v.Children.toArray(n),o=a.find(WG);if(o){const e=o.props.children,n=a.map((t=>t===o?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return F.jsx(vC,{...r,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,n):null})}return F.jsx(vC,{...r,ref:t,children:n})}));$p.displayName="Slot";var vC=v.forwardRef(((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const e=GG(n);return v.cloneElement(n,{...HG(r,n.props),ref:t?VG(t,e):e})}return v.Children.count(n)>1?v.Children.only(null):null}));vC.displayName="SlotClone";var qG=({children:e})=>F.jsx(F.Fragment,{children:e});function WG(e){return v.isValidElement(e)&&e.type===qG}function HG(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function GG(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function e7(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=e7(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function KG(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=e7(e))&&(r&&(r+=" "),r+=t);return r}const k9=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,x9=KG,Yl=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return x9(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map((e=>{const t=null==n?void 0:n[e],r=null==o?void 0:o[e];if(null===t)return null;const i=k9(t)||k9(r);return a[e][i]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),c=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...s}[t]):{...o,...s}[t]===n}))?[...e,n,r]:e}),[]);return x9(e,i,c,null==n?void 0:n.class,null==n?void 0:n.className)};function t7(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=t7(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function n7(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=t7(e))&&(r&&(r+=" "),r+=t);return r}const tA="-";function QG(e){const t=ZG(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(tA);return""===n[0]&&1!==n.length&&n.shift(),r7(n,t)||YG(e)},getConflictingClassGroupIds:function(e,t){const a=n[e]||[];return t&&r[e]?[...a,...r[e]]:a}}}function r7(e,t){var n;if(0===e.length)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),o=a?r7(e.slice(1),a):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join(tA);return null==(n=t.validators.find((({validator:e})=>e(i))))?void 0:n.classGroupId}const S9=/^\[(.+)\]$/;function YG(e){if(S9.test(e)){const t=S9.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function ZG(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return JG(Object.entries(e.classGroups),n).forEach((([e,n])=>{bC(n,r,e,t)})),r}function bC(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return XG(e)?void bC(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,a])=>{bC(a,E9(t,e),n,r)}))}else{(""===e?t:E9(t,e)).classGroupId=n}}))}function E9(e,t){let n=e;return t.split(tA).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function XG(e){return e.isThemeGetter}function JG(e,t){return t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e}function eK(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function a(a,o){n.set(a,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(a(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):a(e,t)}}}const a7="!";function tK(e){const t=e.separator,n=1===t.length,r=t[0],a=t.length;return function(e){const o=[];let i,s=0,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(0===s){if(u===r&&(n||e.slice(l,l+a)===t)){o.push(e.slice(c,l)),c=l+a;continue}if("/"===u){i=l;continue}}"["===u?s++:"]"===u&&s--}const l=0===o.length?e:e.substring(c),u=l.startsWith(a7);return{modifiers:o,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:i&&i>c?i-c:void 0}}}function nK(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}function rK(e){return{cache:eK(e.cacheSize),splitModifiers:tK(e),...QG(e)}}const aK=/\s+/;function oK(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,o=new Set;return e.trim().split(aK).map((e=>{const{modifiers:t,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:i}=n(e);let s=r(i?o.substring(0,i):o),c=!!i;if(!s){if(!i)return{isTailwindClass:!1,originalClassName:e};if(s=r(o),!s)return{isTailwindClass:!1,originalClassName:e};c=!1}const l=nK(t).join(":");return{isTailwindClass:!0,modifierId:a?l+a7:l,classGroupId:s,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,i=t+n;return!o.has(i)&&(o.add(i),a(n,r).forEach((e=>o.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}function iK(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=o7(e))&&(r&&(r+=" "),r+=t);return r}function o7(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=o7(e[r]))&&(n&&(n+=" "),n+=t);return n}function sK(e,...t){let n,r,a,o=function(s){const c=t.reduce(((e,t)=>t(e)),e());return n=rK(c),r=n.cache.get,a=n.cache.set,o=i,i(s)};function i(e){const t=r(e);if(t)return t;const o=oK(e,n);return a(e,o),o}return function(){return o(iK.apply(null,arguments))}}function ar(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const i7=/^\[(?:([a-z-]+):)?(.+)\]$/i,cK=/^\d+\/\d+$/,lK=new Set(["px","full","screen"]),fK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uK=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dK=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function tu(e){return tm(e)||lK.has(e)||cK.test(e)}function Jd(e){return V1(e,"length",wK)}function tm(e){return!!e&&!Number.isNaN(Number(e))}function qv(e){return V1(e,"number",tm)}function ey(e){return!!e&&Number.isInteger(Number(e))}function hK(e){return e.endsWith("%")&&tm(e.slice(0,-1))}function Vt(e){return i7.test(e)}function ep(e){return fK.test(e)}const mK=new Set(["length","size","percentage"]);function gK(e){return V1(e,mK,s7)}function yK(e){return V1(e,"position",s7)}const _K=new Set(["image","url"]);function vK(e){return V1(e,_K,xK)}function bK(e){return V1(e,"",kK)}function ty(){return!0}function V1(e,t,n){const r=i7.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function wK(e){return uK.test(e)}function s7(){return!1}function kK(e){return dK.test(e)}function xK(e){return pK.test(e)}function SK(){const e=ar("colors"),t=ar("spacing"),n=ar("blur"),r=ar("brightness"),a=ar("borderColor"),o=ar("borderRadius"),i=ar("borderSpacing"),s=ar("borderWidth"),c=ar("contrast"),l=ar("grayscale"),u=ar("hueRotate"),f=ar("invert"),d=ar("gap"),p=ar("gradientColorStops"),h=ar("gradientColorStopPositions"),m=ar("inset"),y=ar("margin"),g=ar("opacity"),v=ar("padding"),b=ar("saturate"),_=ar("scale"),w=ar("sepia"),k=ar("skew"),x=ar("space"),S=ar("translate"),E=()=>["auto",Vt,t],A=()=>[Vt,t],z=()=>["",tu,Jd],C=()=>["auto",tm,Vt],I=()=>["","0",Vt],T=()=>[tm,qv],R=()=>[tm,Vt];return{cacheSize:500,separator:":",theme:{colors:[ty],spacing:[tu,Jd],blur:["none","",ep,Vt],brightness:T(),borderColor:[e],borderRadius:["none","","full",ep,Vt],borderSpacing:A(),borderWidth:z(),contrast:T(),grayscale:I(),hueRotate:R(),invert:I(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[hK,Jd],inset:E(),margin:E(),opacity:T(),padding:A(),saturate:T(),scale:T(),sepia:I(),skew:R(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",Vt]}],container:["container"],columns:[{columns:[ep]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Vt]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ey,Vt]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Vt]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",ey,Vt]}],"grid-cols":[{"grid-cols":[ty]}],"col-start-end":[{col:["auto",{span:["full",ey,Vt]},Vt]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[ty]}],"row-start-end":[{row:["auto",{span:[ey,Vt]},Vt]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Vt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Vt]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[x]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[x]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Vt,t]}],"min-w":[{"min-w":[Vt,t,"min","max","fit"]}],"max-w":[{"max-w":[Vt,t,"none","full","min","max","fit","prose",{screen:[ep]},ep]}],h:[{h:[Vt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Vt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Vt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Vt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ep,Jd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qv]}],"font-family":[{font:[ty]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Vt]}],"line-clamp":[{"line-clamp":["none",tm,qv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tu,Vt]}],"list-image":[{"list-image":["none",Vt]}],"list-style-type":[{list:["none","disc","decimal",Vt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tu,Jd]}],"underline-offset":[{"underline-offset":["auto",tu,Vt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",yK]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gK]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vK]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[tu,Vt]}],"outline-w":[{outline:[tu,Jd]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[tu,Jd]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ep,bK]}],"shadow-color":[{shadow:[ty]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ep,Vt]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Vt]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",Vt]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",Vt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ey,Vt]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Vt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Vt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Vt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[tu,Jd,qv]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const EK=sK(SK);function $e(...e){return EK(n7(e))}const nA=Yl("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors duration-300 ease-in-out focus-visible:outline-none focus-visible:ring-offset-2 disabled:pointer-events-none disabled:text-slate-100 disabled:bg-slate-300 disabled:border-0",{variants:{variant:{primary:"bg-blue_100 text-white hover:bg-blue_120",secondary:"bg-slate-100 text-slate-700 hover:bg-slate-200",tertiary:"text-blue_100 hover:text-blue_120 disabled:text-slate-300 disabled:bg-transparent",red_primary:"bg-red-dark text-white hover:bg-red_100",red_secondary:"bg-white text-red-dark border-red_30 border hover:bg-red_20 hover:border-red_20",red_tertiary:"text-red-dark hover:text-red_100 disabled:bg-transparent",none:""},size:{l:"min-w-[80px] h-l text-base px-sm rounded-2xl",m:"min-w-[80px] h-m text-base px-xs rounded-xl",s:"min-w-[80px] h-s text-sm px-xxs rounded-lg",icon_l:"size-12",icon_m:"size-10",icon_s:"size-8",icon_xs:"size-6",none:""}},defaultVariants:{variant:"primary",size:"m"}}),Jw=v.forwardRef((({className:e,variant:t,size:n,asChild:r=!1,as:a="button",...o},i)=>{const s=r?$p:a;return F.jsx(s,{className:$e(nA({variant:t,size:n,className:e})),ref:i,...o})}));function Le(){return Le=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},Le.apply(this,arguments)}function CK(e,t){const n=v.createContext(t);function r(e){const{children:t,...r}=e,a=v.useMemo((()=>r),Object.values(r));return v.createElement(n.Provider,{value:a},t)}return r.displayName=e+"Provider",[r,function(r){const a=v.useContext(n);if(a)return a;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function ii(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>v.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return v.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=v.createContext(r),o=n.length;function i(t){const{scope:n,children:r,...i}=t,s=(null==n?void 0:n[e][o])||a,c=v.useMemo((()=>i),Object.values(i));return v.createElement(s.Provider,{value:c},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=(null==i?void 0:i[e][o])||a,c=v.useContext(s);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},RK(r,...t)]}function RK(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return v.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function AK(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function rA(...e){return t=>e.forEach((e=>AK(e,t)))}function yn(...e){return v.useCallback(rA(...e),e)}function lt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}Jw.displayName="Button";const Mo=null!=globalThis&&globalThis.document?v.useLayoutEffect:()=>{},TK=Zb.useId||(()=>{});let IK=0;function hp(e){const[t,n]=v.useState(TK());return Mo((()=>{n((e=>e??String(IK++)))}),[e]),t?`radix-${t}`:""}function Bc(e){const t=v.useRef(e);return v.useEffect((()=>{t.current=e})),v.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function wp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=PK({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=Bc(n);return[i,v.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}function PK({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,a=v.useRef(r),o=Bc(t);return v.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}var C9,R9,A9,T9,i3={exports:{}},Ei={},s3={exports:{}},c3={};
51
+ */function UG(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function VG(...e){return t=>e.forEach((e=>UG(e,t)))}var $p=v.forwardRef(((e,t)=>{const{children:n,...r}=e,a=v.Children.toArray(n),o=a.find(WG);if(o){const e=o.props.children,n=a.map((t=>t===o?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return F.jsx(vC,{...r,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,n):null})}return F.jsx(vC,{...r,ref:t,children:n})}));$p.displayName="Slot";var vC=v.forwardRef(((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const e=GG(n);return v.cloneElement(n,{...HG(r,n.props),ref:t?VG(t,e):e})}return v.Children.count(n)>1?v.Children.only(null):null}));vC.displayName="SlotClone";var qG=({children:e})=>F.jsx(F.Fragment,{children:e});function WG(e){return v.isValidElement(e)&&e.type===qG}function HG(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function GG(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function e7(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=e7(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function KG(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=e7(e))&&(r&&(r+=" "),r+=t);return r}const k9=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,x9=KG,Yl=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return x9(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map((e=>{const t=null==n?void 0:n[e],r=null==o?void 0:o[e];if(null===t)return null;const i=k9(t)||k9(r);return a[e][i]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),c=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...s}[t]):{...o,...s}[t]===n}))?[...e,n,r]:e}),[]);return x9(e,i,c,null==n?void 0:n.class,null==n?void 0:n.className)};function t7(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=t7(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function n7(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=t7(e))&&(r&&(r+=" "),r+=t);return r}const tA="-";function QG(e){const t=ZG(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(tA);return""===n[0]&&1!==n.length&&n.shift(),r7(n,t)||YG(e)},getConflictingClassGroupIds:function(e,t){const a=n[e]||[];return t&&r[e]?[...a,...r[e]]:a}}}function r7(e,t){var n;if(0===e.length)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),o=a?r7(e.slice(1),a):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join(tA);return null==(n=t.validators.find((({validator:e})=>e(i))))?void 0:n.classGroupId}const S9=/^\[(.+)\]$/;function YG(e){if(S9.test(e)){const t=S9.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function ZG(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return JG(Object.entries(e.classGroups),n).forEach((([e,n])=>{bC(n,r,e,t)})),r}function bC(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return XG(e)?void bC(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,a])=>{bC(a,E9(t,e),n,r)}))}else{(""===e?t:E9(t,e)).classGroupId=n}}))}function E9(e,t){let n=e;return t.split(tA).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function XG(e){return e.isThemeGetter}function JG(e,t){return t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e}function eK(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function a(a,o){n.set(a,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(a(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):a(e,t)}}}const a7="!";function tK(e){const t=e.separator,n=1===t.length,r=t[0],a=t.length;return function(e){const o=[];let i,s=0,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(0===s){if(u===r&&(n||e.slice(l,l+a)===t)){o.push(e.slice(c,l)),c=l+a;continue}if("/"===u){i=l;continue}}"["===u?s++:"]"===u&&s--}const l=0===o.length?e:e.substring(c),u=l.startsWith(a7);return{modifiers:o,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:i&&i>c?i-c:void 0}}}function nK(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}function rK(e){return{cache:eK(e.cacheSize),splitModifiers:tK(e),...QG(e)}}const aK=/\s+/;function oK(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,o=new Set;return e.trim().split(aK).map((e=>{const{modifiers:t,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:i}=n(e);let s=r(i?o.substring(0,i):o),c=!!i;if(!s){if(!i)return{isTailwindClass:!1,originalClassName:e};if(s=r(o),!s)return{isTailwindClass:!1,originalClassName:e};c=!1}const l=nK(t).join(":");return{isTailwindClass:!0,modifierId:a?l+a7:l,classGroupId:s,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,i=t+n;return!o.has(i)&&(o.add(i),a(n,r).forEach((e=>o.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}function iK(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=o7(e))&&(r&&(r+=" "),r+=t);return r}function o7(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=o7(e[r]))&&(n&&(n+=" "),n+=t);return n}function sK(e,...t){let n,r,a,o=function(s){const c=t.reduce(((e,t)=>t(e)),e());return n=rK(c),r=n.cache.get,a=n.cache.set,o=i,i(s)};function i(e){const t=r(e);if(t)return t;const o=oK(e,n);return a(e,o),o}return function(){return o(iK.apply(null,arguments))}}function ar(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const i7=/^\[(?:([a-z-]+):)?(.+)\]$/i,cK=/^\d+\/\d+$/,lK=new Set(["px","full","screen"]),fK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uK=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dK=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function tu(e){return tm(e)||lK.has(e)||cK.test(e)}function Jd(e){return V1(e,"length",wK)}function tm(e){return!!e&&!Number.isNaN(Number(e))}function qv(e){return V1(e,"number",tm)}function ey(e){return!!e&&Number.isInteger(Number(e))}function hK(e){return e.endsWith("%")&&tm(e.slice(0,-1))}function Vt(e){return i7.test(e)}function ep(e){return fK.test(e)}const mK=new Set(["length","size","percentage"]);function gK(e){return V1(e,mK,s7)}function yK(e){return V1(e,"position",s7)}const _K=new Set(["image","url"]);function vK(e){return V1(e,_K,xK)}function bK(e){return V1(e,"",kK)}function ty(){return!0}function V1(e,t,n){const r=i7.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function wK(e){return uK.test(e)}function s7(){return!1}function kK(e){return dK.test(e)}function xK(e){return pK.test(e)}function SK(){const e=ar("colors"),t=ar("spacing"),n=ar("blur"),r=ar("brightness"),a=ar("borderColor"),o=ar("borderRadius"),i=ar("borderSpacing"),s=ar("borderWidth"),c=ar("contrast"),l=ar("grayscale"),u=ar("hueRotate"),f=ar("invert"),d=ar("gap"),p=ar("gradientColorStops"),h=ar("gradientColorStopPositions"),m=ar("inset"),y=ar("margin"),g=ar("opacity"),v=ar("padding"),b=ar("saturate"),_=ar("scale"),w=ar("sepia"),k=ar("skew"),x=ar("space"),S=ar("translate"),E=()=>["auto",Vt,t],A=()=>[Vt,t],z=()=>["",tu,Jd],C=()=>["auto",tm,Vt],I=()=>["","0",Vt],T=()=>[tm,qv],R=()=>[tm,Vt];return{cacheSize:500,separator:":",theme:{colors:[ty],spacing:[tu,Jd],blur:["none","",ep,Vt],brightness:T(),borderColor:[e],borderRadius:["none","","full",ep,Vt],borderSpacing:A(),borderWidth:z(),contrast:T(),grayscale:I(),hueRotate:R(),invert:I(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[hK,Jd],inset:E(),margin:E(),opacity:T(),padding:A(),saturate:T(),scale:T(),sepia:I(),skew:R(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",Vt]}],container:["container"],columns:[{columns:[ep]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Vt]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ey,Vt]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Vt]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",ey,Vt]}],"grid-cols":[{"grid-cols":[ty]}],"col-start-end":[{col:["auto",{span:["full",ey,Vt]},Vt]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[ty]}],"row-start-end":[{row:["auto",{span:[ey,Vt]},Vt]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Vt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Vt]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[x]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[x]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Vt,t]}],"min-w":[{"min-w":[Vt,t,"min","max","fit"]}],"max-w":[{"max-w":[Vt,t,"none","full","min","max","fit","prose",{screen:[ep]},ep]}],h:[{h:[Vt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Vt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Vt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Vt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ep,Jd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qv]}],"font-family":[{font:[ty]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Vt]}],"line-clamp":[{"line-clamp":["none",tm,qv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tu,Vt]}],"list-image":[{"list-image":["none",Vt]}],"list-style-type":[{list:["none","disc","decimal",Vt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tu,Jd]}],"underline-offset":[{"underline-offset":["auto",tu,Vt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",yK]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gK]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vK]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[tu,Vt]}],"outline-w":[{outline:[tu,Jd]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[tu,Jd]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ep,bK]}],"shadow-color":[{shadow:[ty]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ep,Vt]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Vt]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",Vt]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",Vt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ey,Vt]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Vt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Vt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Vt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[tu,Jd,qv]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const EK=sK(SK);function $e(...e){return EK(n7(e))}const nA=Yl("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors duration-300 ease-in-out focus-visible:outline-none focus-visible:ring-offset-2 disabled:pointer-events-none disabled:text-slate-100 disabled:bg-slate-300 disabled:border-0",{variants:{variant:{primary:"bg-blue_100 text-white hover:bg-blue_120",secondary:"bg-slate-100 text-slate-700 hover:bg-slate-200",tertiary:"text-blue_100 hover:text-blue_120 disabled:text-slate-300 disabled:bg-transparent",red_primary:"bg-red-dark text-white hover:bg-red_100",red_secondary:"bg-white text-red-dark border-red_30 border hover:bg-red_20 hover:border-red_20",red_tertiary:"text-red-dark hover:text-red_100 disabled:bg-transparent",none:""},size:{l:"min-w-[80px] h-l text-base px-sm rounded-lg",m:"min-w-[80px] h-m text-base px-xs rounded-m",s:"min-w-[80px] h-s text-sm px-xxs rounded-sm",icon_l:"size-12",icon_m:"size-10",icon_s:"size-8",icon_xs:"size-6",none:""}},defaultVariants:{variant:"primary",size:"m"}}),Jw=v.forwardRef((({className:e,variant:t,size:n,asChild:r=!1,as:a="button",...o},i)=>{const s=r?$p:a;return F.jsx(s,{className:$e(nA({variant:t,size:n,className:e})),ref:i,...o})}));function Le(){return Le=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},Le.apply(this,arguments)}function CK(e,t){const n=v.createContext(t);function r(e){const{children:t,...r}=e,a=v.useMemo((()=>r),Object.values(r));return v.createElement(n.Provider,{value:a},t)}return r.displayName=e+"Provider",[r,function(r){const a=v.useContext(n);if(a)return a;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function ii(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>v.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return v.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=v.createContext(r),o=n.length;function i(t){const{scope:n,children:r,...i}=t,s=(null==n?void 0:n[e][o])||a,c=v.useMemo((()=>i),Object.values(i));return v.createElement(s.Provider,{value:c},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=(null==i?void 0:i[e][o])||a,c=v.useContext(s);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},RK(r,...t)]}function RK(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return v.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function AK(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function rA(...e){return t=>e.forEach((e=>AK(e,t)))}function yn(...e){return v.useCallback(rA(...e),e)}function lt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}Jw.displayName="Button";const Mo=null!=globalThis&&globalThis.document?v.useLayoutEffect:()=>{},TK=Zb.useId||(()=>{});let IK=0;function hp(e){const[t,n]=v.useState(TK());return Mo((()=>{n((e=>e??String(IK++)))}),[e]),t?`radix-${t}`:""}function Bc(e){const t=v.useRef(e);return v.useEffect((()=>{t.current=e})),v.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function wp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=PK({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=Bc(n);return[i,v.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}function PK({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,a=v.useRef(r),o=Bc(t);return v.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}var C9,R9,A9,T9,i3={exports:{}},Ei={},s3={exports:{}},c3={};
52
52
  /**
53
53
  * @license React
54
54
  * scheduler.production.min.js
@@ -66,7 +66,7 @@ var EW=Object.defineProperty,CW=(e,t,n)=>t in e?EW(e,t,{enumerable:!0,configurab
66
66
  *
67
67
  * This source code is licensed under the MIT license found in the
68
68
  * LICENSE file in the root directory of this source tree.
69
- */}function zK(){if(A9)return Ei;A9=1;var e=Xw(),t=OK();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function o(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},f={};function d(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new d(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new d(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new d(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new d(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new d(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new d(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new d(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new d(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new d(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function y(e,t,n,r){var a=p.hasOwnProperty(t)?p[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||typeof t>"u"||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!c.call(f,e)||!c.call(u,e)&&(l.test(e)?f[e]=!0:(u[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new d(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new d(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);p[t]=new d(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new d(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new d("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new d(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.element"),b=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),S=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),R=Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var j,O=Object.assign;function N(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var M=!1;function D(e,t){if(!e||M)return"";M=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s]){var c="\n"+a[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=i&&0<=s);break}}}finally{M=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function F(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1);case 11:return e=D(e.type.render,!1);case 1:return e=D(e.type,!0);default:return""}}function L(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case b:return"Portal";case k:return"Profiler";case w:return"StrictMode";case A:return"Suspense";case z:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case x:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:L(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return L(e(t))}catch{}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return L(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function B(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=B(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=B(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function H(e,t){var n=t.checked;return O({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Q(e,t){K(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Z(e,t.type,n):t.hasOwnProperty("defaultValue")&&Z(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Z(e,t,n){("number"!==t||W(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var X=Array.isArray;function J(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return O({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(X(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:q(r)}}function ne(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function oe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ie,se,ce=(se=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ie=ie||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return se(e,t)}))}:se);function le(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ue={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function de(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ue.hasOwnProperty(e)&&ue[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=de(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ue).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ue[t]=ue[e]}))}));var he=O({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ge=null;function ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,_e=null,we=null;function ke(e){if(e=ya(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=va(t),be(e.stateNode,e.type,t))}}function xe(e){_e?we?we.push(e):we=[e]:_e=e}function Se(){if(_e){var e=_e,t=we;if(we=_e=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ee(e,t){return e(t)}function Ae(){}var ze=!1;function Ce(e,t,n){if(ze)return e(t,n);ze=!0;try{return Ee(e,t,n)}finally{ze=!1,(null!==_e||null!==we)&&(Ae(),Se())}}function Ie(e,t){var r=e.stateNode;if(null===r)return null;var a=va(r);if(null===a)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Te=!1;if(s)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch{Te=!1}function Pe(e,t,n,r,a,o,i,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var je=!1,Oe=null,Ne=!1,Me=null,De={onError:function(e){je=!0,Oe=e}};function Fe(e,t,n,r,a,o,i,s,c){je=!1,Oe=null,Pe.apply(De,arguments)}function Le(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{4098&(t=e).flags&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function qe(e){if(Le(e)!==e)throw Error(n(188))}function Be(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Le(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(a=o.return)){r=a;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return qe(o),e;if(i===a)return qe(o),t;i=i.sibling}throw Error(n(188))}if(r.return!==a.return)r=o,a=i;else{for(var s=!1,c=o.child;c;){if(c===r){s=!0,r=o,a=i;break}if(c===a){s=!0,a=o,r=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===r){s=!0,r=i,a=o;break}if(c===a){s=!0,a=i,r=o;break}c=c.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var $e=t.unstable_scheduleCallback,We=t.unstable_cancelCallback,He=t.unstable_shouldYield,Ge=t.unstable_requestPaint,Ke=t.unstable_now,Qe=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,Ze=t.unstable_UserBlockingPriority,Xe=t.unstable_NormalPriority,Je=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=null,nt=null;var rt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(at(e)/ot|0)|0},at=Math.log,ot=Math.LN2;var it=64,st=4194304;function ct(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function lt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~a;0!==s?r=ct(s):0!==(o&=i)&&(r=ct(o))}else 0!==(i=n&~a)?r=ct(i):0!==o&&(r=ct(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-rt(t)),r|=e[n],t&=~a;return r}function ut(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function dt(){var e=it;return!(4194240&(it<<=1))&&(it=64),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var yt=0;function gt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var vt,bt,_t,wt,kt,xt=!1,St=[],Et=null,At=null,zt=null,Ct=new Map,It=new Map,Tt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Pt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":zt=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function jt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=ya(t))&&bt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ot(e){var t=ma(e.target);if(null!==t){var n=Le(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void kt(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ht(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ya(n))&&bt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Mt(e,t,n){Nt(e)&&n.delete(t)}function Dt(){xt=!1,null!==Et&&Nt(Et)&&(Et=null),null!==At&&Nt(At)&&(At=null),null!==zt&&Nt(zt)&&(zt=null),Ct.forEach(Mt),It.forEach(Mt)}function Ft(e,n){e.blockedOn===n&&(e.blockedOn=null,xt||(xt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Dt)))}function Lt(e){function t(t){return Ft(t,e)}if(0<St.length){Ft(St[0],e);for(var n=1;n<St.length;n++){var r=St[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Ft(Et,e),null!==At&&Ft(At,e),null!==zt&&Ft(zt,e),Ct.forEach(t),It.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Ot(n),null===n.blockedOn&&Tt.shift()}var Vt=g.ReactCurrentBatchConfig,qt=!0;function Bt(e,t,n,r){var a=yt,o=Vt.transition;Vt.transition=null;try{yt=1,$t(e,t,n,r)}finally{yt=a,Vt.transition=o}}function Ut(e,t,n,r){var a=yt,o=Vt.transition;Vt.transition=null;try{yt=4,$t(e,t,n,r)}finally{yt=a,Vt.transition=o}}function $t(e,t,n,r){if(qt){var a=Ht(e,t,n,r);if(null===a)qr(e,t,r,Wt,n),Pt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Et=jt(Et,e,t,n,r,a),!0;case"dragenter":return At=jt(At,e,t,n,r,a),!0;case"mouseover":return zt=jt(zt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Ct.set(o,jt(Ct.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,It.set(o,jt(It.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Pt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==a;){var o=ya(a);if(null!==o&&vt(o),null===(o=Ht(e,t,n,r))&&qr(e,t,r,Wt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else qr(e,t,r,null,n)}}var Wt=null;function Ht(e,t,n,r){if(Wt=null,null!==(e=ma(e=ve(r))))if(null===(t=Le(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Ye:return 1;case Ze:return 4;case Xe:case Je:return 16;case et:return 536870912;default:return 16}default:return 16}}var Kt=null,Qt=null,Yt=null;function Zt(){if(Yt)return Yt;var e,t,n=Qt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Yt=a.slice(e,1<t?1-t:void 0)}function Xt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Jt(){return!0}function en(){return!1}function tn(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Jt:en,this.isPropagationStopped=en,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Jt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Jt)},persist:function(){},isPersistent:Jt}),t}var nn,rn,an,on={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sn=tn(on),cn=O({},on,{view:0,detail:0}),ln=tn(cn),un=O({},cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(nn=e.screenX-an.screenX,rn=e.screenY-an.screenY):rn=nn=0,an=e),nn)},movementY:function(e){return"movementY"in e?e.movementY:rn}}),fn=tn(un),dn=tn(O({},un,{dataTransfer:0})),pn=tn(O({},cn,{relatedTarget:0})),hn=tn(O({},on,{animationName:0,elapsedTime:0,pseudoElement:0})),mn=O({},on,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=tn(mn),gn=tn(O({},on,{data:0})),vn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function kn(){return wn}var xn=O({},cn,{key:function(e){if(e.key){var t=vn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?Xt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=tn(xn),En=tn(O({},un,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=tn(O({},cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),zn=tn(O({},on,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cn=O({},un,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=tn(Cn),Tn=[9,13,27,32],Rn=s&&"CompositionEvent"in window,Pn=null;s&&"documentMode"in document&&(Pn=document.documentMode);var jn=s&&"TextEvent"in window&&!Pn,On=s&&(!Rn||Pn&&8<Pn&&11>=Pn),Nn=" ",Mn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Bn(e,t,n,r){xe(r),0<(t=Ur(t,"onChange")).length&&(n=new sn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,$n=null;function Wn(e){Nr(e,0)}function Hn(e){if($(ga(e)))return e}function Gn(e,t){if("change"===e)return t}var Kn=!1;if(s){var Qn;if(s){var Yn="oninput"in document;if(!Yn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Yn="function"==typeof Zn.oninput}Qn=Yn}else Qn=!1;Kn=Qn&&(!document.documentMode||9<document.documentMode)}function Xn(){Un&&(Un.detachEvent("onpropertychange",Jn),$n=Un=null)}function Jn(e){if("value"===e.propertyName&&Hn($n)){var t=[];Bn(t,$n,e,ve(e)),Ce(Wn,t)}}function er(e,t,n){"focusin"===e?(Xn(),$n=n,(Un=t).attachEvent("onpropertychange",Jn)):"focusout"===e&&Xn()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Hn($n)}function nr(e,t){if("click"===e)return Hn(t)}function rr(e,t){if("input"===e||"change"===e)return Hn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!c.call(t,a)||!ar(e[a],t[a]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sr(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function cr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?cr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function lr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cr(n.ownerDocument.documentElement,n)){if(null!==r&&ur(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=sr(n,o);var i=sr(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dr=s&&"documentMode"in document&&11>=document.documentMode,pr=null,hr=null,mr=null,yr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==pr||pr!==W(r)||("selectionStart"in(r=pr)&&ur(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&or(mr,r)||(mr=r,0<(r=Ur(hr,"onSelect")).length&&(t=new sn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionend:vr("Transition","TransitionEnd")},_r={},wr={};function kr(e){if(_r[e])return _r[e];if(!br[e])return e;var t,n=br[e];for(t in n)if(n.hasOwnProperty(t)&&t in wr)return _r[e]=n[t];return e}s&&(wr=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);var xr=kr("animationend"),Sr=kr("animationiteration"),Er=kr("animationstart"),Ar=kr("transitionend"),zr=new Map,Cr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){zr.set(e,t),o(t,[e])}for(var Tr=0;Tr<Cr.length;Tr++){var Rr=Cr[Tr];Ir(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Ir(xr,"onAnimationEnd"),Ir(Sr,"onAnimationIteration"),Ir(Er,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Ar,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function Or(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,o,i,s,c,l){if(Fe.apply(this,arguments),je){if(!je)throw Error(n(198));var u=Oe;je=!1,Oe=null,Ne||(Ne=!0,Me=u)}}(a,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&a.isPropagationStopped())break e;Or(a,s,l),o=c}else for(i=0;i<r.length;i++){if(c=(s=r[i]).instance,l=s.currentTarget,s=s.listener,c!==o&&a.isPropagationStopped())break e;Or(a,s,l),o=c}}}if(Ne)throw e=Me,Ne=!1,Me=null,e}function Mr(e,t){var n=t[da];void 0===n&&(n=t[da]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function Dr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function Lr(e){if(!e[Fr]){e[Fr]=!0,r.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||Dr(t,!1,e),Dr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,Dr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Gt(t)){case 1:var a=Bt;break;case 4:a=Ut;break;default:a=$t}n=a.bind(null,t,n,e),a=void 0,!Te||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function qr(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var c=i.tag;if((3===c||4===c)&&((c=i.stateNode.containerInfo)===a||8===c.nodeType&&c.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ma(s)))return;if(5===(c=i.tag)||6===c){r=o=i;continue e}s=s.parentNode}}r=r.return}Ce((function(){var r=o,a=ve(n),i=[];e:{var s=zr.get(e);if(void 0!==s){var c=sn,l=e;switch(e){case"keypress":if(0===Xt(n))break e;case"keydown":case"keyup":c=Sn;break;case"focusin":l="focus",c=pn;break;case"focusout":l="blur",c=pn;break;case"beforeblur":case"afterblur":c=pn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=dn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=An;break;case xr:case Sr:case Er:c=hn;break;case Ar:c=zn;break;case"scroll":c=ln;break;case"wheel":c=In;break;case"copy":case"cut":case"paste":c=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=En}var u=!!(4&t),f=!u&&"scroll"===e,d=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Ie(h,d))&&u.push(Br(h,m,p)))),f)break;h=h.return}0<u.length&&(s=new c(s,l,null,n,a),i.push({event:s,listeners:u}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ge||!(l=n.relatedTarget||n.fromElement)||!ma(l)&&!l[fa])&&(c||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?ma(l):null)&&(l!==(f=Le(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(u=fn,m="onMouseLeave",d="onMouseEnter",h="mouse",("pointerout"===e||"pointerover"===e)&&(u=En,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==c?s:ga(c),p=null==l?s:ga(l),(s=new u(m,h+"leave",c,n,a)).target=f,s.relatedTarget=p,m=null,ma(a)===r&&((u=new u(d,h+"enter",l,n,a)).target=p,u.relatedTarget=f,m=u),f=m,c&&l)e:{for(d=l,h=0,p=u=c;p;p=$r(p))h++;for(p=0,m=d;m;m=$r(m))p++;for(;0<h-p;)u=$r(u),h--;for(;0<p-h;)d=$r(d),p--;for(;h--;){if(u===d||null!==d&&u===d.alternate)break e;u=$r(u),d=$r(d)}u=null}else u=null;null!==c&&Wr(i,s,c,u,!1),null!==l&&null!==f&&Wr(i,f,l,u,!0)}if("select"===(c=(s=r?ga(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var y=Gn;else if(qn(s))if(Kn)y=rr;else{y=tr;var g=er}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(y=nr);switch(y&&(y=y(e,r))?Bn(i,y,n,a):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&Z(s,"number",s.value)),g=r?ga(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(pr=g,hr=r,mr=null);break;case"focusout":mr=hr=pr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,gr(i,n,a);break;case"selectionchange":if(dr)break;case"keydown":case"keyup":gr(i,n,a)}var v;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Ln?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==b?"onCompositionEnd"===b&&Ln&&(v=Zt()):(Qt="value"in(Kt=a)?Kt.value:Kt.textContent,Ln=!0)),0<(g=Ur(r,b)).length&&(b=new gn(b,e,null,n,a),i.push({event:b,listeners:g}),v?b.data=v:null!==(v=Fn(n))&&(b.data=v))),(v=jn?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(Mn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Mn?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Rn&&Dn(e,t)?(e=Zt(),Yt=Qt=Kt=null,Ln=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return On&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(a=new gn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=v))}Nr(i,t)}))}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Ie(e,n))&&r.unshift(Br(e,o,a)),null!=(o=Ie(e,t))&&r.push(Br(e,o,a))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===r)break;5===s.tag&&null!==l&&(s=l,a?null!=(c=Ie(n,o))&&i.unshift(Br(n,c,s)):a||null!=(c=Ie(n,o))&&i.push(Br(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Hr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Hr,"\n").replace(Gr,"")}function Qr(e,t,r){if(t=Kr(t),Kr(e)!==t&&r)throw Error(n(425))}function Yr(){}var Zr=null,Xr=null;function Jr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ea="function"==typeof setTimeout?setTimeout:void 0,ta="function"==typeof clearTimeout?clearTimeout:void 0,na="function"==typeof Promise?Promise:void 0,ra="function"==typeof queueMicrotask?queueMicrotask:typeof na<"u"?function(e){return na.resolve(null).then(e).catch(aa)}:ea;function aa(e){setTimeout((function(){throw e}))}function oa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Lt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Lt(t)}function ia(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function sa(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ca=Math.random().toString(36).slice(2),la="__reactFiber$"+ca,ua="__reactProps$"+ca,fa="__reactContainer$"+ca,da="__reactEvents$"+ca,pa="__reactListeners$"+ca,ha="__reactHandles$"+ca;function ma(e){var t=e[la];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fa]||n[la]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=sa(e);null!==e;){if(n=e[la])return n;e=sa(e)}return t}n=(e=n).parentNode}return null}function ya(e){return!(e=e[la]||e[fa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ga(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function va(e){return e[ua]||null}var ba=[],_a=-1;function wa(e){return{current:e}}function ka(e){0>_a||(e.current=ba[_a],ba[_a]=null,_a--)}function xa(e,t){_a++,ba[_a]=e.current,e.current=t}var Sa={},Ea=wa(Sa),Aa=wa(!1),za=Sa;function Ca(e,t){var n=e.type.contextTypes;if(!n)return Sa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ia(e){return null!=(e=e.childContextTypes)}function Ta(){ka(Aa),ka(Ea)}function Ra(e,t,r){if(Ea.current!==Sa)throw Error(n(168));xa(Ea,t),xa(Aa,r)}function Pa(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var o in a=a.getChildContext())if(!(o in t))throw Error(n(108,V(e)||"Unknown",o));return O({},r,a)}function ja(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sa,za=Ea.current,xa(Ea,e),xa(Aa,Aa.current),!0}function Oa(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=Pa(e,t,za),a.__reactInternalMemoizedMergedChildContext=e,ka(Aa),ka(Ea),xa(Ea,e)):ka(Aa),xa(Aa,r)}var Na=null,Ma=!1,Da=!1;function Fa(e){null===Na?Na=[e]:Na.push(e)}function La(){if(!Da&&null!==Na){Da=!0;var e=0,t=yt;try{var n=Na;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Na=null,Ma=!1}catch(t){throw null!==Na&&(Na=Na.slice(e+1)),$e(Ye,La),t}finally{yt=t,Da=!1}}return null}var Va=[],qa=0,Ba=null,Ua=0,$a=[],Wa=0,Ha=null,Ga=1,Ka="";function Qa(e,t){Va[qa++]=Ua,Va[qa++]=Ba,Ba=e,Ua=t}function Ya(e,t,n){$a[Wa++]=Ga,$a[Wa++]=Ka,$a[Wa++]=Ha,Ha=e;var r=Ga;e=Ka;var a=32-rt(r)-1;r&=~(1<<a),n+=1;var o=32-rt(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ga=1<<32-rt(t)+a|n<<a|r,Ka=o+e}else Ga=1<<o|n<<a|r,Ka=e}function Za(e){null!==e.return&&(Qa(e,1),Ya(e,1,0))}function Xa(e){for(;e===Ba;)Ba=Va[--qa],Va[qa]=null,Ua=Va[--qa],Va[qa]=null;for(;e===Ha;)Ha=$a[--Wa],$a[Wa]=null,Ka=$a[--Wa],$a[Wa]=null,Ga=$a[--Wa],$a[Wa]=null}var Ja=null,eo=null,to=!1,no=null;function ro(e,t){var n=Tl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ao(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Ja=e,eo=ia(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Ja=e,eo=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ha?{id:Ga,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Ja=e,eo=null,!0);default:return!1}}function oo(e){return!(!(1&e.mode)||128&e.flags)}function io(e){if(to){var t=eo;if(t){var r=t;if(!ao(e,t)){if(oo(e))throw Error(n(418));t=ia(r.nextSibling);var a=Ja;t&&ao(e,t)?ro(a,r):(e.flags=-4097&e.flags|2,to=!1,Ja=e)}}else{if(oo(e))throw Error(n(418));e.flags=-4097&e.flags|2,to=!1,Ja=e}}}function so(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ja=e}function co(e){if(e!==Ja)return!1;if(!to)return so(e),to=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Jr(e.type,e.memoizedProps)),t&&(t=eo)){if(oo(e))throw lo(),Error(n(418));for(;t;)ro(e,t),t=ia(t.nextSibling)}if(so(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){eo=ia(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}eo=null}}else eo=Ja?ia(e.stateNode.nextSibling):null;return!0}function lo(){for(var e=eo;e;)e=ia(e.nextSibling)}function uo(){eo=Ja=null,to=!1}function fo(e){null===no?no=[e]:no.push(e)}var po=g.ReactCurrentBatchConfig;function ho(e,t){if(e&&e.defaultProps){for(var n in t=O({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var mo=wa(null),yo=null,go=null,vo=null;function bo(){vo=go=yo=null}function _o(e){var t=mo.current;ka(mo),e._currentValue=t}function wo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ko(e,t){yo=e,vo=go=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.lanes&t&&(vs=!0),e.firstContext=null)}function xo(e){var t=e._currentValue;if(vo!==e)if(e={context:e,memoizedValue:t,next:null},null===go){if(null===yo)throw Error(n(308));go=e,yo.dependencies={lanes:0,firstContext:e}}else go=go.next=e;return t}var So=null;function Eo(e){null===So?So=[e]:So.push(e)}function Ao(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Eo(t)):(n.next=a.next,a.next=n),t.interleaved=n,zo(e,r)}function zo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Co=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function To(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ro(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Po(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&zc){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,zo(e,n)}return null===(a=r.interleaved)?(t.next=t,Eo(r)):(t.next=a.next,a.next=t),r.interleaved=t,zo(e,n)}function jo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}function Oo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function No(e,t,n,r){var a=e.updateQueue;Co=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var c=s,l=c.next;c.next=null,null===i?o=l:i.next=l,i=c;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(null!==o){var f=a.baseState;for(i=0,u=l=c=null,s=o;;){var d=s.lane,p=s.eventTime;if((r&d)===d){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=O({},f,d);break e;case 2:Co=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(l=u=p,c=f):u=u.next=p,i|=d;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(d=s).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===u&&(c=f),a.baseState=c,a.firstBaseUpdate=l,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Nc|=i,e.lanes=i,e.memoizedState=f}}function Mo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],o=a.callback;if(null!==o){if(a.callback=null,a=r,"function"!=typeof o)throw Error(n(191,o));o.call(a)}}}var Do=(new e.Component).refs;function Fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:O({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Lo={isMounted:function(e){return!!(e=e._reactInternals)&&Le(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Jc(),a=el(e),o=Ro(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Po(e,o,a))&&(tl(t,e,a,r),jo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Jc(),a=el(e),o=Ro(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Po(e,o,a))&&(tl(t,e,a,r),jo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jc(),r=el(e),a=Ro(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Po(e,a,r))&&(tl(t,e,r,n),jo(t,e,r))}};function Vo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!or(n,r)||!or(a,o))}function qo(e,t,n){var r=!1,a=Sa,o=t.contextType;return"object"==typeof o&&null!==o?o=xo(o):(a=Ia(t)?za:Ea.current,o=(r=null!=(r=t.contextTypes))?Ca(e,a):Sa),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Lo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Bo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Lo.enqueueReplaceState(t,t.state,null)}function Uo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Do,Io(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=xo(o):(o=Ia(t)?za:Ea.current,a.context=Ca(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Fo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Lo.enqueueReplaceState(a,a.state,null),No(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function $o(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var o=a,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;t===Do&&(t=o.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ho(e){return(0,e._init)(e._payload)}function Go(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Pl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Ml(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var a=n.type;return a===_?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===I&&Ho(a)===t.type)?((r=o(t,n.props)).ref=$o(e,t,n),r.return=e,r):((r=jl(n.type,n.key,n.props,null,e.mode,r)).ref=$o(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Ol(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ml(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case v:return(n=jl(t.type,t.key,t.props,null,e.mode,n)).ref=$o(e,null,t),n.return=e,n;case b:return(t=Dl(t,e.mode,n)).return=e,t;case I:return d(e,(0,t._init)(t._payload),n)}if(X(t)||P(t))return(t=Ol(t,e.mode,n,null)).return=e,t;Wo(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case v:return n.key===a?l(e,t,n,r):null;case b:return n.key===a?u(e,t,n,r):null;case I:return p(e,t,(a=n._init)(n._payload),r)}if(X(n)||P(n))return null!==a?null:f(e,t,n,r,null);Wo(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case v:return l(t,e=e.get(null===r.key?n:r.key)||null,r,a);case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case I:return h(e,t,n,(0,r._init)(r._payload),a)}if(X(r)||P(r))return f(t,e=e.get(n)||null,r,a,null);Wo(t,r)}return null}return function c(l,u,f,m){if("object"==typeof f&&null!==f&&f.type===_&&null===f.key&&(f=f.props.children),"object"==typeof f&&null!==f){switch(f.$$typeof){case v:e:{for(var y=f.key,g=u;null!==g;){if(g.key===y){if((y=f.type)===_){if(7===g.tag){r(l,g.sibling),(u=o(g,f.props.children)).return=l,l=u;break e}}else if(g.elementType===y||"object"==typeof y&&null!==y&&y.$$typeof===I&&Ho(y)===g.type){r(l,g.sibling),(u=o(g,f.props)).ref=$o(l,g,f),u.return=l,l=u;break e}r(l,g);break}t(l,g),g=g.sibling}f.type===_?((u=Ol(f.props.children,l.mode,m,f.key)).return=l,l=u):((m=jl(f.type,f.key,f.props,null,l.mode,m)).ref=$o(l,u,f),m.return=l,l=m)}return s(l);case b:e:{for(g=f.key;null!==u;){if(u.key===g){if(4===u.tag&&u.stateNode.containerInfo===f.containerInfo&&u.stateNode.implementation===f.implementation){r(l,u.sibling),(u=o(u,f.children||[])).return=l,l=u;break e}r(l,u);break}t(l,u),u=u.sibling}(u=Dl(f,l.mode,m)).return=l,l=u}return s(l);case I:return c(l,u,(g=f._init)(f._payload),m)}if(X(f))return function(n,o,s,c){for(var l=null,u=null,f=o,m=o=0,y=null;null!==f&&m<s.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var g=p(n,f,s[m],c);if(null===g){null===f&&(f=y);break}e&&f&&null===g.alternate&&t(n,f),o=i(g,o,m),null===u?l=g:u.sibling=g,u=g,f=y}if(m===s.length)return r(n,f),to&&Qa(n,m),l;if(null===f){for(;m<s.length;m++)null!==(f=d(n,s[m],c))&&(o=i(f,o,m),null===u?l=f:u.sibling=f,u=f);return to&&Qa(n,m),l}for(f=a(n,f);m<s.length;m++)null!==(y=h(f,n,m,s[m],c))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),o=i(y,o,m),null===u?l=y:u.sibling=y,u=y);return e&&f.forEach((function(e){return t(n,e)})),to&&Qa(n,m),l}(l,u,f,m);if(P(f))return function(o,s,c,l){var u=P(c);if("function"!=typeof u)throw Error(n(150));if(null==(c=u.call(c)))throw Error(n(151));for(var f=u=null,m=s,y=s=0,g=null,v=c.next();null!==m&&!v.done;y++,v=c.next()){m.index>y?(g=m,m=null):g=m.sibling;var b=p(o,m,v.value,l);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,y),null===f?u=b:f.sibling=b,f=b,m=g}if(v.done)return r(o,m),to&&Qa(o,y),u;if(null===m){for(;!v.done;y++,v=c.next())null!==(v=d(o,v.value,l))&&(s=i(v,s,y),null===f?u=v:f.sibling=v,f=v);return to&&Qa(o,y),u}for(m=a(o,m);!v.done;y++,v=c.next())null!==(v=h(m,o,y,v.value,l))&&(e&&null!==v.alternate&&m.delete(null===v.key?y:v.key),s=i(v,s,y),null===f?u=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(o,e)})),to&&Qa(o,y),u}(l,u,f,m);Wo(l,f)}return"string"==typeof f&&""!==f||"number"==typeof f?(f=""+f,null!==u&&6===u.tag?(r(l,u.sibling),(u=o(u,f)).return=l,l=u):(r(l,u),(u=Ml(f,l.mode,m)).return=l,l=u),s(l)):r(l,u)}}var Ko=Go(!0),Qo=Go(!1),Yo={},Zo=wa(Yo),Xo=wa(Yo),Jo=wa(Yo);function ei(e){if(e===Yo)throw Error(n(174));return e}function ti(e,t){switch(xa(Jo,t),xa(Xo,e),xa(Zo,Yo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:oe(null,"");break;default:t=oe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ka(Zo),xa(Zo,t)}function ni(){ka(Zo),ka(Xo),ka(Jo)}function ri(e){ei(Jo.current);var t=ei(Zo.current),n=oe(t,e.type);t!==n&&(xa(Xo,e),xa(Zo,n))}function ai(e){Xo.current===e&&(ka(Zo),ka(Xo))}var oi=wa(0);function ii(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var si=[];function ci(){for(var e=0;e<si.length;e++)si[e]._workInProgressVersionPrimary=null;si.length=0}var li=g.ReactCurrentDispatcher,ui=g.ReactCurrentBatchConfig,fi=0,di=null,pi=null,hi=null,mi=!1,yi=!1,gi=0,vi=0;function bi(){throw Error(n(321))}function _i(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function wi(e,t,r,a,o,i){if(fi=i,di=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,li.current=null===e||null===e.memoizedState?os:is,e=r(a,o),yi){i=0;do{if(yi=!1,gi=0,25<=i)throw Error(n(301));i+=1,hi=pi=null,t.updateQueue=null,li.current=ss,e=r(a,o)}while(yi)}if(li.current=as,t=null!==pi&&null!==pi.next,fi=0,hi=pi=di=null,mi=!1,t)throw Error(n(300));return e}function ki(){var e=0!==gi;return gi=0,e}function xi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===hi?di.memoizedState=hi=e:hi=hi.next=e,hi}function Si(){if(null===pi){var e=di.alternate;e=null!==e?e.memoizedState:null}else e=pi.next;var t=null===hi?di.memoizedState:hi.next;if(null!==t)hi=t,pi=e;else{if(null===e)throw Error(n(310));e={memoizedState:(pi=e).memoizedState,baseState:pi.baseState,baseQueue:pi.baseQueue,queue:pi.queue,next:null},null===hi?di.memoizedState=hi=e:hi=hi.next=e}return hi}function Ai(e,t){return"function"==typeof t?t(e):t}function zi(e){var t=Si(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=pi,o=a.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}a.baseQueue=o=i,r.pending=null}if(null!==o){i=o.next,a=a.baseState;var c=s=null,l=null,u=i;do{var f=u.lane;if((fi&f)===f)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),a=u.hasEagerState?u.eagerState:e(a,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(c=l=d,s=a):l=l.next=d,di.lanes|=f,Nc|=f}u=u.next}while(null!==u&&u!==i);null===l?s=a:l.next=c,ar(a,t.memoizedState)||(vs=!0),t.memoizedState=a,t.baseState=s,t.baseQueue=l,r.lastRenderedState=a}if(null!==(e=r.interleaved)){o=e;do{i=o.lane,di.lanes|=i,Nc|=i,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ci(e){var t=Si(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);ar(i,t.memoizedState)||(vs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,a]}function Ii(){}function Ti(e,t){var r=di,a=Si(),o=t(),i=!ar(a.memoizedState,o);if(i&&(a.memoizedState=o,vs=!0),a=a.queue,Bi(ji.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||null!==hi&&1&hi.memoizedState.tag){if(r.flags|=2048,Di(9,Pi.bind(null,r,a,o,t),void 0,null),null===Cc)throw Error(n(349));30&fi||Ri(r,t,o)}return o}function Ri(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=di.updateQueue)?(t={lastEffect:null,stores:null},di.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pi(e,t,n,r){t.value=n,t.getSnapshot=r,Oi(t)&&Ni(e)}function ji(e,t,n){return n((function(){Oi(t)&&Ni(e)}))}function Oi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch{return!0}}function Ni(e){var t=zo(e,1);null!==t&&tl(t,e,1,-1)}function Mi(e){var t=xi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:e},t.queue=e,e=e.dispatch=es.bind(null,di,e),[t.memoizedState,e]}function Di(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=di.updateQueue)?(t={lastEffect:null,stores:null},di.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fi(){return Si().memoizedState}function Li(e,t,n,r){var a=xi();di.flags|=e,a.memoizedState=Di(1|t,n,void 0,void 0===r?null:r)}function Vi(e,t,n,r){var a=Si();r=void 0===r?null:r;var o=void 0;if(null!==pi){var i=pi.memoizedState;if(o=i.destroy,null!==r&&_i(r,i.deps))return void(a.memoizedState=Di(t,n,o,r))}di.flags|=e,a.memoizedState=Di(1|t,n,o,r)}function qi(e,t){return Li(8390656,8,e,t)}function Bi(e,t){return Vi(2048,8,e,t)}function Ui(e,t){return Vi(4,2,e,t)}function $i(e,t){return Vi(4,4,e,t)}function Wi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Hi(e,t,n){return n=null!=n?n.concat([e]):null,Vi(4,4,Wi.bind(null,t,e),n)}function Gi(){}function Ki(e,t){var n=Si();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_i(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qi(e,t){var n=Si();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_i(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Yi(e,t,n){return 21&fi?(ar(n,t)||(n=dt(),di.lanes|=n,Nc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=n)}function Zi(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ui.transition;ui.transition={};try{e(!1),t()}finally{yt=n,ui.transition=r}}function Xi(){return Si().memoizedState}function Ji(e,t,n){var r=el(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ts(e))ns(t,n);else if(null!==(n=Ao(e,t,n,r))){tl(n,e,r,Jc()),rs(n,t,r)}}function es(e,t,n){var r=el(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ts(e))ns(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,ar(s,i)){var c=t.interleaved;return null===c?(a.next=a,Eo(t)):(a.next=c.next,c.next=a),void(t.interleaved=a)}}catch{}null!==(n=Ao(e,t,a,r))&&(tl(n,e,r,a=Jc()),rs(n,t,r))}}function ts(e){var t=e.alternate;return e===di||null!==t&&t===di}function ns(e,t){yi=mi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rs(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}var as={readContext:xo,useCallback:bi,useContext:bi,useEffect:bi,useImperativeHandle:bi,useInsertionEffect:bi,useLayoutEffect:bi,useMemo:bi,useReducer:bi,useRef:bi,useState:bi,useDebugValue:bi,useDeferredValue:bi,useTransition:bi,useMutableSource:bi,useSyncExternalStore:bi,useId:bi,unstable_isNewReconciler:!1},os={readContext:xo,useCallback:function(e,t){return xi().memoizedState=[e,void 0===t?null:t],e},useContext:xo,useEffect:qi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Li(4194308,4,Wi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=xi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ji.bind(null,di,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xi().memoizedState=e},useState:Mi,useDebugValue:Gi,useDeferredValue:function(e){return xi().memoizedState=e},useTransition:function(){var e=Mi(!1),t=e[0];return e=Zi.bind(null,e[1]),xi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=di,o=xi();if(to){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Cc)throw Error(n(349));30&fi||Ri(a,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,qi(ji.bind(null,a,i,e),[e]),a.flags|=2048,Di(9,Pi.bind(null,a,i,r,t),void 0,null),r},useId:function(){var e=xi(),t=Cc.identifierPrefix;if(to){var n=Ka;t=":"+t+"R"+(n=(Ga&~(1<<32-rt(Ga)-1)).toString(32)+n),0<(n=gi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=vi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},is={readContext:xo,useCallback:Ki,useContext:xo,useEffect:Bi,useImperativeHandle:Hi,useInsertionEffect:Ui,useLayoutEffect:$i,useMemo:Qi,useReducer:zi,useRef:Fi,useState:function(){return zi(Ai)},useDebugValue:Gi,useDeferredValue:function(e){return Yi(Si(),pi.memoizedState,e)},useTransition:function(){return[zi(Ai)[0],Si().memoizedState]},useMutableSource:Ii,useSyncExternalStore:Ti,useId:Xi,unstable_isNewReconciler:!1},ss={readContext:xo,useCallback:Ki,useContext:xo,useEffect:Bi,useImperativeHandle:Hi,useInsertionEffect:Ui,useLayoutEffect:$i,useMemo:Qi,useReducer:Ci,useRef:Fi,useState:function(){return Ci(Ai)},useDebugValue:Gi,useDeferredValue:function(e){var t=Si();return null===pi?t.memoizedState=e:Yi(t,pi.memoizedState,e)},useTransition:function(){return[Ci(Ai)[0],Si().memoizedState]},useMutableSource:Ii,useSyncExternalStore:Ti,useId:Xi,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function ls(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function us(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=Ro(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uc||(Uc=!0,$c=r),us(0,t)},n}function ps(e,t,n){(n=Ro(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){us(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){us(0,t),"function"!=typeof r&&(null===Wc?Wc=new Set([this]):Wc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Sl.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ro(-1,1)).tag=2,Po(n,t,1))),n.lanes|=1),e)}var gs=g.ReactCurrentOwner,vs=!1;function bs(e,t,n,r){t.child=null===e?Qo(t,null,n,r):Ko(t,e.child,n,r)}function _s(e,t,n,r,a){n=n.render;var o=t.ref;return ko(t,a),r=wi(e,t,n,r,o,a),n=ki(),null===e||vs?(to&&n&&Za(t),t.flags|=1,bs(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Us(e,t,a))}function ws(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Rl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ks(e,t,o,r,a))}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:or)(i,r)&&e.ref===t.ref)return Us(e,t,a)}return t.flags|=1,(e=Pl(o,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(or(o,r)&&e.ref===t.ref){if(vs=!1,t.pendingProps=r=o,!(e.lanes&a))return t.lanes=e.lanes,Us(e,t,a);131072&e.flags&&(vs=!0)}}return Es(e,t,n,r,a)}function xs(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xa(Pc,Rc),Rc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,xa(Pc,Rc),Rc|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xa(Pc,Rc),Rc|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xa(Pc,Rc),Rc|=r;return bs(e,t,a,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,a){var o=Ia(n)?za:Ea.current;return o=Ca(t,o),ko(t,a),n=wi(e,t,n,r,o,a),r=ki(),null===e||vs?(to&&r&&Za(t),t.flags|=1,bs(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Us(e,t,a))}function As(e,t,n,r,a){if(Ia(n)){var o=!0;ja(t)}else o=!1;if(ko(t,a),null===t.stateNode)Bs(e,t),qo(t,n,r),Uo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,l=n.contextType;"object"==typeof l&&null!==l?l=xo(l):l=Ca(t,l=Ia(n)?za:Ea.current);var u=n.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||c!==l)&&Bo(t,i,r,l),Co=!1;var d=t.memoizedState;i.state=d,No(t,r,i,a),c=t.memoizedState,s!==r||d!==c||Aa.current||Co?("function"==typeof u&&(Fo(t,n,u,r),c=t.memoizedState),(s=Co||Vo(t,n,s,r,d,c,l))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=l,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,To(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ho(t.type,s),i.props=l,f=t.pendingProps,d=i.context,"object"==typeof(c=n.contextType)&&null!==c?c=xo(c):c=Ca(t,c=Ia(n)?za:Ea.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==f||d!==c)&&Bo(t,i,r,c),Co=!1,d=t.memoizedState,i.state=d,No(t,r,i,a);var h=t.memoizedState;s!==f||d!==h||Aa.current||Co?("function"==typeof p&&(Fo(t,n,p,r),h=t.memoizedState),(l=Co||Vo(t,n,l,r,d,h,c)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=c,r=l):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return zs(e,t,n,r,o,a)}function zs(e,t,n,r,a,o){Ss(e,t);var i=!!(128&t.flags);if(!r&&!i)return a&&Oa(t,n,!1),Us(e,t,o);r=t.stateNode,gs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,s,o)):bs(e,t,s,o),t.memoizedState=r.state,a&&Oa(t,n,!0),t.child}function Cs(e){var t=e.stateNode;t.pendingContext?Ra(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ra(0,t.context,!1),ti(e,t.containerInfo)}function Is(e,t,n,r,a){return uo(),fo(a),t.flags|=256,bs(e,t,n,r),t.child}var Ts,Rs,Ps,js,Os={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,r){var a,o=t.pendingProps,i=oi.current,s=!1,c=!!(128&t.flags);if((a=c)||(a=(null===e||null!==e.memoizedState)&&!!(2&i)),a?(s=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(i|=1),xa(oi,1&i),null===e)return io(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=o.children,e=o.fallback,s?(o=t.mode,s=t.child,c={mode:"hidden",children:c},1&o||null===s?s=Nl(c,o,0,null):(s.childLanes=0,s.pendingProps=c),e=Ol(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(r),t.memoizedState=Os,e):Ds(t,c));if(null!==(i=e.memoizedState)&&null!==(a=i.dehydrated))return function(e,t,r,a,o,i,s){if(r)return 256&t.flags?(t.flags&=-257,a=ls(Error(n(422))),Fs(e,t,s,a)):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=a.fallback,o=t.mode,a=Nl({mode:"visible",children:a.children},o,0,null),i=Ol(i,o,s,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,1&t.mode&&Ko(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Os,i);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===o.data){if(a=o.nextSibling&&o.nextSibling.dataset)var c=a.dgst;return a=c,Fs(e,t,s,a=ls(i=Error(n(419)),a,void 0))}if(c=!!(s&e.childLanes),vs||c){if(null!==(a=Cc)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(a.suspendedLanes|s)?0:o)&&o!==i.retryLane&&(i.retryLane=o,zo(e,o),tl(a,e,o,-1))}return hl(),Fs(e,t,s,a=ls(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Al.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,eo=ia(o.nextSibling),Ja=t,to=!0,no=null,null!==e&&($a[Wa++]=Ga,$a[Wa++]=Ka,$a[Wa++]=Ha,Ga=e.id,Ka=e.overflow,Ha=t),t=Ds(t,a.children),t.flags|=4096,t)}(e,t,c,o,a,i,r);if(s){s=o.fallback,c=t.mode,a=(i=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&c||t.child===i?(o=Pl(i,l)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==a?s=Pl(a,s):(s=Ol(s,c,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,c=null===(c=e.child.memoizedState)?Ns(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=Os,o}return e=(s=e.child).sibling,o=Pl(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Ds(e,t){return(t=Nl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&fo(r),Ko(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ls(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wo(e.return,t,n)}function Vs(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function qs(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(bs(e,t,r.children,n),2&(r=oi.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ls(e,n,t);else if(19===e.tag)Ls(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xa(oi,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ii(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Vs(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ii(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Vs(t,!0,n,null,o);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Nc|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Pl(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Pl(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function $s(e,t){if(!to)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hs(e,t,r){var o=t.pendingProps;switch(Xa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Ia(t.type)&&Ta(),Ws(t),null;case 3:return o=t.stateNode,ni(),ka(Aa),ka(Ea),ci(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(null===e||null===e.child)&&(co(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==no&&(ol(no),no=null))),Rs(e,t),Ws(t),null;case 5:ai(t);var i=ei(Jo.current);if(r=t.type,null!==e&&null!=t.stateNode)Ps(e,t,r,o,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Ws(t),null}if(e=ei(Zo.current),co(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[la]=t,o[ua]=s,e=!!(1&t.mode),r){case"dialog":Mr("cancel",o),Mr("close",o);break;case"iframe":case"object":case"embed":Mr("load",o);break;case"video":case"audio":for(i=0;i<Pr.length;i++)Mr(Pr[i],o);break;case"source":Mr("error",o);break;case"img":case"image":case"link":Mr("error",o),Mr("load",o);break;case"details":Mr("toggle",o);break;case"input":G(o,s),Mr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Mr("invalid",o);break;case"textarea":te(o,s),Mr("invalid",o)}for(var c in me(r,s),i=null,s)if(s.hasOwnProperty(c)){var l=s[c];"children"===c?"string"==typeof l?o.textContent!==l&&(!0!==s.suppressHydrationWarning&&Qr(o.textContent,l,e),i=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(!0!==s.suppressHydrationWarning&&Qr(o.textContent,l,e),i=["children",""+l]):a.hasOwnProperty(c)&&null!=l&&"onScroll"===c&&Mr("scroll",o)}switch(r){case"input":U(o),Y(o,s,!0);break;case"textarea":U(o),re(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=Yr)}o=i,t.updateQueue=o,null!==o&&(t.flags|=4)}else{c=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=c.createElement(r,{is:o.is}):(e=c.createElement(r),"select"===r&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,r),e[la]=t,e[ua]=o,Ts(e,t,!1,!1),t.stateNode=e;e:{switch(c=ye(r,o),r){case"dialog":Mr("cancel",e),Mr("close",e),i=o;break;case"iframe":case"object":case"embed":Mr("load",e),i=o;break;case"video":case"audio":for(i=0;i<Pr.length;i++)Mr(Pr[i],e);i=o;break;case"source":Mr("error",e),i=o;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),i=o;break;case"details":Mr("toggle",e),i=o;break;case"input":G(e,o),i=H(e,o),Mr("invalid",e);break;case"option":default:i=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},i=O({},o,{value:void 0}),Mr("invalid",e);break;case"textarea":te(e,o),i=ee(e,o),Mr("invalid",e)}for(s in me(r,i),l=i)if(l.hasOwnProperty(s)){var u=l[s];"style"===s?pe(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&ce(e,u):"children"===s?"string"==typeof u?("textarea"!==r||""!==u)&&le(e,u):"number"==typeof u&&le(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Mr("scroll",e):null!=u&&y(e,s,u,c))}switch(r){case"input":U(e),Y(e,o,!1);break;case"textarea":U(e),re(e);break;case"option":null!=o.value&&e.setAttribute("value",""+q(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?J(e,!!o.multiple,s,!1):null!=o.defaultValue&&J(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Yr)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)js(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=ei(Jo.current),ei(Zo.current),co(t)){if(o=t.stateNode,r=t.memoizedProps,o[la]=t,(s=o.nodeValue!==r)&&null!==(e=Ja))switch(e.tag){case 3:Qr(o.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(o.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[la]=t,t.stateNode=o}return Ws(t),null;case 13:if(ka(oi),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(to&&null!==eo&&1&t.mode&&!(128&t.flags))lo(),uo(),t.flags|=98560,s=!1;else if(s=co(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[la]=t}else uo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),s=!1}else null!==no&&(ol(no),no=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,1&t.mode&&(null===e||1&oi.current?0===jc&&(jc=3):hl())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return ni(),Rs(e,t),null===e&&Lr(t.stateNode.containerInfo),Ws(t),null;case 10:return _o(t.type._context),Ws(t),null;case 19:if(ka(oi),null===(s=t.memoizedState))return Ws(t),null;if(o=!!(128&t.flags),null===(c=s.rendering))if(o)$s(s,!1);else{if(0!==jc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(c=ii(e))){for(t.flags|=128,$s(s,!1),null!==(o=c.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(s=r).flags&=14680066,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return xa(oi,1&oi.current|2),t.child}e=e.sibling}null!==s.tail&&Ke()>qc&&(t.flags|=128,o=!0,$s(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=ii(c))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),$s(s,!0),null===s.tail&&"hidden"===s.tailMode&&!c.alternate&&!to)return Ws(t),null}else 2*Ke()-s.renderingStartTime>qc&&1073741824!==r&&(t.flags|=128,o=!0,$s(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=s.last)?r.sibling=c:t.child=c,s.last=c)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ke(),t.sibling=null,r=oi.current,xa(oi,o?1&r|2:1&r),t):(Ws(t),null);case 22:case 23:return ul(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?1073741824&Rc&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Gs(e,t){switch(Xa(t),t.tag){case 1:return Ia(t.type)&&Ta(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ni(),ka(Aa),ka(Ea),ci(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ai(t),null;case 13:if(ka(oi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));uo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ka(oi),null;case 4:return ni(),null;case 10:return _o(t.type._context),null;case 22:case 23:return ul(),null;default:return null}}Ts=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Ps=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ei(Zo.current);var i,s=null;switch(n){case"input":o=H(e,o),r=H(e,r),s=[];break;case"select":o=O({},o,{value:void 0}),r=O({},r,{value:void 0}),s=[];break;case"textarea":o=ee(e,o),r=ee(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(u in me(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var c=o[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(c=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(i in c)!c.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&c[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(s=s||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Mr("scroll",e),s||c===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},js=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Qs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xl(e,t,n)}else n.current=null}function Js(e,t,n){try{n()}catch(n){xl(e,t,n)}}var ec=!1;function tc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&Js(t,n,o)}a=a.next}while(a!==r)}}function nc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ac(e){var t=e.alternate;null!==t&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[la],delete t[ua],delete t[da],delete t[pa],delete t[ha])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function oc(e){return 5===e.tag||3===e.tag||4===e.tag}function ic(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||oc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(sc(e,t,n),e=e.sibling;null!==e;)sc(e,t,n),e=e.sibling}function cc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cc(e,t,n),e=e.sibling;null!==e;)cc(e,t,n),e=e.sibling}var lc=null,uc=!1;function fc(e,t,n){for(n=n.child;null!==n;)dc(e,t,n),n=n.sibling}function dc(e,t,n){if(nt&&"function"==typeof nt.onCommitFiberUnmount)try{nt.onCommitFiberUnmount(tt,n)}catch{}switch(n.tag){case 5:Qs||Xs(n,t);case 6:var r=lc,a=uc;lc=null,fc(e,t,n),uc=a,null!==(lc=r)&&(uc?(e=lc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):lc.removeChild(n.stateNode));break;case 18:null!==lc&&(uc?(e=lc,n=n.stateNode,8===e.nodeType?oa(e.parentNode,n):1===e.nodeType&&oa(e,n),Lt(e)):oa(lc,n.stateNode));break;case 4:r=lc,a=uc,lc=n.stateNode.containerInfo,uc=!0,fc(e,t,n),lc=r,uc=a;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(2&o||4&o)&&Js(n,t,i),a=a.next}while(a!==r)}fc(e,t,n);break;case 1:if(!Qs&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xl(n,t,e)}fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,fc(e,t,n),Qs=r):fc(e,t,n);break;default:fc(e,t,n)}}function pc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var r=zl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hc(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var o=r[a];try{var i=e,s=t,c=s;e:for(;null!==c;){switch(c.tag){case 5:lc=c.stateNode,uc=!1;break e;case 3:case 4:lc=c.stateNode.containerInfo,uc=!0;break e}c=c.return}if(null===lc)throw Error(n(160));dc(i,s,o),lc=null,uc=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){xl(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mc(t,e),t=t.sibling}function mc(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hc(t,e),yc(e),4&a){try{tc(3,e,e.return),nc(3,e)}catch(t){xl(e,e.return,t)}try{tc(5,e,e.return)}catch(t){xl(e,e.return,t)}}break;case 1:hc(t,e),yc(e),512&a&&null!==r&&Xs(r,r.return);break;case 5:if(hc(t,e),yc(e),512&a&&null!==r&&Xs(r,r.return),32&e.flags){var o=e.stateNode;try{le(o,"")}catch(t){xl(e,e.return,t)}}if(4&a&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==r?r.memoizedProps:i,c=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===c&&"radio"===i.type&&null!=i.name&&K(o,i),ye(c,s);var u=ye(c,i);for(s=0;s<l.length;s+=2){var f=l[s],d=l[s+1];"style"===f?pe(o,d):"dangerouslySetInnerHTML"===f?ce(o,d):"children"===f?le(o,d):y(o,f,d,u)}switch(c){case"input":Q(o,i);break;case"textarea":ne(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?J(o,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?J(o,!!i.multiple,i.defaultValue,!0):J(o,!!i.multiple,i.multiple?[]:"",!1))}o[ua]=i}catch(t){xl(e,e.return,t)}}break;case 6:if(hc(t,e),yc(e),4&a){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){xl(e,e.return,t)}}break;case 3:if(hc(t,e),yc(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{Lt(t.containerInfo)}catch(t){xl(e,e.return,t)}break;case 4:default:hc(t,e),yc(e);break;case 13:hc(t,e),yc(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Vc=Ke())),4&a&&pc(e);break;case 22:if(f=null!==r&&null!==r.memoizedState,1&e.mode?(Qs=(u=Qs)||f,hc(t,e),Qs=u):hc(t,e),yc(e),8192&a){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!f&&1&e.mode)for(Zs=e,f=e.child;null!==f;){for(d=Zs=f;null!==Zs;){switch(h=(p=Zs).child,p.tag){case 0:case 11:case 14:case 15:tc(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){a=p,r=p.return;try{t=a,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xl(a,r,e)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){_c(d);continue}}null!==h?(h.return=p,Zs=h):_c(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(c=d.stateNode,s=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,c.style.display=de("display",s))}catch(t){xl(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){xl(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:hc(t,e),yc(e),4&a&&pc(e);case 21:}}function yc(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(oc(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var o=a.stateNode;32&a.flags&&(le(o,""),a.flags&=-33),cc(e,ic(e),o);break;case 3:case 4:var i=a.stateNode.containerInfo;sc(e,ic(e),i);break;default:throw Error(n(161))}}catch(t){xl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gc(e,t,n){Zs=e,vc(e)}function vc(e,t,n){for(var r=!!(1&e.mode);null!==Zs;){var a=Zs,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Ks;if(!i){var s=a.alternate,c=null!==s&&null!==s.memoizedState||Qs;s=Ks;var l=Qs;if(Ks=i,(Qs=c)&&!l)for(Zs=a;null!==Zs;)c=(i=Zs).child,22===i.tag&&null!==i.memoizedState?wc(a):null!==c?(c.return=i,Zs=c):wc(a);for(;null!==o;)Zs=o,vc(o),o=o.sibling;Zs=a,Ks=s,Qs=l}bc(e)}else 8772&a.subtreeFlags&&null!==o?(o.return=a,Zs=o):bc(e)}}function bc(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qs||nc(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Qs)if(null===r)a.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ho(t.type,r.memoizedProps);a.componentDidUpdate(o,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Mo(t,i,a);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Mo(t,s,r)}break;case 5:var c=t.stateNode;if(null===r&&4&t.flags){r=c;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var f=u.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Lt(d)}}}break;default:throw Error(n(163))}Qs||512&t.flags&&rc(t)}catch(e){xl(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zs=r;break}Zs=t.return}}function _c(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function wc(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nc(4,t)}catch(e){xl(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){xl(t,a,e)}}var o=t.return;try{rc(t)}catch(e){xl(t,o,e)}break;case 5:var i=t.return;try{rc(t)}catch(e){xl(t,i,e)}}}catch(e){xl(t,t.return,e)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var kc,xc=Math.ceil,Sc=g.ReactCurrentDispatcher,Ec=g.ReactCurrentOwner,Ac=g.ReactCurrentBatchConfig,zc=0,Cc=null,Ic=null,Tc=0,Rc=0,Pc=wa(0),jc=0,Oc=null,Nc=0,Mc=0,Dc=0,Fc=null,Lc=null,Vc=0,qc=1/0,Bc=null,Uc=!1,$c=null,Wc=null,Hc=!1,Gc=null,Kc=0,Qc=0,Yc=null,Zc=-1,Xc=0;function Jc(){return 6&zc?Ke():-1!==Zc?Zc:Zc=Ke()}function el(e){return 1&e.mode?2&zc&&0!==Tc?Tc&-Tc:null!==po.transition?(0===Xc&&(Xc=dt()),Xc):(0!==(e=yt)||(e=void 0===(e=window.event)?16:Gt(e.type)),e):1}function tl(e,t,r,a){if(50<Qc)throw Qc=0,Yc=null,Error(n(185));ht(e,r,a),(!(2&zc)||e!==Cc)&&(e===Cc&&(!(2&zc)&&(Mc|=r),4===jc&&il(e,Tc)),nl(e,a),1===r&&0===zc&&!(1&t.mode)&&(qc=Ke()+500,Ma&&La()))}function nl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-rt(o),s=1<<i,c=a[i];-1===c?(!(s&n)||s&r)&&(a[i]=ut(s,t)):c<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=lt(e,e===Cc?Tc:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Ma=!0,Fa(e)}(sl.bind(null,e)):Fa(sl.bind(null,e)),ra((function(){!(6&zc)&&La()})),n=null;else{switch(gt(r)){case 1:n=Ye;break;case 4:n=Ze;break;case 16:default:n=Xe;break;case 536870912:n=et}n=Cl(n,rl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rl(e,t){if(Zc=-1,Xc=0,6&zc)throw Error(n(327));var r=e.callbackNode;if(wl()&&e.callbackNode!==r)return null;var a=lt(e,e===Cc?Tc:0);if(0===a)return null;if(30&a||a&e.expiredLanes||t)t=ml(e,a);else{t=a;var o=zc;zc|=2;var i=pl();for((Cc!==e||Tc!==t)&&(Bc=null,qc=Ke()+500,fl(e,t));;)try{gl();break}catch(t){dl(e,t)}bo(),Sc.current=i,zc=o,null!==Ic?t=0:(Cc=null,Tc=0,t=jc)}if(0!==t){if(2===t&&(0!==(o=ft(e))&&(a=o,t=al(e,o))),1===t)throw r=Oc,fl(e,0),il(e,a),nl(e,Ke()),r;if(6===t)il(e,a);else{if(o=e.current.alternate,!(30&a||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!ar(o(),a))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=ml(e,a),2===t&&(i=ft(e),0!==i&&(a=i,t=al(e,i))),1!==t)))throw r=Oc,fl(e,0),il(e,a),nl(e,Ke()),r;switch(e.finishedWork=o,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:_l(e,Lc,Bc);break;case 3:if(il(e,a),(130023424&a)===a&&10<(t=Vc+500-Ke())){if(0!==lt(e,0))break;if(((o=e.suspendedLanes)&a)!==a){Jc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ea(_l.bind(null,e,Lc,Bc),t);break}_l(e,Lc,Bc);break;case 4:if(il(e,a),(4194240&a)===a)break;for(t=e.eventTimes,o=-1;0<a;){var s=31-rt(a);i=1<<s,(s=t[s])>o&&(o=s),a&=~i}if(a=o,10<(a=(120>(a=Ke()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*xc(a/1960))-a)){e.timeoutHandle=ea(_l.bind(null,e,Lc,Bc),a);break}_l(e,Lc,Bc);break;default:throw Error(n(329))}}}return nl(e,Ke()),e.callbackNode===r?rl.bind(null,e):null}function al(e,t){var n=Fc;return e.current.memoizedState.isDehydrated&&(fl(e,t).flags|=256),2!==(e=ml(e,t))&&(t=Lc,Lc=n,null!==t&&ol(t)),e}function ol(e){null===Lc?Lc=e:Lc.push.apply(Lc,e)}function il(e,t){for(t&=~Dc,t&=~Mc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function sl(e){if(6&zc)throw Error(n(327));wl();var t=lt(e,0);if(!(1&t))return nl(e,Ke()),null;var r=ml(e,t);if(0!==e.tag&&2===r){var a=ft(e);0!==a&&(t=a,r=al(e,a))}if(1===r)throw r=Oc,fl(e,0),il(e,t),nl(e,Ke()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,Lc,Bc),nl(e,Ke()),null}function cl(e,t){var n=zc;zc|=1;try{return e(t)}finally{0===(zc=n)&&(qc=Ke()+500,Ma&&La())}}function ll(e){null!==Gc&&0===Gc.tag&&!(6&zc)&&wl();var t=zc;zc|=1;var n=Ac.transition,r=yt;try{if(Ac.transition=null,yt=1,e)return e()}finally{yt=r,Ac.transition=n,!(6&(zc=t))&&La()}}function ul(){Rc=Pc.current,ka(Pc)}function fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ta(n)),null!==Ic)for(n=Ic.return;null!==n;){var r=n;switch(Xa(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ta();break;case 3:ni(),ka(Aa),ka(Ea),ci();break;case 5:ai(r);break;case 4:ni();break;case 13:case 19:ka(oi);break;case 10:_o(r.type._context);break;case 22:case 23:ul()}n=n.return}if(Cc=e,Ic=e=Pl(e.current,null),Tc=Rc=t,jc=0,Oc=null,Dc=Mc=Nc=0,Lc=Fc=null,null!==So){for(t=0;t<So.length;t++)if(null!==(r=(n=So[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}So=null}return e}function dl(e,t){for(;;){var r=Ic;try{if(bo(),li.current=as,mi){for(var a=di.memoizedState;null!==a;){var o=a.queue;null!==o&&(o.pending=null),a=a.next}mi=!1}if(fi=0,hi=pi=di=null,yi=!1,gi=0,Ec.current=null,null===r||null===r.return){jc=1,Oc=t,Ic=null;break}e:{var i=e,s=r.return,c=r,l=t;if(t=Tc,c.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,f=c,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=ms(s);if(null!==h){h.flags&=-257,ys(h,s,c,0,t),1&h.mode&&hs(i,u,t),l=u;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}if(!(1&t)){hs(i,u,t),hl();break e}l=Error(n(426))}else if(to&&1&c.mode){var g=ms(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),ys(g,s,c,0,t),fo(cs(l,c));break e}}i=l=cs(l,c),4!==jc&&(jc=2),null===Fc?Fc=[i]:Fc.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Oo(i,ds(0,l,t));break e;case 1:c=l;var v=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Wc&&Wc.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Oo(i,ps(i,c,t));break e}}i=i.return}while(null!==i)}bl(r)}catch(e){t=e,Ic===r&&null!==r&&(Ic=r=r.return);continue}break}}function pl(){var e=Sc.current;return Sc.current=as,null===e?as:e}function hl(){(0===jc||3===jc||2===jc)&&(jc=4),null===Cc||!(268435455&Nc)&&!(268435455&Mc)||il(Cc,Tc)}function ml(e,t){var r=zc;zc|=2;var a=pl();for((Cc!==e||Tc!==t)&&(Bc=null,fl(e,t));;)try{yl();break}catch(t){dl(e,t)}if(bo(),zc=r,Sc.current=a,null!==Ic)throw Error(n(261));return Cc=null,Tc=0,jc}function yl(){for(;null!==Ic;)vl(Ic)}function gl(){for(;null!==Ic&&!He();)vl(Ic)}function vl(e){var t=kc(e.alternate,e,Rc);e.memoizedProps=e.pendingProps,null===t?bl(e):Ic=t,Ec.current=null}function bl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Ic=n);if(null===e)return jc=6,void(Ic=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Hs(n,t,Rc)))return void(Ic=n);if(null!==(t=t.sibling))return void(Ic=t);Ic=t=e}while(null!==t);0===jc&&(jc=5)}function _l(e,t,r){var a=yt,o=Ac.transition;try{Ac.transition=null,yt=1,function(e,t,r,a){do{wl()}while(null!==Gc);if(6&zc)throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-rt(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Cc&&(Ic=Cc=null,Tc=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Hc||(Hc=!0,Cl(Xe,(function(){return wl(),null}))),i=!!(15990&r.flags),15990&r.subtreeFlags||i){i=Ac.transition,Ac.transition=null;var s=yt;yt=1;var c=zc;zc|=4,Ec.current=null,function(e,t){if(Zr=qt,ur(e=lr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var o=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,c=-1,l=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==r||0!==o&&3!==d.nodeType||(c=s+o),d!==i||0!==a&&3!==d.nodeType||(l=s+a),3===d.nodeType&&(s+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===r&&++u===o&&(c=s),p===i&&++f===a&&(l=s),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}r=-1===c||-1===l?null:{start:c,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xr={focusedElem:e,selectionRange:r},qt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:ho(t.type,y),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(n(163))}}catch(e){xl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=ec,ec=!1}(e,r),mc(r,e),fr(Xr),qt=!!Zr,Xr=Zr=null,e.current=r,gc(r),Ge(),zc=c,yt=s,Ac.transition=i}else e.current=r;if(Hc&&(Hc=!1,Gc=e,Kc=o),i=e.pendingLanes,0===i&&(Wc=null),function(e){if(nt&&"function"==typeof nt.onCommitFiberRoot)try{nt.onCommitFiberRoot(tt,e,void 0,!(128&~e.current.flags))}catch{}}(r.stateNode),nl(e,Ke()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],a(o.value,{componentStack:o.stack,digest:o.digest});if(Uc)throw Uc=!1,e=$c,$c=null,e;1&Kc&&0!==e.tag&&wl(),i=e.pendingLanes,1&i?e===Yc?Qc++:(Qc=0,Yc=e):Qc=0,La()}(e,t,r,a)}finally{Ac.transition=o,yt=a}return null}function wl(){if(null!==Gc){var e=gt(Kc),t=Ac.transition,r=yt;try{if(Ac.transition=null,yt=16>e?16:e,null===Gc)var a=!1;else{if(e=Gc,Gc=null,Kc=0,6&zc)throw Error(n(331));var o=zc;for(zc|=4,Zs=e.current;null!==Zs;){var i=Zs,s=i.child;if(16&Zs.flags){var c=i.deletions;if(null!==c){for(var l=0;l<c.length;l++){var u=c[l];for(Zs=u;null!==Zs;){var f=Zs;switch(f.tag){case 0:case 11:case 15:tc(8,f,i)}var d=f.child;if(null!==d)d.return=f,Zs=d;else for(;null!==Zs;){var p=(f=Zs).sibling,h=f.return;if(ac(f),f===u){Zs=null;break}if(null!==p){p.return=h,Zs=p;break}Zs=h}}}var m=i.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var g=y.sibling;y.sibling=null,y=g}while(null!==y)}}Zs=i}}if(2064&i.subtreeFlags&&null!==s)s.return=i,Zs=s;else e:for(;null!==Zs;){if(2048&(i=Zs).flags)switch(i.tag){case 0:case 11:case 15:tc(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Zs=v;break e}Zs=i.return}}var b=e.current;for(Zs=b;null!==Zs;){var _=(s=Zs).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Zs=_;else e:for(s=b;null!==Zs;){if(2048&(c=Zs).flags)try{switch(c.tag){case 0:case 11:case 15:nc(9,c)}}catch(e){xl(c,c.return,e)}if(c===s){Zs=null;break e}var w=c.sibling;if(null!==w){w.return=c.return,Zs=w;break e}Zs=c.return}}if(zc=o,La(),nt&&"function"==typeof nt.onPostCommitFiberRoot)try{nt.onPostCommitFiberRoot(tt,e)}catch{}a=!0}return a}finally{yt=r,Ac.transition=t}}return!1}function kl(e,t,n){e=Po(e,t=ds(0,t=cs(n,t),1),1),t=Jc(),null!==e&&(ht(e,1,t),nl(e,t))}function xl(e,t,n){if(3===e.tag)kl(e,e,n);else for(;null!==t;){if(3===t.tag){kl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wc||!Wc.has(r))){t=Po(t,e=ps(t,e=cs(n,e),1),1),e=Jc(),null!==t&&(ht(t,1,e),nl(t,e));break}}t=t.return}}function Sl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Jc(),e.pingedLanes|=e.suspendedLanes&n,Cc===e&&(Tc&n)===n&&(4===jc||3===jc&&(130023424&Tc)===Tc&&500>Ke()-Vc?fl(e,0):Dc|=n),nl(e,t)}function El(e,t){0===t&&(1&e.mode?(t=st,!(130023424&(st<<=1))&&(st=4194304)):t=1);var n=Jc();null!==(e=zo(e,t))&&(ht(e,t,n),nl(e,n))}function Al(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),El(e,n)}function zl(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),El(e,r)}function Cl(e,t){return $e(e,t)}function Il(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tl(e,t,n,r){return new Il(e,t,n,r)}function Rl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pl(e,t){var n=e.alternate;return null===n?((n=Tl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jl(e,t,r,a,o,i){var s=2;if(a=e,"function"==typeof e)Rl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return Ol(r.children,o,i,t);case w:s=8,o|=8;break;case k:return(e=Tl(12,r,t,2|o)).elementType=k,e.lanes=i,e;case A:return(e=Tl(13,r,t,o)).elementType=A,e.lanes=i,e;case z:return(e=Tl(19,r,t,o)).elementType=z,e.lanes=i,e;case T:return Nl(r,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:s=10;break e;case S:s=9;break e;case E:s=11;break e;case C:s=14;break e;case I:s=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Tl(s,r,t,o)).elementType=e,t.type=a,t.lanes=i,t}function Ol(e,t,n,r){return(e=Tl(7,e,r,t)).lanes=n,e}function Nl(e,t,n,r){return(e=Tl(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Ml(e,t,n){return(e=Tl(6,e,null,t)).lanes=n,e}function Dl(e,t,n){return(t=Tl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fl(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pt(0),this.expirationTimes=pt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Ll(e,t,n,r,a,o,i,s,c){return e=new Fl(e,t,n,s,c),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Tl(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Io(o),e}function Vl(e){if(!e)return Sa;e:{if(Le(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ia(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ia(r))return Pa(e,r,t)}return t}function ql(e,t,n,r,a,o,i,s,c){return(e=Ll(n,r,!0,e,0,o,0,s,c)).context=Vl(null),n=e.current,(o=Ro(r=Jc(),a=el(n))).callback=t??null,Po(n,o,a),e.current.lanes=a,ht(e,a,r),nl(e,r),e}function Bl(e,t,n,r){var a=t.current,o=Jc(),i=el(a);return n=Vl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ro(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Po(a,t,i))&&(tl(e,a,i,o),jo(e,a,i)),i}function Ul(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wl(e,t){$l(e,t),(e=e.alternate)&&$l(e,t)}kc=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Aa.current)vs=!0;else{if(!(e.lanes&r||128&t.flags))return vs=!1,function(e,t,n){switch(t.tag){case 3:Cs(t),uo();break;case 5:ri(t);break;case 1:Ia(t.type)&&ja(t);break;case 4:ti(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;xa(mo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(xa(oi,1&oi.current),t.flags|=128,null):n&t.child.childLanes?Ms(e,t,n):(xa(oi,1&oi.current),null!==(e=Us(e,t,n))?e.sibling:null);xa(oi,1&oi.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return qs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),xa(oi,oi.current),r)break;return null;case 22:case 23:return t.lanes=0,xs(e,t,n)}return Us(e,t,n)}(e,t,r);vs=!!(131072&e.flags)}else vs=!1,to&&1048576&t.flags&&Ya(t,Ua,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Bs(e,t),e=t.pendingProps;var o=Ca(t,Ea.current);ko(t,r),o=wi(null,t,a,e,o,r);var i=ki();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ia(a)?(i=!0,ja(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Io(t),o.updater=Lo,t.stateNode=o,o._reactInternals=t,Uo(t,a,e,r),t=zs(null,t,a,!0,i,r)):(t.tag=0,to&&i&&Za(t),bs(null,t,o,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Bs(e,t),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return Rl(e)?1:0;if(null!=e){if((e=e.$$typeof)===E)return 11;if(e===C)return 14}return 2}(a),e=ho(a,e),o){case 0:t=Es(null,t,a,e,r);break e;case 1:t=As(null,t,a,e,r);break e;case 11:t=_s(null,t,a,e,r);break e;case 14:t=ws(null,t,a,ho(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,Es(e,t,a,o=t.elementType===a?o:ho(a,o),r);case 1:return a=t.type,o=t.pendingProps,As(e,t,a,o=t.elementType===a?o:ho(a,o),r);case 3:e:{if(Cs(t),null===e)throw Error(n(387));a=t.pendingProps,o=(i=t.memoizedState).element,To(e,t),No(t,a,null,r);var s=t.memoizedState;if(a=s.element,i.isDehydrated){if(i={element:a,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Is(e,t,a,r,o=cs(Error(n(423)),t));break e}if(a!==o){t=Is(e,t,a,r,o=cs(Error(n(424)),t));break e}for(eo=ia(t.stateNode.containerInfo.firstChild),Ja=t,to=!0,no=null,r=Qo(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(uo(),a===o){t=Us(e,t,r);break e}bs(e,t,a,r)}t=t.child}return t;case 5:return ri(t),null===e&&io(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Jr(a,o)?s=null:null!==i&&Jr(a,i)&&(t.flags|=32),Ss(e,t),bs(e,t,s,r),t.child;case 6:return null===e&&io(t),null;case 13:return Ms(e,t,r);case 4:return ti(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=Ko(t,null,a,r):bs(e,t,a,r),t.child;case 11:return a=t.type,o=t.pendingProps,_s(e,t,a,o=t.elementType===a?o:ho(a,o),r);case 7:return bs(e,t,t.pendingProps,r),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,xa(mo,a._currentValue),a._currentValue=s,null!==i)if(ar(i.value,s)){if(i.children===o.children&&!Aa.current){t=Us(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var c=i.dependencies;if(null!==c){s=i.child;for(var l=c.firstContext;null!==l;){if(l.context===a){if(1===i.tag){(l=Ro(-1,r&-r)).tag=2;var u=i.updateQueue;if(null!==u){var f=(u=u.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}i.lanes|=r,null!==(l=i.alternate)&&(l.lanes|=r),wo(i.return,r,t),c.lanes|=r;break}l=l.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(n(341));s.lanes|=r,null!==(c=s.alternate)&&(c.lanes|=r),wo(s,r,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}bs(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,ko(t,r),a=a(o=xo(o)),t.flags|=1,bs(e,t,a,r),t.child;case 14:return o=ho(a=t.type,t.pendingProps),ws(e,t,a,o=ho(a.type,o),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:ho(a,o),Bs(e,t),t.tag=1,Ia(a)?(e=!0,ja(t)):e=!1,ko(t,r),qo(t,a,o),Uo(t,a,o,r),zs(null,t,a,!0,e,r);case 19:return qs(e,t,r);case 22:return xs(e,t,r)}throw Error(n(156,t.tag))};var Hl="function"==typeof reportError?reportError:function(e){console.error(e)};function Gl(e){this._internalRoot=e}function Kl(e){this._internalRoot=e}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zl(){}function Xl(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"==typeof a){var s=a;a=function(){var e=Ul(i);s.call(e)}}Bl(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Ul(i);o.call(e)}}var i=ql(t,r,e,0,null,!1,0,"",Zl);return e._reactRootContainer=i,e[fa]=i.current,Lr(8===e.nodeType?e.parentNode:e),ll(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var s=r;r=function(){var e=Ul(c);s.call(e)}}var c=Ll(e,0,!1,null,0,!1,0,"",Zl);return e._reactRootContainer=c,e[fa]=c.current,Lr(8===e.nodeType?e.parentNode:e),ll((function(){Bl(t,c,n,r)})),c}(n,t,e,a,r);return Ul(i)}Kl.prototype.render=Gl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Bl(e,t,null,null)},Kl.prototype.unmount=Gl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ll((function(){Bl(null,e,null,null)})),t[fa]=null}},Kl.prototype.unstable_scheduleHydration=function(e){if(e){var t=wt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&Ot(e)}},vt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ct(t.pendingLanes);0!==n&&(mt(t,1|n),nl(t,Ke()),!(6&zc)&&(qc=Ke()+500,La()))}break;case 13:ll((function(){var t=zo(e,1);if(null!==t){var n=Jc();tl(t,e,1,n)}})),Wl(e,1)}},bt=function(e){if(13===e.tag){var t=zo(e,134217728);if(null!==t)tl(t,e,134217728,Jc());Wl(e,134217728)}},_t=function(e){if(13===e.tag){var t=el(e),n=zo(e,t);if(null!==n)tl(n,e,t,Jc());Wl(e,t)}},wt=function(){return yt},kt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},be=function(e,t,r){switch(t){case"input":if(Q(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var o=va(a);if(!o)throw Error(n(90));$(a),Q(a,o)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&J(e,!!r.multiple,t,!1)}},Ee=cl,Ae=ll;var Jl={usingClientEntryPoint:!1,Events:[ya,ga,va,xe,Se,cl]},eu={findFiberByHostInstance:ma,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},tu={bundleType:eu.bundleType,version:eu.version,rendererPackageName:eu.rendererPackageName,rendererConfig:eu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:eu.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{tt=nu.inject(tu),nt=nu}catch{}}return Ei.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jl,Ei.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ql(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},Ei.createRoot=function(e,t){if(!Ql(e))throw Error(n(299));var r=!1,a="",o=Hl;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Ll(e,1,!1,null,0,r,0,a,o),e[fa]=t.current,Lr(8===e.nodeType?e.parentNode:e),new Gl(t)},Ei.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=null===(e=Be(t))?null:e.stateNode},Ei.flushSync=function(e){return ll(e)},Ei.hydrate=function(e,t,r){if(!Yl(t))throw Error(n(200));return Xl(null,e,t,!0,r)},Ei.hydrateRoot=function(e,t,r){if(!Ql(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,o=!1,i="",s=Hl;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=ql(t,null,e,1,r??null,o,0,i,s),e[fa]=t.current,Lr(e),a)for(e=0;e<a.length;e++)o=(o=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Kl(t)},Ei.render=function(e,t,r){if(!Yl(t))throw Error(n(200));return Xl(null,e,t,!1,r)},Ei.unmountComponentAtNode=function(e){if(!Yl(e))throw Error(n(40));return!!e._reactRootContainer&&(ll((function(){Xl(null,null,e,!1,(function(){e._reactRootContainer=null,e[fa]=null}))})),!0)},Ei.unstable_batchedUpdates=cl,Ei.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Yl(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Xl(e,t,r,!1,a)},Ei.version="18.2.0-next-9e3b772b8-20220608",Ei}function MK(){if(T9)return i3.exports;return T9=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),i3.exports=zK(),i3.exports}var Zl=MK();const c7=Ql(Zl),pm=v.forwardRef(((e,t)=>{const{children:n,...r}=e,a=v.Children.toArray(n),o=a.find(DK);if(o){const e=o.props.children,n=a.map((t=>t===o?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return v.createElement(wC,Le({},r,{ref:t}),v.isValidElement(e)?v.cloneElement(e,void 0,n):null)}return v.createElement(wC,Le({},r,{ref:t}),n)}));pm.displayName="Slot";const wC=v.forwardRef(((e,t)=>{const{children:n,...r}=e;return v.isValidElement(n)?v.cloneElement(n,{...NK(r,n.props),ref:t?rA(t,n.ref):n.ref}):v.Children.count(n)>1?v.Children.only(null):null}));wC.displayName="SlotClone";const aA=({children:e})=>v.createElement(v.Fragment,null,e);function DK(e){return v.isValidElement(e)&&e.type===aA}function NK(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}const LK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],St=LK.reduce(((e,t)=>{const n=v.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?pm:t;return v.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),v.createElement(o,Le({},a,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function l7(e,t){e&&Zl.flushSync((()=>e.dispatchEvent(t)))}function jK(e,t=(null==globalThis?void 0:globalThis.document)){const n=Bc(e);v.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const kC="dismissableLayer.update",BK="dismissableLayer.pointerDownOutside",FK="dismissableLayer.focusOutside";let I9;const UK=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ek=v.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(UK),[f,d]=v.useState(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=v.useState({}),m=yn(t,(e=>d(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(g),_=f?y.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=_>=b,x=VK((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));!k||n||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p),S=qK((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p);return jK((e=>{_===u.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),v.useEffect((()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(I9=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),P9(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=I9)}}),[f,p,r,u]),v.useEffect((()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),P9())}),[f,u]),v.useEffect((()=>{const e=()=>h({});return document.addEventListener(kC,e),()=>document.removeEventListener(kC,e)}),[]),v.createElement(St.div,Le({},l,{ref:m,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:lt(e.onFocusCapture,S.onFocusCapture),onBlurCapture:lt(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:lt(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function VK(e,t=(null==globalThis?void 0:globalThis.document)){const n=Bc(e),r=v.useRef(!1),a=v.useRef((()=>{}));return v.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){f7(BK,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function qK(e,t=(null==globalThis?void 0:globalThis.document)){const n=Bc(e),r=v.useRef(!1);return v.useEffect((()=>{const e=e=>{e.target&&!r.current&&f7(FK,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function P9(){const e=new CustomEvent(kC);document.dispatchEvent(e)}function f7(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?l7(a,o):a.dispatchEvent(o)}const l3="focusScope.autoFocusOnMount",f3="focusScope.autoFocusOnUnmount",$9={bubbles:!1,cancelable:!0},oA=v.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,c]=v.useState(null),l=Bc(a),u=Bc(o),f=v.useRef(null),d=yn(t,(e=>c(e))),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:ap(f.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||ap(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ap(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),v.useEffect((()=>{if(s){z9.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(l3,$9);s.addEventListener(l3,l),s.dispatchEvent(t),t.defaultPrevented||(WK(YK(u7(s)),{select:!0}),document.activeElement===e&&ap(s))}return()=>{s.removeEventListener(l3,l),setTimeout((()=>{const t=new CustomEvent(f3,$9);s.addEventListener(f3,u),s.dispatchEvent(t),t.defaultPrevented||ap(e??document.body,{select:!0}),s.removeEventListener(f3,u),z9.remove(p)}),0)}}}),[s,l,u,p]);const h=v.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=HK(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&ap(o,{select:!0})):(e.preventDefault(),n&&ap(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,p.paused]);return v.createElement(St.div,Le({tabIndex:-1},i,{ref:d,onKeyDown:h}))}));function WK(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ap(r,{select:t}),document.activeElement!==n)return}function HK(e){const t=u7(e);return[O9(t,e),O9(t.reverse(),e)]}function u7(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function O9(e,t){for(const n of e)if(!GK(n,{upTo:t}))return n}function GK(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function KK(e){return e instanceof HTMLInputElement&&"select"in e}function ap(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&KK(e)&&t&&e.select()}}const z9=QK();function QK(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=M9(e,t),e.unshift(t)},remove(t){var n;e=M9(e,t),null===(n=e[0])||void 0===n||n.resume()}}}function M9(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function YK(e){return e.filter((e=>"A"!==e.tagName))}const iA=v.forwardRef(((e,t)=>{var n;const{container:r=(null==globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...a}=e;return r?c7.createPortal(v.createElement(St.div,Le({},a,{ref:t})),r):null}));function ZK(e,t){return v.useReducer(((e,n)=>t[e][n]??e),e)}const Ws=e=>{const{present:t,children:n}=e,r=XK(t),a="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),o=yn(r.ref,a.ref);return"function"==typeof n||r.isPresent?v.cloneElement(a,{ref:o}):null};function XK(e){const[t,n]=v.useState(),r=v.useRef({}),a=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[s,c]=ZK(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect((()=>{const e=Wv(r.current);o.current="mounted"===s?e:"none"}),[s]),Mo((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=Wv(t);e?c("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,c]),Mo((()=>{if(t){const e=e=>{const n=Wv(r.current).includes(e.animationName);e.target===t&&n&&Zl.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(o.current=Wv(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Wv(e){return(null==e?void 0:e.animationName)||"none"}Ws.displayName="Presence";let u3=0;function sA(){v.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:D9()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:D9()),u3++,()=>{1===u3&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),u3--}}),[])}function D9(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Oo=function(){return Oo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Oo.apply(this,arguments)};function cA(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function d7(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)(r||!(a in t))&&(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var Ay="right-scroll-bar-position",Ty="width-before-scroll-bar",JK="with-scroll-bars-hidden",eQ="--removed-body-scroll-bar-size";function d3(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function tQ(e,t){var n=v.useState((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}var nQ=typeof window<"u"?v.useLayoutEffect:v.useEffect,N9=new WeakMap;function p7(e,t){var n=tQ(null,(function(t){return e.forEach((function(e){return d3(e,t)}))}));return nQ((function(){var t=N9.get(n);if(t){var r=new Set(t),a=new Set(e),o=n.current;r.forEach((function(e){a.has(e)||d3(e,null)})),a.forEach((function(e){r.has(e)||d3(e,o)}))}N9.set(n,e)}),[e]),n}function rQ(e){return e}function aQ(e,t){void 0===t&&(t=rQ);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}function h7(e){void 0===e&&(e={});var t=aQ(null);return t.options=Oo({async:!0,ssr:!1},e),t}var m7=function(e){var t=e.sideCar,n=cA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Oo({},n))};function g7(e,t){return e.useMedium(t),m7}m7.isSideCarExport=!0;var y7=h7(),p3=function(){},tk=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:p3,onWheelCapture:p3,onTouchMoveCapture:p3}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,y=e.as,g=void 0===y?"div":y,b=cA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=d,w=p7([n,t]),k=Oo(Oo({},b),a);return v.createElement(v.Fragment,null,u&&v.createElement(_,{sideCar:y7,removeScrollBar:l,shards:f,noIsolation:p,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:n}),i?v.cloneElement(v.Children.only(s),Oo(Oo({},k),{ref:w})):v.createElement(g,Oo({},k,{className:c,ref:w}),s))}));tk.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tk.classNames={fullWidth:Ty,zeroRight:Ay};var oQ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oQ();return t&&e.setAttribute("nonce",t),e}function sQ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cQ(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var lQ=function(){var e=0,t=null;return{add:function(n){0==e&&(t=iQ())&&(sQ(t,n),cQ(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fQ=function(){var e=lQ();return function(t,n){v.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}},lA=function(){var e=fQ();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},uQ={left:0,top:0,right:0,gap:0},h3=function(e){return parseInt(e||"",10)||0},dQ=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[h3(n),h3(r),h3(a)]},pQ=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return uQ;var t=dQ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},hQ=lA(),y1="data-scroll-locked",mQ=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat(JK," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(y1,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Ay," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Ty," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Ay," .").concat(Ay," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Ty," .").concat(Ty," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(y1,"] {\n ").concat(eQ,": ").concat(s,"px;\n }\n")},L9=function(){var e=parseInt(document.body.getAttribute(y1)||"0",10);return isFinite(e)?e:0},gQ=function(){v.useEffect((function(){return document.body.setAttribute(y1,(L9()+1).toString()),function(){var e=L9()-1;e<=0?document.body.removeAttribute(y1):document.body.setAttribute(y1,e.toString())}}),[])},_7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;gQ();var o=v.useMemo((function(){return pQ(a)}),[a]);return v.createElement(hQ,{styles:mQ(o,!t,a,n?"":"!important")})},xC=!1;if(typeof window<"u")try{var Hv=Object.defineProperty({},"passive",{get:function(){return xC=!0,!0}});window.addEventListener("test",Hv,Hv),window.removeEventListener("test",Hv,Hv)}catch{xC=!1}var Qg=!!xC&&{passive:!1},yQ=function(e){return"TEXTAREA"===e.tagName},v7=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!yQ(e)&&"visible"===n[t])},_Q=function(e){return v7(e,"overflowY")},vQ=function(e){return v7(e,"overflowX")},j9=function(e,t){var n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),b7(e,n)){var r=w7(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},bQ=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},wQ=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},b7=function(e,t){return"v"===e?_Q(t):vQ(t)},w7=function(e,t){return"v"===e?bQ(t):wQ(t)},kQ=function(e,t){return"h"===e&&"rtl"===t?-1:1},xQ=function(e,t,n,r,a){var o=kQ(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,c=t.contains(s),l=!1,u=i>0,f=0,d=0;do{var p=w7(e,s),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&b7(e,s)&&(f+=m,d+=h),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(0===f||!a)||!u&&(0===d||!a))&&(l=!0),l},Gv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B9=function(e){return[e.deltaX,e.deltaY]},F9=function(e){return e&&"current"in e?e.current:e},SQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EQ=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},CQ=0,Yg=[];function RQ(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),a=v.useState(CQ++)[0],o=v.useState((function(){return lA()}))[0],i=v.useRef(e);v.useEffect((function(){i.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=d7([e.lockRef.current],(e.shards||[]).map(F9),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var a,o=Gv(e),s=n.current,c="deltaX"in e?e.deltaX:s[0]-o[0],l="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=j9(f,u);if(!d)return!0;if(d?a=f:(a="v"===f?"h":"v",d=j9(f,u)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=a),!a)return!0;var p=r.current||a;return xQ(p,t,e,"h"===p?c:l,!0)}),[]),c=v.useCallback((function(e){var n=e;if(Yg.length&&Yg[Yg.length-1]===o){var r="deltaY"in n?B9(n):Gv(n),a=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&SQ(e.delta,r)}))[0];if(a&&a.should)return void(n.cancelable&&n.preventDefault());if(!a){var c=(i.current.shards||[]).map(F9).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?s(n,c[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=v.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=v.useCallback((function(e){n.current=Gv(e),r.current=void 0}),[]),f=v.useCallback((function(t){l(t.type,B9(t),t.target,s(t,e.lockRef.current))}),[]),d=v.useCallback((function(t){l(t.type,Gv(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return Yg.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Qg),document.addEventListener("touchmove",c,Qg),document.addEventListener("touchstart",u,Qg),function(){Yg=Yg.filter((function(e){return e!==o})),document.removeEventListener("wheel",c,Qg),document.removeEventListener("touchmove",c,Qg),document.removeEventListener("touchstart",u,Qg)}}),[]);var p=e.removeScrollBar,h=e.inert;return v.createElement(v.Fragment,null,h?v.createElement(o,{styles:EQ(a)}):null,p?v.createElement(_7,{gapMode:"margin"}):null)}const AQ=g7(y7,RQ);var nk=v.forwardRef((function(e,t){return v.createElement(tk,Oo({},e,{ref:t,sideCar:AQ}))}));nk.classNames=tk.classNames;var TQ=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Zg=new WeakMap,Kv=new WeakMap,Qv={},m3=0,k7=function(e){return e&&(e.host||k7(e.parentNode))},IQ=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=k7(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return!!e}))},PQ=function(e,t,n,r){var a=IQ(t,Array.isArray(e)?e:[e]);Qv[n]||(Qv[n]=new WeakMap);var o=Qv[n],i=[],s=new Set,c=new Set(a),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};a.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,c=(Zg.get(e)||0)+1,l=(o.get(e)||0)+1;Zg.set(e,c),o.set(e,l),i.push(e),1===c&&a&&Kv.set(e,!0),1===l&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),s.clear(),m3++,function(){i.forEach((function(e){var t=Zg.get(e)-1,a=o.get(e)-1;Zg.set(e,t),o.set(e,a),t||(Kv.has(e)||e.removeAttribute(r),Kv.delete(e)),a||e.removeAttribute(n)})),--m3||(Zg=new WeakMap,Zg=new WeakMap,Kv=new WeakMap,Qv={})}},rk=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=TQ(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),PQ(r,a,n,"aria-hidden")):function(){return null}};const x7="Dialog",[S7,E7]=ii(x7),[$Q,Xl]=S7(x7),OQ=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=v.useRef(null),c=v.useRef(null),[l=!1,u]=wp({prop:r,defaultProp:a,onChange:o});return v.createElement($Q,{scope:t,triggerRef:s,contentRef:c,contentId:hp(),titleId:hp(),descriptionId:hp(),open:l,onOpenChange:u,onOpenToggle:v.useCallback((()=>u((e=>!e))),[u]),modal:i},n)},C7="DialogPortal",[zQ,R7]=S7(C7,{forceMount:void 0}),MQ=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Xl(C7,t);return v.createElement(zQ,{scope:t,forceMount:n},v.Children.map(r,(e=>v.createElement(Ws,{present:n||o.open},v.createElement(iA,{asChild:!0,container:a},e)))))},SC="DialogOverlay",DQ=v.forwardRef(((e,t)=>{const n=R7(SC,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Xl(SC,e.__scopeDialog);return o.modal?v.createElement(Ws,{present:r||o.open},v.createElement(NQ,Le({},a,{ref:t}))):null})),NQ=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Xl(SC,n);return v.createElement(nk,{as:pm,allowPinchZoom:!0,shards:[a.contentRef]},v.createElement(St.div,Le({"data-state":I7(a.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),E1="DialogContent",LQ=v.forwardRef(((e,t)=>{const n=R7(E1,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Xl(E1,e.__scopeDialog);return v.createElement(Ws,{present:r||o.open},o.modal?v.createElement(jQ,Le({},a,{ref:t})):v.createElement(BQ,Le({},a,{ref:t})))})),jQ=v.forwardRef(((e,t)=>{const n=Xl(E1,e.__scopeDialog),r=v.useRef(null),a=yn(t,n.contentRef,r);return v.useEffect((()=>{const e=r.current;if(e)return rk(e)}),[]),v.createElement(A7,Le({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lt(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:lt(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:lt(e.onFocusOutside,(e=>e.preventDefault()))}))})),BQ=v.forwardRef(((e,t)=>{const n=Xl(E1,e.__scopeDialog),r=v.useRef(!1),a=v.useRef(!1);return v.createElement(A7,Le({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}}))})),A7=v.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=Xl(E1,n),c=yn(t,v.useRef(null));return sA(),v.createElement(v.Fragment,null,v.createElement(oA,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o},v.createElement(ek,Le({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":I7(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)})),T7="DialogTitle",FQ=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Xl(T7,n);return v.createElement(St.h2,Le({id:a.titleId},r,{ref:t}))})),UQ="DialogDescription",VQ=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Xl(UQ,n);return v.createElement(St.p,Le({id:a.descriptionId},r,{ref:t}))})),qQ="DialogClose",WQ=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Xl(qQ,n);return v.createElement(St.button,Le({type:"button"},r,{ref:t,onClick:lt(e.onClick,(()=>a.onOpenChange(!1)))}))}));function I7(e){return e?"open":"closed"}const HQ="DialogTitleWarning",[GQ,TWe]=CK(HQ,{contentName:E1,titleName:T7,docsSlug:"dialog"}),P7=OQ,ak=MQ,q1=DQ,W1=LQ,D_=FQ,N_=VQ,ok=WQ,KQ="AlertDialog",[QQ,IWe]=ii(KQ,[E7]),Rm=E7(),YQ=e=>{const{__scopeAlertDialog:t,...n}=e,r=Rm(t);return v.createElement(ak,Le({},r,n))},ZQ=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Rm(n);return v.createElement(q1,Le({},a,r,{ref:t}))})),$7="AlertDialogContent",[XQ,JQ]=QQ($7),eY=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,children:r,...a}=e,o=Rm(n),i=yn(t,v.useRef(null)),s=v.useRef(null);return v.createElement(GQ,{contentName:$7,titleName:tY,docsSlug:"alert-dialog"},v.createElement(XQ,{scope:n,cancelRef:s},v.createElement(W1,Le({role:"alertdialog"},o,a,{ref:i,onOpenAutoFocus:lt(a.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),v.createElement(aA,null,r),!1)))})),tY="AlertDialogTitle",nY=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Rm(n);return v.createElement(D_,Le({},a,r,{ref:t}))})),rY=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Rm(n);return v.createElement(N_,Le({},a,r,{ref:t}))})),aY=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Rm(n);return v.createElement(ok,Le({},a,r,{ref:t}))})),oY="AlertDialogCancel",iY=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:a}=JQ(oY,n),o=Rm(n),i=yn(t,a);return v.createElement(ok,Le({},o,r,{ref:i}))})),sY=YQ,O7=ZQ,z7=eY,M7=aY,D7=iY,N7=nY,L7=rY,cY=sY,j7=v.forwardRef((({className:e,...t},n)=>F.jsx(O7,{className:$e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));j7.displayName=O7.displayName;const lY=v.forwardRef((({className:e,...t},n)=>F.jsxs(cY,{children:[F.jsx(j7,{}),F.jsx(z7,{ref:n,className:$e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]})));lY.displayName=z7.displayName;const fY=v.forwardRef((({className:e,...t},n)=>F.jsx(N7,{ref:n,className:$e("text-lg font-semibold",e),...t})));fY.displayName=N7.displayName;const uY=v.forwardRef((({className:e,...t},n)=>F.jsx(L7,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));uY.displayName=L7.displayName;const dY=v.forwardRef((({className:e,...t},n)=>F.jsx(M7,{ref:n,className:$e(nA(),e),...t})));dY.displayName=M7.displayName;const pY=v.forwardRef((({className:e,...t},n)=>F.jsx(D7,{ref:n,className:$e(nA({variant:"primary"}),"mt-2 sm:mt-0",e),...t})));pY.displayName=D7.displayName;const B7="Avatar",[hY,PWe]=ii(B7),[mY,F7]=hY(B7),gY=v.forwardRef(((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,o]=v.useState("idle");return v.createElement(mY,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:o},v.createElement(St.span,Le({},r,{ref:t})))})),yY="AvatarImage",_Y=v.forwardRef(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...o}=e,i=F7(yY,n),s=wY(r),c=Bc((e=>{a(e),i.onImageLoadingStatusChange(e)}));return Mo((()=>{"idle"!==s&&c(s)}),[s,c]),"loaded"===s?v.createElement(St.img,Le({},o,{ref:t,src:r})):null})),vY="AvatarFallback",bY=v.forwardRef(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,o=F7(vY,n),[i,s]=v.useState(void 0===r);return v.useEffect((()=>{if(void 0!==r){const e=window.setTimeout((()=>s(!0)),r);return()=>window.clearTimeout(e)}}),[r]),i&&"loaded"!==o.imageLoadingStatus?v.createElement(St.span,Le({},a,{ref:t})):null}));function wY(e){const[t,n]=v.useState("idle");return Mo((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,a=e=>()=>{t&&n(e)};return n("loading"),r.onload=a("loaded"),r.onerror=a("error"),r.src=e,()=>{t=!1}}),[e]),t}const U7=gY,V7=_Y,q7=bY,W7=v.forwardRef((({className:e,...t},n)=>F.jsx(U7,{ref:n,className:$e("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t})));W7.displayName=U7.displayName;const H7=v.forwardRef((({className:e,...t},n)=>F.jsx(V7,{ref:n,className:$e("aspect-square size-full",e),...t})));H7.displayName=V7.displayName;const kY=v.forwardRef((({className:e,...t},n)=>F.jsx(q7,{ref:n,className:$e("flex size-full items-center justify-center bg-slate-700 text-white",e),...t})));kY.displayName=q7.displayName;const xY=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,className:$e("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t})));xY.displayName="Card";const SY=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,className:$e("flex flex-col space-y-1.5 p-6",e),...t})));SY.displayName="CardHeader";const EY=v.forwardRef((({className:e,...t},n)=>F.jsx("h3",{ref:n,className:$e("text-2xl font-semibold leading-none tracking-tight",e),...t})));EY.displayName="CardTitle";const CY=v.forwardRef((({className:e,...t},n)=>F.jsx("p",{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));CY.displayName="CardDescription";const RY=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,className:$e("p-6 pt-0",e),...t})));RY.displayName="CardContent";const AY=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,className:$e("flex items-center p-6 pt-0",e),...t})));function TY(e){return"[object Object]"===Object.prototype.toString.call(e)}function U9(e){return TY(e)||Array.isArray(e)}function IY(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fA(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:U9(r)&&U9(a)?fA(r,a):r===a}))}function V9(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function PY(e,t){if(e.length!==t.length)return!1;const n=V9(e),r=V9(t);return n.every(((e,t)=>fA(e,r[t])))}function uA(e){return"number"==typeof e}function EC(e){return"string"==typeof e}function dA(e){return"boolean"==typeof e}function q9(e){return"[object Object]"===Object.prototype.toString.call(e)}function fr(e){return Math.abs(e)}function pA(e){return Math.sign(e)}function Iy(e,t){return fr(e-t)}function $Y(e,t){if(0===e||0===t||fr(e)<=fr(t))return 0;const n=Iy(fr(e),fr(t));return fr(n/e)}function Yy(e){return Zy(e).map(Number)}function Oc(e){return e[L_(e)]}function L_(e){return Math.max(0,e.length-1)}function hA(e,t){return t===L_(e)}function W9(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function Zy(e){return Object.keys(e)}function G7(e,t){return[e,t].reduce(((e,t)=>(Zy(t).forEach((n=>{const r=e[n],a=t[n],o=q9(r)&&q9(a);e[n]=o?G7(r,a):a})),e)),{})}function K7(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function OY(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}return{measure:function(r,a){return EC(e)?n[e](r):e(t,r,a)}}}function Xy(){let e=[];const t={add:function(n,r,a,o={passive:!0}){let i;if("addEventListener"in n)n.addEventListener(r,a,o),i=()=>n.removeEventListener(r,a,o);else{const e=n;e.addListener(a),i=()=>e.removeListener(a)}return e.push(i),t},clear:function(){e=e.filter((e=>e()))}};return t}function zY(e,t,n,r){const a=Xy(),o=1e3/60;let i=null,s=0,c=0;function l(e){if(!c)return;i||(i=e);const a=e-i;for(i=e,s+=a;s>=o;)n(),s-=o;const u=fr(s/o);r(u),c&&t.requestAnimationFrame(l)}function u(){t.cancelAnimationFrame(c),i=null,s=0,c=0}return{init:function(){a.add(e,"visibilitychange",(()=>{e.hidden&&(i=null,s=0)}))},destroy:function(){u(),a.clear()},start:function(){c||(c=t.requestAnimationFrame(l))},stop:u,update:n,render:r}}function MY(e,t){const n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){const{width:t,height:r}=e;return"x"===n?t:r}}}function hm(e=0,t=0){const n=fr(e-t);function r(t){return t<e}function a(e){return e>t}function o(e){return r(e)||a(e)}return{length:n,max:t,min:e,constrain:function(n){return o(n)?r(n)?e:t:n},reachedAny:o,reachedMax:a,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function Q7(e,t,n){const{constrain:r}=hm(0,e),a=e+1;let o=i(t);function i(e){return n?fr((a+e)%a):r(e)}function s(){return o}function c(){return Q7(e,s(),n)}const l={get:s,set:function(e){return o=i(e),l},add:function(e){return c().set(s()+e)},clone:c};return l}function DY(e){const t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}function NY(e,t,n,r,a,o,i,s,c,l,u,f,d,p,h,m,y,g,v,b){const{cross:_}=e,w=["INPUT","SELECT","TEXTAREA"],k={passive:!1},x=Xy(),S=Xy(),E=hm(50,225).constrain(h.measure(20)),A={mouse:300,touch:400},z={mouse:500,touch:600},C=m?43:25;let I=!1,T=0,R=0,P=!1,j=!1,O=!1,N=!1;function M(e){const n=i.readPoint(e),r=i.readPoint(e,_),a=Iy(n,T),s=Iy(r,R);if(!(j||N||e.cancelable&&(j=a>s,j)))return D(e);const l=i.pointerMove(e);a>y&&(O=!0),u.useFriction(.3).useDuration(1),c.start(),o.add(t.apply(l)),e.preventDefault()}function D(e){const n=f.byDistance(0,!1).index!==d.get(),r=i.pointerUp(e)*(m?z:A)[N?"mouse":"touch"],a=function(e,t){const n=d.add(-1*pA(e)),r=f.byDistance(e,!m).distance;return m||fr(e)<E?r:g&&t?.5*r:f.byIndex(n.get(),0).distance}(t.apply(r),n),o=$Y(r,a),s=C-10*o,c=v+o/50;j=!1,P=!1,S.clear(),u.useDuration(s).useFriction(c),l.distance(a,!m),N=!1,p.emit("pointerUp")}function F(e){O&&(e.stopPropagation(),e.preventDefault())}return{init:function(e){if(!b)return;function t(t){(dA(b)||b(e,t))&&function(e){const t=K7(e,a);N=t,(!t||0===e.button)&&(function(e){const t=e.nodeName||"";return w.includes(t)}(e.target)||(O=m&&t&&!e.buttons&&I,I=Iy(o.get(),s.get())>=2,P=!0,i.pointerDown(e),u.useFriction(0).useDuration(0),o.set(s),function(){const e=N?r:n;S.add(e,"touchmove",M,k).add(e,"touchend",D).add(e,"mousemove",M,k).add(e,"mouseup",D)}(),T=i.readPoint(e),R=i.readPoint(e,_),p.emit("pointerDown")))}(t)}const c=n;x.add(c,"dragstart",(e=>e.preventDefault()),k).add(c,"touchmove",(()=>{}),k).add(c,"touchend",(()=>{})).add(c,"touchstart",t).add(c,"mousedown",t).add(c,"touchcancel",D).add(c,"contextmenu",D).add(c,"click",F,!0)},pointerDown:function(){return P},destroy:function(){x.clear(),S.clear()}}}function LY(e,t){let n,r;function a(e){return e.timeStamp}function o(n,r){const a="client"+("x"===(r||e.scroll)?"X":"Y");return(K7(n,t)?n:n.touches[0])[a]}return{pointerDown:function(e){return n=e,r=e,o(e)},pointerMove:function(e){const t=o(e)-o(r),i=a(e)-a(n)>170;return r=e,i&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=o(r)-o(n),i=a(e)-a(n),s=a(e)-a(r)>170,c=t/i;return i&&!s&&fr(c)>.1?c:0},readPoint:o}}function jY(){return{measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:a}=e;return{top:t,right:n+r,bottom:t+a,left:n,width:r,height:a}}}}function BY(e){return{measure:function(t){return e*(t/100)}}}function FY(e,t,n,r,a,o,i){let s,c,l=[],u=!1;function f(e){return a.measureSize(i.measure(e))}return{init:function(a){o&&(c=f(e),l=r.map(f),s=new ResizeObserver((i=>{u||(dA(o)||o(a,i))&&function(o){for(const i of o){const o=i.target===e,s=r.indexOf(i.target),u=o?c:l[s];if(fr(f(o?e:r[s])-u)>=.5){n.requestAnimationFrame((()=>{a.reInit(),t.emit("resize")}));break}}}(i)})),[e].concat(r).forEach((e=>s.observe(e))))},destroy:function(){s&&s.disconnect(),u=!0}}}function UY(e,t,n,r,a){let o=0,i=0,s=r,c=a,l=e.get(),u=0;function f(e){return s=e,p}function d(e){return c=e,p}const p={direction:function(){return i},duration:function(){return s},velocity:function(){return o},seek:function(){const t=n.get()-e.get();let r=0;return!s?(o=0,e.set(n),r=t):(o+=t/s,o*=c,l+=o,e.add(o),r=l-u),i=pA(r),u=l,p},settled:function(){return fr(n.get()-t.get())<.001},useBaseFriction:function(){return d(a)},useBaseDuration:function(){return f(r)},useFriction:d,useDuration:f};return p}function VY(e,t,n,r,a){const o=a.measure(10),i=a.measure(50),s=hm(.1,.99);let c=!1;return{constrain:function(a){if(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))return;const l=e.reachedMin(t.get())?"min":"max",u=fr(e[l]-t.get()),f=n.get()-t.get(),d=s.constrain(u/i);n.subtract(f*d),!a&&fr(f)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){c=!e}}}function qY(e,t,n,r,a){const o=hm(-t+e,0),i=n.map(((e,t)=>{const{min:r,max:a}=o,i=o.constrain(e),s=!t,l=hA(n,t);return s?a:l||c(r,i)?r:c(a,i)?a:i})).map((e=>parseFloat(e.toFixed(3)))),s=function(){const e=i[0],t=Oc(i),n=i.lastIndexOf(e),r=i.indexOf(t)+1;return hm(n,r)}();function c(e,t){return Iy(e,t)<1}return{snapsContained:function(){if(t<=e+a)return[o.max];if("keepSnaps"===r)return i;const{min:n,max:c}=s;return i.slice(n,c)}(),scrollContainLimit:s}}function WY(e,t,n){const r=t[0];return{limit:hm(n?r-e:Oc(t),r)}}function HY(e,t,n,r){const a=t.min+.1,o=t.max+.1,{reachedMin:i,reachedMax:s}=hm(a,o);return{loop:function(t){if(!function(e){return 1===e?s(n.get()):-1===e&&i(n.get())}(t))return;const a=e*(-1*t);r.forEach((e=>e.add(a)))}}}function GY(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}function KY(e,t,n,r,a){const{startEdge:o,endEdge:i}=e,{groupSlides:s}=a,c=s(r).map((e=>Oc(e)[i]-e[0][o])).map(fr).map(t.measure),l=r.map((e=>n[o]-e[o])).map((e=>-fr(e))),u=s(l).map((e=>e[0])).map(((e,t)=>e+c[t]));return{snaps:l,snapsAligned:u}}function QY(e,t,n,r,a,o){const{groupSlides:i}=a,{min:s,max:c}=r;return{slideRegistry:function(){const r=i(o),a=!e||"keepSnaps"===t;return 1===n.length?[o]:a?r:r.slice(s,c).map(((e,t,n)=>{const r=!t,a=hA(n,t);if(r){return W9(Oc(n[0])+1)}if(a){return W9(L_(o)-Oc(n)[0]+1,Oc(n)[0])}return e}))}()}}function YY(e,t,n,r,a){const{reachedAny:o,removeOffset:i,constrain:s}=r;function c(e){return e.concat().sort(((e,t)=>fr(e)-fr(t)))[0]}function l(t,r){const a=[t,t+n,t-n];if(!e)return a[0];if(!r)return c(a);const o=a.filter((e=>pA(e)===r));return o.length?c(o):Oc(a)-n}return{byDistance:function(n,r){const c=a.get()+n,{index:u,distance:f}=function(n){const r=e?i(n):s(n),a=t.map((e=>e-r)).map((e=>l(e,0))).map(((e,t)=>({diff:e,index:t}))).sort(((e,t)=>fr(e.diff)-fr(t.diff))),{index:o}=a[0];return{index:o,distance:r}}(c),d=!e&&o(c);return!r||d?{index:u,distance:n}:{index:u,distance:n+l(t[u]-f,0)}},byIndex:function(e,n){return{index:e,distance:l(t[e]-a.get(),n)}},shortcut:l}}function ZY(e,t,n,r,a,o,i){function s(a){const s=a.distance,c=a.index!==t.get();o.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(a.index),i.emit("select"))}return{distance:function(e,t){s(a.byDistance(e,t))},index:function(e,n){const r=t.clone().set(e);s(a.byIndex(r.get(),n))}}}function XY(e,t,n,r,a,o){let i=0;function s(e){"Tab"===e.code&&(i=(new Date).getTime())}function c(s){o.add(s,"focus",(()=>{if((new Date).getTime()-i>10)return;e.scrollLeft=0;const o=t.indexOf(s),c=n.findIndex((e=>e.includes(o)));uA(c)&&(a.useDuration(0),r.index(c,0))}),{passive:!0,capture:!0})}return{init:function(){o.add(document,"keydown",s,!1),t.forEach(c)}}}function Ob(e){let t=e;function n(e){return uA(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function Y7(e,t,n){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},a=n.style;let o=!1;return{clear:function(){o||(a.transform="",n.getAttribute("style")||n.removeAttribute("style"))},to:function(e){o||(a.transform=r(t.apply(e)))},toggleActive:function(e){o=!e}}}function JY(e,t,n,r,a,o,i,s,c,l){const u=Yy(o),f=Yy(o).reverse(),d=function(){const e=s[0];return m(h(f,e),r,!1)}().concat(function(){const e=n-s[0]-1;return m(h(u,e),-r,!0)}());function p(e,t){return e.reduce(((e,t)=>e-o[t]),t)}function h(e,t){return e.reduce(((e,n)=>p(e,t)>0?e.concat([n]):e),[])}function m(o,s,u){const f=function(e){return i.map(((t,r)=>({start:t-a[r]+.5+e,end:t+n-.5+e})))}(s);return o.map((n=>{const a=u?0:-r,o=u?r:0,i=u?"end":"start",s=f[n][i];return{index:n,loopPoint:s,slideLocation:Ob(-1),translate:Y7(e,t,l[n]),target:()=>c.get()>s?a:o}}))}return{canLoop:function(){return d.every((({index:e})=>p(u.filter((t=>t!==e)),n)<=.1))},clear:function(){d.forEach((e=>e.translate.clear()))},loop:function(){d.forEach((e=>{const{target:t,translate:n,slideLocation:r}=e,a=t();a!==r.get()&&(n.to(a),r.set(a))}))},loopPoints:d}}function eZ(e,t,n){let r,a=!1;return{init:function(o){n&&(r=new MutationObserver((e=>{a||(dA(n)||n(o,e))&&function(e){for(const n of e)if("childList"===n.type){o.reInit(),t.emit("slidesChanged");break}}(e)})),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),a=!0}}}function tZ(e,t,n,r){const a={};let o,i=null,s=null,c=!1;return{init:function(){o=new IntersectionObserver((e=>{c||(e.forEach((e=>{const n=t.indexOf(e.target);a[n]=e})),i=null,s=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:r}),t.forEach((e=>o.observe(e)))},destroy:function(){o&&o.disconnect(),c=!0},get:function(e=!0){if(e&&i)return i;if(!e&&s)return s;const t=function(e){return Zy(a).reduce(((t,n)=>{const r=parseInt(n),{isIntersecting:o}=a[r];return(e&&o||!e&&!o)&&t.push(r),t}),[])}(e);return e&&(i=t),e||(s=t),t}}}function nZ(e,t,n,r,a,o){const{measureSize:i,startEdge:s,endEdge:c}=e,l=n[0]&&a,u=function(){if(!l)return 0;const e=n[0];return fr(t[s]-e[s])}(),f=function(){if(!l)return 0;const e=o.getComputedStyle(Oc(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}(),d=n.map(i),p=n.map(((e,t,n)=>{const r=!t,a=hA(n,t);return r?d[t]+u:a?d[t]+f:n[t+1][s]-e[s]})).map(fr);return{slideSizes:d,slideSizesWithGaps:p,startGap:u,endGap:f}}function rZ(e,t,n,r,a,o,i,s,c,l){const{startEdge:u,endEdge:f}=e,d=uA(r);return{groupSlides:function(e){return d?function(e,t){return Yy(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,r):function(e){return e.length?Yy(e).reduce(((r,d)=>{const p=Oc(r)||0,h=0===p,m=d===L_(e),y=o[u]-i[p][u],g=o[u]-i[d][f],v=!a&&h?t.apply(s):0;return fr(g-(!a&&m?t.apply(c):0)-(y+v))>n+l&&r.push(d),m&&r.push(e.length),r}),[]).map(((t,n,r)=>{const a=Math.max(r[n-1]||0);return e.slice(a,t)})):[]}(e)}}}function aZ(e,t,n,r,a,o,i){const{align:s,axis:c,direction:l,startIndex:u,loop:f,duration:d,dragFree:p,dragThreshold:h,inViewThreshold:m,slidesToScroll:y,skipSnaps:g,containScroll:v,watchResize:b,watchSlides:_,watchDrag:w}=o,k=jY(),x=k.measure(t),S=n.map(k.measure),E=DY(l),A=MY(c,l),z=A.measureSize(x),C=BY(z),I=OY(s,z),T=!f&&!!v,R=f||!!v,{slideSizes:P,slideSizesWithGaps:j,startGap:O,endGap:N}=nZ(A,x,S,n,R,a),M=rZ(A,E,z,y,f,x,S,O,N,2),{snaps:D,snapsAligned:F}=KY(A,I,x,S,M),L=-Oc(D)+Oc(j),{snapsContained:V,scrollContainLimit:q}=qY(z,L,F,v,2),B=T?V:F,{limit:U}=WY(L,B,f),$=Q7(L_(B),u,f),W=$.clone(),H=Yy(n),G=zY(r,a,(()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(ie)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:a,slideLooper:o,dragHandler:i,animation:s,eventHandler:c,options:{loop:l}},u)=>{const f=e.velocity(),d=e.settled();d&&!i.pointerDown()&&(s.stop(),c.emit("settle")),d||c.emit("scroll"),r.set(n.get()-f+f*u),l&&(a.loop(e.direction()),o.loop()),t.to(r.get())})(ie,e))),K=B[$.get()],Q=Ob(K),Y=Ob(K),Z=Ob(K),X=UY(Q,Y,Z,d,.68),J=YY(f,B,L,U,Z),ee=ZY(G,$,W,X,J,Z,i),te=GY(U),ne=Xy(),re=tZ(t,n,i,m),{slideRegistry:ae}=QY(T,v,B,q,M,H),oe=XY(e,n,ae,ee,X,ne),ie={ownerDocument:r,ownerWindow:a,eventHandler:i,containerRect:x,slideRects:S,animation:G,axis:A,direction:E,dragHandler:NY(A,E,e,r,a,Z,LY(A,a),Q,G,ee,X,J,$,i,C,p,h,g,.68,w),eventStore:ne,percentOfView:C,index:$,indexPrevious:W,limit:U,location:Q,offsetLocation:Y,options:o,resizeHandler:FY(t,i,a,n,A,b,k),scrollBody:X,scrollBounds:VY(U,Y,Z,X,C),scrollLooper:HY(L,U,Y,[Q,Y,Z]),scrollProgress:te,scrollSnapList:B.map(te.get),scrollSnaps:B,scrollTarget:J,scrollTo:ee,slideLooper:JY(A,E,z,L,P,j,D,B,Y,n),slideFocus:oe,slidesHandler:eZ(t,i,_),slidesInView:re,slideIndexes:H,slideRegistry:ae,slidesToScroll:M,target:Z,translate:Y7(A,E,t)};return ie}function oZ(){const e={};let t;function n(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),r},off:function(t,a){return e[t]=n(t).filter((e=>e!==a)),r},on:function(t,a){return e[t]=n(t).concat([a]),r}};return r}AY.displayName="CardFooter";const iZ={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function sZ(e){function t(e,t){return G7(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},a=Zy(r).filter((t=>e.matchMedia(t).matches)).map((e=>r[e])).reduce(((e,n)=>t(e,n)),{});return t(n,a)},optionsMediaQueries:function(t){return t.map((e=>Zy(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}}}function cZ(e){let t=[];return{init:function(n,r){return t=r.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),r.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}function Xb(e,t,n){const r=e.ownerDocument,a=r.defaultView,o=sZ(a),i=cZ(o),s=Xy(),c=oZ(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:f}=o,{on:d,off:p,emit:h}=c,m=A;let y,g,v,b,_=!1,w=l(iZ,Xb.globalOptions),k=l(w),x=[];function S(t){const n=aZ(e,v,b,r,a,t,c);if(t.loop&&!n.slideLooper.canLoop()){return S(Object.assign({},t,{loop:!1}))}return n}function E(t,n){_||(w=l(w,t),k=u(w),x=n||x,function(){const{container:t,slides:n}=k;v=(EC(t)?e.querySelector(t):t)||e.children[0];const r=EC(n)?v.querySelectorAll(n):n;b=[].slice.call(r||v.children)}(),y=S(k),f([w,...x.map((({options:e})=>e))]).forEach((e=>s.add(e,"change",A))),k.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(),y.eventHandler.init(T),y.resizeHandler.init(T),y.slidesHandler.init(T),y.options.loop&&y.slideLooper.loop(),v.offsetParent&&b.length&&y.dragHandler.init(T),g=i.init(T,x)))}function A(e,t){const n=I();z(),E(l({startIndex:n},e),t),c.emit("reInit")}function z(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),i.destroy(),s.clear()}function C(e,t,n){!k.active||_||(y.scrollBody.useBaseFriction().useDuration(!0===t?0:k.duration),y.scrollTo.index(e,n||0))}function I(){return y.index.get()}const T={canScrollNext:function(){return y.index.add(1).get()!==I()},canScrollPrev:function(){return y.index.add(-1).get()!==I()},containerNode:function(){return v},internalEngine:function(){return y},destroy:function(){_||(_=!0,s.clear(),z(),c.emit("destroy"))},off:p,on:d,emit:h,plugins:function(){return g},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:m,rootNode:function(){return e},scrollNext:function(e){C(y.index.add(1).get(),e,-1)},scrollPrev:function(e){C(y.index.add(-1).get(),e,1)},scrollProgress:function(){return y.scrollProgress.get(y.location.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:C,selectedScrollSnap:I,slideNodes:function(){return b},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return E(t,n),setTimeout((()=>c.emit("init")),0),T}function mA(e={},t=[]){const n=v.useRef(e),r=v.useRef(t),[a,o]=v.useState(),[i,s]=v.useState(),c=v.useCallback((()=>{a&&a.reInit(n.current,r.current)}),[a]);return v.useEffect((()=>{if(IY()&&i){Xb.globalOptions=mA.globalOptions;const e=Xb(i,n.current,r.current);return o(e),()=>e.destroy()}o(void 0)}),[i,o]),v.useEffect((()=>{fA(n.current,e)||(n.current=e,c())}),[e,c]),v.useEffect((()=>{PY(r.current,t)||(r.current=t,c())}),[t,c]),[s,a]}Xb.globalOptions=void 0,mA.globalOptions=void 0;const Z7=Yl("",{variants:{variant:{fullHeight:"absolute bg-base_white_90 top-[0] h-[calc(100%-35px)] w-[32px] border-0 rounded-none transform-none text-slate-700 [&>svg]:text-slate-700 [&>svg]:size-[37px] [&>svg]:stroke-[3px]",bottom:"size-5 bottom-[0] rounded-[2px] bg-slate-900_50 disabled:opacity-1 hover:bg-slate-900_50 [&:disabled>svg]:text-slate-900_20 [&>svg]:text-white [&>svg]:size-5"},position:{left:"",right:""}},compoundVariants:[{variant:"fullHeight",position:"left",class:"rounded-tl-[6px] left-0"},{variant:"fullHeight",position:"right",class:"rounded-tr-[6px] right-0"},{variant:"bottom",position:"left",class:"mr-[6px]"}]}),X7=v.createContext(null),ik=()=>{const e=v.useContext(X7);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e},lZ=v.forwardRef((({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:a,children:o,...i},s)=>{const[c,l]=mA({...t,axis:"horizontal"===e?"x":"y"},r),[u,f]=v.useState(!1),[d,p]=v.useState(!1),h=v.useCallback((e=>{e&&(f(e.canScrollPrev()),p(e.canScrollNext()))}),[]),m=v.useCallback((()=>{null==l||l.scrollPrev()}),[l]),y=v.useCallback((()=>{null==l||l.scrollNext()}),[l]),g=v.useCallback((e=>{"ArrowLeft"===e.key?(e.preventDefault(),m()):"ArrowRight"===e.key&&(e.preventDefault(),y())}),[m,y]);return v.useEffect((()=>{!l||!n||n(l)}),[l,n]),v.useEffect((()=>{if(l)return h(l),l.on("reInit",h),l.on("select",h),()=>{null==l||l.off("select",h)}}),[l,h]),F.jsx(X7.Provider,{value:{carouselRef:c,api:l,opts:t,orientation:e||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:m,scrollNext:y,canScrollPrev:u,canScrollNext:d},children:F.jsx("div",{ref:s,onKeyDownCapture:g,className:$e("relative",a),role:"region","aria-roledescription":"carousel",...i,children:o})})}));lZ.displayName="Carousel";const fZ=v.forwardRef((({className:e,...t},n)=>{const{carouselRef:r,orientation:a}=ik();return F.jsx("div",{ref:r,children:F.jsx("div",{ref:n,className:$e("flex","horizontal"===a?"":"-mt-4 flex-col",e),...t})})}));fZ.displayName="CarouselContent";const uZ=v.forwardRef((({className:e,sideGap:t,isFullPreview:n,...r},a)=>{const{orientation:o}=ik();return F.jsx("div",{ref:a,role:"group","aria-roledescription":"slide",style:{...n&&{width:"100%"},marginRight:t&&`${t}px`,maxWidth:t&&`calc(100% - ${t}px)`},className:$e("min-w-0 shrink-0 grow-0","horizontal"===o?!t&&"pr-[10px]":"pt-4",e),...r})}));uZ.displayName="CarouselItem";const dZ=v.forwardRef((({className:e,variant:t="fullHeight",size:n="icon_m",...r},a)=>{const{scrollPrev:o,canScrollPrev:i,opts:s}=ik(),c=$e(("fullHeight"===t&&!i||!(null!=s&&s.active))&&"hidden",Z7({variant:t,position:"left"}),e);return F.jsxs(Jw,{ref:a,variant:"primary",size:n,className:c,disabled:!i,onClick:o,...r,children:[F.jsx(Y8,{}),F.jsx("span",{className:"sr-only",children:"Previous slide"})]})}));dZ.displayName="CarouselPrevious";const pZ=v.forwardRef((({className:e,variant:t="fullHeight",size:n="icon_m",...r},a)=>{const{scrollNext:o,canScrollNext:i,opts:s}=ik(),c=$e(("fullHeight"===t&&!i||!(null!=s&&s.active))&&"hidden",Z7({variant:t,position:"right"}),e);return F.jsxs(Jw,{ref:a,variant:"primary",size:n,className:c,disabled:!i,onClick:o,...r,children:[F.jsx(Z8,{}),F.jsx("span",{className:"sr-only",children:"Next slide"})]})}));var g3,H9,y3,G9,_3,K9,v3,Q9,b3,Y9,w3,Z9,k3,X9,x3,J9,S3,eP,E3,tP,C3,nP,R3,rP,A3,aP,T3,oP,I3,iP,P3,sP,$3,cP,O3,lP,z3,fP,M3,uP,D3,dP,N3,pP,L3,hP,j3,mP,B3,gP,F3,yP,U3,_P,V3,vP,q3,bP,W3,wP,H3,kP,G3,xP,K3,SP,Q3,EP,Y3,CP,Z3,RP,X3,AP,J3,TP,eS,IP,tS,PP,nS,$P,rS,OP,aS,zP,oS,MP,iS,DP,sS,NP,cS,LP,lS,jP,fS,BP,uS,FP,dS,UP,pS,VP,hS,qP;function Ai(){if(H9)return g3;H9=1;var e=Array.isArray;return g3=e}function J7(){if(G9)return y3;G9=1;var e="object"==typeof js&&js&&js.Object===Object&&js;return y3=e}function si(){if(K9)return _3;K9=1;var e=J7(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _3=n}function H1(){if(Q9)return v3;Q9=1;var e=si().Symbol;return v3=e}function hZ(){if(Y9)return b3;Y9=1;var e=H1(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;return b3=function(e){var t=n.call(e,a),o=e[a];try{e[a]=void 0;var i=!0}catch{}var s=r.call(e);return i&&(t?e[a]=o:delete e[a]),s}}function mZ(){if(Z9)return w3;Z9=1;var e=Object.prototype.toString;return w3=function(t){return e.call(t)}}function xu(){if(X9)return k3;X9=1;var e=H1(),t=hZ(),n=mZ(),r=e?e.toStringTag:void 0;return k3=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function os(){if(J9)return x3;return J9=1,x3=function(e){return null!=e&&"object"==typeof e}}function j_(){if(eP)return S3;eP=1;var e=xu(),t=os();return S3=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function gA(){if(tP)return E3;tP=1;var e=Ai(),t=j_(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return E3=function(a,o){if(e(a))return!1;var i=typeof a;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=a&&!t(a))||(r.test(a)||!n.test(a)||null!=o&&a in Object(o))}}function Uc(){if(nP)return C3;return nP=1,C3=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function sk(){if(rP)return R3;rP=1;var e=xu(),t=Uc();return R3=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function gZ(){if(aP)return A3;aP=1;var e=si()["__core-js_shared__"];return A3=e}function yZ(){if(oP)return T3;oP=1;var e,t=gZ(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return T3=function(e){return!!n&&n in e},T3}function e5(){if(iP)return I3;iP=1;var e=Function.prototype.toString;return I3=function(t){if(null!=t){try{return e.call(t)}catch{}try{return t+""}catch{}}return""}}function _Z(){if(sP)return P3;sP=1;var e=sk(),t=yZ(),n=Uc(),r=e5(),a=/^\[object .+?Constructor\]$/,o=Function.prototype,i=Object.prototype,s=o.toString,c=i.hasOwnProperty,l=RegExp("^"+s.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return P3=function(o){return!(!n(o)||t(o))&&(e(o)?l:a).test(r(o))}}function vZ(){if(cP)return $3;return cP=1,$3=function(e,t){return null==e?void 0:e[t]}}function Am(){if(lP)return O3;lP=1;var e=_Z(),t=vZ();return O3=function(n,r){var a=t(n,r);return e(a)?a:void 0}}function ck(){if(fP)return z3;fP=1;var e=Am()(Object,"create");return z3=e}function bZ(){if(uP)return M3;uP=1;var e=ck();return M3=function(){this.__data__=e?e(null):{},this.size=0}}function wZ(){if(dP)return D3;return dP=1,D3=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}function kZ(){if(pP)return N3;pP=1;var e=ck(),t=Object.prototype.hasOwnProperty;return N3=function(n){var r=this.__data__;if(e){var a=r[n];return"__lodash_hash_undefined__"===a?void 0:a}return t.call(r,n)?r[n]:void 0}}function xZ(){if(hP)return L3;hP=1;var e=ck(),t=Object.prototype.hasOwnProperty;return L3=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}function SZ(){if(mP)return j3;mP=1;var e=ck();return j3=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}function EZ(){if(gP)return B3;gP=1;var e=bZ(),t=wZ(),n=kZ(),r=xZ(),a=SZ();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,B3=o}function CZ(){if(yP)return F3;return yP=1,F3=function(){this.__data__=[],this.size=0}}function yA(){if(_P)return U3;return _P=1,U3=function(e,t){return e===t||e!=e&&t!=t}}function lk(){if(vP)return V3;vP=1;var e=yA();return V3=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function RZ(){if(bP)return q3;bP=1;var e=lk(),t=Array.prototype.splice;return q3=function(n){var r=this.__data__,a=e(r,n);return!(a<0)&&(a==r.length-1?r.pop():t.call(r,a,1),--this.size,!0)}}function AZ(){if(wP)return W3;wP=1;var e=lk();return W3=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}function TZ(){if(kP)return H3;kP=1;var e=lk();return H3=function(t){return e(this.__data__,t)>-1}}function IZ(){if(xP)return G3;xP=1;var e=lk();return G3=function(t,n){var r=this.__data__,a=e(r,t);return a<0?(++this.size,r.push([t,n])):r[a][1]=n,this}}function fk(){if(SP)return K3;SP=1;var e=CZ(),t=RZ(),n=AZ(),r=TZ(),a=IZ();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,K3=o}function _A(){if(EP)return Q3;EP=1;var e=Am()(si(),"Map");return Q3=e}function PZ(){if(CP)return Y3;CP=1;var e=EZ(),t=fk(),n=_A();return Y3=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}function $Z(){if(RP)return Z3;return RP=1,Z3=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}function uk(){if(AP)return X3;AP=1;var e=$Z();return X3=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function OZ(){if(TP)return J3;TP=1;var e=uk();return J3=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}function zZ(){if(IP)return eS;IP=1;var e=uk();return eS=function(t){return e(this,t).get(t)}}function MZ(){if(PP)return tS;PP=1;var e=uk();return tS=function(t){return e(this,t).has(t)}}function DZ(){if($P)return nS;$P=1;var e=uk();return nS=function(t,n){var r=e(this,t),a=r.size;return r.set(t,n),this.size+=r.size==a?0:1,this}}function vA(){if(OP)return rS;OP=1;var e=PZ(),t=OZ(),n=zZ(),r=MZ(),a=DZ();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,rS=o}function NZ(){if(zP)return aS;zP=1;var e=vA();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var a=function(){var e=arguments,t=r?r.apply(this,e):e[0],o=a.cache;if(o.has(t))return o.get(t);var i=n.apply(this,e);return a.cache=o.set(t,i)||o,i};return a.cache=new(t.Cache||e),a}return t.Cache=e,aS=t}function LZ(){if(MP)return oS;MP=1;var e=NZ();return oS=function(t){var n=e(t,(function(e){return 500===r.size&&r.clear(),e})),r=n.cache;return n}}function t5(){if(DP)return iS;DP=1;var e=LZ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,(function(e,t,a,o){r.push(a?o.replace(n,"$1"):t||e)})),r}));return iS=r}function n5(){if(NP)return sS;return NP=1,sS=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}}function jZ(){if(LP)return cS;LP=1;var e=H1(),t=n5(),n=Ai(),r=j_(),a=1/0,o=e?e.prototype:void 0,i=o?o.toString:void 0;return cS=function e(o){if("string"==typeof o)return o;if(n(o))return t(o,e)+"";if(r(o))return i?i.call(o):"";var s=o+"";return"0"==s&&1/o==-a?"-0":s},cS}function r5(){if(jP)return lS;jP=1;var e=jZ();return lS=function(t){return null==t?"":e(t)}}function a5(){if(BP)return fS;BP=1;var e=Ai(),t=gA(),n=t5(),r=r5();return fS=function(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}}function B_(){if(FP)return uS;FP=1;var e=j_(),t=1/0;return uS=function(n){if("string"==typeof n||e(n))return n;var r=n+"";return"0"==r&&1/n==-t?"-0":r}}function o5(){if(UP)return dS;UP=1;var e=a5(),t=B_();return dS=function(n,r){for(var a=0,o=(r=e(r,n)).length;null!=n&&a<o;)n=n[t(r[a++])];return a&&a==o?n:void 0}}function i5(){if(VP)return pS;VP=1;var e=o5();return pS=function(t,n,r){var a=null==t?void 0:e(t,n);return void 0===a?r:a}}function BZ(){if(qP)return hS;qP=1;var e=xu(),t=Ai(),n=os();return hS=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}pZ.displayName="CarouselNext",i5();var FZ=BZ();const UZ=Ql(FZ);sk(),Uc();var WP,HP,gS,GP,yS,KP,mS={exports:{}},Pn={};
69
+ */}function zK(){if(A9)return Ei;A9=1;var e=Xw(),t=OK();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function o(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},f={};function d(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new d(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new d(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new d(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new d(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new d(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new d(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new d(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new d(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new d(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function y(e,t,n,r){var a=p.hasOwnProperty(t)?p[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||typeof t>"u"||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!c.call(f,e)||!c.call(u,e)&&(l.test(e)?f[e]=!0:(u[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new d(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new d(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);p[t]=new d(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new d(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new d("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new d(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.element"),b=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),S=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),R=Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var j,O=Object.assign;function N(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var M=!1;function D(e,t){if(!e||M)return"";M=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s]){var c="\n"+a[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=i&&0<=s);break}}}finally{M=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function F(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1);case 11:return e=D(e.type.render,!1);case 1:return e=D(e.type,!0);default:return""}}function L(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case b:return"Portal";case k:return"Profiler";case w:return"StrictMode";case A:return"Suspense";case z:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case x:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:L(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return L(e(t))}catch{}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return L(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function B(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=B(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=B(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function H(e,t){var n=t.checked;return O({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Q(e,t){K(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Z(e,t.type,n):t.hasOwnProperty("defaultValue")&&Z(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Z(e,t,n){("number"!==t||W(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var X=Array.isArray;function J(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return O({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(X(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:q(r)}}function ne(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function oe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ie,se,ce=(se=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ie=ie||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return se(e,t)}))}:se);function le(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ue={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function de(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ue.hasOwnProperty(e)&&ue[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=de(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ue).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ue[t]=ue[e]}))}));var he=O({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ge=null;function ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,_e=null,we=null;function ke(e){if(e=ya(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=va(t),be(e.stateNode,e.type,t))}}function xe(e){_e?we?we.push(e):we=[e]:_e=e}function Se(){if(_e){var e=_e,t=we;if(we=_e=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ee(e,t){return e(t)}function Ae(){}var ze=!1;function Ce(e,t,n){if(ze)return e(t,n);ze=!0;try{return Ee(e,t,n)}finally{ze=!1,(null!==_e||null!==we)&&(Ae(),Se())}}function Ie(e,t){var r=e.stateNode;if(null===r)return null;var a=va(r);if(null===a)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Te=!1;if(s)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch{Te=!1}function Pe(e,t,n,r,a,o,i,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var je=!1,Oe=null,Ne=!1,Me=null,De={onError:function(e){je=!0,Oe=e}};function Fe(e,t,n,r,a,o,i,s,c){je=!1,Oe=null,Pe.apply(De,arguments)}function Le(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{4098&(t=e).flags&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function qe(e){if(Le(e)!==e)throw Error(n(188))}function Be(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Le(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(a=o.return)){r=a;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return qe(o),e;if(i===a)return qe(o),t;i=i.sibling}throw Error(n(188))}if(r.return!==a.return)r=o,a=i;else{for(var s=!1,c=o.child;c;){if(c===r){s=!0,r=o,a=i;break}if(c===a){s=!0,a=o,r=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===r){s=!0,r=i,a=o;break}if(c===a){s=!0,a=i,r=o;break}c=c.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var $e=t.unstable_scheduleCallback,We=t.unstable_cancelCallback,He=t.unstable_shouldYield,Ge=t.unstable_requestPaint,Ke=t.unstable_now,Qe=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,Ze=t.unstable_UserBlockingPriority,Xe=t.unstable_NormalPriority,Je=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=null,nt=null;var rt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(at(e)/ot|0)|0},at=Math.log,ot=Math.LN2;var it=64,st=4194304;function ct(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function lt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~a;0!==s?r=ct(s):0!==(o&=i)&&(r=ct(o))}else 0!==(i=n&~a)?r=ct(i):0!==o&&(r=ct(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-rt(t)),r|=e[n],t&=~a;return r}function ut(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function dt(){var e=it;return!(4194240&(it<<=1))&&(it=64),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var yt=0;function gt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var vt,bt,_t,wt,kt,xt=!1,St=[],Et=null,At=null,zt=null,Ct=new Map,It=new Map,Tt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Pt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":zt=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function jt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=ya(t))&&bt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ot(e){var t=ma(e.target);if(null!==t){var n=Le(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void kt(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ht(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ya(n))&&bt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Mt(e,t,n){Nt(e)&&n.delete(t)}function Dt(){xt=!1,null!==Et&&Nt(Et)&&(Et=null),null!==At&&Nt(At)&&(At=null),null!==zt&&Nt(zt)&&(zt=null),Ct.forEach(Mt),It.forEach(Mt)}function Ft(e,n){e.blockedOn===n&&(e.blockedOn=null,xt||(xt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Dt)))}function Lt(e){function t(t){return Ft(t,e)}if(0<St.length){Ft(St[0],e);for(var n=1;n<St.length;n++){var r=St[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Ft(Et,e),null!==At&&Ft(At,e),null!==zt&&Ft(zt,e),Ct.forEach(t),It.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Ot(n),null===n.blockedOn&&Tt.shift()}var Vt=g.ReactCurrentBatchConfig,qt=!0;function Bt(e,t,n,r){var a=yt,o=Vt.transition;Vt.transition=null;try{yt=1,$t(e,t,n,r)}finally{yt=a,Vt.transition=o}}function Ut(e,t,n,r){var a=yt,o=Vt.transition;Vt.transition=null;try{yt=4,$t(e,t,n,r)}finally{yt=a,Vt.transition=o}}function $t(e,t,n,r){if(qt){var a=Ht(e,t,n,r);if(null===a)qr(e,t,r,Wt,n),Pt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Et=jt(Et,e,t,n,r,a),!0;case"dragenter":return At=jt(At,e,t,n,r,a),!0;case"mouseover":return zt=jt(zt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Ct.set(o,jt(Ct.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,It.set(o,jt(It.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Pt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==a;){var o=ya(a);if(null!==o&&vt(o),null===(o=Ht(e,t,n,r))&&qr(e,t,r,Wt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else qr(e,t,r,null,n)}}var Wt=null;function Ht(e,t,n,r){if(Wt=null,null!==(e=ma(e=ve(r))))if(null===(t=Le(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Ye:return 1;case Ze:return 4;case Xe:case Je:return 16;case et:return 536870912;default:return 16}default:return 16}}var Kt=null,Qt=null,Yt=null;function Zt(){if(Yt)return Yt;var e,t,n=Qt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Yt=a.slice(e,1<t?1-t:void 0)}function Xt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Jt(){return!0}function en(){return!1}function tn(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Jt:en,this.isPropagationStopped=en,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Jt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Jt)},persist:function(){},isPersistent:Jt}),t}var nn,rn,an,on={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sn=tn(on),cn=O({},on,{view:0,detail:0}),ln=tn(cn),un=O({},cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(nn=e.screenX-an.screenX,rn=e.screenY-an.screenY):rn=nn=0,an=e),nn)},movementY:function(e){return"movementY"in e?e.movementY:rn}}),fn=tn(un),dn=tn(O({},un,{dataTransfer:0})),pn=tn(O({},cn,{relatedTarget:0})),hn=tn(O({},on,{animationName:0,elapsedTime:0,pseudoElement:0})),mn=O({},on,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=tn(mn),gn=tn(O({},on,{data:0})),vn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function kn(){return wn}var xn=O({},cn,{key:function(e){if(e.key){var t=vn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?Xt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=tn(xn),En=tn(O({},un,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=tn(O({},cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),zn=tn(O({},on,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cn=O({},un,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=tn(Cn),Tn=[9,13,27,32],Rn=s&&"CompositionEvent"in window,Pn=null;s&&"documentMode"in document&&(Pn=document.documentMode);var jn=s&&"TextEvent"in window&&!Pn,On=s&&(!Rn||Pn&&8<Pn&&11>=Pn),Nn=" ",Mn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Bn(e,t,n,r){xe(r),0<(t=Ur(t,"onChange")).length&&(n=new sn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,$n=null;function Wn(e){Nr(e,0)}function Hn(e){if($(ga(e)))return e}function Gn(e,t){if("change"===e)return t}var Kn=!1;if(s){var Qn;if(s){var Yn="oninput"in document;if(!Yn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Yn="function"==typeof Zn.oninput}Qn=Yn}else Qn=!1;Kn=Qn&&(!document.documentMode||9<document.documentMode)}function Xn(){Un&&(Un.detachEvent("onpropertychange",Jn),$n=Un=null)}function Jn(e){if("value"===e.propertyName&&Hn($n)){var t=[];Bn(t,$n,e,ve(e)),Ce(Wn,t)}}function er(e,t,n){"focusin"===e?(Xn(),$n=n,(Un=t).attachEvent("onpropertychange",Jn)):"focusout"===e&&Xn()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Hn($n)}function nr(e,t){if("click"===e)return Hn(t)}function rr(e,t){if("input"===e||"change"===e)return Hn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!c.call(t,a)||!ar(e[a],t[a]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sr(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function cr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?cr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function lr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cr(n.ownerDocument.documentElement,n)){if(null!==r&&ur(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=sr(n,o);var i=sr(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dr=s&&"documentMode"in document&&11>=document.documentMode,pr=null,hr=null,mr=null,yr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==pr||pr!==W(r)||("selectionStart"in(r=pr)&&ur(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&or(mr,r)||(mr=r,0<(r=Ur(hr,"onSelect")).length&&(t=new sn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionend:vr("Transition","TransitionEnd")},_r={},wr={};function kr(e){if(_r[e])return _r[e];if(!br[e])return e;var t,n=br[e];for(t in n)if(n.hasOwnProperty(t)&&t in wr)return _r[e]=n[t];return e}s&&(wr=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);var xr=kr("animationend"),Sr=kr("animationiteration"),Er=kr("animationstart"),Ar=kr("transitionend"),zr=new Map,Cr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){zr.set(e,t),o(t,[e])}for(var Tr=0;Tr<Cr.length;Tr++){var Rr=Cr[Tr];Ir(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Ir(xr,"onAnimationEnd"),Ir(Sr,"onAnimationIteration"),Ir(Er,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Ar,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function Or(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,o,i,s,c,l){if(Fe.apply(this,arguments),je){if(!je)throw Error(n(198));var u=Oe;je=!1,Oe=null,Ne||(Ne=!0,Me=u)}}(a,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&a.isPropagationStopped())break e;Or(a,s,l),o=c}else for(i=0;i<r.length;i++){if(c=(s=r[i]).instance,l=s.currentTarget,s=s.listener,c!==o&&a.isPropagationStopped())break e;Or(a,s,l),o=c}}}if(Ne)throw e=Me,Ne=!1,Me=null,e}function Mr(e,t){var n=t[da];void 0===n&&(n=t[da]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function Dr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function Lr(e){if(!e[Fr]){e[Fr]=!0,r.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||Dr(t,!1,e),Dr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,Dr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Gt(t)){case 1:var a=Bt;break;case 4:a=Ut;break;default:a=$t}n=a.bind(null,t,n,e),a=void 0,!Te||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function qr(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var c=i.tag;if((3===c||4===c)&&((c=i.stateNode.containerInfo)===a||8===c.nodeType&&c.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ma(s)))return;if(5===(c=i.tag)||6===c){r=o=i;continue e}s=s.parentNode}}r=r.return}Ce((function(){var r=o,a=ve(n),i=[];e:{var s=zr.get(e);if(void 0!==s){var c=sn,l=e;switch(e){case"keypress":if(0===Xt(n))break e;case"keydown":case"keyup":c=Sn;break;case"focusin":l="focus",c=pn;break;case"focusout":l="blur",c=pn;break;case"beforeblur":case"afterblur":c=pn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=dn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=An;break;case xr:case Sr:case Er:c=hn;break;case Ar:c=zn;break;case"scroll":c=ln;break;case"wheel":c=In;break;case"copy":case"cut":case"paste":c=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=En}var u=!!(4&t),f=!u&&"scroll"===e,d=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Ie(h,d))&&u.push(Br(h,m,p)))),f)break;h=h.return}0<u.length&&(s=new c(s,l,null,n,a),i.push({event:s,listeners:u}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ge||!(l=n.relatedTarget||n.fromElement)||!ma(l)&&!l[fa])&&(c||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?ma(l):null)&&(l!==(f=Le(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(u=fn,m="onMouseLeave",d="onMouseEnter",h="mouse",("pointerout"===e||"pointerover"===e)&&(u=En,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==c?s:ga(c),p=null==l?s:ga(l),(s=new u(m,h+"leave",c,n,a)).target=f,s.relatedTarget=p,m=null,ma(a)===r&&((u=new u(d,h+"enter",l,n,a)).target=p,u.relatedTarget=f,m=u),f=m,c&&l)e:{for(d=l,h=0,p=u=c;p;p=$r(p))h++;for(p=0,m=d;m;m=$r(m))p++;for(;0<h-p;)u=$r(u),h--;for(;0<p-h;)d=$r(d),p--;for(;h--;){if(u===d||null!==d&&u===d.alternate)break e;u=$r(u),d=$r(d)}u=null}else u=null;null!==c&&Wr(i,s,c,u,!1),null!==l&&null!==f&&Wr(i,f,l,u,!0)}if("select"===(c=(s=r?ga(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var y=Gn;else if(qn(s))if(Kn)y=rr;else{y=tr;var g=er}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(y=nr);switch(y&&(y=y(e,r))?Bn(i,y,n,a):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&Z(s,"number",s.value)),g=r?ga(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(pr=g,hr=r,mr=null);break;case"focusout":mr=hr=pr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,gr(i,n,a);break;case"selectionchange":if(dr)break;case"keydown":case"keyup":gr(i,n,a)}var v;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Ln?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==b?"onCompositionEnd"===b&&Ln&&(v=Zt()):(Qt="value"in(Kt=a)?Kt.value:Kt.textContent,Ln=!0)),0<(g=Ur(r,b)).length&&(b=new gn(b,e,null,n,a),i.push({event:b,listeners:g}),v?b.data=v:null!==(v=Fn(n))&&(b.data=v))),(v=jn?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(Mn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Mn?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Rn&&Dn(e,t)?(e=Zt(),Yt=Qt=Kt=null,Ln=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return On&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(a=new gn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=v))}Nr(i,t)}))}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Ie(e,n))&&r.unshift(Br(e,o,a)),null!=(o=Ie(e,t))&&r.push(Br(e,o,a))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===r)break;5===s.tag&&null!==l&&(s=l,a?null!=(c=Ie(n,o))&&i.unshift(Br(n,c,s)):a||null!=(c=Ie(n,o))&&i.push(Br(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Hr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Hr,"\n").replace(Gr,"")}function Qr(e,t,r){if(t=Kr(t),Kr(e)!==t&&r)throw Error(n(425))}function Yr(){}var Zr=null,Xr=null;function Jr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ea="function"==typeof setTimeout?setTimeout:void 0,ta="function"==typeof clearTimeout?clearTimeout:void 0,na="function"==typeof Promise?Promise:void 0,ra="function"==typeof queueMicrotask?queueMicrotask:typeof na<"u"?function(e){return na.resolve(null).then(e).catch(aa)}:ea;function aa(e){setTimeout((function(){throw e}))}function oa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Lt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Lt(t)}function ia(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function sa(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ca=Math.random().toString(36).slice(2),la="__reactFiber$"+ca,ua="__reactProps$"+ca,fa="__reactContainer$"+ca,da="__reactEvents$"+ca,pa="__reactListeners$"+ca,ha="__reactHandles$"+ca;function ma(e){var t=e[la];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fa]||n[la]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=sa(e);null!==e;){if(n=e[la])return n;e=sa(e)}return t}n=(e=n).parentNode}return null}function ya(e){return!(e=e[la]||e[fa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ga(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function va(e){return e[ua]||null}var ba=[],_a=-1;function wa(e){return{current:e}}function ka(e){0>_a||(e.current=ba[_a],ba[_a]=null,_a--)}function xa(e,t){_a++,ba[_a]=e.current,e.current=t}var Sa={},Ea=wa(Sa),Aa=wa(!1),za=Sa;function Ca(e,t){var n=e.type.contextTypes;if(!n)return Sa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ia(e){return null!=(e=e.childContextTypes)}function Ta(){ka(Aa),ka(Ea)}function Ra(e,t,r){if(Ea.current!==Sa)throw Error(n(168));xa(Ea,t),xa(Aa,r)}function Pa(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var o in a=a.getChildContext())if(!(o in t))throw Error(n(108,V(e)||"Unknown",o));return O({},r,a)}function ja(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sa,za=Ea.current,xa(Ea,e),xa(Aa,Aa.current),!0}function Oa(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=Pa(e,t,za),a.__reactInternalMemoizedMergedChildContext=e,ka(Aa),ka(Ea),xa(Ea,e)):ka(Aa),xa(Aa,r)}var Na=null,Ma=!1,Da=!1;function Fa(e){null===Na?Na=[e]:Na.push(e)}function La(){if(!Da&&null!==Na){Da=!0;var e=0,t=yt;try{var n=Na;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Na=null,Ma=!1}catch(t){throw null!==Na&&(Na=Na.slice(e+1)),$e(Ye,La),t}finally{yt=t,Da=!1}}return null}var Va=[],qa=0,Ba=null,Ua=0,$a=[],Wa=0,Ha=null,Ga=1,Ka="";function Qa(e,t){Va[qa++]=Ua,Va[qa++]=Ba,Ba=e,Ua=t}function Ya(e,t,n){$a[Wa++]=Ga,$a[Wa++]=Ka,$a[Wa++]=Ha,Ha=e;var r=Ga;e=Ka;var a=32-rt(r)-1;r&=~(1<<a),n+=1;var o=32-rt(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ga=1<<32-rt(t)+a|n<<a|r,Ka=o+e}else Ga=1<<o|n<<a|r,Ka=e}function Za(e){null!==e.return&&(Qa(e,1),Ya(e,1,0))}function Xa(e){for(;e===Ba;)Ba=Va[--qa],Va[qa]=null,Ua=Va[--qa],Va[qa]=null;for(;e===Ha;)Ha=$a[--Wa],$a[Wa]=null,Ka=$a[--Wa],$a[Wa]=null,Ga=$a[--Wa],$a[Wa]=null}var Ja=null,eo=null,to=!1,no=null;function ro(e,t){var n=Tl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ao(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Ja=e,eo=ia(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Ja=e,eo=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ha?{id:Ga,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Ja=e,eo=null,!0);default:return!1}}function oo(e){return!(!(1&e.mode)||128&e.flags)}function io(e){if(to){var t=eo;if(t){var r=t;if(!ao(e,t)){if(oo(e))throw Error(n(418));t=ia(r.nextSibling);var a=Ja;t&&ao(e,t)?ro(a,r):(e.flags=-4097&e.flags|2,to=!1,Ja=e)}}else{if(oo(e))throw Error(n(418));e.flags=-4097&e.flags|2,to=!1,Ja=e}}}function so(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ja=e}function co(e){if(e!==Ja)return!1;if(!to)return so(e),to=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Jr(e.type,e.memoizedProps)),t&&(t=eo)){if(oo(e))throw lo(),Error(n(418));for(;t;)ro(e,t),t=ia(t.nextSibling)}if(so(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){eo=ia(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}eo=null}}else eo=Ja?ia(e.stateNode.nextSibling):null;return!0}function lo(){for(var e=eo;e;)e=ia(e.nextSibling)}function uo(){eo=Ja=null,to=!1}function fo(e){null===no?no=[e]:no.push(e)}var po=g.ReactCurrentBatchConfig;function ho(e,t){if(e&&e.defaultProps){for(var n in t=O({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var mo=wa(null),yo=null,go=null,vo=null;function bo(){vo=go=yo=null}function _o(e){var t=mo.current;ka(mo),e._currentValue=t}function wo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ko(e,t){yo=e,vo=go=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.lanes&t&&(vs=!0),e.firstContext=null)}function xo(e){var t=e._currentValue;if(vo!==e)if(e={context:e,memoizedValue:t,next:null},null===go){if(null===yo)throw Error(n(308));go=e,yo.dependencies={lanes:0,firstContext:e}}else go=go.next=e;return t}var So=null;function Eo(e){null===So?So=[e]:So.push(e)}function Ao(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Eo(t)):(n.next=a.next,a.next=n),t.interleaved=n,zo(e,r)}function zo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Co=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function To(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ro(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Po(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&zc){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,zo(e,n)}return null===(a=r.interleaved)?(t.next=t,Eo(r)):(t.next=a.next,a.next=t),r.interleaved=t,zo(e,n)}function jo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}function Oo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function No(e,t,n,r){var a=e.updateQueue;Co=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var c=s,l=c.next;c.next=null,null===i?o=l:i.next=l,i=c;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(null!==o){var f=a.baseState;for(i=0,u=l=c=null,s=o;;){var d=s.lane,p=s.eventTime;if((r&d)===d){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=O({},f,d);break e;case 2:Co=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(l=u=p,c=f):u=u.next=p,i|=d;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(d=s).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===u&&(c=f),a.baseState=c,a.firstBaseUpdate=l,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Nc|=i,e.lanes=i,e.memoizedState=f}}function Mo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],o=a.callback;if(null!==o){if(a.callback=null,a=r,"function"!=typeof o)throw Error(n(191,o));o.call(a)}}}var Do=(new e.Component).refs;function Fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:O({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Lo={isMounted:function(e){return!!(e=e._reactInternals)&&Le(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Jc(),a=el(e),o=Ro(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Po(e,o,a))&&(tl(t,e,a,r),jo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Jc(),a=el(e),o=Ro(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Po(e,o,a))&&(tl(t,e,a,r),jo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jc(),r=el(e),a=Ro(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Po(e,a,r))&&(tl(t,e,r,n),jo(t,e,r))}};function Vo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!or(n,r)||!or(a,o))}function qo(e,t,n){var r=!1,a=Sa,o=t.contextType;return"object"==typeof o&&null!==o?o=xo(o):(a=Ia(t)?za:Ea.current,o=(r=null!=(r=t.contextTypes))?Ca(e,a):Sa),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Lo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Bo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Lo.enqueueReplaceState(t,t.state,null)}function Uo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Do,Io(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=xo(o):(o=Ia(t)?za:Ea.current,a.context=Ca(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Fo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Lo.enqueueReplaceState(a,a.state,null),No(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function $o(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var o=a,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;t===Do&&(t=o.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ho(e){return(0,e._init)(e._payload)}function Go(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Pl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Ml(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var a=n.type;return a===_?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===I&&Ho(a)===t.type)?((r=o(t,n.props)).ref=$o(e,t,n),r.return=e,r):((r=jl(n.type,n.key,n.props,null,e.mode,r)).ref=$o(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Ol(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ml(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case v:return(n=jl(t.type,t.key,t.props,null,e.mode,n)).ref=$o(e,null,t),n.return=e,n;case b:return(t=Dl(t,e.mode,n)).return=e,t;case I:return d(e,(0,t._init)(t._payload),n)}if(X(t)||P(t))return(t=Ol(t,e.mode,n,null)).return=e,t;Wo(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case v:return n.key===a?l(e,t,n,r):null;case b:return n.key===a?u(e,t,n,r):null;case I:return p(e,t,(a=n._init)(n._payload),r)}if(X(n)||P(n))return null!==a?null:f(e,t,n,r,null);Wo(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case v:return l(t,e=e.get(null===r.key?n:r.key)||null,r,a);case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case I:return h(e,t,n,(0,r._init)(r._payload),a)}if(X(r)||P(r))return f(t,e=e.get(n)||null,r,a,null);Wo(t,r)}return null}return function c(l,u,f,m){if("object"==typeof f&&null!==f&&f.type===_&&null===f.key&&(f=f.props.children),"object"==typeof f&&null!==f){switch(f.$$typeof){case v:e:{for(var y=f.key,g=u;null!==g;){if(g.key===y){if((y=f.type)===_){if(7===g.tag){r(l,g.sibling),(u=o(g,f.props.children)).return=l,l=u;break e}}else if(g.elementType===y||"object"==typeof y&&null!==y&&y.$$typeof===I&&Ho(y)===g.type){r(l,g.sibling),(u=o(g,f.props)).ref=$o(l,g,f),u.return=l,l=u;break e}r(l,g);break}t(l,g),g=g.sibling}f.type===_?((u=Ol(f.props.children,l.mode,m,f.key)).return=l,l=u):((m=jl(f.type,f.key,f.props,null,l.mode,m)).ref=$o(l,u,f),m.return=l,l=m)}return s(l);case b:e:{for(g=f.key;null!==u;){if(u.key===g){if(4===u.tag&&u.stateNode.containerInfo===f.containerInfo&&u.stateNode.implementation===f.implementation){r(l,u.sibling),(u=o(u,f.children||[])).return=l,l=u;break e}r(l,u);break}t(l,u),u=u.sibling}(u=Dl(f,l.mode,m)).return=l,l=u}return s(l);case I:return c(l,u,(g=f._init)(f._payload),m)}if(X(f))return function(n,o,s,c){for(var l=null,u=null,f=o,m=o=0,y=null;null!==f&&m<s.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var g=p(n,f,s[m],c);if(null===g){null===f&&(f=y);break}e&&f&&null===g.alternate&&t(n,f),o=i(g,o,m),null===u?l=g:u.sibling=g,u=g,f=y}if(m===s.length)return r(n,f),to&&Qa(n,m),l;if(null===f){for(;m<s.length;m++)null!==(f=d(n,s[m],c))&&(o=i(f,o,m),null===u?l=f:u.sibling=f,u=f);return to&&Qa(n,m),l}for(f=a(n,f);m<s.length;m++)null!==(y=h(f,n,m,s[m],c))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),o=i(y,o,m),null===u?l=y:u.sibling=y,u=y);return e&&f.forEach((function(e){return t(n,e)})),to&&Qa(n,m),l}(l,u,f,m);if(P(f))return function(o,s,c,l){var u=P(c);if("function"!=typeof u)throw Error(n(150));if(null==(c=u.call(c)))throw Error(n(151));for(var f=u=null,m=s,y=s=0,g=null,v=c.next();null!==m&&!v.done;y++,v=c.next()){m.index>y?(g=m,m=null):g=m.sibling;var b=p(o,m,v.value,l);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,y),null===f?u=b:f.sibling=b,f=b,m=g}if(v.done)return r(o,m),to&&Qa(o,y),u;if(null===m){for(;!v.done;y++,v=c.next())null!==(v=d(o,v.value,l))&&(s=i(v,s,y),null===f?u=v:f.sibling=v,f=v);return to&&Qa(o,y),u}for(m=a(o,m);!v.done;y++,v=c.next())null!==(v=h(m,o,y,v.value,l))&&(e&&null!==v.alternate&&m.delete(null===v.key?y:v.key),s=i(v,s,y),null===f?u=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(o,e)})),to&&Qa(o,y),u}(l,u,f,m);Wo(l,f)}return"string"==typeof f&&""!==f||"number"==typeof f?(f=""+f,null!==u&&6===u.tag?(r(l,u.sibling),(u=o(u,f)).return=l,l=u):(r(l,u),(u=Ml(f,l.mode,m)).return=l,l=u),s(l)):r(l,u)}}var Ko=Go(!0),Qo=Go(!1),Yo={},Zo=wa(Yo),Xo=wa(Yo),Jo=wa(Yo);function ei(e){if(e===Yo)throw Error(n(174));return e}function ti(e,t){switch(xa(Jo,t),xa(Xo,e),xa(Zo,Yo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:oe(null,"");break;default:t=oe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ka(Zo),xa(Zo,t)}function ni(){ka(Zo),ka(Xo),ka(Jo)}function ri(e){ei(Jo.current);var t=ei(Zo.current),n=oe(t,e.type);t!==n&&(xa(Xo,e),xa(Zo,n))}function ai(e){Xo.current===e&&(ka(Zo),ka(Xo))}var oi=wa(0);function ii(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var si=[];function ci(){for(var e=0;e<si.length;e++)si[e]._workInProgressVersionPrimary=null;si.length=0}var li=g.ReactCurrentDispatcher,ui=g.ReactCurrentBatchConfig,fi=0,di=null,pi=null,hi=null,mi=!1,yi=!1,gi=0,vi=0;function bi(){throw Error(n(321))}function _i(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function wi(e,t,r,a,o,i){if(fi=i,di=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,li.current=null===e||null===e.memoizedState?os:is,e=r(a,o),yi){i=0;do{if(yi=!1,gi=0,25<=i)throw Error(n(301));i+=1,hi=pi=null,t.updateQueue=null,li.current=ss,e=r(a,o)}while(yi)}if(li.current=as,t=null!==pi&&null!==pi.next,fi=0,hi=pi=di=null,mi=!1,t)throw Error(n(300));return e}function ki(){var e=0!==gi;return gi=0,e}function xi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===hi?di.memoizedState=hi=e:hi=hi.next=e,hi}function Si(){if(null===pi){var e=di.alternate;e=null!==e?e.memoizedState:null}else e=pi.next;var t=null===hi?di.memoizedState:hi.next;if(null!==t)hi=t,pi=e;else{if(null===e)throw Error(n(310));e={memoizedState:(pi=e).memoizedState,baseState:pi.baseState,baseQueue:pi.baseQueue,queue:pi.queue,next:null},null===hi?di.memoizedState=hi=e:hi=hi.next=e}return hi}function Ai(e,t){return"function"==typeof t?t(e):t}function zi(e){var t=Si(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=pi,o=a.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}a.baseQueue=o=i,r.pending=null}if(null!==o){i=o.next,a=a.baseState;var c=s=null,l=null,u=i;do{var f=u.lane;if((fi&f)===f)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),a=u.hasEagerState?u.eagerState:e(a,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(c=l=d,s=a):l=l.next=d,di.lanes|=f,Nc|=f}u=u.next}while(null!==u&&u!==i);null===l?s=a:l.next=c,ar(a,t.memoizedState)||(vs=!0),t.memoizedState=a,t.baseState=s,t.baseQueue=l,r.lastRenderedState=a}if(null!==(e=r.interleaved)){o=e;do{i=o.lane,di.lanes|=i,Nc|=i,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ci(e){var t=Si(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);ar(i,t.memoizedState)||(vs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,a]}function Ii(){}function Ti(e,t){var r=di,a=Si(),o=t(),i=!ar(a.memoizedState,o);if(i&&(a.memoizedState=o,vs=!0),a=a.queue,Bi(ji.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||null!==hi&&1&hi.memoizedState.tag){if(r.flags|=2048,Di(9,Pi.bind(null,r,a,o,t),void 0,null),null===Cc)throw Error(n(349));30&fi||Ri(r,t,o)}return o}function Ri(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=di.updateQueue)?(t={lastEffect:null,stores:null},di.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pi(e,t,n,r){t.value=n,t.getSnapshot=r,Oi(t)&&Ni(e)}function ji(e,t,n){return n((function(){Oi(t)&&Ni(e)}))}function Oi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch{return!0}}function Ni(e){var t=zo(e,1);null!==t&&tl(t,e,1,-1)}function Mi(e){var t=xi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:e},t.queue=e,e=e.dispatch=es.bind(null,di,e),[t.memoizedState,e]}function Di(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=di.updateQueue)?(t={lastEffect:null,stores:null},di.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fi(){return Si().memoizedState}function Li(e,t,n,r){var a=xi();di.flags|=e,a.memoizedState=Di(1|t,n,void 0,void 0===r?null:r)}function Vi(e,t,n,r){var a=Si();r=void 0===r?null:r;var o=void 0;if(null!==pi){var i=pi.memoizedState;if(o=i.destroy,null!==r&&_i(r,i.deps))return void(a.memoizedState=Di(t,n,o,r))}di.flags|=e,a.memoizedState=Di(1|t,n,o,r)}function qi(e,t){return Li(8390656,8,e,t)}function Bi(e,t){return Vi(2048,8,e,t)}function Ui(e,t){return Vi(4,2,e,t)}function $i(e,t){return Vi(4,4,e,t)}function Wi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Hi(e,t,n){return n=null!=n?n.concat([e]):null,Vi(4,4,Wi.bind(null,t,e),n)}function Gi(){}function Ki(e,t){var n=Si();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_i(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qi(e,t){var n=Si();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_i(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Yi(e,t,n){return 21&fi?(ar(n,t)||(n=dt(),di.lanes|=n,Nc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=n)}function Zi(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ui.transition;ui.transition={};try{e(!1),t()}finally{yt=n,ui.transition=r}}function Xi(){return Si().memoizedState}function Ji(e,t,n){var r=el(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ts(e))ns(t,n);else if(null!==(n=Ao(e,t,n,r))){tl(n,e,r,Jc()),rs(n,t,r)}}function es(e,t,n){var r=el(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ts(e))ns(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,ar(s,i)){var c=t.interleaved;return null===c?(a.next=a,Eo(t)):(a.next=c.next,c.next=a),void(t.interleaved=a)}}catch{}null!==(n=Ao(e,t,a,r))&&(tl(n,e,r,a=Jc()),rs(n,t,r))}}function ts(e){var t=e.alternate;return e===di||null!==t&&t===di}function ns(e,t){yi=mi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rs(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}var as={readContext:xo,useCallback:bi,useContext:bi,useEffect:bi,useImperativeHandle:bi,useInsertionEffect:bi,useLayoutEffect:bi,useMemo:bi,useReducer:bi,useRef:bi,useState:bi,useDebugValue:bi,useDeferredValue:bi,useTransition:bi,useMutableSource:bi,useSyncExternalStore:bi,useId:bi,unstable_isNewReconciler:!1},os={readContext:xo,useCallback:function(e,t){return xi().memoizedState=[e,void 0===t?null:t],e},useContext:xo,useEffect:qi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Li(4194308,4,Wi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=xi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ji.bind(null,di,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xi().memoizedState=e},useState:Mi,useDebugValue:Gi,useDeferredValue:function(e){return xi().memoizedState=e},useTransition:function(){var e=Mi(!1),t=e[0];return e=Zi.bind(null,e[1]),xi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=di,o=xi();if(to){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Cc)throw Error(n(349));30&fi||Ri(a,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,qi(ji.bind(null,a,i,e),[e]),a.flags|=2048,Di(9,Pi.bind(null,a,i,r,t),void 0,null),r},useId:function(){var e=xi(),t=Cc.identifierPrefix;if(to){var n=Ka;t=":"+t+"R"+(n=(Ga&~(1<<32-rt(Ga)-1)).toString(32)+n),0<(n=gi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=vi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},is={readContext:xo,useCallback:Ki,useContext:xo,useEffect:Bi,useImperativeHandle:Hi,useInsertionEffect:Ui,useLayoutEffect:$i,useMemo:Qi,useReducer:zi,useRef:Fi,useState:function(){return zi(Ai)},useDebugValue:Gi,useDeferredValue:function(e){return Yi(Si(),pi.memoizedState,e)},useTransition:function(){return[zi(Ai)[0],Si().memoizedState]},useMutableSource:Ii,useSyncExternalStore:Ti,useId:Xi,unstable_isNewReconciler:!1},ss={readContext:xo,useCallback:Ki,useContext:xo,useEffect:Bi,useImperativeHandle:Hi,useInsertionEffect:Ui,useLayoutEffect:$i,useMemo:Qi,useReducer:Ci,useRef:Fi,useState:function(){return Ci(Ai)},useDebugValue:Gi,useDeferredValue:function(e){var t=Si();return null===pi?t.memoizedState=e:Yi(t,pi.memoizedState,e)},useTransition:function(){return[Ci(Ai)[0],Si().memoizedState]},useMutableSource:Ii,useSyncExternalStore:Ti,useId:Xi,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function ls(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function us(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=Ro(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uc||(Uc=!0,$c=r),us(0,t)},n}function ps(e,t,n){(n=Ro(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){us(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){us(0,t),"function"!=typeof r&&(null===Wc?Wc=new Set([this]):Wc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Sl.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ro(-1,1)).tag=2,Po(n,t,1))),n.lanes|=1),e)}var gs=g.ReactCurrentOwner,vs=!1;function bs(e,t,n,r){t.child=null===e?Qo(t,null,n,r):Ko(t,e.child,n,r)}function _s(e,t,n,r,a){n=n.render;var o=t.ref;return ko(t,a),r=wi(e,t,n,r,o,a),n=ki(),null===e||vs?(to&&n&&Za(t),t.flags|=1,bs(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Us(e,t,a))}function ws(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Rl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ks(e,t,o,r,a))}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:or)(i,r)&&e.ref===t.ref)return Us(e,t,a)}return t.flags|=1,(e=Pl(o,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(or(o,r)&&e.ref===t.ref){if(vs=!1,t.pendingProps=r=o,!(e.lanes&a))return t.lanes=e.lanes,Us(e,t,a);131072&e.flags&&(vs=!0)}}return Es(e,t,n,r,a)}function xs(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xa(Pc,Rc),Rc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,xa(Pc,Rc),Rc|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xa(Pc,Rc),Rc|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xa(Pc,Rc),Rc|=r;return bs(e,t,a,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,a){var o=Ia(n)?za:Ea.current;return o=Ca(t,o),ko(t,a),n=wi(e,t,n,r,o,a),r=ki(),null===e||vs?(to&&r&&Za(t),t.flags|=1,bs(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Us(e,t,a))}function As(e,t,n,r,a){if(Ia(n)){var o=!0;ja(t)}else o=!1;if(ko(t,a),null===t.stateNode)Bs(e,t),qo(t,n,r),Uo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,l=n.contextType;"object"==typeof l&&null!==l?l=xo(l):l=Ca(t,l=Ia(n)?za:Ea.current);var u=n.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||c!==l)&&Bo(t,i,r,l),Co=!1;var d=t.memoizedState;i.state=d,No(t,r,i,a),c=t.memoizedState,s!==r||d!==c||Aa.current||Co?("function"==typeof u&&(Fo(t,n,u,r),c=t.memoizedState),(s=Co||Vo(t,n,s,r,d,c,l))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=l,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,To(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ho(t.type,s),i.props=l,f=t.pendingProps,d=i.context,"object"==typeof(c=n.contextType)&&null!==c?c=xo(c):c=Ca(t,c=Ia(n)?za:Ea.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==f||d!==c)&&Bo(t,i,r,c),Co=!1,d=t.memoizedState,i.state=d,No(t,r,i,a);var h=t.memoizedState;s!==f||d!==h||Aa.current||Co?("function"==typeof p&&(Fo(t,n,p,r),h=t.memoizedState),(l=Co||Vo(t,n,l,r,d,h,c)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=c,r=l):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return zs(e,t,n,r,o,a)}function zs(e,t,n,r,a,o){Ss(e,t);var i=!!(128&t.flags);if(!r&&!i)return a&&Oa(t,n,!1),Us(e,t,o);r=t.stateNode,gs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,s,o)):bs(e,t,s,o),t.memoizedState=r.state,a&&Oa(t,n,!0),t.child}function Cs(e){var t=e.stateNode;t.pendingContext?Ra(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ra(0,t.context,!1),ti(e,t.containerInfo)}function Is(e,t,n,r,a){return uo(),fo(a),t.flags|=256,bs(e,t,n,r),t.child}var Ts,Rs,Ps,js,Os={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,r){var a,o=t.pendingProps,i=oi.current,s=!1,c=!!(128&t.flags);if((a=c)||(a=(null===e||null!==e.memoizedState)&&!!(2&i)),a?(s=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(i|=1),xa(oi,1&i),null===e)return io(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=o.children,e=o.fallback,s?(o=t.mode,s=t.child,c={mode:"hidden",children:c},1&o||null===s?s=Nl(c,o,0,null):(s.childLanes=0,s.pendingProps=c),e=Ol(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(r),t.memoizedState=Os,e):Ds(t,c));if(null!==(i=e.memoizedState)&&null!==(a=i.dehydrated))return function(e,t,r,a,o,i,s){if(r)return 256&t.flags?(t.flags&=-257,a=ls(Error(n(422))),Fs(e,t,s,a)):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=a.fallback,o=t.mode,a=Nl({mode:"visible",children:a.children},o,0,null),i=Ol(i,o,s,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,1&t.mode&&Ko(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Os,i);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===o.data){if(a=o.nextSibling&&o.nextSibling.dataset)var c=a.dgst;return a=c,Fs(e,t,s,a=ls(i=Error(n(419)),a,void 0))}if(c=!!(s&e.childLanes),vs||c){if(null!==(a=Cc)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(a.suspendedLanes|s)?0:o)&&o!==i.retryLane&&(i.retryLane=o,zo(e,o),tl(a,e,o,-1))}return hl(),Fs(e,t,s,a=ls(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Al.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,eo=ia(o.nextSibling),Ja=t,to=!0,no=null,null!==e&&($a[Wa++]=Ga,$a[Wa++]=Ka,$a[Wa++]=Ha,Ga=e.id,Ka=e.overflow,Ha=t),t=Ds(t,a.children),t.flags|=4096,t)}(e,t,c,o,a,i,r);if(s){s=o.fallback,c=t.mode,a=(i=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&c||t.child===i?(o=Pl(i,l)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==a?s=Pl(a,s):(s=Ol(s,c,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,c=null===(c=e.child.memoizedState)?Ns(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=Os,o}return e=(s=e.child).sibling,o=Pl(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Ds(e,t){return(t=Nl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&fo(r),Ko(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ls(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wo(e.return,t,n)}function Vs(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function qs(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(bs(e,t,r.children,n),2&(r=oi.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ls(e,n,t);else if(19===e.tag)Ls(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xa(oi,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ii(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Vs(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ii(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Vs(t,!0,n,null,o);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Nc|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Pl(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Pl(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function $s(e,t){if(!to)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hs(e,t,r){var o=t.pendingProps;switch(Xa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Ia(t.type)&&Ta(),Ws(t),null;case 3:return o=t.stateNode,ni(),ka(Aa),ka(Ea),ci(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(null===e||null===e.child)&&(co(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==no&&(ol(no),no=null))),Rs(e,t),Ws(t),null;case 5:ai(t);var i=ei(Jo.current);if(r=t.type,null!==e&&null!=t.stateNode)Ps(e,t,r,o,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Ws(t),null}if(e=ei(Zo.current),co(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[la]=t,o[ua]=s,e=!!(1&t.mode),r){case"dialog":Mr("cancel",o),Mr("close",o);break;case"iframe":case"object":case"embed":Mr("load",o);break;case"video":case"audio":for(i=0;i<Pr.length;i++)Mr(Pr[i],o);break;case"source":Mr("error",o);break;case"img":case"image":case"link":Mr("error",o),Mr("load",o);break;case"details":Mr("toggle",o);break;case"input":G(o,s),Mr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Mr("invalid",o);break;case"textarea":te(o,s),Mr("invalid",o)}for(var c in me(r,s),i=null,s)if(s.hasOwnProperty(c)){var l=s[c];"children"===c?"string"==typeof l?o.textContent!==l&&(!0!==s.suppressHydrationWarning&&Qr(o.textContent,l,e),i=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(!0!==s.suppressHydrationWarning&&Qr(o.textContent,l,e),i=["children",""+l]):a.hasOwnProperty(c)&&null!=l&&"onScroll"===c&&Mr("scroll",o)}switch(r){case"input":U(o),Y(o,s,!0);break;case"textarea":U(o),re(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=Yr)}o=i,t.updateQueue=o,null!==o&&(t.flags|=4)}else{c=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=c.createElement(r,{is:o.is}):(e=c.createElement(r),"select"===r&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,r),e[la]=t,e[ua]=o,Ts(e,t,!1,!1),t.stateNode=e;e:{switch(c=ye(r,o),r){case"dialog":Mr("cancel",e),Mr("close",e),i=o;break;case"iframe":case"object":case"embed":Mr("load",e),i=o;break;case"video":case"audio":for(i=0;i<Pr.length;i++)Mr(Pr[i],e);i=o;break;case"source":Mr("error",e),i=o;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),i=o;break;case"details":Mr("toggle",e),i=o;break;case"input":G(e,o),i=H(e,o),Mr("invalid",e);break;case"option":default:i=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},i=O({},o,{value:void 0}),Mr("invalid",e);break;case"textarea":te(e,o),i=ee(e,o),Mr("invalid",e)}for(s in me(r,i),l=i)if(l.hasOwnProperty(s)){var u=l[s];"style"===s?pe(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&ce(e,u):"children"===s?"string"==typeof u?("textarea"!==r||""!==u)&&le(e,u):"number"==typeof u&&le(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Mr("scroll",e):null!=u&&y(e,s,u,c))}switch(r){case"input":U(e),Y(e,o,!1);break;case"textarea":U(e),re(e);break;case"option":null!=o.value&&e.setAttribute("value",""+q(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?J(e,!!o.multiple,s,!1):null!=o.defaultValue&&J(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Yr)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)js(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=ei(Jo.current),ei(Zo.current),co(t)){if(o=t.stateNode,r=t.memoizedProps,o[la]=t,(s=o.nodeValue!==r)&&null!==(e=Ja))switch(e.tag){case 3:Qr(o.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(o.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[la]=t,t.stateNode=o}return Ws(t),null;case 13:if(ka(oi),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(to&&null!==eo&&1&t.mode&&!(128&t.flags))lo(),uo(),t.flags|=98560,s=!1;else if(s=co(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[la]=t}else uo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),s=!1}else null!==no&&(ol(no),no=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,1&t.mode&&(null===e||1&oi.current?0===jc&&(jc=3):hl())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return ni(),Rs(e,t),null===e&&Lr(t.stateNode.containerInfo),Ws(t),null;case 10:return _o(t.type._context),Ws(t),null;case 19:if(ka(oi),null===(s=t.memoizedState))return Ws(t),null;if(o=!!(128&t.flags),null===(c=s.rendering))if(o)$s(s,!1);else{if(0!==jc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(c=ii(e))){for(t.flags|=128,$s(s,!1),null!==(o=c.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(s=r).flags&=14680066,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return xa(oi,1&oi.current|2),t.child}e=e.sibling}null!==s.tail&&Ke()>qc&&(t.flags|=128,o=!0,$s(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=ii(c))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),$s(s,!0),null===s.tail&&"hidden"===s.tailMode&&!c.alternate&&!to)return Ws(t),null}else 2*Ke()-s.renderingStartTime>qc&&1073741824!==r&&(t.flags|=128,o=!0,$s(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=s.last)?r.sibling=c:t.child=c,s.last=c)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ke(),t.sibling=null,r=oi.current,xa(oi,o?1&r|2:1&r),t):(Ws(t),null);case 22:case 23:return ul(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?1073741824&Rc&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Gs(e,t){switch(Xa(t),t.tag){case 1:return Ia(t.type)&&Ta(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ni(),ka(Aa),ka(Ea),ci(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ai(t),null;case 13:if(ka(oi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));uo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ka(oi),null;case 4:return ni(),null;case 10:return _o(t.type._context),null;case 22:case 23:return ul(),null;default:return null}}Ts=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Ps=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ei(Zo.current);var i,s=null;switch(n){case"input":o=H(e,o),r=H(e,r),s=[];break;case"select":o=O({},o,{value:void 0}),r=O({},r,{value:void 0}),s=[];break;case"textarea":o=ee(e,o),r=ee(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(u in me(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var c=o[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(c=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(i in c)!c.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&c[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(s=s||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Mr("scroll",e),s||c===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},js=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Qs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xl(e,t,n)}else n.current=null}function Js(e,t,n){try{n()}catch(n){xl(e,t,n)}}var ec=!1;function tc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&Js(t,n,o)}a=a.next}while(a!==r)}}function nc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ac(e){var t=e.alternate;null!==t&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[la],delete t[ua],delete t[da],delete t[pa],delete t[ha])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function oc(e){return 5===e.tag||3===e.tag||4===e.tag}function ic(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||oc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(sc(e,t,n),e=e.sibling;null!==e;)sc(e,t,n),e=e.sibling}function cc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cc(e,t,n),e=e.sibling;null!==e;)cc(e,t,n),e=e.sibling}var lc=null,uc=!1;function fc(e,t,n){for(n=n.child;null!==n;)dc(e,t,n),n=n.sibling}function dc(e,t,n){if(nt&&"function"==typeof nt.onCommitFiberUnmount)try{nt.onCommitFiberUnmount(tt,n)}catch{}switch(n.tag){case 5:Qs||Xs(n,t);case 6:var r=lc,a=uc;lc=null,fc(e,t,n),uc=a,null!==(lc=r)&&(uc?(e=lc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):lc.removeChild(n.stateNode));break;case 18:null!==lc&&(uc?(e=lc,n=n.stateNode,8===e.nodeType?oa(e.parentNode,n):1===e.nodeType&&oa(e,n),Lt(e)):oa(lc,n.stateNode));break;case 4:r=lc,a=uc,lc=n.stateNode.containerInfo,uc=!0,fc(e,t,n),lc=r,uc=a;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(2&o||4&o)&&Js(n,t,i),a=a.next}while(a!==r)}fc(e,t,n);break;case 1:if(!Qs&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xl(n,t,e)}fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,fc(e,t,n),Qs=r):fc(e,t,n);break;default:fc(e,t,n)}}function pc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var r=zl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hc(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var o=r[a];try{var i=e,s=t,c=s;e:for(;null!==c;){switch(c.tag){case 5:lc=c.stateNode,uc=!1;break e;case 3:case 4:lc=c.stateNode.containerInfo,uc=!0;break e}c=c.return}if(null===lc)throw Error(n(160));dc(i,s,o),lc=null,uc=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){xl(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mc(t,e),t=t.sibling}function mc(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hc(t,e),yc(e),4&a){try{tc(3,e,e.return),nc(3,e)}catch(t){xl(e,e.return,t)}try{tc(5,e,e.return)}catch(t){xl(e,e.return,t)}}break;case 1:hc(t,e),yc(e),512&a&&null!==r&&Xs(r,r.return);break;case 5:if(hc(t,e),yc(e),512&a&&null!==r&&Xs(r,r.return),32&e.flags){var o=e.stateNode;try{le(o,"")}catch(t){xl(e,e.return,t)}}if(4&a&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==r?r.memoizedProps:i,c=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===c&&"radio"===i.type&&null!=i.name&&K(o,i),ye(c,s);var u=ye(c,i);for(s=0;s<l.length;s+=2){var f=l[s],d=l[s+1];"style"===f?pe(o,d):"dangerouslySetInnerHTML"===f?ce(o,d):"children"===f?le(o,d):y(o,f,d,u)}switch(c){case"input":Q(o,i);break;case"textarea":ne(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?J(o,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?J(o,!!i.multiple,i.defaultValue,!0):J(o,!!i.multiple,i.multiple?[]:"",!1))}o[ua]=i}catch(t){xl(e,e.return,t)}}break;case 6:if(hc(t,e),yc(e),4&a){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){xl(e,e.return,t)}}break;case 3:if(hc(t,e),yc(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{Lt(t.containerInfo)}catch(t){xl(e,e.return,t)}break;case 4:default:hc(t,e),yc(e);break;case 13:hc(t,e),yc(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Vc=Ke())),4&a&&pc(e);break;case 22:if(f=null!==r&&null!==r.memoizedState,1&e.mode?(Qs=(u=Qs)||f,hc(t,e),Qs=u):hc(t,e),yc(e),8192&a){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!f&&1&e.mode)for(Zs=e,f=e.child;null!==f;){for(d=Zs=f;null!==Zs;){switch(h=(p=Zs).child,p.tag){case 0:case 11:case 14:case 15:tc(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){a=p,r=p.return;try{t=a,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xl(a,r,e)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){_c(d);continue}}null!==h?(h.return=p,Zs=h):_c(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(c=d.stateNode,s=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,c.style.display=de("display",s))}catch(t){xl(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){xl(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:hc(t,e),yc(e),4&a&&pc(e);case 21:}}function yc(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(oc(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var o=a.stateNode;32&a.flags&&(le(o,""),a.flags&=-33),cc(e,ic(e),o);break;case 3:case 4:var i=a.stateNode.containerInfo;sc(e,ic(e),i);break;default:throw Error(n(161))}}catch(t){xl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gc(e,t,n){Zs=e,vc(e)}function vc(e,t,n){for(var r=!!(1&e.mode);null!==Zs;){var a=Zs,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Ks;if(!i){var s=a.alternate,c=null!==s&&null!==s.memoizedState||Qs;s=Ks;var l=Qs;if(Ks=i,(Qs=c)&&!l)for(Zs=a;null!==Zs;)c=(i=Zs).child,22===i.tag&&null!==i.memoizedState?wc(a):null!==c?(c.return=i,Zs=c):wc(a);for(;null!==o;)Zs=o,vc(o),o=o.sibling;Zs=a,Ks=s,Qs=l}bc(e)}else 8772&a.subtreeFlags&&null!==o?(o.return=a,Zs=o):bc(e)}}function bc(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qs||nc(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Qs)if(null===r)a.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ho(t.type,r.memoizedProps);a.componentDidUpdate(o,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Mo(t,i,a);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Mo(t,s,r)}break;case 5:var c=t.stateNode;if(null===r&&4&t.flags){r=c;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var f=u.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Lt(d)}}}break;default:throw Error(n(163))}Qs||512&t.flags&&rc(t)}catch(e){xl(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zs=r;break}Zs=t.return}}function _c(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function wc(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nc(4,t)}catch(e){xl(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){xl(t,a,e)}}var o=t.return;try{rc(t)}catch(e){xl(t,o,e)}break;case 5:var i=t.return;try{rc(t)}catch(e){xl(t,i,e)}}}catch(e){xl(t,t.return,e)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var kc,xc=Math.ceil,Sc=g.ReactCurrentDispatcher,Ec=g.ReactCurrentOwner,Ac=g.ReactCurrentBatchConfig,zc=0,Cc=null,Ic=null,Tc=0,Rc=0,Pc=wa(0),jc=0,Oc=null,Nc=0,Mc=0,Dc=0,Fc=null,Lc=null,Vc=0,qc=1/0,Bc=null,Uc=!1,$c=null,Wc=null,Hc=!1,Gc=null,Kc=0,Qc=0,Yc=null,Zc=-1,Xc=0;function Jc(){return 6&zc?Ke():-1!==Zc?Zc:Zc=Ke()}function el(e){return 1&e.mode?2&zc&&0!==Tc?Tc&-Tc:null!==po.transition?(0===Xc&&(Xc=dt()),Xc):(0!==(e=yt)||(e=void 0===(e=window.event)?16:Gt(e.type)),e):1}function tl(e,t,r,a){if(50<Qc)throw Qc=0,Yc=null,Error(n(185));ht(e,r,a),(!(2&zc)||e!==Cc)&&(e===Cc&&(!(2&zc)&&(Mc|=r),4===jc&&il(e,Tc)),nl(e,a),1===r&&0===zc&&!(1&t.mode)&&(qc=Ke()+500,Ma&&La()))}function nl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-rt(o),s=1<<i,c=a[i];-1===c?(!(s&n)||s&r)&&(a[i]=ut(s,t)):c<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=lt(e,e===Cc?Tc:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Ma=!0,Fa(e)}(sl.bind(null,e)):Fa(sl.bind(null,e)),ra((function(){!(6&zc)&&La()})),n=null;else{switch(gt(r)){case 1:n=Ye;break;case 4:n=Ze;break;case 16:default:n=Xe;break;case 536870912:n=et}n=Cl(n,rl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rl(e,t){if(Zc=-1,Xc=0,6&zc)throw Error(n(327));var r=e.callbackNode;if(wl()&&e.callbackNode!==r)return null;var a=lt(e,e===Cc?Tc:0);if(0===a)return null;if(30&a||a&e.expiredLanes||t)t=ml(e,a);else{t=a;var o=zc;zc|=2;var i=pl();for((Cc!==e||Tc!==t)&&(Bc=null,qc=Ke()+500,fl(e,t));;)try{gl();break}catch(t){dl(e,t)}bo(),Sc.current=i,zc=o,null!==Ic?t=0:(Cc=null,Tc=0,t=jc)}if(0!==t){if(2===t&&(0!==(o=ft(e))&&(a=o,t=al(e,o))),1===t)throw r=Oc,fl(e,0),il(e,a),nl(e,Ke()),r;if(6===t)il(e,a);else{if(o=e.current.alternate,!(30&a||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!ar(o(),a))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=ml(e,a),2===t&&(i=ft(e),0!==i&&(a=i,t=al(e,i))),1!==t)))throw r=Oc,fl(e,0),il(e,a),nl(e,Ke()),r;switch(e.finishedWork=o,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:_l(e,Lc,Bc);break;case 3:if(il(e,a),(130023424&a)===a&&10<(t=Vc+500-Ke())){if(0!==lt(e,0))break;if(((o=e.suspendedLanes)&a)!==a){Jc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ea(_l.bind(null,e,Lc,Bc),t);break}_l(e,Lc,Bc);break;case 4:if(il(e,a),(4194240&a)===a)break;for(t=e.eventTimes,o=-1;0<a;){var s=31-rt(a);i=1<<s,(s=t[s])>o&&(o=s),a&=~i}if(a=o,10<(a=(120>(a=Ke()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*xc(a/1960))-a)){e.timeoutHandle=ea(_l.bind(null,e,Lc,Bc),a);break}_l(e,Lc,Bc);break;default:throw Error(n(329))}}}return nl(e,Ke()),e.callbackNode===r?rl.bind(null,e):null}function al(e,t){var n=Fc;return e.current.memoizedState.isDehydrated&&(fl(e,t).flags|=256),2!==(e=ml(e,t))&&(t=Lc,Lc=n,null!==t&&ol(t)),e}function ol(e){null===Lc?Lc=e:Lc.push.apply(Lc,e)}function il(e,t){for(t&=~Dc,t&=~Mc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function sl(e){if(6&zc)throw Error(n(327));wl();var t=lt(e,0);if(!(1&t))return nl(e,Ke()),null;var r=ml(e,t);if(0!==e.tag&&2===r){var a=ft(e);0!==a&&(t=a,r=al(e,a))}if(1===r)throw r=Oc,fl(e,0),il(e,t),nl(e,Ke()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,Lc,Bc),nl(e,Ke()),null}function cl(e,t){var n=zc;zc|=1;try{return e(t)}finally{0===(zc=n)&&(qc=Ke()+500,Ma&&La())}}function ll(e){null!==Gc&&0===Gc.tag&&!(6&zc)&&wl();var t=zc;zc|=1;var n=Ac.transition,r=yt;try{if(Ac.transition=null,yt=1,e)return e()}finally{yt=r,Ac.transition=n,!(6&(zc=t))&&La()}}function ul(){Rc=Pc.current,ka(Pc)}function fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ta(n)),null!==Ic)for(n=Ic.return;null!==n;){var r=n;switch(Xa(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ta();break;case 3:ni(),ka(Aa),ka(Ea),ci();break;case 5:ai(r);break;case 4:ni();break;case 13:case 19:ka(oi);break;case 10:_o(r.type._context);break;case 22:case 23:ul()}n=n.return}if(Cc=e,Ic=e=Pl(e.current,null),Tc=Rc=t,jc=0,Oc=null,Dc=Mc=Nc=0,Lc=Fc=null,null!==So){for(t=0;t<So.length;t++)if(null!==(r=(n=So[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}So=null}return e}function dl(e,t){for(;;){var r=Ic;try{if(bo(),li.current=as,mi){for(var a=di.memoizedState;null!==a;){var o=a.queue;null!==o&&(o.pending=null),a=a.next}mi=!1}if(fi=0,hi=pi=di=null,yi=!1,gi=0,Ec.current=null,null===r||null===r.return){jc=1,Oc=t,Ic=null;break}e:{var i=e,s=r.return,c=r,l=t;if(t=Tc,c.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,f=c,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=ms(s);if(null!==h){h.flags&=-257,ys(h,s,c,0,t),1&h.mode&&hs(i,u,t),l=u;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}if(!(1&t)){hs(i,u,t),hl();break e}l=Error(n(426))}else if(to&&1&c.mode){var g=ms(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),ys(g,s,c,0,t),fo(cs(l,c));break e}}i=l=cs(l,c),4!==jc&&(jc=2),null===Fc?Fc=[i]:Fc.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Oo(i,ds(0,l,t));break e;case 1:c=l;var v=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Wc&&Wc.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Oo(i,ps(i,c,t));break e}}i=i.return}while(null!==i)}bl(r)}catch(e){t=e,Ic===r&&null!==r&&(Ic=r=r.return);continue}break}}function pl(){var e=Sc.current;return Sc.current=as,null===e?as:e}function hl(){(0===jc||3===jc||2===jc)&&(jc=4),null===Cc||!(268435455&Nc)&&!(268435455&Mc)||il(Cc,Tc)}function ml(e,t){var r=zc;zc|=2;var a=pl();for((Cc!==e||Tc!==t)&&(Bc=null,fl(e,t));;)try{yl();break}catch(t){dl(e,t)}if(bo(),zc=r,Sc.current=a,null!==Ic)throw Error(n(261));return Cc=null,Tc=0,jc}function yl(){for(;null!==Ic;)vl(Ic)}function gl(){for(;null!==Ic&&!He();)vl(Ic)}function vl(e){var t=kc(e.alternate,e,Rc);e.memoizedProps=e.pendingProps,null===t?bl(e):Ic=t,Ec.current=null}function bl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Ic=n);if(null===e)return jc=6,void(Ic=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Hs(n,t,Rc)))return void(Ic=n);if(null!==(t=t.sibling))return void(Ic=t);Ic=t=e}while(null!==t);0===jc&&(jc=5)}function _l(e,t,r){var a=yt,o=Ac.transition;try{Ac.transition=null,yt=1,function(e,t,r,a){do{wl()}while(null!==Gc);if(6&zc)throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-rt(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Cc&&(Ic=Cc=null,Tc=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Hc||(Hc=!0,Cl(Xe,(function(){return wl(),null}))),i=!!(15990&r.flags),15990&r.subtreeFlags||i){i=Ac.transition,Ac.transition=null;var s=yt;yt=1;var c=zc;zc|=4,Ec.current=null,function(e,t){if(Zr=qt,ur(e=lr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var o=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,c=-1,l=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==r||0!==o&&3!==d.nodeType||(c=s+o),d!==i||0!==a&&3!==d.nodeType||(l=s+a),3===d.nodeType&&(s+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===r&&++u===o&&(c=s),p===i&&++f===a&&(l=s),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}r=-1===c||-1===l?null:{start:c,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xr={focusedElem:e,selectionRange:r},qt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:ho(t.type,y),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(n(163))}}catch(e){xl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=ec,ec=!1}(e,r),mc(r,e),fr(Xr),qt=!!Zr,Xr=Zr=null,e.current=r,gc(r),Ge(),zc=c,yt=s,Ac.transition=i}else e.current=r;if(Hc&&(Hc=!1,Gc=e,Kc=o),i=e.pendingLanes,0===i&&(Wc=null),function(e){if(nt&&"function"==typeof nt.onCommitFiberRoot)try{nt.onCommitFiberRoot(tt,e,void 0,!(128&~e.current.flags))}catch{}}(r.stateNode),nl(e,Ke()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],a(o.value,{componentStack:o.stack,digest:o.digest});if(Uc)throw Uc=!1,e=$c,$c=null,e;1&Kc&&0!==e.tag&&wl(),i=e.pendingLanes,1&i?e===Yc?Qc++:(Qc=0,Yc=e):Qc=0,La()}(e,t,r,a)}finally{Ac.transition=o,yt=a}return null}function wl(){if(null!==Gc){var e=gt(Kc),t=Ac.transition,r=yt;try{if(Ac.transition=null,yt=16>e?16:e,null===Gc)var a=!1;else{if(e=Gc,Gc=null,Kc=0,6&zc)throw Error(n(331));var o=zc;for(zc|=4,Zs=e.current;null!==Zs;){var i=Zs,s=i.child;if(16&Zs.flags){var c=i.deletions;if(null!==c){for(var l=0;l<c.length;l++){var u=c[l];for(Zs=u;null!==Zs;){var f=Zs;switch(f.tag){case 0:case 11:case 15:tc(8,f,i)}var d=f.child;if(null!==d)d.return=f,Zs=d;else for(;null!==Zs;){var p=(f=Zs).sibling,h=f.return;if(ac(f),f===u){Zs=null;break}if(null!==p){p.return=h,Zs=p;break}Zs=h}}}var m=i.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var g=y.sibling;y.sibling=null,y=g}while(null!==y)}}Zs=i}}if(2064&i.subtreeFlags&&null!==s)s.return=i,Zs=s;else e:for(;null!==Zs;){if(2048&(i=Zs).flags)switch(i.tag){case 0:case 11:case 15:tc(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Zs=v;break e}Zs=i.return}}var b=e.current;for(Zs=b;null!==Zs;){var _=(s=Zs).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Zs=_;else e:for(s=b;null!==Zs;){if(2048&(c=Zs).flags)try{switch(c.tag){case 0:case 11:case 15:nc(9,c)}}catch(e){xl(c,c.return,e)}if(c===s){Zs=null;break e}var w=c.sibling;if(null!==w){w.return=c.return,Zs=w;break e}Zs=c.return}}if(zc=o,La(),nt&&"function"==typeof nt.onPostCommitFiberRoot)try{nt.onPostCommitFiberRoot(tt,e)}catch{}a=!0}return a}finally{yt=r,Ac.transition=t}}return!1}function kl(e,t,n){e=Po(e,t=ds(0,t=cs(n,t),1),1),t=Jc(),null!==e&&(ht(e,1,t),nl(e,t))}function xl(e,t,n){if(3===e.tag)kl(e,e,n);else for(;null!==t;){if(3===t.tag){kl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wc||!Wc.has(r))){t=Po(t,e=ps(t,e=cs(n,e),1),1),e=Jc(),null!==t&&(ht(t,1,e),nl(t,e));break}}t=t.return}}function Sl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Jc(),e.pingedLanes|=e.suspendedLanes&n,Cc===e&&(Tc&n)===n&&(4===jc||3===jc&&(130023424&Tc)===Tc&&500>Ke()-Vc?fl(e,0):Dc|=n),nl(e,t)}function El(e,t){0===t&&(1&e.mode?(t=st,!(130023424&(st<<=1))&&(st=4194304)):t=1);var n=Jc();null!==(e=zo(e,t))&&(ht(e,t,n),nl(e,n))}function Al(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),El(e,n)}function zl(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),El(e,r)}function Cl(e,t){return $e(e,t)}function Il(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tl(e,t,n,r){return new Il(e,t,n,r)}function Rl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pl(e,t){var n=e.alternate;return null===n?((n=Tl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jl(e,t,r,a,o,i){var s=2;if(a=e,"function"==typeof e)Rl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return Ol(r.children,o,i,t);case w:s=8,o|=8;break;case k:return(e=Tl(12,r,t,2|o)).elementType=k,e.lanes=i,e;case A:return(e=Tl(13,r,t,o)).elementType=A,e.lanes=i,e;case z:return(e=Tl(19,r,t,o)).elementType=z,e.lanes=i,e;case T:return Nl(r,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:s=10;break e;case S:s=9;break e;case E:s=11;break e;case C:s=14;break e;case I:s=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Tl(s,r,t,o)).elementType=e,t.type=a,t.lanes=i,t}function Ol(e,t,n,r){return(e=Tl(7,e,r,t)).lanes=n,e}function Nl(e,t,n,r){return(e=Tl(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Ml(e,t,n){return(e=Tl(6,e,null,t)).lanes=n,e}function Dl(e,t,n){return(t=Tl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fl(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pt(0),this.expirationTimes=pt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Ll(e,t,n,r,a,o,i,s,c){return e=new Fl(e,t,n,s,c),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Tl(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Io(o),e}function Vl(e){if(!e)return Sa;e:{if(Le(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ia(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ia(r))return Pa(e,r,t)}return t}function ql(e,t,n,r,a,o,i,s,c){return(e=Ll(n,r,!0,e,0,o,0,s,c)).context=Vl(null),n=e.current,(o=Ro(r=Jc(),a=el(n))).callback=t??null,Po(n,o,a),e.current.lanes=a,ht(e,a,r),nl(e,r),e}function Bl(e,t,n,r){var a=t.current,o=Jc(),i=el(a);return n=Vl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ro(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Po(a,t,i))&&(tl(e,a,i,o),jo(e,a,i)),i}function Ul(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wl(e,t){$l(e,t),(e=e.alternate)&&$l(e,t)}kc=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Aa.current)vs=!0;else{if(!(e.lanes&r||128&t.flags))return vs=!1,function(e,t,n){switch(t.tag){case 3:Cs(t),uo();break;case 5:ri(t);break;case 1:Ia(t.type)&&ja(t);break;case 4:ti(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;xa(mo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(xa(oi,1&oi.current),t.flags|=128,null):n&t.child.childLanes?Ms(e,t,n):(xa(oi,1&oi.current),null!==(e=Us(e,t,n))?e.sibling:null);xa(oi,1&oi.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return qs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),xa(oi,oi.current),r)break;return null;case 22:case 23:return t.lanes=0,xs(e,t,n)}return Us(e,t,n)}(e,t,r);vs=!!(131072&e.flags)}else vs=!1,to&&1048576&t.flags&&Ya(t,Ua,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Bs(e,t),e=t.pendingProps;var o=Ca(t,Ea.current);ko(t,r),o=wi(null,t,a,e,o,r);var i=ki();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ia(a)?(i=!0,ja(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Io(t),o.updater=Lo,t.stateNode=o,o._reactInternals=t,Uo(t,a,e,r),t=zs(null,t,a,!0,i,r)):(t.tag=0,to&&i&&Za(t),bs(null,t,o,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Bs(e,t),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return Rl(e)?1:0;if(null!=e){if((e=e.$$typeof)===E)return 11;if(e===C)return 14}return 2}(a),e=ho(a,e),o){case 0:t=Es(null,t,a,e,r);break e;case 1:t=As(null,t,a,e,r);break e;case 11:t=_s(null,t,a,e,r);break e;case 14:t=ws(null,t,a,ho(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,Es(e,t,a,o=t.elementType===a?o:ho(a,o),r);case 1:return a=t.type,o=t.pendingProps,As(e,t,a,o=t.elementType===a?o:ho(a,o),r);case 3:e:{if(Cs(t),null===e)throw Error(n(387));a=t.pendingProps,o=(i=t.memoizedState).element,To(e,t),No(t,a,null,r);var s=t.memoizedState;if(a=s.element,i.isDehydrated){if(i={element:a,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Is(e,t,a,r,o=cs(Error(n(423)),t));break e}if(a!==o){t=Is(e,t,a,r,o=cs(Error(n(424)),t));break e}for(eo=ia(t.stateNode.containerInfo.firstChild),Ja=t,to=!0,no=null,r=Qo(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(uo(),a===o){t=Us(e,t,r);break e}bs(e,t,a,r)}t=t.child}return t;case 5:return ri(t),null===e&&io(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Jr(a,o)?s=null:null!==i&&Jr(a,i)&&(t.flags|=32),Ss(e,t),bs(e,t,s,r),t.child;case 6:return null===e&&io(t),null;case 13:return Ms(e,t,r);case 4:return ti(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=Ko(t,null,a,r):bs(e,t,a,r),t.child;case 11:return a=t.type,o=t.pendingProps,_s(e,t,a,o=t.elementType===a?o:ho(a,o),r);case 7:return bs(e,t,t.pendingProps,r),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,xa(mo,a._currentValue),a._currentValue=s,null!==i)if(ar(i.value,s)){if(i.children===o.children&&!Aa.current){t=Us(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var c=i.dependencies;if(null!==c){s=i.child;for(var l=c.firstContext;null!==l;){if(l.context===a){if(1===i.tag){(l=Ro(-1,r&-r)).tag=2;var u=i.updateQueue;if(null!==u){var f=(u=u.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}i.lanes|=r,null!==(l=i.alternate)&&(l.lanes|=r),wo(i.return,r,t),c.lanes|=r;break}l=l.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(n(341));s.lanes|=r,null!==(c=s.alternate)&&(c.lanes|=r),wo(s,r,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}bs(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,ko(t,r),a=a(o=xo(o)),t.flags|=1,bs(e,t,a,r),t.child;case 14:return o=ho(a=t.type,t.pendingProps),ws(e,t,a,o=ho(a.type,o),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:ho(a,o),Bs(e,t),t.tag=1,Ia(a)?(e=!0,ja(t)):e=!1,ko(t,r),qo(t,a,o),Uo(t,a,o,r),zs(null,t,a,!0,e,r);case 19:return qs(e,t,r);case 22:return xs(e,t,r)}throw Error(n(156,t.tag))};var Hl="function"==typeof reportError?reportError:function(e){console.error(e)};function Gl(e){this._internalRoot=e}function Kl(e){this._internalRoot=e}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zl(){}function Xl(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"==typeof a){var s=a;a=function(){var e=Ul(i);s.call(e)}}Bl(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Ul(i);o.call(e)}}var i=ql(t,r,e,0,null,!1,0,"",Zl);return e._reactRootContainer=i,e[fa]=i.current,Lr(8===e.nodeType?e.parentNode:e),ll(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var s=r;r=function(){var e=Ul(c);s.call(e)}}var c=Ll(e,0,!1,null,0,!1,0,"",Zl);return e._reactRootContainer=c,e[fa]=c.current,Lr(8===e.nodeType?e.parentNode:e),ll((function(){Bl(t,c,n,r)})),c}(n,t,e,a,r);return Ul(i)}Kl.prototype.render=Gl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Bl(e,t,null,null)},Kl.prototype.unmount=Gl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ll((function(){Bl(null,e,null,null)})),t[fa]=null}},Kl.prototype.unstable_scheduleHydration=function(e){if(e){var t=wt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&Ot(e)}},vt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ct(t.pendingLanes);0!==n&&(mt(t,1|n),nl(t,Ke()),!(6&zc)&&(qc=Ke()+500,La()))}break;case 13:ll((function(){var t=zo(e,1);if(null!==t){var n=Jc();tl(t,e,1,n)}})),Wl(e,1)}},bt=function(e){if(13===e.tag){var t=zo(e,134217728);if(null!==t)tl(t,e,134217728,Jc());Wl(e,134217728)}},_t=function(e){if(13===e.tag){var t=el(e),n=zo(e,t);if(null!==n)tl(n,e,t,Jc());Wl(e,t)}},wt=function(){return yt},kt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},be=function(e,t,r){switch(t){case"input":if(Q(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var o=va(a);if(!o)throw Error(n(90));$(a),Q(a,o)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&J(e,!!r.multiple,t,!1)}},Ee=cl,Ae=ll;var Jl={usingClientEntryPoint:!1,Events:[ya,ga,va,xe,Se,cl]},eu={findFiberByHostInstance:ma,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},tu={bundleType:eu.bundleType,version:eu.version,rendererPackageName:eu.rendererPackageName,rendererConfig:eu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:eu.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{tt=nu.inject(tu),nt=nu}catch{}}return Ei.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jl,Ei.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ql(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},Ei.createRoot=function(e,t){if(!Ql(e))throw Error(n(299));var r=!1,a="",o=Hl;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Ll(e,1,!1,null,0,r,0,a,o),e[fa]=t.current,Lr(8===e.nodeType?e.parentNode:e),new Gl(t)},Ei.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=null===(e=Be(t))?null:e.stateNode},Ei.flushSync=function(e){return ll(e)},Ei.hydrate=function(e,t,r){if(!Yl(t))throw Error(n(200));return Xl(null,e,t,!0,r)},Ei.hydrateRoot=function(e,t,r){if(!Ql(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,o=!1,i="",s=Hl;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=ql(t,null,e,1,r??null,o,0,i,s),e[fa]=t.current,Lr(e),a)for(e=0;e<a.length;e++)o=(o=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Kl(t)},Ei.render=function(e,t,r){if(!Yl(t))throw Error(n(200));return Xl(null,e,t,!1,r)},Ei.unmountComponentAtNode=function(e){if(!Yl(e))throw Error(n(40));return!!e._reactRootContainer&&(ll((function(){Xl(null,null,e,!1,(function(){e._reactRootContainer=null,e[fa]=null}))})),!0)},Ei.unstable_batchedUpdates=cl,Ei.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Yl(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Xl(e,t,r,!1,a)},Ei.version="18.2.0-next-9e3b772b8-20220608",Ei}function MK(){if(T9)return i3.exports;return T9=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),i3.exports=zK(),i3.exports}var Zl=MK();const c7=Ql(Zl),pm=v.forwardRef(((e,t)=>{const{children:n,...r}=e,a=v.Children.toArray(n),o=a.find(DK);if(o){const e=o.props.children,n=a.map((t=>t===o?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return v.createElement(wC,Le({},r,{ref:t}),v.isValidElement(e)?v.cloneElement(e,void 0,n):null)}return v.createElement(wC,Le({},r,{ref:t}),n)}));pm.displayName="Slot";const wC=v.forwardRef(((e,t)=>{const{children:n,...r}=e;return v.isValidElement(n)?v.cloneElement(n,{...NK(r,n.props),ref:t?rA(t,n.ref):n.ref}):v.Children.count(n)>1?v.Children.only(null):null}));wC.displayName="SlotClone";const aA=({children:e})=>v.createElement(v.Fragment,null,e);function DK(e){return v.isValidElement(e)&&e.type===aA}function NK(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}const LK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],St=LK.reduce(((e,t)=>{const n=v.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?pm:t;return v.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),v.createElement(o,Le({},a,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function l7(e,t){e&&Zl.flushSync((()=>e.dispatchEvent(t)))}function jK(e,t=(null==globalThis?void 0:globalThis.document)){const n=Bc(e);v.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const kC="dismissableLayer.update",BK="dismissableLayer.pointerDownOutside",FK="dismissableLayer.focusOutside";let I9;const UK=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ek=v.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(UK),[f,d]=v.useState(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=v.useState({}),m=yn(t,(e=>d(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(g),_=f?y.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=_>=b,x=VK((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));!k||n||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p),S=qK((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p);return jK((e=>{_===u.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),v.useEffect((()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(I9=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),P9(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=I9)}}),[f,p,r,u]),v.useEffect((()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),P9())}),[f,u]),v.useEffect((()=>{const e=()=>h({});return document.addEventListener(kC,e),()=>document.removeEventListener(kC,e)}),[]),v.createElement(St.div,Le({},l,{ref:m,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:lt(e.onFocusCapture,S.onFocusCapture),onBlurCapture:lt(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:lt(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function VK(e,t=(null==globalThis?void 0:globalThis.document)){const n=Bc(e),r=v.useRef(!1),a=v.useRef((()=>{}));return v.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){f7(BK,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function qK(e,t=(null==globalThis?void 0:globalThis.document)){const n=Bc(e),r=v.useRef(!1);return v.useEffect((()=>{const e=e=>{e.target&&!r.current&&f7(FK,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function P9(){const e=new CustomEvent(kC);document.dispatchEvent(e)}function f7(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?l7(a,o):a.dispatchEvent(o)}const l3="focusScope.autoFocusOnMount",f3="focusScope.autoFocusOnUnmount",$9={bubbles:!1,cancelable:!0},oA=v.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,c]=v.useState(null),l=Bc(a),u=Bc(o),f=v.useRef(null),d=yn(t,(e=>c(e))),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:ap(f.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||ap(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ap(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),v.useEffect((()=>{if(s){z9.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(l3,$9);s.addEventListener(l3,l),s.dispatchEvent(t),t.defaultPrevented||(WK(YK(u7(s)),{select:!0}),document.activeElement===e&&ap(s))}return()=>{s.removeEventListener(l3,l),setTimeout((()=>{const t=new CustomEvent(f3,$9);s.addEventListener(f3,u),s.dispatchEvent(t),t.defaultPrevented||ap(e??document.body,{select:!0}),s.removeEventListener(f3,u),z9.remove(p)}),0)}}}),[s,l,u,p]);const h=v.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=HK(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&ap(o,{select:!0})):(e.preventDefault(),n&&ap(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,p.paused]);return v.createElement(St.div,Le({tabIndex:-1},i,{ref:d,onKeyDown:h}))}));function WK(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ap(r,{select:t}),document.activeElement!==n)return}function HK(e){const t=u7(e);return[O9(t,e),O9(t.reverse(),e)]}function u7(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function O9(e,t){for(const n of e)if(!GK(n,{upTo:t}))return n}function GK(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function KK(e){return e instanceof HTMLInputElement&&"select"in e}function ap(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&KK(e)&&t&&e.select()}}const z9=QK();function QK(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=M9(e,t),e.unshift(t)},remove(t){var n;e=M9(e,t),null===(n=e[0])||void 0===n||n.resume()}}}function M9(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function YK(e){return e.filter((e=>"A"!==e.tagName))}const iA=v.forwardRef(((e,t)=>{var n;const{container:r=(null==globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...a}=e;return r?c7.createPortal(v.createElement(St.div,Le({},a,{ref:t})),r):null}));function ZK(e,t){return v.useReducer(((e,n)=>t[e][n]??e),e)}const Ws=e=>{const{present:t,children:n}=e,r=XK(t),a="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),o=yn(r.ref,a.ref);return"function"==typeof n||r.isPresent?v.cloneElement(a,{ref:o}):null};function XK(e){const[t,n]=v.useState(),r=v.useRef({}),a=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[s,c]=ZK(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect((()=>{const e=Wv(r.current);o.current="mounted"===s?e:"none"}),[s]),Mo((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=Wv(t);e?c("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,c]),Mo((()=>{if(t){const e=e=>{const n=Wv(r.current).includes(e.animationName);e.target===t&&n&&Zl.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(o.current=Wv(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Wv(e){return(null==e?void 0:e.animationName)||"none"}Ws.displayName="Presence";let u3=0;function sA(){v.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:D9()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:D9()),u3++,()=>{1===u3&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),u3--}}),[])}function D9(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Oo=function(){return Oo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Oo.apply(this,arguments)};function cA(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function d7(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)(r||!(a in t))&&(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var Ay="right-scroll-bar-position",Ty="width-before-scroll-bar",JK="with-scroll-bars-hidden",eQ="--removed-body-scroll-bar-size";function d3(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function tQ(e,t){var n=v.useState((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}var nQ=typeof window<"u"?v.useLayoutEffect:v.useEffect,N9=new WeakMap;function p7(e,t){var n=tQ(null,(function(t){return e.forEach((function(e){return d3(e,t)}))}));return nQ((function(){var t=N9.get(n);if(t){var r=new Set(t),a=new Set(e),o=n.current;r.forEach((function(e){a.has(e)||d3(e,null)})),a.forEach((function(e){r.has(e)||d3(e,o)}))}N9.set(n,e)}),[e]),n}function rQ(e){return e}function aQ(e,t){void 0===t&&(t=rQ);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}function h7(e){void 0===e&&(e={});var t=aQ(null);return t.options=Oo({async:!0,ssr:!1},e),t}var m7=function(e){var t=e.sideCar,n=cA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Oo({},n))};function g7(e,t){return e.useMedium(t),m7}m7.isSideCarExport=!0;var y7=h7(),p3=function(){},tk=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:p3,onWheelCapture:p3,onTouchMoveCapture:p3}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,y=e.as,g=void 0===y?"div":y,b=cA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=d,w=p7([n,t]),k=Oo(Oo({},b),a);return v.createElement(v.Fragment,null,u&&v.createElement(_,{sideCar:y7,removeScrollBar:l,shards:f,noIsolation:p,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:n}),i?v.cloneElement(v.Children.only(s),Oo(Oo({},k),{ref:w})):v.createElement(g,Oo({},k,{className:c,ref:w}),s))}));tk.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tk.classNames={fullWidth:Ty,zeroRight:Ay};var oQ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oQ();return t&&e.setAttribute("nonce",t),e}function sQ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cQ(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var lQ=function(){var e=0,t=null;return{add:function(n){0==e&&(t=iQ())&&(sQ(t,n),cQ(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fQ=function(){var e=lQ();return function(t,n){v.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}},lA=function(){var e=fQ();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},uQ={left:0,top:0,right:0,gap:0},h3=function(e){return parseInt(e||"",10)||0},dQ=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[h3(n),h3(r),h3(a)]},pQ=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return uQ;var t=dQ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},hQ=lA(),y1="data-scroll-locked",mQ=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat(JK," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(y1,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Ay," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Ty," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Ay," .").concat(Ay," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Ty," .").concat(Ty," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(y1,"] {\n ").concat(eQ,": ").concat(s,"px;\n }\n")},L9=function(){var e=parseInt(document.body.getAttribute(y1)||"0",10);return isFinite(e)?e:0},gQ=function(){v.useEffect((function(){return document.body.setAttribute(y1,(L9()+1).toString()),function(){var e=L9()-1;e<=0?document.body.removeAttribute(y1):document.body.setAttribute(y1,e.toString())}}),[])},_7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;gQ();var o=v.useMemo((function(){return pQ(a)}),[a]);return v.createElement(hQ,{styles:mQ(o,!t,a,n?"":"!important")})},xC=!1;if(typeof window<"u")try{var Hv=Object.defineProperty({},"passive",{get:function(){return xC=!0,!0}});window.addEventListener("test",Hv,Hv),window.removeEventListener("test",Hv,Hv)}catch{xC=!1}var Qg=!!xC&&{passive:!1},yQ=function(e){return"TEXTAREA"===e.tagName},v7=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!yQ(e)&&"visible"===n[t])},_Q=function(e){return v7(e,"overflowY")},vQ=function(e){return v7(e,"overflowX")},j9=function(e,t){var n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),b7(e,n)){var r=w7(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},bQ=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},wQ=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},b7=function(e,t){return"v"===e?_Q(t):vQ(t)},w7=function(e,t){return"v"===e?bQ(t):wQ(t)},kQ=function(e,t){return"h"===e&&"rtl"===t?-1:1},xQ=function(e,t,n,r,a){var o=kQ(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,c=t.contains(s),l=!1,u=i>0,f=0,d=0;do{var p=w7(e,s),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&b7(e,s)&&(f+=m,d+=h),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(0===f||!a)||!u&&(0===d||!a))&&(l=!0),l},Gv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B9=function(e){return[e.deltaX,e.deltaY]},F9=function(e){return e&&"current"in e?e.current:e},SQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EQ=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},CQ=0,Yg=[];function RQ(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),a=v.useState(CQ++)[0],o=v.useState((function(){return lA()}))[0],i=v.useRef(e);v.useEffect((function(){i.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=d7([e.lockRef.current],(e.shards||[]).map(F9),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var a,o=Gv(e),s=n.current,c="deltaX"in e?e.deltaX:s[0]-o[0],l="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=j9(f,u);if(!d)return!0;if(d?a=f:(a="v"===f?"h":"v",d=j9(f,u)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=a),!a)return!0;var p=r.current||a;return xQ(p,t,e,"h"===p?c:l,!0)}),[]),c=v.useCallback((function(e){var n=e;if(Yg.length&&Yg[Yg.length-1]===o){var r="deltaY"in n?B9(n):Gv(n),a=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&SQ(e.delta,r)}))[0];if(a&&a.should)return void(n.cancelable&&n.preventDefault());if(!a){var c=(i.current.shards||[]).map(F9).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?s(n,c[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=v.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=v.useCallback((function(e){n.current=Gv(e),r.current=void 0}),[]),f=v.useCallback((function(t){l(t.type,B9(t),t.target,s(t,e.lockRef.current))}),[]),d=v.useCallback((function(t){l(t.type,Gv(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return Yg.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Qg),document.addEventListener("touchmove",c,Qg),document.addEventListener("touchstart",u,Qg),function(){Yg=Yg.filter((function(e){return e!==o})),document.removeEventListener("wheel",c,Qg),document.removeEventListener("touchmove",c,Qg),document.removeEventListener("touchstart",u,Qg)}}),[]);var p=e.removeScrollBar,h=e.inert;return v.createElement(v.Fragment,null,h?v.createElement(o,{styles:EQ(a)}):null,p?v.createElement(_7,{gapMode:"margin"}):null)}const AQ=g7(y7,RQ);var nk=v.forwardRef((function(e,t){return v.createElement(tk,Oo({},e,{ref:t,sideCar:AQ}))}));nk.classNames=tk.classNames;var TQ=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Zg=new WeakMap,Kv=new WeakMap,Qv={},m3=0,k7=function(e){return e&&(e.host||k7(e.parentNode))},IQ=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=k7(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return!!e}))},PQ=function(e,t,n,r){var a=IQ(t,Array.isArray(e)?e:[e]);Qv[n]||(Qv[n]=new WeakMap);var o=Qv[n],i=[],s=new Set,c=new Set(a),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};a.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,c=(Zg.get(e)||0)+1,l=(o.get(e)||0)+1;Zg.set(e,c),o.set(e,l),i.push(e),1===c&&a&&Kv.set(e,!0),1===l&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),s.clear(),m3++,function(){i.forEach((function(e){var t=Zg.get(e)-1,a=o.get(e)-1;Zg.set(e,t),o.set(e,a),t||(Kv.has(e)||e.removeAttribute(r),Kv.delete(e)),a||e.removeAttribute(n)})),--m3||(Zg=new WeakMap,Zg=new WeakMap,Kv=new WeakMap,Qv={})}},rk=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=TQ(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),PQ(r,a,n,"aria-hidden")):function(){return null}};const x7="Dialog",[S7,E7]=ii(x7),[$Q,Xl]=S7(x7),OQ=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=v.useRef(null),c=v.useRef(null),[l=!1,u]=wp({prop:r,defaultProp:a,onChange:o});return v.createElement($Q,{scope:t,triggerRef:s,contentRef:c,contentId:hp(),titleId:hp(),descriptionId:hp(),open:l,onOpenChange:u,onOpenToggle:v.useCallback((()=>u((e=>!e))),[u]),modal:i},n)},C7="DialogPortal",[zQ,R7]=S7(C7,{forceMount:void 0}),MQ=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Xl(C7,t);return v.createElement(zQ,{scope:t,forceMount:n},v.Children.map(r,(e=>v.createElement(Ws,{present:n||o.open},v.createElement(iA,{asChild:!0,container:a},e)))))},SC="DialogOverlay",DQ=v.forwardRef(((e,t)=>{const n=R7(SC,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Xl(SC,e.__scopeDialog);return o.modal?v.createElement(Ws,{present:r||o.open},v.createElement(NQ,Le({},a,{ref:t}))):null})),NQ=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Xl(SC,n);return v.createElement(nk,{as:pm,allowPinchZoom:!0,shards:[a.contentRef]},v.createElement(St.div,Le({"data-state":I7(a.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),E1="DialogContent",LQ=v.forwardRef(((e,t)=>{const n=R7(E1,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Xl(E1,e.__scopeDialog);return v.createElement(Ws,{present:r||o.open},o.modal?v.createElement(jQ,Le({},a,{ref:t})):v.createElement(BQ,Le({},a,{ref:t})))})),jQ=v.forwardRef(((e,t)=>{const n=Xl(E1,e.__scopeDialog),r=v.useRef(null),a=yn(t,n.contentRef,r);return v.useEffect((()=>{const e=r.current;if(e)return rk(e)}),[]),v.createElement(A7,Le({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lt(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:lt(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:lt(e.onFocusOutside,(e=>e.preventDefault()))}))})),BQ=v.forwardRef(((e,t)=>{const n=Xl(E1,e.__scopeDialog),r=v.useRef(!1),a=v.useRef(!1);return v.createElement(A7,Le({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}}))})),A7=v.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=Xl(E1,n),c=yn(t,v.useRef(null));return sA(),v.createElement(v.Fragment,null,v.createElement(oA,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o},v.createElement(ek,Le({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":I7(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)})),T7="DialogTitle",FQ=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Xl(T7,n);return v.createElement(St.h2,Le({id:a.titleId},r,{ref:t}))})),UQ="DialogDescription",VQ=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Xl(UQ,n);return v.createElement(St.p,Le({id:a.descriptionId},r,{ref:t}))})),qQ="DialogClose",WQ=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Xl(qQ,n);return v.createElement(St.button,Le({type:"button"},r,{ref:t,onClick:lt(e.onClick,(()=>a.onOpenChange(!1)))}))}));function I7(e){return e?"open":"closed"}const HQ="DialogTitleWarning",[GQ,TWe]=CK(HQ,{contentName:E1,titleName:T7,docsSlug:"dialog"}),P7=OQ,ak=MQ,q1=DQ,W1=LQ,D_=FQ,N_=VQ,ok=WQ,KQ="AlertDialog",[QQ,IWe]=ii(KQ,[E7]),Rm=E7(),YQ=e=>{const{__scopeAlertDialog:t,...n}=e,r=Rm(t);return v.createElement(ak,Le({},r,n))},ZQ=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Rm(n);return v.createElement(q1,Le({},a,r,{ref:t}))})),$7="AlertDialogContent",[XQ,JQ]=QQ($7),eY=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,children:r,...a}=e,o=Rm(n),i=yn(t,v.useRef(null)),s=v.useRef(null);return v.createElement(GQ,{contentName:$7,titleName:tY,docsSlug:"alert-dialog"},v.createElement(XQ,{scope:n,cancelRef:s},v.createElement(W1,Le({role:"alertdialog"},o,a,{ref:i,onOpenAutoFocus:lt(a.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),v.createElement(aA,null,r),!1)))})),tY="AlertDialogTitle",nY=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Rm(n);return v.createElement(D_,Le({},a,r,{ref:t}))})),rY=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Rm(n);return v.createElement(N_,Le({},a,r,{ref:t}))})),aY=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Rm(n);return v.createElement(ok,Le({},a,r,{ref:t}))})),oY="AlertDialogCancel",iY=v.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:a}=JQ(oY,n),o=Rm(n),i=yn(t,a);return v.createElement(ok,Le({},o,r,{ref:i}))})),sY=YQ,O7=ZQ,z7=eY,M7=aY,D7=iY,N7=nY,L7=rY,cY=sY,j7=v.forwardRef((({className:e,...t},n)=>F.jsx(O7,{className:$e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));j7.displayName=O7.displayName;const lY=v.forwardRef((({className:e,...t},n)=>F.jsxs(cY,{children:[F.jsx(j7,{}),F.jsx(z7,{ref:n,className:$e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-sm",e),...t})]})));lY.displayName=z7.displayName;const fY=v.forwardRef((({className:e,...t},n)=>F.jsx(N7,{ref:n,className:$e("text-lg font-semibold",e),...t})));fY.displayName=N7.displayName;const uY=v.forwardRef((({className:e,...t},n)=>F.jsx(L7,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));uY.displayName=L7.displayName;const dY=v.forwardRef((({className:e,...t},n)=>F.jsx(M7,{ref:n,className:$e(nA(),e),...t})));dY.displayName=M7.displayName;const pY=v.forwardRef((({className:e,...t},n)=>F.jsx(D7,{ref:n,className:$e(nA({variant:"primary"}),"mt-2 sm:mt-0",e),...t})));pY.displayName=D7.displayName;const B7="Avatar",[hY,PWe]=ii(B7),[mY,F7]=hY(B7),gY=v.forwardRef(((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,o]=v.useState("idle");return v.createElement(mY,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:o},v.createElement(St.span,Le({},r,{ref:t})))})),yY="AvatarImage",_Y=v.forwardRef(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...o}=e,i=F7(yY,n),s=wY(r),c=Bc((e=>{a(e),i.onImageLoadingStatusChange(e)}));return Mo((()=>{"idle"!==s&&c(s)}),[s,c]),"loaded"===s?v.createElement(St.img,Le({},o,{ref:t,src:r})):null})),vY="AvatarFallback",bY=v.forwardRef(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,o=F7(vY,n),[i,s]=v.useState(void 0===r);return v.useEffect((()=>{if(void 0!==r){const e=window.setTimeout((()=>s(!0)),r);return()=>window.clearTimeout(e)}}),[r]),i&&"loaded"!==o.imageLoadingStatus?v.createElement(St.span,Le({},a,{ref:t})):null}));function wY(e){const[t,n]=v.useState("idle");return Mo((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,a=e=>()=>{t&&n(e)};return n("loading"),r.onload=a("loaded"),r.onerror=a("error"),r.src=e,()=>{t=!1}}),[e]),t}const U7=gY,V7=_Y,q7=bY,W7=v.forwardRef((({className:e,...t},n)=>F.jsx(U7,{ref:n,className:$e("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t})));W7.displayName=U7.displayName;const H7=v.forwardRef((({className:e,...t},n)=>F.jsx(V7,{ref:n,className:$e("aspect-square size-full",e),...t})));H7.displayName=V7.displayName;const kY=v.forwardRef((({className:e,...t},n)=>F.jsx(q7,{ref:n,className:$e("flex size-full items-center justify-center bg-slate-700 text-white",e),...t})));kY.displayName=q7.displayName;const xY=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,className:$e("rounded-sm border bg-card text-card-foreground shadow-sm",e),...t})));xY.displayName="Card";const SY=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,className:$e("flex flex-col space-y-1.5 p-6",e),...t})));SY.displayName="CardHeader";const EY=v.forwardRef((({className:e,...t},n)=>F.jsx("h3",{ref:n,className:$e("text-2xl font-semibold leading-none tracking-tight",e),...t})));EY.displayName="CardTitle";const CY=v.forwardRef((({className:e,...t},n)=>F.jsx("p",{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));CY.displayName="CardDescription";const RY=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,className:$e("p-6 pt-0",e),...t})));RY.displayName="CardContent";const AY=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,className:$e("flex items-center p-6 pt-0",e),...t})));function TY(e){return"[object Object]"===Object.prototype.toString.call(e)}function U9(e){return TY(e)||Array.isArray(e)}function IY(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fA(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:U9(r)&&U9(a)?fA(r,a):r===a}))}function V9(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function PY(e,t){if(e.length!==t.length)return!1;const n=V9(e),r=V9(t);return n.every(((e,t)=>fA(e,r[t])))}function uA(e){return"number"==typeof e}function EC(e){return"string"==typeof e}function dA(e){return"boolean"==typeof e}function q9(e){return"[object Object]"===Object.prototype.toString.call(e)}function fr(e){return Math.abs(e)}function pA(e){return Math.sign(e)}function Iy(e,t){return fr(e-t)}function $Y(e,t){if(0===e||0===t||fr(e)<=fr(t))return 0;const n=Iy(fr(e),fr(t));return fr(n/e)}function Yy(e){return Zy(e).map(Number)}function Oc(e){return e[L_(e)]}function L_(e){return Math.max(0,e.length-1)}function hA(e,t){return t===L_(e)}function W9(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function Zy(e){return Object.keys(e)}function G7(e,t){return[e,t].reduce(((e,t)=>(Zy(t).forEach((n=>{const r=e[n],a=t[n],o=q9(r)&&q9(a);e[n]=o?G7(r,a):a})),e)),{})}function K7(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function OY(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}return{measure:function(r,a){return EC(e)?n[e](r):e(t,r,a)}}}function Xy(){let e=[];const t={add:function(n,r,a,o={passive:!0}){let i;if("addEventListener"in n)n.addEventListener(r,a,o),i=()=>n.removeEventListener(r,a,o);else{const e=n;e.addListener(a),i=()=>e.removeListener(a)}return e.push(i),t},clear:function(){e=e.filter((e=>e()))}};return t}function zY(e,t,n,r){const a=Xy(),o=1e3/60;let i=null,s=0,c=0;function l(e){if(!c)return;i||(i=e);const a=e-i;for(i=e,s+=a;s>=o;)n(),s-=o;const u=fr(s/o);r(u),c&&t.requestAnimationFrame(l)}function u(){t.cancelAnimationFrame(c),i=null,s=0,c=0}return{init:function(){a.add(e,"visibilitychange",(()=>{e.hidden&&(i=null,s=0)}))},destroy:function(){u(),a.clear()},start:function(){c||(c=t.requestAnimationFrame(l))},stop:u,update:n,render:r}}function MY(e,t){const n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){const{width:t,height:r}=e;return"x"===n?t:r}}}function hm(e=0,t=0){const n=fr(e-t);function r(t){return t<e}function a(e){return e>t}function o(e){return r(e)||a(e)}return{length:n,max:t,min:e,constrain:function(n){return o(n)?r(n)?e:t:n},reachedAny:o,reachedMax:a,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function Q7(e,t,n){const{constrain:r}=hm(0,e),a=e+1;let o=i(t);function i(e){return n?fr((a+e)%a):r(e)}function s(){return o}function c(){return Q7(e,s(),n)}const l={get:s,set:function(e){return o=i(e),l},add:function(e){return c().set(s()+e)},clone:c};return l}function DY(e){const t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}function NY(e,t,n,r,a,o,i,s,c,l,u,f,d,p,h,m,y,g,v,b){const{cross:_}=e,w=["INPUT","SELECT","TEXTAREA"],k={passive:!1},x=Xy(),S=Xy(),E=hm(50,225).constrain(h.measure(20)),A={mouse:300,touch:400},z={mouse:500,touch:600},C=m?43:25;let I=!1,T=0,R=0,P=!1,j=!1,O=!1,N=!1;function M(e){const n=i.readPoint(e),r=i.readPoint(e,_),a=Iy(n,T),s=Iy(r,R);if(!(j||N||e.cancelable&&(j=a>s,j)))return D(e);const l=i.pointerMove(e);a>y&&(O=!0),u.useFriction(.3).useDuration(1),c.start(),o.add(t.apply(l)),e.preventDefault()}function D(e){const n=f.byDistance(0,!1).index!==d.get(),r=i.pointerUp(e)*(m?z:A)[N?"mouse":"touch"],a=function(e,t){const n=d.add(-1*pA(e)),r=f.byDistance(e,!m).distance;return m||fr(e)<E?r:g&&t?.5*r:f.byIndex(n.get(),0).distance}(t.apply(r),n),o=$Y(r,a),s=C-10*o,c=v+o/50;j=!1,P=!1,S.clear(),u.useDuration(s).useFriction(c),l.distance(a,!m),N=!1,p.emit("pointerUp")}function F(e){O&&(e.stopPropagation(),e.preventDefault())}return{init:function(e){if(!b)return;function t(t){(dA(b)||b(e,t))&&function(e){const t=K7(e,a);N=t,(!t||0===e.button)&&(function(e){const t=e.nodeName||"";return w.includes(t)}(e.target)||(O=m&&t&&!e.buttons&&I,I=Iy(o.get(),s.get())>=2,P=!0,i.pointerDown(e),u.useFriction(0).useDuration(0),o.set(s),function(){const e=N?r:n;S.add(e,"touchmove",M,k).add(e,"touchend",D).add(e,"mousemove",M,k).add(e,"mouseup",D)}(),T=i.readPoint(e),R=i.readPoint(e,_),p.emit("pointerDown")))}(t)}const c=n;x.add(c,"dragstart",(e=>e.preventDefault()),k).add(c,"touchmove",(()=>{}),k).add(c,"touchend",(()=>{})).add(c,"touchstart",t).add(c,"mousedown",t).add(c,"touchcancel",D).add(c,"contextmenu",D).add(c,"click",F,!0)},pointerDown:function(){return P},destroy:function(){x.clear(),S.clear()}}}function LY(e,t){let n,r;function a(e){return e.timeStamp}function o(n,r){const a="client"+("x"===(r||e.scroll)?"X":"Y");return(K7(n,t)?n:n.touches[0])[a]}return{pointerDown:function(e){return n=e,r=e,o(e)},pointerMove:function(e){const t=o(e)-o(r),i=a(e)-a(n)>170;return r=e,i&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=o(r)-o(n),i=a(e)-a(n),s=a(e)-a(r)>170,c=t/i;return i&&!s&&fr(c)>.1?c:0},readPoint:o}}function jY(){return{measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:a}=e;return{top:t,right:n+r,bottom:t+a,left:n,width:r,height:a}}}}function BY(e){return{measure:function(t){return e*(t/100)}}}function FY(e,t,n,r,a,o,i){let s,c,l=[],u=!1;function f(e){return a.measureSize(i.measure(e))}return{init:function(a){o&&(c=f(e),l=r.map(f),s=new ResizeObserver((i=>{u||(dA(o)||o(a,i))&&function(o){for(const i of o){const o=i.target===e,s=r.indexOf(i.target),u=o?c:l[s];if(fr(f(o?e:r[s])-u)>=.5){n.requestAnimationFrame((()=>{a.reInit(),t.emit("resize")}));break}}}(i)})),[e].concat(r).forEach((e=>s.observe(e))))},destroy:function(){s&&s.disconnect(),u=!0}}}function UY(e,t,n,r,a){let o=0,i=0,s=r,c=a,l=e.get(),u=0;function f(e){return s=e,p}function d(e){return c=e,p}const p={direction:function(){return i},duration:function(){return s},velocity:function(){return o},seek:function(){const t=n.get()-e.get();let r=0;return!s?(o=0,e.set(n),r=t):(o+=t/s,o*=c,l+=o,e.add(o),r=l-u),i=pA(r),u=l,p},settled:function(){return fr(n.get()-t.get())<.001},useBaseFriction:function(){return d(a)},useBaseDuration:function(){return f(r)},useFriction:d,useDuration:f};return p}function VY(e,t,n,r,a){const o=a.measure(10),i=a.measure(50),s=hm(.1,.99);let c=!1;return{constrain:function(a){if(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))return;const l=e.reachedMin(t.get())?"min":"max",u=fr(e[l]-t.get()),f=n.get()-t.get(),d=s.constrain(u/i);n.subtract(f*d),!a&&fr(f)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){c=!e}}}function qY(e,t,n,r,a){const o=hm(-t+e,0),i=n.map(((e,t)=>{const{min:r,max:a}=o,i=o.constrain(e),s=!t,l=hA(n,t);return s?a:l||c(r,i)?r:c(a,i)?a:i})).map((e=>parseFloat(e.toFixed(3)))),s=function(){const e=i[0],t=Oc(i),n=i.lastIndexOf(e),r=i.indexOf(t)+1;return hm(n,r)}();function c(e,t){return Iy(e,t)<1}return{snapsContained:function(){if(t<=e+a)return[o.max];if("keepSnaps"===r)return i;const{min:n,max:c}=s;return i.slice(n,c)}(),scrollContainLimit:s}}function WY(e,t,n){const r=t[0];return{limit:hm(n?r-e:Oc(t),r)}}function HY(e,t,n,r){const a=t.min+.1,o=t.max+.1,{reachedMin:i,reachedMax:s}=hm(a,o);return{loop:function(t){if(!function(e){return 1===e?s(n.get()):-1===e&&i(n.get())}(t))return;const a=e*(-1*t);r.forEach((e=>e.add(a)))}}}function GY(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}function KY(e,t,n,r,a){const{startEdge:o,endEdge:i}=e,{groupSlides:s}=a,c=s(r).map((e=>Oc(e)[i]-e[0][o])).map(fr).map(t.measure),l=r.map((e=>n[o]-e[o])).map((e=>-fr(e))),u=s(l).map((e=>e[0])).map(((e,t)=>e+c[t]));return{snaps:l,snapsAligned:u}}function QY(e,t,n,r,a,o){const{groupSlides:i}=a,{min:s,max:c}=r;return{slideRegistry:function(){const r=i(o),a=!e||"keepSnaps"===t;return 1===n.length?[o]:a?r:r.slice(s,c).map(((e,t,n)=>{const r=!t,a=hA(n,t);if(r){return W9(Oc(n[0])+1)}if(a){return W9(L_(o)-Oc(n)[0]+1,Oc(n)[0])}return e}))}()}}function YY(e,t,n,r,a){const{reachedAny:o,removeOffset:i,constrain:s}=r;function c(e){return e.concat().sort(((e,t)=>fr(e)-fr(t)))[0]}function l(t,r){const a=[t,t+n,t-n];if(!e)return a[0];if(!r)return c(a);const o=a.filter((e=>pA(e)===r));return o.length?c(o):Oc(a)-n}return{byDistance:function(n,r){const c=a.get()+n,{index:u,distance:f}=function(n){const r=e?i(n):s(n),a=t.map((e=>e-r)).map((e=>l(e,0))).map(((e,t)=>({diff:e,index:t}))).sort(((e,t)=>fr(e.diff)-fr(t.diff))),{index:o}=a[0];return{index:o,distance:r}}(c),d=!e&&o(c);return!r||d?{index:u,distance:n}:{index:u,distance:n+l(t[u]-f,0)}},byIndex:function(e,n){return{index:e,distance:l(t[e]-a.get(),n)}},shortcut:l}}function ZY(e,t,n,r,a,o,i){function s(a){const s=a.distance,c=a.index!==t.get();o.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(a.index),i.emit("select"))}return{distance:function(e,t){s(a.byDistance(e,t))},index:function(e,n){const r=t.clone().set(e);s(a.byIndex(r.get(),n))}}}function XY(e,t,n,r,a,o){let i=0;function s(e){"Tab"===e.code&&(i=(new Date).getTime())}function c(s){o.add(s,"focus",(()=>{if((new Date).getTime()-i>10)return;e.scrollLeft=0;const o=t.indexOf(s),c=n.findIndex((e=>e.includes(o)));uA(c)&&(a.useDuration(0),r.index(c,0))}),{passive:!0,capture:!0})}return{init:function(){o.add(document,"keydown",s,!1),t.forEach(c)}}}function Ob(e){let t=e;function n(e){return uA(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function Y7(e,t,n){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},a=n.style;let o=!1;return{clear:function(){o||(a.transform="",n.getAttribute("style")||n.removeAttribute("style"))},to:function(e){o||(a.transform=r(t.apply(e)))},toggleActive:function(e){o=!e}}}function JY(e,t,n,r,a,o,i,s,c,l){const u=Yy(o),f=Yy(o).reverse(),d=function(){const e=s[0];return m(h(f,e),r,!1)}().concat(function(){const e=n-s[0]-1;return m(h(u,e),-r,!0)}());function p(e,t){return e.reduce(((e,t)=>e-o[t]),t)}function h(e,t){return e.reduce(((e,n)=>p(e,t)>0?e.concat([n]):e),[])}function m(o,s,u){const f=function(e){return i.map(((t,r)=>({start:t-a[r]+.5+e,end:t+n-.5+e})))}(s);return o.map((n=>{const a=u?0:-r,o=u?r:0,i=u?"end":"start",s=f[n][i];return{index:n,loopPoint:s,slideLocation:Ob(-1),translate:Y7(e,t,l[n]),target:()=>c.get()>s?a:o}}))}return{canLoop:function(){return d.every((({index:e})=>p(u.filter((t=>t!==e)),n)<=.1))},clear:function(){d.forEach((e=>e.translate.clear()))},loop:function(){d.forEach((e=>{const{target:t,translate:n,slideLocation:r}=e,a=t();a!==r.get()&&(n.to(a),r.set(a))}))},loopPoints:d}}function eZ(e,t,n){let r,a=!1;return{init:function(o){n&&(r=new MutationObserver((e=>{a||(dA(n)||n(o,e))&&function(e){for(const n of e)if("childList"===n.type){o.reInit(),t.emit("slidesChanged");break}}(e)})),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),a=!0}}}function tZ(e,t,n,r){const a={};let o,i=null,s=null,c=!1;return{init:function(){o=new IntersectionObserver((e=>{c||(e.forEach((e=>{const n=t.indexOf(e.target);a[n]=e})),i=null,s=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:r}),t.forEach((e=>o.observe(e)))},destroy:function(){o&&o.disconnect(),c=!0},get:function(e=!0){if(e&&i)return i;if(!e&&s)return s;const t=function(e){return Zy(a).reduce(((t,n)=>{const r=parseInt(n),{isIntersecting:o}=a[r];return(e&&o||!e&&!o)&&t.push(r),t}),[])}(e);return e&&(i=t),e||(s=t),t}}}function nZ(e,t,n,r,a,o){const{measureSize:i,startEdge:s,endEdge:c}=e,l=n[0]&&a,u=function(){if(!l)return 0;const e=n[0];return fr(t[s]-e[s])}(),f=function(){if(!l)return 0;const e=o.getComputedStyle(Oc(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}(),d=n.map(i),p=n.map(((e,t,n)=>{const r=!t,a=hA(n,t);return r?d[t]+u:a?d[t]+f:n[t+1][s]-e[s]})).map(fr);return{slideSizes:d,slideSizesWithGaps:p,startGap:u,endGap:f}}function rZ(e,t,n,r,a,o,i,s,c,l){const{startEdge:u,endEdge:f}=e,d=uA(r);return{groupSlides:function(e){return d?function(e,t){return Yy(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,r):function(e){return e.length?Yy(e).reduce(((r,d)=>{const p=Oc(r)||0,h=0===p,m=d===L_(e),y=o[u]-i[p][u],g=o[u]-i[d][f],v=!a&&h?t.apply(s):0;return fr(g-(!a&&m?t.apply(c):0)-(y+v))>n+l&&r.push(d),m&&r.push(e.length),r}),[]).map(((t,n,r)=>{const a=Math.max(r[n-1]||0);return e.slice(a,t)})):[]}(e)}}}function aZ(e,t,n,r,a,o,i){const{align:s,axis:c,direction:l,startIndex:u,loop:f,duration:d,dragFree:p,dragThreshold:h,inViewThreshold:m,slidesToScroll:y,skipSnaps:g,containScroll:v,watchResize:b,watchSlides:_,watchDrag:w}=o,k=jY(),x=k.measure(t),S=n.map(k.measure),E=DY(l),A=MY(c,l),z=A.measureSize(x),C=BY(z),I=OY(s,z),T=!f&&!!v,R=f||!!v,{slideSizes:P,slideSizesWithGaps:j,startGap:O,endGap:N}=nZ(A,x,S,n,R,a),M=rZ(A,E,z,y,f,x,S,O,N,2),{snaps:D,snapsAligned:F}=KY(A,I,x,S,M),L=-Oc(D)+Oc(j),{snapsContained:V,scrollContainLimit:q}=qY(z,L,F,v,2),B=T?V:F,{limit:U}=WY(L,B,f),$=Q7(L_(B),u,f),W=$.clone(),H=Yy(n),G=zY(r,a,(()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(ie)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:a,slideLooper:o,dragHandler:i,animation:s,eventHandler:c,options:{loop:l}},u)=>{const f=e.velocity(),d=e.settled();d&&!i.pointerDown()&&(s.stop(),c.emit("settle")),d||c.emit("scroll"),r.set(n.get()-f+f*u),l&&(a.loop(e.direction()),o.loop()),t.to(r.get())})(ie,e))),K=B[$.get()],Q=Ob(K),Y=Ob(K),Z=Ob(K),X=UY(Q,Y,Z,d,.68),J=YY(f,B,L,U,Z),ee=ZY(G,$,W,X,J,Z,i),te=GY(U),ne=Xy(),re=tZ(t,n,i,m),{slideRegistry:ae}=QY(T,v,B,q,M,H),oe=XY(e,n,ae,ee,X,ne),ie={ownerDocument:r,ownerWindow:a,eventHandler:i,containerRect:x,slideRects:S,animation:G,axis:A,direction:E,dragHandler:NY(A,E,e,r,a,Z,LY(A,a),Q,G,ee,X,J,$,i,C,p,h,g,.68,w),eventStore:ne,percentOfView:C,index:$,indexPrevious:W,limit:U,location:Q,offsetLocation:Y,options:o,resizeHandler:FY(t,i,a,n,A,b,k),scrollBody:X,scrollBounds:VY(U,Y,Z,X,C),scrollLooper:HY(L,U,Y,[Q,Y,Z]),scrollProgress:te,scrollSnapList:B.map(te.get),scrollSnaps:B,scrollTarget:J,scrollTo:ee,slideLooper:JY(A,E,z,L,P,j,D,B,Y,n),slideFocus:oe,slidesHandler:eZ(t,i,_),slidesInView:re,slideIndexes:H,slideRegistry:ae,slidesToScroll:M,target:Z,translate:Y7(A,E,t)};return ie}function oZ(){const e={};let t;function n(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),r},off:function(t,a){return e[t]=n(t).filter((e=>e!==a)),r},on:function(t,a){return e[t]=n(t).concat([a]),r}};return r}AY.displayName="CardFooter";const iZ={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function sZ(e){function t(e,t){return G7(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},a=Zy(r).filter((t=>e.matchMedia(t).matches)).map((e=>r[e])).reduce(((e,n)=>t(e,n)),{});return t(n,a)},optionsMediaQueries:function(t){return t.map((e=>Zy(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}}}function cZ(e){let t=[];return{init:function(n,r){return t=r.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),r.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}function Xb(e,t,n){const r=e.ownerDocument,a=r.defaultView,o=sZ(a),i=cZ(o),s=Xy(),c=oZ(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:f}=o,{on:d,off:p,emit:h}=c,m=A;let y,g,v,b,_=!1,w=l(iZ,Xb.globalOptions),k=l(w),x=[];function S(t){const n=aZ(e,v,b,r,a,t,c);if(t.loop&&!n.slideLooper.canLoop()){return S(Object.assign({},t,{loop:!1}))}return n}function E(t,n){_||(w=l(w,t),k=u(w),x=n||x,function(){const{container:t,slides:n}=k;v=(EC(t)?e.querySelector(t):t)||e.children[0];const r=EC(n)?v.querySelectorAll(n):n;b=[].slice.call(r||v.children)}(),y=S(k),f([w,...x.map((({options:e})=>e))]).forEach((e=>s.add(e,"change",A))),k.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(),y.eventHandler.init(T),y.resizeHandler.init(T),y.slidesHandler.init(T),y.options.loop&&y.slideLooper.loop(),v.offsetParent&&b.length&&y.dragHandler.init(T),g=i.init(T,x)))}function A(e,t){const n=I();z(),E(l({startIndex:n},e),t),c.emit("reInit")}function z(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),i.destroy(),s.clear()}function C(e,t,n){!k.active||_||(y.scrollBody.useBaseFriction().useDuration(!0===t?0:k.duration),y.scrollTo.index(e,n||0))}function I(){return y.index.get()}const T={canScrollNext:function(){return y.index.add(1).get()!==I()},canScrollPrev:function(){return y.index.add(-1).get()!==I()},containerNode:function(){return v},internalEngine:function(){return y},destroy:function(){_||(_=!0,s.clear(),z(),c.emit("destroy"))},off:p,on:d,emit:h,plugins:function(){return g},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:m,rootNode:function(){return e},scrollNext:function(e){C(y.index.add(1).get(),e,-1)},scrollPrev:function(e){C(y.index.add(-1).get(),e,1)},scrollProgress:function(){return y.scrollProgress.get(y.location.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:C,selectedScrollSnap:I,slideNodes:function(){return b},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return E(t,n),setTimeout((()=>c.emit("init")),0),T}function mA(e={},t=[]){const n=v.useRef(e),r=v.useRef(t),[a,o]=v.useState(),[i,s]=v.useState(),c=v.useCallback((()=>{a&&a.reInit(n.current,r.current)}),[a]);return v.useEffect((()=>{if(IY()&&i){Xb.globalOptions=mA.globalOptions;const e=Xb(i,n.current,r.current);return o(e),()=>e.destroy()}o(void 0)}),[i,o]),v.useEffect((()=>{fA(n.current,e)||(n.current=e,c())}),[e,c]),v.useEffect((()=>{PY(r.current,t)||(r.current=t,c())}),[t,c]),[s,a]}Xb.globalOptions=void 0,mA.globalOptions=void 0;const Z7=Yl("",{variants:{variant:{fullHeight:"absolute bg-base_white_90 top-[0] h-[calc(100%-35px)] w-[32px] border-0 rounded-none transform-none text-slate-700 [&>svg]:text-slate-700 [&>svg]:size-[37px] [&>svg]:stroke-[3px]",bottom:"size-5 bottom-[0] rounded-[2px] bg-slate-900_50 disabled:opacity-1 hover:bg-slate-900_50 [&:disabled>svg]:text-slate-900_20 [&>svg]:text-white [&>svg]:size-5"},position:{left:"",right:""}},compoundVariants:[{variant:"fullHeight",position:"left",class:"rounded-tl-[6px] left-0"},{variant:"fullHeight",position:"right",class:"rounded-tr-[6px] right-0"},{variant:"bottom",position:"left",class:"mr-[6px]"}]}),X7=v.createContext(null),ik=()=>{const e=v.useContext(X7);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e},lZ=v.forwardRef((({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:a,children:o,...i},s)=>{const[c,l]=mA({...t,axis:"horizontal"===e?"x":"y"},r),[u,f]=v.useState(!1),[d,p]=v.useState(!1),h=v.useCallback((e=>{e&&(f(e.canScrollPrev()),p(e.canScrollNext()))}),[]),m=v.useCallback((()=>{null==l||l.scrollPrev()}),[l]),y=v.useCallback((()=>{null==l||l.scrollNext()}),[l]),g=v.useCallback((e=>{"ArrowLeft"===e.key?(e.preventDefault(),m()):"ArrowRight"===e.key&&(e.preventDefault(),y())}),[m,y]);return v.useEffect((()=>{!l||!n||n(l)}),[l,n]),v.useEffect((()=>{if(l)return h(l),l.on("reInit",h),l.on("select",h),()=>{null==l||l.off("select",h)}}),[l,h]),F.jsx(X7.Provider,{value:{carouselRef:c,api:l,opts:t,orientation:e||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:m,scrollNext:y,canScrollPrev:u,canScrollNext:d},children:F.jsx("div",{ref:s,onKeyDownCapture:g,className:$e("relative",a),role:"region","aria-roledescription":"carousel",...i,children:o})})}));lZ.displayName="Carousel";const fZ=v.forwardRef((({className:e,...t},n)=>{const{carouselRef:r,orientation:a}=ik();return F.jsx("div",{ref:r,children:F.jsx("div",{ref:n,className:$e("flex","horizontal"===a?"":"-mt-4 flex-col",e),...t})})}));fZ.displayName="CarouselContent";const uZ=v.forwardRef((({className:e,sideGap:t,isFullPreview:n,...r},a)=>{const{orientation:o}=ik();return F.jsx("div",{ref:a,role:"group","aria-roledescription":"slide",style:{...n&&{width:"100%"},marginRight:t&&`${t}px`,maxWidth:t&&`calc(100% - ${t}px)`},className:$e("min-w-0 shrink-0 grow-0","horizontal"===o?!t&&"pr-[10px]":"pt-4",e),...r})}));uZ.displayName="CarouselItem";const dZ=v.forwardRef((({className:e,variant:t="fullHeight",size:n="icon_m",...r},a)=>{const{scrollPrev:o,canScrollPrev:i,opts:s}=ik(),c=$e(("fullHeight"===t&&!i||!(null!=s&&s.active))&&"hidden",Z7({variant:t,position:"left"}),e);return F.jsxs(Jw,{ref:a,variant:"primary",size:n,className:c,disabled:!i,onClick:o,...r,children:[F.jsx(Y8,{}),F.jsx("span",{className:"sr-only",children:"Previous slide"})]})}));dZ.displayName="CarouselPrevious";const pZ=v.forwardRef((({className:e,variant:t="fullHeight",size:n="icon_m",...r},a)=>{const{scrollNext:o,canScrollNext:i,opts:s}=ik(),c=$e(("fullHeight"===t&&!i||!(null!=s&&s.active))&&"hidden",Z7({variant:t,position:"right"}),e);return F.jsxs(Jw,{ref:a,variant:"primary",size:n,className:c,disabled:!i,onClick:o,...r,children:[F.jsx(Z8,{}),F.jsx("span",{className:"sr-only",children:"Next slide"})]})}));var g3,H9,y3,G9,_3,K9,v3,Q9,b3,Y9,w3,Z9,k3,X9,x3,J9,S3,eP,E3,tP,C3,nP,R3,rP,A3,aP,T3,oP,I3,iP,P3,sP,$3,cP,O3,lP,z3,fP,M3,uP,D3,dP,N3,pP,L3,hP,j3,mP,B3,gP,F3,yP,U3,_P,V3,vP,q3,bP,W3,wP,H3,kP,G3,xP,K3,SP,Q3,EP,Y3,CP,Z3,RP,X3,AP,J3,TP,eS,IP,tS,PP,nS,$P,rS,OP,aS,zP,oS,MP,iS,DP,sS,NP,cS,LP,lS,jP,fS,BP,uS,FP,dS,UP,pS,VP,hS,qP;function Ai(){if(H9)return g3;H9=1;var e=Array.isArray;return g3=e}function J7(){if(G9)return y3;G9=1;var e="object"==typeof js&&js&&js.Object===Object&&js;return y3=e}function si(){if(K9)return _3;K9=1;var e=J7(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _3=n}function H1(){if(Q9)return v3;Q9=1;var e=si().Symbol;return v3=e}function hZ(){if(Y9)return b3;Y9=1;var e=H1(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;return b3=function(e){var t=n.call(e,a),o=e[a];try{e[a]=void 0;var i=!0}catch{}var s=r.call(e);return i&&(t?e[a]=o:delete e[a]),s}}function mZ(){if(Z9)return w3;Z9=1;var e=Object.prototype.toString;return w3=function(t){return e.call(t)}}function xu(){if(X9)return k3;X9=1;var e=H1(),t=hZ(),n=mZ(),r=e?e.toStringTag:void 0;return k3=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function os(){if(J9)return x3;return J9=1,x3=function(e){return null!=e&&"object"==typeof e}}function j_(){if(eP)return S3;eP=1;var e=xu(),t=os();return S3=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function gA(){if(tP)return E3;tP=1;var e=Ai(),t=j_(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return E3=function(a,o){if(e(a))return!1;var i=typeof a;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=a&&!t(a))||(r.test(a)||!n.test(a)||null!=o&&a in Object(o))}}function Uc(){if(nP)return C3;return nP=1,C3=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function sk(){if(rP)return R3;rP=1;var e=xu(),t=Uc();return R3=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function gZ(){if(aP)return A3;aP=1;var e=si()["__core-js_shared__"];return A3=e}function yZ(){if(oP)return T3;oP=1;var e,t=gZ(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return T3=function(e){return!!n&&n in e},T3}function e5(){if(iP)return I3;iP=1;var e=Function.prototype.toString;return I3=function(t){if(null!=t){try{return e.call(t)}catch{}try{return t+""}catch{}}return""}}function _Z(){if(sP)return P3;sP=1;var e=sk(),t=yZ(),n=Uc(),r=e5(),a=/^\[object .+?Constructor\]$/,o=Function.prototype,i=Object.prototype,s=o.toString,c=i.hasOwnProperty,l=RegExp("^"+s.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return P3=function(o){return!(!n(o)||t(o))&&(e(o)?l:a).test(r(o))}}function vZ(){if(cP)return $3;return cP=1,$3=function(e,t){return null==e?void 0:e[t]}}function Am(){if(lP)return O3;lP=1;var e=_Z(),t=vZ();return O3=function(n,r){var a=t(n,r);return e(a)?a:void 0}}function ck(){if(fP)return z3;fP=1;var e=Am()(Object,"create");return z3=e}function bZ(){if(uP)return M3;uP=1;var e=ck();return M3=function(){this.__data__=e?e(null):{},this.size=0}}function wZ(){if(dP)return D3;return dP=1,D3=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}function kZ(){if(pP)return N3;pP=1;var e=ck(),t=Object.prototype.hasOwnProperty;return N3=function(n){var r=this.__data__;if(e){var a=r[n];return"__lodash_hash_undefined__"===a?void 0:a}return t.call(r,n)?r[n]:void 0}}function xZ(){if(hP)return L3;hP=1;var e=ck(),t=Object.prototype.hasOwnProperty;return L3=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}function SZ(){if(mP)return j3;mP=1;var e=ck();return j3=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}function EZ(){if(gP)return B3;gP=1;var e=bZ(),t=wZ(),n=kZ(),r=xZ(),a=SZ();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,B3=o}function CZ(){if(yP)return F3;return yP=1,F3=function(){this.__data__=[],this.size=0}}function yA(){if(_P)return U3;return _P=1,U3=function(e,t){return e===t||e!=e&&t!=t}}function lk(){if(vP)return V3;vP=1;var e=yA();return V3=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function RZ(){if(bP)return q3;bP=1;var e=lk(),t=Array.prototype.splice;return q3=function(n){var r=this.__data__,a=e(r,n);return!(a<0)&&(a==r.length-1?r.pop():t.call(r,a,1),--this.size,!0)}}function AZ(){if(wP)return W3;wP=1;var e=lk();return W3=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}function TZ(){if(kP)return H3;kP=1;var e=lk();return H3=function(t){return e(this.__data__,t)>-1}}function IZ(){if(xP)return G3;xP=1;var e=lk();return G3=function(t,n){var r=this.__data__,a=e(r,t);return a<0?(++this.size,r.push([t,n])):r[a][1]=n,this}}function fk(){if(SP)return K3;SP=1;var e=CZ(),t=RZ(),n=AZ(),r=TZ(),a=IZ();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,K3=o}function _A(){if(EP)return Q3;EP=1;var e=Am()(si(),"Map");return Q3=e}function PZ(){if(CP)return Y3;CP=1;var e=EZ(),t=fk(),n=_A();return Y3=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}function $Z(){if(RP)return Z3;return RP=1,Z3=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}function uk(){if(AP)return X3;AP=1;var e=$Z();return X3=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function OZ(){if(TP)return J3;TP=1;var e=uk();return J3=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}function zZ(){if(IP)return eS;IP=1;var e=uk();return eS=function(t){return e(this,t).get(t)}}function MZ(){if(PP)return tS;PP=1;var e=uk();return tS=function(t){return e(this,t).has(t)}}function DZ(){if($P)return nS;$P=1;var e=uk();return nS=function(t,n){var r=e(this,t),a=r.size;return r.set(t,n),this.size+=r.size==a?0:1,this}}function vA(){if(OP)return rS;OP=1;var e=PZ(),t=OZ(),n=zZ(),r=MZ(),a=DZ();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,rS=o}function NZ(){if(zP)return aS;zP=1;var e=vA();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var a=function(){var e=arguments,t=r?r.apply(this,e):e[0],o=a.cache;if(o.has(t))return o.get(t);var i=n.apply(this,e);return a.cache=o.set(t,i)||o,i};return a.cache=new(t.Cache||e),a}return t.Cache=e,aS=t}function LZ(){if(MP)return oS;MP=1;var e=NZ();return oS=function(t){var n=e(t,(function(e){return 500===r.size&&r.clear(),e})),r=n.cache;return n}}function t5(){if(DP)return iS;DP=1;var e=LZ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,(function(e,t,a,o){r.push(a?o.replace(n,"$1"):t||e)})),r}));return iS=r}function n5(){if(NP)return sS;return NP=1,sS=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}}function jZ(){if(LP)return cS;LP=1;var e=H1(),t=n5(),n=Ai(),r=j_(),a=1/0,o=e?e.prototype:void 0,i=o?o.toString:void 0;return cS=function e(o){if("string"==typeof o)return o;if(n(o))return t(o,e)+"";if(r(o))return i?i.call(o):"";var s=o+"";return"0"==s&&1/o==-a?"-0":s},cS}function r5(){if(jP)return lS;jP=1;var e=jZ();return lS=function(t){return null==t?"":e(t)}}function a5(){if(BP)return fS;BP=1;var e=Ai(),t=gA(),n=t5(),r=r5();return fS=function(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}}function B_(){if(FP)return uS;FP=1;var e=j_(),t=1/0;return uS=function(n){if("string"==typeof n||e(n))return n;var r=n+"";return"0"==r&&1/n==-t?"-0":r}}function o5(){if(UP)return dS;UP=1;var e=a5(),t=B_();return dS=function(n,r){for(var a=0,o=(r=e(r,n)).length;null!=n&&a<o;)n=n[t(r[a++])];return a&&a==o?n:void 0}}function i5(){if(VP)return pS;VP=1;var e=o5();return pS=function(t,n,r){var a=null==t?void 0:e(t,n);return void 0===a?r:a}}function BZ(){if(qP)return hS;qP=1;var e=xu(),t=Ai(),n=os();return hS=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}pZ.displayName="CarouselNext",i5();var FZ=BZ();const UZ=Ql(FZ);sk(),Uc();var WP,HP,gS,GP,yS,KP,mS={exports:{}},Pn={};
70
70
  /**
71
71
  * @license React
72
72
  * react-is.production.min.js
@@ -75,7 +75,7 @@ var EW=Object.defineProperty,CW=(e,t,n)=>t in e?EW(e,t,{enumerable:!0,configurab
75
75
  *
76
76
  * This source code is licensed under the MIT license found in the
77
77
  * LICENSE file in the root directory of this source tree.
78
- */function VZ(){if(WP)return Pn;WP=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case o:case a:case u:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case p:case d:case i:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Pn.ContextConsumer=s,Pn.ContextProvider=i,Pn.Element=t,Pn.ForwardRef=l,Pn.Fragment=r,Pn.Lazy=p,Pn.Memo=d,Pn.Portal=n,Pn.Profiler=o,Pn.StrictMode=a,Pn.Suspense=u,Pn.SuspenseList=f,Pn.isAsyncMode=function(){return!1},Pn.isConcurrentMode=function(){return!1},Pn.isContextConsumer=function(e){return m(e)===s},Pn.isContextProvider=function(e){return m(e)===i},Pn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Pn.isForwardRef=function(e){return m(e)===l},Pn.isFragment=function(e){return m(e)===r},Pn.isLazy=function(e){return m(e)===p},Pn.isMemo=function(e){return m(e)===d},Pn.isPortal=function(e){return m(e)===n},Pn.isProfiler=function(e){return m(e)===o},Pn.isStrictMode=function(e){return m(e)===a},Pn.isSuspense=function(e){return m(e)===u},Pn.isSuspenseList=function(e){return m(e)===f},Pn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===a||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===i||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Pn.typeOf=m,Pn}function qZ(){return HP||(HP=1,mS.exports=VZ()),mS.exports}function s5(){if(GP)return gS;GP=1;var e=xu(),t=os();return gS=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function WZ(){if(KP)return yS;KP=1;var e=s5();return yS=function(t){return e(t)&&t!=+t}}qZ(),WZ(),s5();var vS,QP,bS,YP,wS,ZP,kS,XP,xS,JP,SS,e$,ES,t$,CS,n$,RS,r$,AS,a$,TS,o$,IS,i$,PS,s$,$S,c$,OS,l$,zS,f$,MS,u$,DS,d$,NS,p$,LS,h$,jS,m$,BS,g$,FS,y$,US,_$,Yv=function(e){return UZ(e)&&e.indexOf("%")===e.length-1},HZ=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},_S=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a]};function GZ(){if(QP)return vS;QP=1;var e=fk();return vS=function(){this.__data__=new e,this.size=0}}function KZ(){if(YP)return bS;return YP=1,bS=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function QZ(){if(ZP)return wS;return ZP=1,wS=function(e){return this.__data__.get(e)}}function YZ(){if(XP)return kS;return XP=1,kS=function(e){return this.__data__.has(e)}}function ZZ(){if(JP)return xS;JP=1;var e=fk(),t=_A(),n=vA();return xS=function(r,a){var o=this.__data__;if(o instanceof e){var i=o.__data__;if(!t||i.length<199)return i.push([r,a]),this.size=++o.size,this;o=this.__data__=new n(i)}return o.set(r,a),this.size=o.size,this}}function bA(){if(e$)return SS;e$=1;var e=fk(),t=GZ(),n=KZ(),r=QZ(),a=YZ(),o=ZZ();function i(t){var n=this.__data__=new e(t);this.size=n.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=a,i.prototype.set=o,SS=i}function XZ(){if(t$)return ES;t$=1;return ES=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function JZ(){if(n$)return CS;return n$=1,CS=function(e){return this.__data__.has(e)}}function eX(){if(r$)return RS;r$=1;var e=vA(),t=XZ(),n=JZ();function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,RS=r}function tX(){if(a$)return AS;return a$=1,AS=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}function nX(){if(o$)return TS;return o$=1,TS=function(e,t){return e.has(t)}}function c5(){if(i$)return IS;i$=1;var e=eX(),t=tX(),n=nX();return IS=function(r,a,o,i,s,c){var l=1&o,u=r.length,f=a.length;if(u!=f&&!(l&&f>u))return!1;var d=c.get(r),p=c.get(a);if(d&&p)return d==a&&p==r;var h=-1,m=!0,y=2&o?new e:void 0;for(c.set(r,a),c.set(a,r);++h<u;){var g=r[h],v=a[h];if(i)var b=l?i(v,g,h,a,r,c):i(g,v,h,r,a,c);if(void 0!==b){if(b)continue;m=!1;break}if(y){if(!t(a,(function(e,t){if(!n(y,t)&&(g===e||s(g,e,o,i,c)))return y.push(t)}))){m=!1;break}}else if(g!==v&&!s(g,v,o,i,c)){m=!1;break}}return c.delete(r),c.delete(a),m}}function l5(){if(s$)return PS;s$=1;var e=si().Uint8Array;return PS=e}function rX(){if(c$)return $S;return c$=1,$S=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function aX(){if(l$)return OS;return l$=1,OS=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function oX(){if(f$)return zS;f$=1;var e=H1(),t=l5(),n=yA(),r=c5(),a=rX(),o=aX(),i=e?e.prototype:void 0,s=i?i.valueOf:void 0;return zS=function(e,i,c,l,u,f,d){switch(c){case"[object DataView]":if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=i.byteLength||!f(new t(e),new t(i)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+i);case"[object Error]":return e.name==i.name&&e.message==i.message;case"[object RegExp]":case"[object String]":return e==i+"";case"[object Map]":var p=a;case"[object Set]":var h=1&l;if(p||(p=o),e.size!=i.size&&!h)return!1;var m=d.get(e);if(m)return m==i;l|=2,d.set(e,i);var y=r(p(e),p(i),l,u,f,d);return d.delete(e),y;case"[object Symbol]":if(s)return s.call(e)==s.call(i)}return!1}}function wA(){if(u$)return MS;return u$=1,MS=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}}function f5(){if(d$)return DS;d$=1;var e=wA(),t=Ai();return DS=function(n,r,a){var o=r(n);return t(n)?o:e(o,a(n))}}function iX(){if(p$)return NS;return p$=1,NS=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}}function u5(){if(h$)return LS;return h$=1,LS=function(){return[]}}function kA(){if(m$)return jS;m$=1;var e=iX(),t=u5(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return jS=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function sX(){if(g$)return BS;return g$=1,BS=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function cX(){if(y$)return FS;y$=1;var e=xu(),t=os();return FS=function(n){return t(n)&&"[object Arguments]"==e(n)}}function xA(){if(_$)return US;_$=1;var e=cX(),t=os(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!a.call(e,"callee")};return US=o}var VS,v$,b$,qS,w$,WS,k$,HS,x$,GS,S$,my={exports:{}};function lX(){if(v$)return VS;return v$=1,VS=function(){return!1}}function SA(){return b$||(b$=1,e=my,t=my.exports,n=si(),r=lX(),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r,e.exports=s),my.exports;var e,t,n,r,a,o,i,s}function EA(){if(w$)return qS;w$=1;var e=/^(?:0|[1-9]\d*)$/;return qS=function(t,n){var r=typeof t;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function CA(){if(k$)return WS;k$=1;return WS=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function fX(){if(x$)return HS;x$=1;var e=xu(),t=CA(),n=os(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,HS=function(a){return n(a)&&t(a.length)&&!!r[e(a)]}}function RA(){if(S$)return GS;return S$=1,GS=function(e){return function(t){return e(t)}}}my.exports;var E$,KS,C$,QS,R$,YS,A$,ZS,T$,XS,I$,JS,P$,e6,$$,t6,O$,n6,z$,r6,M$,a6,D$,o6,N$,i6,L$,s6,j$,c6,B$,l6,F$,f6,U$,u6,V$,d6,q$,p6,W$,h6,H$,m6,G$,g6,K$,y6,Q$,_6,Y$,v6,Z$,b6,X$,w6,J$,k6,eO,x6,tO,S6,nO,E6,rO,C6,aO,R6,oO,A6,iO,T6,sO,I6,cO,P6,lO,$6,fO,O6,uO,z6,dO,M6,pO,D6,hO,N6,mO,L6,gO,j6,yO,B6,_O,F6,vO,U6,bO,V6,wO,q6,kO,W6,xO,gy={exports:{}};function AA(){return E$||(E$=1,e=gy,t=gy.exports,n=J7(),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,o=a&&a.exports===r&&n.process,i=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch{}}(),e.exports=i),gy.exports;var e,t,n,r,a,o,i}function d5(){if(C$)return KS;C$=1;var e=fX(),t=RA(),n=AA(),r=n&&n.isTypedArray,a=r?t(r):e;return KS=a}function p5(){if(R$)return QS;R$=1;var e=sX(),t=xA(),n=Ai(),r=SA(),a=EA(),o=d5(),i=Object.prototype.hasOwnProperty;return QS=function(s,c){var l=n(s),u=!l&&t(s),f=!l&&!u&&r(s),d=!l&&!u&&!f&&o(s),p=l||u||f||d,h=p?e(s.length,String):[],m=h.length;for(var y in s)(c||i.call(s,y))&&(!p||!("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,m)))&&h.push(y);return h}}function TA(){if(A$)return YS;A$=1;var e=Object.prototype;return YS=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function h5(){if(T$)return ZS;return T$=1,ZS=function(e,t){return function(n){return e(t(n))}}}function uX(){if(I$)return XS;I$=1;var e=h5()(Object.keys,Object);return XS=e}function m5(){if(P$)return JS;P$=1;var e=TA(),t=uX(),n=Object.prototype.hasOwnProperty;return JS=function(r){if(!e(r))return t(r);var a=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&a.push(o);return a}}function g5(){if($$)return e6;$$=1;var e=sk(),t=CA();return e6=function(n){return null!=n&&t(n.length)&&!e(n)}}function dk(){if(O$)return t6;O$=1;var e=p5(),t=m5(),n=g5();return t6=function(r){return n(r)?e(r):t(r)}}function y5(){if(z$)return n6;z$=1;var e=f5(),t=kA(),n=dk();return n6=function(r){return e(r,n,t)}}function dX(){if(M$)return r6;M$=1;var e=y5(),t=Object.prototype.hasOwnProperty;return r6=function(n,r,a,o,i,s){var c=1&a,l=e(n),u=l.length;if(u!=e(r).length&&!c)return!1;for(var f=u;f--;){var d=l[f];if(!(c?d in r:t.call(r,d)))return!1}var p=s.get(n),h=s.get(r);if(p&&h)return p==r&&h==n;var m=!0;s.set(n,r),s.set(r,n);for(var y=c;++f<u;){var g=n[d=l[f]],v=r[d];if(o)var b=c?o(v,g,d,r,n,s):o(g,v,d,n,r,s);if(!(void 0===b?g===v||i(g,v,a,o,s):b)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var _=n.constructor,w=r.constructor;_!=w&&"constructor"in n&&"constructor"in r&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(m=!1)}return s.delete(n),s.delete(r),m}}function pX(){if(D$)return a6;D$=1;var e=Am()(si(),"DataView");return a6=e}function hX(){if(N$)return o6;N$=1;var e=Am()(si(),"Promise");return o6=e}function mX(){if(L$)return i6;L$=1;var e=Am()(si(),"Set");return i6=e}function _5(){if(j$)return s6;j$=1;var e=Am()(si(),"WeakMap");return s6=e}function F_(){if(B$)return c6;B$=1;var e=pX(),t=_A(),n=hX(),r=mX(),a=_5(),o=xu(),i=e5(),s="[object Map]",c="[object Promise]",l="[object Set]",u="[object WeakMap]",f="[object DataView]",d=i(e),p=i(t),h=i(n),m=i(r),y=i(a),g=o;return(e&&g(new e(new ArrayBuffer(1)))!=f||t&&g(new t)!=s||n&&g(n.resolve())!=c||r&&g(new r)!=l||a&&g(new a)!=u)&&(g=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?i(n):"";if(r)switch(r){case d:return f;case p:return s;case h:return c;case m:return l;case y:return u}return t}),c6=g}function gX(){if(F$)return l6;F$=1;var e=bA(),t=c5(),n=oX(),r=dX(),a=F_(),o=Ai(),i=SA(),s=d5(),c="[object Arguments]",l="[object Array]",u="[object Object]",f=Object.prototype.hasOwnProperty;return l6=function(d,p,h,m,y,g){var v=o(d),b=o(p),_=v?l:a(d),w=b?l:a(p),k=(_=_==c?u:_)==u,x=(w=w==c?u:w)==u,S=_==w;if(S&&i(d)){if(!i(p))return!1;v=!0,k=!1}if(S&&!k)return g||(g=new e),v||s(d)?t(d,p,h,m,y,g):n(d,p,_,h,m,y,g);if(!(1&h)){var E=k&&f.call(d,"__wrapped__"),A=x&&f.call(p,"__wrapped__");if(E||A){var z=E?d.value():d,C=A?p.value():p;return g||(g=new e),y(z,C,h,m,g)}}return!!S&&(g||(g=new e),r(d,p,h,m,y,g))}}function v5(){if(U$)return f6;U$=1;var e=gX(),t=os();return f6=function n(r,a,o,i,s){return r===a||(null==r||null==a||!t(r)&&!t(a)?r!=r&&a!=a:e(r,a,o,i,n,s))},f6}function yX(){if(V$)return u6;V$=1;var e=bA(),t=v5();return u6=function(n,r,a,o){var i=a.length,s=i,c=!o;if(null==n)return!s;for(n=Object(n);i--;){var l=a[i];if(c&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++i<s;){var u=(l=a[i])[0],f=n[u],d=l[1];if(c&&l[2]){if(void 0===f&&!(u in n))return!1}else{var p=new e;if(o)var h=o(f,d,u,n,r,p);if(!(void 0===h?t(d,f,3,o,p):h))return!1}}return!0}}function b5(){if(q$)return d6;q$=1;var e=Uc();return d6=function(t){return t==t&&!e(t)}}function _X(){if(W$)return p6;W$=1;var e=b5(),t=dk();return p6=function(n){for(var r=t(n),a=r.length;a--;){var o=r[a],i=n[o];r[a]=[o,i,e(i)]}return r}}function w5(){if(H$)return h6;return H$=1,h6=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function vX(){if(G$)return m6;G$=1;var e=yX(),t=_X(),n=w5();return m6=function(r){var a=t(r);return 1==a.length&&a[0][2]?n(a[0][0],a[0][1]):function(t){return t===r||e(t,r,a)}}}function bX(){if(K$)return g6;return K$=1,g6=function(e,t){return null!=e&&t in Object(e)}}function wX(){if(Q$)return y6;Q$=1;var e=a5(),t=xA(),n=Ai(),r=EA(),a=CA(),o=B_();return y6=function(i,s,c){for(var l=-1,u=(s=e(s,i)).length,f=!1;++l<u;){var d=o(s[l]);if(!(f=null!=i&&c(i,d)))break;i=i[d]}return f||++l!=u?f:!!(u=null==i?0:i.length)&&a(u)&&r(d,u)&&(n(i)||t(i))}}function kX(){if(Y$)return _6;Y$=1;var e=bX(),t=wX();return _6=function(n,r){return null!=n&&t(n,r,e)}}function xX(){if(Z$)return v6;Z$=1;var e=v5(),t=i5(),n=kX(),r=gA(),a=b5(),o=w5(),i=B_();return v6=function(s,c){return r(s)&&a(c)?o(i(s),c):function(r){var a=t(r,s);return void 0===a&&a===c?n(r,s):e(c,a,3)}}}function IA(){if(X$)return b6;return X$=1,b6=function(e){return e}}function SX(){if(J$)return w6;return J$=1,w6=function(e){return function(t){return null==t?void 0:t[e]}}}function EX(){if(eO)return k6;eO=1;var e=o5();return k6=function(t){return function(n){return e(n,t)}}}function CX(){if(tO)return x6;tO=1;var e=SX(),t=EX(),n=gA(),r=B_();return x6=function(a){return n(a)?e(r(a)):t(a)}}function RX(){if(nO)return S6;nO=1;var e=vX(),t=xX(),n=IA(),r=Ai(),a=CX();return S6=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?r(o)?t(o[0],o[1]):e(o):a(o)}}function AX(){if(rO)return E6;return rO=1,E6=function(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}}function TX(){if(aO)return C6;return aO=1,C6=function(e){return e!=e}}function IX(){if(oO)return R6;return oO=1,R6=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}}function PX(){if(iO)return A6;iO=1;var e=AX(),t=TX(),n=IX();return A6=function(r,a,o){return a==a?n(r,a,o):e(r,t,o)}}function $X(){if(sO)return T6;sO=1;var e=PX();return T6=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function k5(){if(cO)return I6;return cO=1,I6=function(){}}function OX(){if(lO)return P6;lO=1;var e=H1(),t=xA(),n=Ai(),r=e?e.isConcatSpreadable:void 0;return P6=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function zX(){if(fO)return $6;fO=1;var e=wA(),t=OX();return $6=function n(r,a,o,i,s){var c=-1,l=r.length;for(o||(o=t),s||(s=[]);++c<l;){var u=r[c];a>0&&o(u)?a>1?n(u,a-1,o,i,s):e(s,u):i||(s[s.length]=u)}return s},$6}function PA(){if(uO)return O6;return uO=1,O6=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}}function MX(){if(dO)return z6;dO=1;var e=PA(),t=Math.max;return z6=function(n,r,a){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,i=-1,s=t(o.length-r,0),c=Array(s);++i<s;)c[i]=o[r+i];i=-1;for(var l=Array(r+1);++i<r;)l[i]=o[i];return l[r]=a(c),e(n,this,l)}},z6}function DX(){if(pO)return M6;return pO=1,M6=function(e){return function(){return e}}}function x5(){if(hO)return D6;hO=1;var e=Am(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return D6=t}function NX(){if(mO)return N6;mO=1;var e=DX(),t=x5(),n=IA();return N6=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function S5(){if(gO)return L6;gO=1;var e=Date.now;return L6=function(t){var n=0,r=0;return function(){var a=e(),o=16-(a-r);if(r=a,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},L6}function E5(){if(yO)return j6;yO=1;var e=NX(),t=S5()(e);return j6=t}function LX(){if(_O)return B6;_O=1;var e=si();return B6=function(){return e.Date.now()}}function jX(){if(vO)return F6;vO=1;var e=/\s/;return F6=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function BX(){if(bO)return U6;bO=1;var e=jX(),t=/^\s+/;return U6=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function C5(){if(wO)return V6;wO=1;var e=BX(),t=Uc(),n=j_(),r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt;return V6=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var c="function"==typeof s.valueOf?s.valueOf():s;s=t(c)?c+"":c}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?i(s.slice(2),l?2:8):r.test(s)?NaN:+s}}function R5(){if(kO)return q6;kO=1;var e=Uc(),t=LX(),n=C5(),r=Math.max,a=Math.min;return q6=function(o,i,s){var c,l,u,f,d,p,h=0,m=!1,y=!1,g=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function v(e){var t=c,n=l;return c=l=void 0,h=e,f=o.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=i||t<0||y&&e-h>=u}function _(){var e=t();if(b(e))return w(e);d=setTimeout(_,function(e){var t=i-(e-p);return y?a(t,u-(e-h)):t}(e))}function w(e){return d=void 0,g&&c?v(e):(c=l=void 0,f)}function k(){var e=t(),n=b(e);if(c=arguments,l=this,p=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(_,i),m?v(e):f}(p);if(y)return clearTimeout(d),d=setTimeout(_,i),v(p)}return void 0===d&&(d=setTimeout(_,i)),f}return i=n(i)||0,e(s)&&(m=!!s.leading,u=(y="maxWait"in s)?r(n(s.maxWait)||0,i):u,g="trailing"in s?!!s.trailing:g),k.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=p=l=d=void 0},k.flush=function(){return void 0===d?f:w(t())},k},q6}function FX(){if(xO)return W6;xO=1;var e=R5(),t=Uc();return W6=function(n,r,a){var o=!0,i=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(a)&&(o="leading"in a?!!a.leading:o,i="trailing"in a?!!a.trailing:i),e(n,r,{leading:o,maxWait:r,trailing:i})}}gy.exports;var UX=FX();const VX=Ql(UX);function Jy(e){return(Jy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SO(Object(n),!0).forEach((function(t){qX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qX(e,t,n){return(t=WX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WX(e){var t=HX(e,"string");return"symbol"==Jy(t)?t:t+""}function HX(e,t){if("object"!=Jy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Jy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function GX(e,t){return ZX(e)||YX(e,t)||QX(e,t)||KX()}function KX(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function QX(e,t){if(e){if("string"==typeof e)return EO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EO(e,t)}}function EO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YX(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0!==t)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function ZX(e){if(Array.isArray(e))return e}var H6,CO,G6,RO,K6,AO,Q6,TO,Y6,IO,Z6,PO,X6,$O,J6,OO,eE,zO,tE,MO,nE,DO,rE,NO,aE,LO,XX=v.forwardRef((function(e,t){var n=e.aspect,r=e.initialDimension,a=void 0===r?{width:-1,height:-1}:r,o=e.width,i=void 0===o?"100%":o,s=e.height,c=void 0===s?"100%":s,l=e.minWidth,u=void 0===l?0:l,f=e.minHeight,d=e.maxHeight,p=e.children,h=e.debounce,m=void 0===h?0:h,y=e.id,g=e.className,b=e.onResize,_=e.style,w=void 0===_?{}:_,k=v.useRef(null),x=v.useRef();x.current=b,v.useImperativeHandle(t,(function(){return Object.defineProperty(k.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),k.current},configurable:!0})}));var S=GX(v.useState({containerWidth:a.width,containerHeight:a.height}),2),E=S[0],A=S[1],z=v.useCallback((function(e,t){A((function(n){var r=Math.round(e),a=Math.round(t);return n.containerWidth===r&&n.containerHeight===a?n:{containerWidth:r,containerHeight:a}}))}),[]);v.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,a=n.height;z(r,a),null===(t=x.current)||void 0===t||t.call(x,r,a)};m>0&&(e=VX(e,m,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=k.current.getBoundingClientRect(),r=n.width,a=n.height;return z(r,a),t.observe(k.current),function(){t.disconnect()}}),[z,m]);var C=v.useMemo((function(){var e=E.containerWidth,t=E.containerHeight;if(e<0||t<0)return null;_S(Yv(i)||Yv(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",i,c),_S(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Yv(i)?e:i,a=Yv(c)?t:c;n&&n>0&&(r?a=r/n:a&&(r=a*n),d&&a>d&&(a=d)),_S(r>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,a,i,c,u,f,n);var o=!Array.isArray(p)&&HZ(p.type).endsWith("Chart");return ze.Children.map(p,(function(e){return ze.isValidElement(e)?v.cloneElement(e,Zv({width:r,height:a},o?{style:Zv({height:"100%",width:"100%",maxHeight:a,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,c,d,f,u,E,i]);return ze.createElement("div",{id:y?"".concat(y):void 0,className:n7("recharts-responsive-container",g),style:Zv(Zv({},w),{},{width:i,height:c,minWidth:u,minHeight:f,maxHeight:d}),ref:k},C)}));function $A(){if(CO)return H6;CO=1;var e=h5()(Object.getPrototypeOf,Object);return H6=e}function JX(){if(RO)return G6;RO=1;var e=xu(),t=$A(),n=os(),r=Function.prototype,a=Object.prototype,o=r.toString,i=a.hasOwnProperty,s=o.call(Object);return G6=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var a=t(r);if(null===a)return!0;var c=i.call(a,"constructor")&&a.constructor;return"function"==typeof c&&c instanceof c&&o.call(c)==s}}function eJ(){if(AO)return K6;AO=1;var e=C5(),t=1/0;return K6=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function A5(){if(TO)return Q6;TO=1;var e=x5();return Q6=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function T5(){if(IO)return Y6;IO=1;var e=eJ();return Y6=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function OA(){if(PO)return Z6;return PO=1,Z6=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function I5(){if($O)return X6;$O=1;var e=A5(),t=yA(),n=Object.prototype.hasOwnProperty;return X6=function(r,a,o){var i=r[a];(!n.call(r,a)||!t(i,o)||void 0===o&&!(a in r))&&e(r,a,o)}}function pk(){if(OO)return J6;OO=1;var e=I5(),t=A5();return J6=function(n,r,a,o){var i=!a;a||(a={});for(var s=-1,c=r.length;++s<c;){var l=r[s],u=o?o(a[l],n[l],l,a,n):void 0;void 0===u&&(u=n[l]),i?t(a,l,u):e(a,l,u)}return a}}function P5(){if(zO)return eE;zO=1;var e=pk(),t=dk();return eE=function(n,r){return n&&e(r,t(r),n)}}function tJ(){if(MO)return tE;return MO=1,tE=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function nJ(){if(DO)return nE;DO=1;var e=Uc(),t=TA(),n=tJ(),r=Object.prototype.hasOwnProperty;return nE=function(a){if(!e(a))return n(a);var o=t(a),i=[];for(var s in a)"constructor"==s&&(o||!r.call(a,s))||i.push(s);return i}}function zA(){if(NO)return rE;NO=1;var e=p5(),t=nJ(),n=g5();return rE=function(r){return n(r)?e(r,!0):t(r)}}function rJ(){if(LO)return aE;LO=1;var e=pk(),t=zA();return aE=function(n,r){return n&&e(r,t(r),n)}}var jO,oE,BO,iE,FO,sE,UO,cE,VO,lE,qO,fE,WO,uE,HO,dE,GO,pE,KO,hE,QO,mE,YO,gE,ZO,yE,XO,_E,JO,vE,ez,bE,tz,wE,nz,kE,rz,xE,az,SE,oz,EE,iz,yy={exports:{}};function aJ(){return jO||(jO=1,e=yy,t=yy.exports,n=si(),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,o=a&&a.exports===r?n.Buffer:void 0,i=o?o.allocUnsafe:void 0,e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}),yy.exports;var e,t,n,r,a,o,i}function hk(){if(BO)return oE;return BO=1,oE=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function oJ(){if(FO)return iE;FO=1;var e=pk(),t=kA();return iE=function(n,r){return e(n,t(n),r)}}function $5(){if(UO)return sE;UO=1;var e=wA(),t=$A(),n=kA(),r=u5(),a=Object.getOwnPropertySymbols;return sE=a?function(r){for(var a=[];r;)e(a,n(r)),r=t(r);return a}:r}function iJ(){if(VO)return cE;VO=1;var e=pk(),t=$5();return cE=function(n,r){return e(n,t(n),r)}}function sJ(){if(qO)return lE;qO=1;var e=f5(),t=$5(),n=zA();return lE=function(r){return e(r,n,t)}}function cJ(){if(WO)return fE;WO=1;var e=Object.prototype.hasOwnProperty;return fE=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}function MA(){if(HO)return uE;HO=1;var e=l5();return uE=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function lJ(){if(GO)return dE;GO=1;var e=MA();return dE=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function fJ(){if(KO)return pE;KO=1;var e=/\w*$/;return pE=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function uJ(){if(QO)return hE;QO=1;var e=H1(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return hE=function(e){return n?Object(n.call(e)):{}}}function dJ(){if(YO)return mE;YO=1;var e=MA();return mE=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function pJ(){if(ZO)return gE;ZO=1;var e=MA(),t=lJ(),n=fJ(),r=uJ(),a=dJ();return gE=function(o,i,s){var c=o.constructor;switch(i){case"[object ArrayBuffer]":return e(o);case"[object Boolean]":case"[object Date]":return new c(+o);case"[object DataView]":return t(o,s);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(o,s);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}}}function mk(){if(XO)return yE;XO=1;var e=Uc(),t=Object.create;return yE=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var a=new n;return n.prototype=void 0,a}}()}function hJ(){if(JO)return _E;JO=1;var e=mk(),t=$A(),n=TA();return _E=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function mJ(){if(ez)return vE;ez=1;var e=F_(),t=os();return vE=function(n){return t(n)&&"[object Map]"==e(n)}}function gJ(){if(tz)return bE;tz=1;var e=mJ(),t=RA(),n=AA(),r=n&&n.isMap,a=r?t(r):e;return bE=a}function yJ(){if(nz)return wE;nz=1;var e=F_(),t=os();return wE=function(n){return t(n)&&"[object Set]"==e(n)}}function _J(){if(rz)return kE;rz=1;var e=yJ(),t=RA(),n=AA(),r=n&&n.isSet,a=r?t(r):e;return kE=a}function O5(){if(az)return xE;az=1;var e=bA(),t=OA(),n=I5(),r=P5(),a=rJ(),o=aJ(),i=hk(),s=oJ(),c=iJ(),l=y5(),u=sJ(),f=F_(),d=cJ(),p=pJ(),h=hJ(),m=Ai(),y=SA(),g=gJ(),v=Uc(),b=_J(),_=dk(),w=zA(),k="[object Arguments]",x="[object Function]",S="[object Object]",E={};return E[k]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[S]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[x]=E["[object WeakMap]"]=!1,xE=function A(z,C,I,T,R,P){var j,O=1&C,N=2&C,M=4&C;if(I&&(j=R?I(z,T,R,P):I(z)),void 0!==j)return j;if(!v(z))return z;var D=m(z);if(D){if(j=d(z),!O)return i(z,j)}else{var F=f(z),L=F==x||"[object GeneratorFunction]"==F;if(y(z))return o(z,O);if(F==S||F==k||L&&!R){if(j=N||L?{}:h(z),!O)return N?c(z,a(j,z)):s(z,r(j,z))}else{if(!E[F])return R?z:{};j=p(z,F,O)}}P||(P=new e);var V=P.get(z);if(V)return V;P.set(z,j),b(z)?z.forEach((function(e){j.add(A(e,C,I,e,z,P))})):g(z)&&z.forEach((function(e,t){j.set(t,A(e,C,I,t,z,P))}));var q=D?void 0:(M?N?u:l:N?w:_)(z);return t(q||z,(function(e,t){q&&(e=z[t=e]),n(j,t,A(e,C,I,t,z,P))})),j},xE}function vJ(){if(oz)return SE;oz=1;var e=zX();return SE=function(t){return(null==t?0:t.length)?e(t,1):[]}}function bJ(){if(iz)return EE;iz=1;var e=vJ(),t=MX(),n=E5();return EE=function(r){return n(t(r,void 0,e),r+"")}}yy.exports;const wJ={light:"",dark:".dark"},z5=v.createContext(null);function M5(){const e=v.useContext(z5);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const kJ=v.forwardRef((({id:e,className:t,children:n,config:r,...a},o)=>{const i=v.useId(),s=`chart-${e||i.replace(/:/g,"")}`;return F.jsx(z5.Provider,{value:{config:r},children:F.jsxs("div",{"data-chart":s,ref:o,className:$e("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...a,children:[F.jsx(xJ,{id:s,config:r}),F.jsx(XX,{children:n})]})})}));kJ.displayName="Chart";const xJ=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?F.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(wJ).map((([t,r])=>`\n${r} [data-chart=${e}] {\n${n.map((([e,n])=>{var r;const a=(null==(r=n.theme)?void 0:r[t])||n.color;return a?` --color-${e}: ${a};`:null})).join("\n")}\n}\n`)).join("\n")}}):null},SJ=v.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:a=!1,hideIndicator:o=!1,label:i,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:f,labelKey:d},p)=>{const{config:h}=M5(),m=v.useMemo((()=>{var e;if(a||null==t||!t.length)return null;const[n]=t,r=`${d||(null==n?void 0:n.dataKey)||(null==n?void 0:n.name)||"value"}`,o=CC(h,n,r),l=d||"string"!=typeof i?null==o?void 0:o.label:(null==(e=h[i])?void 0:e.label)||i;return s?F.jsx("div",{className:$e("font-medium",c),children:s(l,t)}):l?F.jsx("div",{className:$e("font-medium",c),children:l}):null}),[i,s,t,a,c,h,d]);if(!e||null==t||!t.length)return null;const y=1===t.length&&"dot"!==r,g=t.length>10;return F.jsxs("div",{ref:p,className:$e("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",g&&"min-w-[16rem]",n),children:[y?null:m,F.jsx("div",{className:$e("grid gap-1.5",g&&"grid-cols-2 gap-x-4"),children:t.map(((e,t)=>{var n;const a=`${f||e.name||e.dataKey||"value"}`,i=CC(h,e,a),s=u||(null==(n=e.payload)?void 0:n.fill)||e.color||"";return F.jsx("div",{className:$e("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center"),children:l&&void 0!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.payload)&&e.name?l(e.value,e.name,e,t,[e.payload]):F.jsxs(F.Fragment,{children:[null!=i&&i.icon?F.jsx(i.icon,{}):!o&&F.jsx("div",{className:$e("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===r,"my-0.5":y&&"dashed"===r}),style:{"--color-bg":s,"--color-border":s}}),F.jsxs("div",{className:$e("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[F.jsxs("div",{className:"grid gap-1.5",children:[y?m:null,F.jsx("span",{className:"text-muted-foreground",children:(null==i?void 0:i.label)||e.name})]}),e.value&&F.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));SJ.displayName="ChartTooltip";const EJ=v.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:a,hoveredItem:o},i)=>{const{config:s}=M5(),c=v.useRef({});return v.useEffect((()=>{if(o&&c.current[o]){const e=c.current[o];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[o]),null!=n&&n.length?F.jsx("div",{ref:i,className:$e("flex h-[150px] w-full flex-wrap items-center justify-center gap-6 overflow-y-auto pb-10",e),children:n.map((e=>{var n;const i=`${r||e.dataKey||"value"}`,l=CC(s,e,i),u=!!a&&i===o;return F.jsxs("div",{ref:e=>{e?c.current[i]=e:delete c.current[i]},className:$e("group flex cursor-pointer select-none items-center gap-2 text-base transition-all duration-150",u?"scale-105 text-black":o?"text-gray-700 opacity-40":"text-gray-700"),onMouseEnter:()=>null==a?void 0:a(e.dataKey),onMouseLeave:()=>null==a?void 0:a(null),children:[null!=l&&l.icon&&!t?F.jsx(l.icon,{}):F.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color||""}}),F.jsx("span",{className:"min-w-[max-content]",children:(null==l?void 0:l.label)||e.name})]},(null==(n=e.value)?void 0:n.toString())||i)}))}):null}));function CC(e,t,n){if("object"!=typeof t||null===t)return;const r="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0;let a=n;return n in t&&"string"==typeof t[n]?a=t[n]:r&&n in r&&"string"==typeof r[n]&&(a=r[n]),a in e?e[a]:e[n]}function gk(e){const t=v.useRef({value:e,previous:e});return v.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function yk(e){const[t,n]=v.useState(void 0);return Mo((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}EJ.displayName="ChartLegend";const D5="Checkbox",[CJ,$We]=ii(D5),[RJ,AJ]=CJ(D5),TJ=v.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:c="on",onCheckedChange:l,...u}=e,[f,d]=v.useState(null),p=yn(t,(e=>d(e))),h=v.useRef(!1),m=!f||!!f.closest("form"),[y=!1,g]=wp({prop:a,defaultProp:o,onChange:l}),b=v.useRef(y);return v.useEffect((()=>{const e=null==f?void 0:f.form;if(e){const t=()=>g(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,g]),v.createElement(RJ,{scope:n,state:y,disabled:s},v.createElement(St.button,Le({type:"button",role:"checkbox","aria-checked":im(y)?"mixed":y,"aria-required":i,"data-state":N5(y),"data-disabled":s?"":void 0,disabled:s,value:c},u,{ref:p,onKeyDown:lt(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:lt(e.onClick,(e=>{g((e=>!!im(e)||!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&v.createElement($J,{control:f,bubbles:!h.current,name:r,value:c,checked:y,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),IJ="CheckboxIndicator",PJ=v.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=AJ(IJ,n);return v.createElement(Ws,{present:r||im(o.state)||!0===o.state},v.createElement(St.span,Le({"data-state":N5(o.state),"data-disabled":o.disabled?"":void 0},a,{ref:t,style:{pointerEvents:"none",...e.style}})))})),$J=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=gk(n),s=yk(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=im(n),a.call(e,!im(n)&&n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Le({type:"checkbox","aria-hidden":!0,defaultChecked:!im(n)&&n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function im(e){return"indeterminate"===e}function N5(e){return im(e)?"indeterminate":e?"checked":"unchecked"}const L5=TJ,OJ=PJ,sz=Yl("",{variants:{size:{default:"h-4 w-4",20:"size-5",24:"size-6",32:"size-8"},variant:{default:"peer shrink-0 rounded-sm border border-slate-700 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:border-slate-700 data-[state=checked]:bg-slate-700 data-[state=checked]:text-primary-foreground",dark:"shrink-0 bg-slate-900_50 data-[state=checked]:bg-slate-700 rounded-[4px] border-[2px] data-[state=checked]:text-primary-foreground border-slate-100 [&_svg]:size-[24px] [&_svg]:border-none"}},defaultVariants:{size:"default",variant:"default"}}),j5=v.forwardRef((({className:e,size:t,variant:n,...r},a)=>F.jsx(L5,{ref:a,className:$e(e,sz({size:t,variant:n})),...r,children:F.jsx(OJ,{className:$e("flex items-center justify-center text-current"),children:F.jsx(eA,{className:$e(sz({size:t}))})})})));j5.displayName=L5.displayName;var cz=1,zJ=.9,MJ=.8,DJ=.17,CE=.1,RE=.999,NJ=.9999,LJ=.99,jJ=/[\\\/_+.#"@\[\(\{&]/,BJ=/[\\\/_+.#"@\[\(\{&]/g,FJ=/[\s-]/,B5=/[\s-]/g;function RC(e,t,n,r,a,o,i){if(o===t.length)return a===e.length?cz:LJ;var s=`${a},${o}`;if(void 0!==i[s])return i[s];for(var c,l,u,f,d=r.charAt(o),p=n.indexOf(d,a),h=0;p>=0;)(c=RC(e,t,n,r,p+1,o+1,i))>h&&(p===a?c*=cz:jJ.test(e.charAt(p-1))?(c*=MJ,(u=e.slice(a,p-1).match(BJ))&&a>0&&(c*=Math.pow(RE,u.length))):FJ.test(e.charAt(p-1))?(c*=zJ,(f=e.slice(a,p-1).match(B5))&&a>0&&(c*=Math.pow(RE,f.length))):(c*=DJ,a>0&&(c*=Math.pow(RE,p-a))),e.charAt(p)!==t.charAt(o)&&(c*=NJ)),(c<CE&&n.charAt(p-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(p-1)!==r.charAt(o))&&((l=RC(e,t,n,r,p+1,o+2,i))*CE>c&&(c=l*CE)),c>h&&(h=c),p=n.indexOf(d,p+1);return i[s]=h,h}function lz(e){return e.toLowerCase().replace(B5," ")}function UJ(e,t,n){return RC(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,lz(e),lz(t),0,0,{})}var ny='[cmdk-group=""]',AE='[cmdk-group-items=""]',VJ='[cmdk-group-heading=""]',DA='[cmdk-item=""]',fz=`${DA}:not([aria-disabled="true"])`,AC="cmdk-item-select",em="data-value",qJ=(e,t,n)=>UJ(e,t,n),F5=v.createContext(void 0),U_=()=>v.useContext(F5),U5=v.createContext(void 0),NA=()=>v.useContext(U5),V5=v.createContext(void 0),q5=v.forwardRef(((e,t)=>{let n=s1((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=s1((()=>new Set)),a=s1((()=>new Map)),o=s1((()=>new Map)),i=s1((()=>new Set)),s=W5(e),{label:c,children:l,value:u,onValueChange:f,filter:d,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:y=!0,...g}=e,b=v.useId(),_=v.useId(),w=v.useId(),k=v.useRef(null),x=tee();mm((()=>{if(void 0!==u){let e=u.trim();n.current.value=e,S.emit()}}),[u]),mm((()=>{x(6,T)}),[]);let S=v.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var a,o,i;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)I(),z(),x(1,C);else if("value"===e&&(r||x(5,T),void 0!==(null==(a=s.current)?void 0:a.value))){let e=t??"";return void(null==(i=(o=s.current).onValueChange)||i.call(o,e))}S.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),E=v.useMemo((()=>({value:(e,t,r)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,A(t,r)),x(2,(()=>{z(),S.emit()})))},item:(e,t)=>(r.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),x(3,(()=>{I(),z(),n.current.value||C(),S.emit()})),()=>{o.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=R();x(4,(()=>{I(),(null==t?void 0:t.getAttribute("id"))===e&&C(),S.emit()}))}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],disablePointerSelection:m,listId:b,inputId:w,labelId:_,listInnerRef:k})),[]);function A(e,t){var r,a;let o=null!=(a=null==(r=s.current)?void 0:r.filter)?a:qJ;return e?o(e,n.current.search,t):0}function z(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=a.current.get(n),o=0;r.forEach((t=>{let n=e.get(t);o=Math.max(n,o)})),t.push([n,o])}));let r=k.current;P().sort(((t,n)=>{var r,a;let o=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(a=e.get(o))?a:0)})).forEach((e=>{let t=e.closest(AE);t?t.appendChild(e.parentElement===t?e:e.closest(`${AE} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${AE} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=k.current.querySelector(`${ny}[${em}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function C(){let e=P().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(em);S.setState("value",t||void 0)}function I(){var e,t,i,c;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let l=0;for(let a of r.current){let r=A(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(c=null==(i=o.current.get(a))?void 0:i.keywords)?c:[]);n.current.filtered.items.set(a,r),r>0&&l++}for(let[e,t]of a.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=l}function T(){var e,t,n;let r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(ny))?void 0:t.querySelector(VJ))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=k.current)?void 0:e.querySelector(`${DA}[aria-selected="true"]`)}function P(){var e;return Array.from(null==(e=k.current)?void 0:e.querySelectorAll(fz))}function j(e){let t=P()[e];t&&S.setState("value",t.getAttribute(em))}function O(e){var t;let n=R(),r=P(),a=r.findIndex((e=>e===n)),o=r[a+e];null!=(t=s.current)&&t.loop&&(o=a+e<0?r[r.length-1]:a+e===r.length?r[0]:r[a+e]),o&&S.setState("value",o.getAttribute(em))}function N(e){let t,n=R(),r=null==n?void 0:n.closest(ny);for(;r&&!t;)r=e>0?JJ(r,ny):eee(r,ny),t=null==r?void 0:r.querySelector(fz);t?S.setState("value",t.getAttribute(em)):O(e)}let M=()=>j(P().length-1),D=e=>{e.preventDefault(),e.metaKey?M():e.altKey?N(1):O(1)},F=e=>{e.preventDefault(),e.metaKey?j(0):e.altKey?N(-1):O(-1)};return v.createElement(St.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":y&&e.ctrlKey&&D(e);break;case"ArrowDown":D(e);break;case"p":case"k":y&&e.ctrlKey&&F(e);break;case"ArrowUp":F(e);break;case"Home":e.preventDefault(),j(0);break;case"End":e.preventDefault(),M();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=R();if(t){let e=new Event(AC);t.dispatchEvent(e)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:ree},c),_k(e,(e=>v.createElement(U5.Provider,{value:S},v.createElement(F5.Provider,{value:E},e)))))})),WJ=v.forwardRef(((e,t)=>{var n,r;let a=v.useId(),o=v.useRef(null),i=v.useContext(V5),s=U_(),c=W5(e),l=null!=(r=null==(n=c.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;mm((()=>{if(!l)return s.item(a,null==i?void 0:i.id)}),[l]);let u=H5(a,o,[e.value,e.children,o],e.keywords),f=NA(),d=gm((e=>e.value&&e.value===u.current)),p=gm((e=>!(!l&&!1!==s.filter())||(!e.search||e.filtered.items.get(a)>0)));function h(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,u.current)}function m(){f.setState("value",u.current,!0)}if(v.useEffect((()=>{let t=o.current;if(t&&!e.disabled)return t.addEventListener(AC,h),()=>t.removeEventListener(AC,h)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:y,value:g,onSelect:b,forceMount:_,keywords:w,...k}=e;return v.createElement(St.div,{ref:e_([o,t]),...k,id:a,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!d,"data-disabled":!!y,"data-selected":!!d,onPointerMove:y||s.disablePointerSelection?void 0:m,onClick:y?void 0:h},e.children)})),HJ=v.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,i=v.useId(),s=v.useRef(null),c=v.useRef(null),l=v.useId(),u=U_(),f=gm((e=>!(!a&&!1!==u.filter())||(!e.search||e.filtered.groups.has(i))));mm((()=>u.group(i)),[]),H5(i,s,[e.value,e.heading,c]);let d=v.useMemo((()=>({id:i,forceMount:a})),[a]);return v.createElement(St.div,{ref:e_([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&v.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),_k(e,(e=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},v.createElement(V5.Provider,{value:d},e)))))})),GJ=v.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,a=v.useRef(null),o=gm((e=>!e.search));return n||o?v.createElement(St.div,{ref:e_([a,t]),...r,"cmdk-separator":"",role:"separator"}):null})),KJ=v.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,a=null!=e.value,o=NA(),i=gm((e=>e.search)),s=gm((e=>e.value)),c=U_(),l=v.useMemo((()=>{var e;let t=null==(e=c.listInnerRef.current)?void 0:e.querySelector(`${DA}[${em}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return v.useEffect((()=>{null!=e.value&&o.setState("search",e.value)}),[e.value]),v.createElement(St.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:a?e.value:i,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})})),QJ=v.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=v.useRef(null),i=v.useRef(null),s=U_();return v.useEffect((()=>{if(i.current&&o.current){let e,t=i.current,n=o.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),v.createElement(St.div,{ref:e_([o,t]),...a,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},_k(e,(e=>v.createElement("div",{ref:e_([i,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),YJ=v.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:i,...s}=e;return v.createElement(P7,{open:n,onOpenChange:r},v.createElement(ak,{container:i},v.createElement(q1,{"cmdk-overlay":"",className:a}),v.createElement(W1,{"aria-label":e.label,"cmdk-dialog":"",className:o},v.createElement(q5,{ref:t,...s}))))})),ZJ=v.forwardRef(((e,t)=>gm((e=>0===e.filtered.count))?v.createElement(St.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),XJ=v.forwardRef(((e,t)=>{let{progress:n,children:r,label:a="Loading...",...o}=e;return v.createElement(St.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},_k(e,(e=>v.createElement("div",{"aria-hidden":!0},e))))})),Ti=Object.assign(q5,{List:QJ,Item:WJ,Input:KJ,Group:HJ,Separator:GJ,Dialog:YJ,Empty:ZJ,Loading:XJ});function JJ(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function eee(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function W5(e){let t=v.useRef(e);return mm((()=>{t.current=e})),t}var mm=typeof window>"u"?v.useEffect:v.useLayoutEffect;function s1(e){let t=v.useRef();return void 0===t.current&&(t.current=e()),t}function e_(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function gm(e){let t=NA(),n=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,n,n)}function H5(e,t,n,r=[]){let a=v.useRef(),o=U_();return mm((()=>{var i;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),c=r.map((e=>e.trim()));o.value(e,s,c),null==(i=t.current)||i.setAttribute(em,s),a.current=s})),a}var tee=()=>{let[e,t]=v.useState(),n=s1((()=>new Map));return mm((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function nee(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function _k({asChild:e,children:t},n){return e&&v.isValidElement(t)?v.cloneElement(nee(t),{ref:t.ref},n(t.props.children)):n(t)}var ree={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const aee=ak,G5=v.forwardRef((({className:e,...t},n)=>(v.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{e.forEach((e=>e&&(e.style.filter="none")))}}),[]),F.jsx(q1,{ref:n,"data-testid":"dialog_overlay",className:$e("fixed inset-0 z-100 bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));G5.displayName=q1.displayName;const oee=Yl("",{variants:{closeVariant:{none:"",insideCard:"absolute right-m top-m rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-slate-400",outsideCard:"fixed right-[30px] top-[30px] z-100 text-slate-400",mobileGallery:"fixed right-m top-[62px] text-white z-[110]"}},defaultVariants:{closeVariant:"outsideCard"}}),iee=Yl("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),see=v.forwardRef((({title:e,className:t,showClose:n=!0,closeVariant:r="outsideCard",closeSize:a="big",children:o,overlayClassName:i,childrenClassName:s,onBack:c,onCloseModal:l,...u},f)=>{const d=F.jsxs(ok,{className:$e(oee({closeVariant:r})),children:[F.jsx(J8,{onClick:l,fill:"currentColor",className:$e(iee({closeSize:a}))}),F.jsx("span",{className:"sr-only",children:"Close"})]});return F.jsxs(aee,{children:[F.jsx(G5,{className:i,onClick:l}),n&&"insideCard"!==r&&d,F.jsxs(W1,{ref:f,className:$e("fixed left-[50%] top-[50%] z-100 grid max-w-[600px] translate-x-[-50%] translate-y-[-50%] !overflow-visible rounded-lg bg-background shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] max-md:w-[calc(100vw-32px)] md:w-full [&>div]:min-w-0",t),...u,children:[F.jsx(K5,{className:"hidden",children:"DialogTitle"}),F.jsx(Q5,{className:"hidden",children:"DialogDescription"}),e&&F.jsx("h3",{className:"border-b border-slate-200 p-m text-center text-lg font-semibold text-slate-700",children:e}),F.jsx("div",{className:$e("p-m",s),children:o}),n&&"insideCard"===r&&d,c&&F.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:c,className:"absolute left-m top-m",children:F.jsx(Y8,{color:"var(--slate-400)",size:24})})]})]})}));see.displayName=W1.displayName;const K5=v.forwardRef((({className:e,...t},n)=>F.jsx(D_,{ref:n,className:$e("text-lg font-semibold leading-none tracking-tight",e),...t})));K5.displayName=D_.displayName;const Q5=v.forwardRef((({className:e,...t},n)=>F.jsx(N_,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));Q5.displayName=N_.displayName;const cee=v.forwardRef((({className:e,...t},n)=>F.jsx(Ti,{ref:n,className:$e("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));cee.displayName=Ti.displayName;const lee=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:F.jsx(Ti.Input,{ref:n,className:$e("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));lee.displayName=Ti.Input.displayName;const fee=v.forwardRef((({className:e,...t},n)=>F.jsx(Ti.List,{ref:n,className:$e("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));fee.displayName=Ti.List.displayName;const uee=v.forwardRef(((e,t)=>F.jsx(Ti.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));uee.displayName=Ti.Empty.displayName;const dee=v.forwardRef((({className:e,...t},n)=>F.jsx(Ti.Group,{ref:n,className:$e("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));dee.displayName=Ti.Group.displayName;const pee=v.forwardRef((({className:e,...t},n)=>F.jsx(Ti.Separator,{ref:n,className:$e("-mx-1 h-px bg-border",e),...t})));pee.displayName=Ti.Separator.displayName;const hee=v.forwardRef((({className:e,...t},n)=>F.jsx(Ti.Item,{ref:n,className:$e("relative flex max-w-[215px] cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));function mp(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function uz(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Y5(...e){return t=>{let n=!1;const r=e.map((e=>{const r=uz(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():uz(e[t],null)}}}}function Tm(...e){return v.useCallback(Y5(...e),e)}function mee(e,t){const n=v.createContext(t),r=e=>{const{children:t,...r}=e,a=v.useMemo((()=>r),Object.values(r));return F.jsx(n.Provider,{value:a,children:t})};return r.displayName=e+"Provider",[r,function(r){const a=v.useContext(n);if(a)return a;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function gee(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>v.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return v.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=v.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,c=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,l=v.useMemo((()=>s),Object.values(s));return F.jsx(c.Provider,{value:l,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const c=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,l=v.useContext(c);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},yee(r,...t)]}function yee(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return v.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}hee.displayName=Ti.Item.displayName;var Jb=null!=globalThis&&globalThis.document?v.useLayoutEffect:()=>{},_ee=Zb[" useId ".trim().toString()]||(()=>{}),vee=0;function TE(e){const[t,n]=v.useState(_ee());return Jb((()=>{e||n((e=>e??String(vee++)))}),[e]),e||(t?`radix-${t}`:"")}function ym(e){const t=v.useRef(e);return v.useEffect((()=>{t.current=e})),v.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function bee({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=wee({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=ym(n);return[i,v.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}function wee({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,a=v.useRef(r),o=ym(t);return v.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}function Z5(e){const t=kee(e),n=v.forwardRef(((e,n)=>{const{children:r,...a}=e,o=v.Children.toArray(r),i=o.find(See);if(i){const e=i.props.children,r=o.map((t=>t===i?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return F.jsx(t,{...a,ref:n,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return F.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function kee(e){const t=v.forwardRef(((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const e=Cee(n),a=Eee(r,n.props);return n.type!==v.Fragment&&(a.ref=t?Y5(t,e):e),v.cloneElement(n,a)}return v.Children.count(n)>1?v.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var xee=Symbol("radix.slottable");function See(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===xee}function Eee(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function Cee(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Ree=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Su=Ree.reduce(((e,t)=>{const n=Z5(`Primitive.${t}`),r=v.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),F.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function Aee(e,t){e&&Zl.flushSync((()=>e.dispatchEvent(t)))}function Tee(e,t=(null==globalThis?void 0:globalThis.document)){const n=ym(e);v.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var dz,Iee="DismissableLayer",TC="dismissableLayer.update",Pee="dismissableLayer.pointerDownOutside",$ee="dismissableLayer.focusOutside",X5=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),J5=v.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...c}=e,l=v.useContext(X5),[u,f]=v.useState(null),d=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=v.useState({}),h=Tm(t,(e=>f(e))),m=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,_=l.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,k=Mee((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));!w||n||(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),d),x=Dee((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),d);return Tee((e=>{b===l.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),d),v.useEffect((()=>{if(u)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(dz=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),pz(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(d.body.style.pointerEvents=dz)}}),[u,d,n,l]),v.useEffect((()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),pz())}),[u,l]),v.useEffect((()=>{const e=()=>p({});return document.addEventListener(TC,e),()=>document.removeEventListener(TC,e)}),[]),F.jsx(Su.div,{...c,ref:h,style:{pointerEvents:_?w?"auto":"none":void 0,...e.style},onFocusCapture:mp(e.onFocusCapture,x.onFocusCapture),onBlurCapture:mp(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:mp(e.onPointerDownCapture,k.onPointerDownCapture)})}));J5.displayName=Iee;var Oee="DismissableLayerBranch",zee=v.forwardRef(((e,t)=>{const n=v.useContext(X5),r=v.useRef(null),a=Tm(t,r);return v.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),F.jsx(Su.div,{...e,ref:a})}));function Mee(e,t=(null==globalThis?void 0:globalThis.document)){const n=ym(e),r=v.useRef(!1),a=v.useRef((()=>{}));return v.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){eL(Pee,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Dee(e,t=(null==globalThis?void 0:globalThis.document)){const n=ym(e),r=v.useRef(!1);return v.useEffect((()=>{const e=e=>{e.target&&!r.current&&eL($ee,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pz(){const e=new CustomEvent(TC);document.dispatchEvent(e)}function eL(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Aee(a,o):a.dispatchEvent(o)}zee.displayName=Oee;var IE="focusScope.autoFocusOnMount",PE="focusScope.autoFocusOnUnmount",hz={bubbles:!1,cancelable:!0},Nee="FocusScope",tL=v.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,c]=v.useState(null),l=ym(a),u=ym(o),f=v.useRef(null),d=Tm(t,(e=>c(e))),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:op(f.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||op(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&op(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),v.useEffect((()=>{if(s){gz.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(IE,hz);s.addEventListener(IE,l),s.dispatchEvent(t),t.defaultPrevented||(Lee(Vee(nL(s)),{select:!0}),document.activeElement===e&&op(s))}return()=>{s.removeEventListener(IE,l),setTimeout((()=>{const t=new CustomEvent(PE,hz);s.addEventListener(PE,u),s.dispatchEvent(t),t.defaultPrevented||op(e??document.body,{select:!0}),s.removeEventListener(PE,u),gz.remove(p)}),0)}}}),[s,l,u,p]);const h=v.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=jee(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&op(o,{select:!0})):(e.preventDefault(),n&&op(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,p.paused]);return F.jsx(Su.div,{tabIndex:-1,...i,ref:d,onKeyDown:h})}));function Lee(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(op(r,{select:t}),document.activeElement!==n)return}function jee(e){const t=nL(e);return[mz(t,e),mz(t.reverse(),e)]}function nL(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mz(e,t){for(const n of e)if(!Bee(n,{upTo:t}))return n}function Bee(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Fee(e){return e instanceof HTMLInputElement&&"select"in e}function op(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Fee(e)&&t&&e.select()}}tL.displayName=Nee;var gz=Uee();function Uee(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=yz(e,t),e.unshift(t)},remove(t){var n;e=yz(e,t),null==(n=e[0])||n.resume()}}}function yz(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Vee(e){return e.filter((e=>"A"!==e.tagName))}var qee="Portal",rL=v.forwardRef(((e,t)=>{var n;const{container:r,...a}=e,[o,i]=v.useState(!1);Jb((()=>i(!0)),[]);const s=r||o&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?c7.createPortal(F.jsx(Su.div,{...a,ref:t}),s):null}));function Wee(e,t){return v.useReducer(((e,n)=>t[e][n]??e),e)}rL.displayName=qee;var vk=e=>{const{present:t,children:n}=e,r=Hee(t),a="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),o=Tm(r.ref,Gee(a));return"function"==typeof n||r.isPresent?v.cloneElement(a,{ref:o}):null};function Hee(e){const[t,n]=v.useState(),r=v.useRef({}),a=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[s,c]=Wee(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect((()=>{const e=Xv(r.current);o.current="mounted"===s?e:"none"}),[s]),Jb((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=Xv(t);e?c("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,c]),Jb((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=Xv(r.current).includes(o.animationName);if(o.target===t&&i&&(c("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=Xv(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Xv(e){return(null==e?void 0:e.animationName)||"none"}function Gee(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}vk.displayName="Presence";var $E=0;function Kee(){v.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_z()),document.body.insertAdjacentElement("beforeend",e[1]??_z()),$E++,()=>{1===$E&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),$E--}}),[])}function _z(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var aL=h7(),OE=function(){},bk=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:OE,onWheelCapture:OE,onTouchMoveCapture:OE}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,y=e.as,g=void 0===y?"div":y,b=e.gapMode,_=cA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=d,k=p7([n,t]),x=Oo(Oo({},_),a);return v.createElement(v.Fragment,null,u&&v.createElement(w,{sideCar:aL,removeScrollBar:l,shards:f,noIsolation:p,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?v.cloneElement(v.Children.only(s),Oo(Oo({},x),{ref:k})):v.createElement(g,Oo({},x,{className:c,ref:k}),s))}));bk.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},bk.classNames={fullWidth:Ty,zeroRight:Ay};var IC=!1;if(typeof window<"u")try{var Jv=Object.defineProperty({},"passive",{get:function(){return IC=!0,!0}});window.addEventListener("test",Jv,Jv),window.removeEventListener("test",Jv,Jv)}catch{IC=!1}var Xg=!!IC&&{passive:!1},Qee=function(e){return"TEXTAREA"===e.tagName},oL=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!Qee(e)&&"visible"===n[t])},Yee=function(e){return oL(e,"overflowY")},Zee=function(e){return oL(e,"overflowX")},vz=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),iL(e,r)){var a=sL(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xee=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Jee=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},iL=function(e,t){return"v"===e?Yee(t):Zee(t)},sL=function(e,t){return"v"===e?Xee(t):Jee(t)},ete=function(e,t){return"h"===e&&"rtl"===t?-1:1},tte=function(e,t,n,r,a){var o=ete(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,c=t.contains(s),l=!1,u=i>0,f=0,d=0;do{var p=sL(e,s),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&iL(e,s)&&(f+=m,d+=h),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(Math.abs(f)<1||!a)||!u&&(Math.abs(d)<1||!a))&&(l=!0),l},eb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bz=function(e){return[e.deltaX,e.deltaY]},wz=function(e){return e&&"current"in e?e.current:e},nte=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rte=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ate=0,Jg=[];function ote(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),a=v.useState(ate++)[0],o=v.useState(lA)[0],i=v.useRef(e);v.useEffect((function(){i.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=d7([e.lockRef.current],(e.shards||[]).map(wz),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=eb(e),s=n.current,c="deltaX"in e?e.deltaX:s[0]-o[0],l="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=vz(f,u);if(!d)return!0;if(d?a=f:(a="v"===f?"h":"v",d=vz(f,u)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=a),!a)return!0;var p=r.current||a;return tte(p,t,e,"h"===p?c:l,!0)}),[]),c=v.useCallback((function(e){var n=e;if(Jg.length&&Jg[Jg.length-1]===o){var r="deltaY"in n?bz(n):eb(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&nte(e.delta,r)}))[0];if(a&&a.should)return void(n.cancelable&&n.preventDefault());if(!a){var c=(i.current.shards||[]).map(wz).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?s(n,c[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=v.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:ite(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=v.useCallback((function(e){n.current=eb(e),r.current=void 0}),[]),f=v.useCallback((function(t){l(t.type,bz(t),t.target,s(t,e.lockRef.current))}),[]),d=v.useCallback((function(t){l(t.type,eb(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return Jg.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Xg),document.addEventListener("touchmove",c,Xg),document.addEventListener("touchstart",u,Xg),function(){Jg=Jg.filter((function(e){return e!==o})),document.removeEventListener("wheel",c,Xg),document.removeEventListener("touchmove",c,Xg),document.removeEventListener("touchstart",u,Xg)}}),[]);var p=e.removeScrollBar,h=e.inert;return v.createElement(v.Fragment,null,h?v.createElement(o,{styles:rte(a)}):null,p?v.createElement(_7,{gapMode:e.gapMode}):null)}function ite(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ste=g7(aL,ote);var cL=v.forwardRef((function(e,t){return v.createElement(bk,Oo({},e,{ref:t,sideCar:ste}))}));cL.classNames=bk.classNames;var LA="Dialog",[lL,OWe]=gee(LA),[cte,Vc]=lL(LA),fL=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=v.useRef(null),c=v.useRef(null),[l=!1,u]=bee({prop:r,defaultProp:a,onChange:o});return F.jsx(cte,{scope:t,triggerRef:s,contentRef:c,contentId:TE(),titleId:TE(),descriptionId:TE(),open:l,onOpenChange:u,onOpenToggle:v.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};fL.displayName=LA;var uL="DialogTrigger",dL=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Vc(uL,n),o=Tm(t,a.triggerRef);return F.jsx(Su.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":FA(a.open),...r,ref:o,onClick:mp(e.onClick,a.onOpenToggle)})}));dL.displayName=uL;var jA="DialogPortal",[lte,pL]=lL(jA,{forceMount:void 0}),hL=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Vc(jA,t);return F.jsx(lte,{scope:t,forceMount:n,children:v.Children.map(r,(e=>F.jsx(vk,{present:n||o.open,children:F.jsx(rL,{asChild:!0,container:a,children:e})})))})};hL.displayName=jA;var ew="DialogOverlay",mL=v.forwardRef(((e,t)=>{const n=pL(ew,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Vc(ew,e.__scopeDialog);return o.modal?F.jsx(vk,{present:r||o.open,children:F.jsx(ute,{...a,ref:t})}):null}));mL.displayName=ew;var fte=Z5("DialogOverlay.RemoveScroll"),ute=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Vc(ew,n);return F.jsx(cL,{as:fte,allowPinchZoom:!0,shards:[a.contentRef],children:F.jsx(Su.div,{"data-state":FA(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),_m="DialogContent",gL=v.forwardRef(((e,t)=>{const n=pL(_m,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Vc(_m,e.__scopeDialog);return F.jsx(vk,{present:r||o.open,children:o.modal?F.jsx(dte,{...a,ref:t}):F.jsx(pte,{...a,ref:t})})}));gL.displayName=_m;var dte=v.forwardRef(((e,t)=>{const n=Vc(_m,e.__scopeDialog),r=v.useRef(null),a=Tm(t,n.contentRef,r);return v.useEffect((()=>{const e=r.current;if(e)return rk(e)}),[]),F.jsx(yL,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mp(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:mp(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:mp(e.onFocusOutside,(e=>e.preventDefault()))})})),pte=v.forwardRef(((e,t)=>{const n=Vc(_m,e.__scopeDialog),r=v.useRef(!1),a=v.useRef(!1);return F.jsx(yL,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),yL=v.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=Vc(_m,n),c=v.useRef(null),l=Tm(t,c);return Kee(),F.jsxs(F.Fragment,{children:[F.jsx(tL,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:F.jsx(J5,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":FA(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),F.jsxs(F.Fragment,{children:[F.jsx(hte,{titleId:s.titleId}),F.jsx(gte,{contentRef:c,descriptionId:s.descriptionId})]})]})})),BA="DialogTitle",_L=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Vc(BA,n);return F.jsx(Su.h2,{id:a.titleId,...r,ref:t})}));_L.displayName=BA;var vL="DialogDescription",bL=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Vc(vL,n);return F.jsx(Su.p,{id:a.descriptionId,...r,ref:t})}));bL.displayName=vL;var wL="DialogClose",kL=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Vc(wL,n);return F.jsx(Su.button,{type:"button",...r,ref:t,onClick:mp(e.onClick,(()=>a.onOpenChange(!1)))})}));function FA(e){return e?"open":"closed"}kL.displayName=wL;var xL="DialogTitleWarning",[zWe,SL]=mee(xL,{contentName:_m,titleName:BA,docsSlug:"dialog"}),hte=({titleId:e})=>{const t=SL(xL),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},mte="DialogDescriptionWarning",gte=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${SL(mte).contentName}}.`;return v.useEffect((()=>{var r;const a=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},yte=fL,_te=dL,vte=hL,bte=mL,wte=gL,kte=_L,xte=bL,Ste=kL;function Ete(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const EL=ze.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),G1=()=>{const e=ze.useContext(EL);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};Ete("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}");const Cte=24,Rte=typeof window<"u"?v.useLayoutEffect:v.useEffect;function kz(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Ate(){return UA(/^Mac/)}function Tte(){return UA(/^iPhone/)}function xz(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Ite(){return UA(/^iPad/)||Ate()&&navigator.maxTouchPoints>1}function CL(){return Tte()||Ite()}function UA(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const zE=typeof document<"u"&&window.visualViewport;function Sz(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function RL(e){for(Sz(e)&&(e=e.parentElement);e&&!Sz(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Pte=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ME,tb=0;function $te(e={}){let{isDisabled:t}=e;Rte((()=>{if(!t)return tb++,1===tb&&CL()&&(ME=Ote()),()=>{tb--,0===tb&&(null==ME||ME())}}),[t])}function Ote(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,a=kz(zte(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let o=kz(ry(document,"touchstart",(n=>{e=RL(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),ry(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,a=e.scrollTop,o=e.scrollHeight-e.clientHeight;0!==o&&((a<=0&&r>t||a>=o&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),ry(document,"touchend",(e=>{let t=e.target;PC(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),ry(document,"focus",(e=>{let t=e.target;PC(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",zE&&(zE.height<window.innerHeight?requestAnimationFrame((()=>{Ez(t)})):zE.addEventListener("resize",(()=>Ez(t)),{once:!0}))})))}),!0),ry(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{a(),o(),window.scrollTo(n,r)}}function zte(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function ry(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ez(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=RL(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function PC(e){return e instanceof HTMLInputElement&&!Pte.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Mte(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Dte(...e){return t=>e.forEach((e=>Mte(e,t)))}function AL(...e){return v.useCallback(Dte(...e),e)}const TL=new WeakMap;function xa(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach((([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)})),!n&&TL.set(e,r)}function Nte(e,t){if(!(e&&e instanceof HTMLElement))return;let n=TL.get(e);n&&(e.style[t]=n[t])}const Sa=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function nb(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let a=r.match(/^matrix3d\((.+)\)$/);return a?parseFloat(a[1].split(", ")[Sa(t)?13:12]):(a=r.match(/^matrix\((.+)\)$/),a?parseFloat(a[1].split(", ")[Sa(t)?5:4]):null)}function Lte(e){return 8*(Math.log(e+1)-2)}function DE(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function jte(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const _r={DURATION:.5,EASE:[.32,.72,0,1]},IL=.4,Bte=.25,Fte=100,PL=8,Gh=16,$C=26,NE="vaul-dragging";function $L(e){const t=ze.useRef(e);return ze.useEffect((()=>{t.current=e})),ze.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function Ute({defaultProp:e,onChange:t}){const n=ze.useState(e),[r]=n,a=ze.useRef(r),o=$L(t);return ze.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}function OL({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=Ute({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=$L(n);return[i,ze.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}function Vte({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:a,fadeFromIndex:o,onSnapPointChange:i,direction:s="bottom",container:c,snapToSequentialPoint:l}){const[u,f]=OL({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[d,p]=ze.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);ze.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const h=ze.useMemo((()=>u===(null==n?void 0:n[n.length-1])||null),[n,u]),m=ze.useMemo((()=>null==n?void 0:n.findIndex((e=>e===u))),[n,u]),y=n&&n.length>0&&(o||0===o)&&!Number.isNaN(o)&&n[o]===u||!n,g=ze.useMemo((()=>{const e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var t;return null!=(t=null==n?void 0:n.map((t=>{const n="string"==typeof t;let r=0;if(n&&(r=parseInt(t,10)),Sa(s)){const a=n?r:d?t*e.height:0;return d?"bottom"===s?e.height-a:-e.height+a:a}const a=n?r:d?t*e.width:0;return d?"right"===s?e.width-a:-e.width+a:a})))?t:[]}),[n,d,c]),v=ze.useMemo((()=>null!==m?null==g?void 0:g[m]:null),[g,m]),b=ze.useCallback((e=>{var t;const c=null!=(t=null==g?void 0:g.findIndex((t=>t===e)))?t:null;i(c),xa(r.current,{transition:`transform ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,transform:Sa(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&c!==g.length-1&&c!==o&&c<o?xa(a.current,{transition:`opacity ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,opacity:"0"}):xa(a.current,{transition:`opacity ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,opacity:"1"}),f(null==n?void 0:n[Math.max(c,0)])}),[r.current,n,g,o,a,f]);return ze.useEffect((()=>{if(u||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===u)))?t:-1;g&&-1!==r&&"number"==typeof g[r]&&b(g[r])}}),[u,e,n,g,b]),{isLastSnapPoint:h,activeSnapPoint:u,shouldFade:y,getPercentageDragged:function(e,t){if(!n||"number"!=typeof m||!g||void 0===o)return null;const r=m===o-1;if(m>=o&&t)return 0;if(r&&!t)return 1;if(!y&&!r)return null;const a=r?m+1:m-1,i=r?g[a]-g[a-1]:g[a+1]-g[a],s=e/Math.abs(i);return r?1-s:s},setActiveSnapPoint:f,activeSnapPointIndex:m,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:i}){if(void 0===o)return;const c="bottom"===s||"right"===s?(v??0)-e:(v??0)+e,u=0===m,f=e>0;if(m===o-1&&xa(a.current,{transition:`opacity ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`}),!l&&r>2&&!f)return void(i?t():b(g[0]));if(!l&&r>2&&f&&g&&n)return void b(g[n.length-1]);const d=null==g?void 0:g.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-c)<Math.abs(e-c)?t:e)),p=Sa(s)?window.innerHeight:window.innerWidth;if(r>IL&&Math.abs(e)<.4*p){const e=f?1:-1;if(e>0&&h)return void b(g[n.length-1]);if(u&&e<0&&i&&t(),null===m)return;b(g[m+e])}else b(d)},onDrag:function({draggedDistance:e}){if(null===v)return;const t="bottom"===s||"right"===s?v-e:v+e;("bottom"===s||"right"===s)&&t<g[g.length-1]||("top"===s||"left"===s)&&t>g[g.length-1]||xa(r.current,{transform:Sa(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:g}}const qte=()=>()=>{};function Wte(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:a}=G1(),o=ze.useRef(null),i=v.useMemo((()=>document.body.style.backgroundColor),[]);function s(){return(window.innerWidth-26)/window.innerWidth}ze.useEffect((()=>{if(t&&n){o.current&&clearTimeout(o.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;jte(r&&!a?DE(document.body,{background:"black"}):qte,DE(t,{transformOrigin:Sa(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${_r.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_r.EASE.join(",")})`}));const n=DE(t,{borderRadius:"8px",overflow:"hidden",...Sa(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),o.current=window.setTimeout((()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")}),1e3*_r.DURATION)}}}),[t,n,i])}let ay=null;function Hte({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:a,noBodyStyles:o}){const[i,s]=ze.useState((()=>typeof window<"u"?window.location.href:"")),c=ze.useRef(0),l=ze.useCallback((()=>{if(xz()&&null===ay&&e&&!o){ay={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-c.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=-(c.current+e)+"px")}))),300)}}),[e]),u=ze.useCallback((()=>{if(xz()&&null!==ay&&!o){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,ay),window.requestAnimationFrame((()=>{a&&i!==window.location.href?s(window.location.href):window.scrollTo(t,e)})),ay=null}}),[i]);return ze.useEffect((()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),ze.useEffect((()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout((()=>{u()}),500)):u())}),[e,r,i,t,n,l,u]),{restorePositionSetting:u}}function zL({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:a,snapPoints:o,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=Bte,scrollLockTimeout:l=100,dismissible:u=!0,handleOnly:f=!1,fadeFromIndex:d=o&&o.length-1,activeSnapPoint:p,setActiveSnapPoint:h,fixed:m,modal:y=!0,onClose:g,nested:v,noBodyStyles:b,direction:_="bottom",defaultOpen:w=!1,disablePreventScroll:k=!0,snapToSequentialPoint:x=!1,preventScrollRestoration:S=!1,repositionInputs:E=!0,onAnimationEnd:A,container:z,autoFocus:C=!1}){var I,T;const[R=!1,P]=OL({defaultProp:w,prop:e,onChange:e=>{null==t||t(e),!e&&!v&&ce(),setTimeout((()=>{null==A||A(e)}),1e3*_r.DURATION),e&&!y&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[j,O]=ze.useState(!1),[N,M]=ze.useState(!1),[D,F]=ze.useState(!1),L=ze.useRef(null),V=ze.useRef(null),q=ze.useRef(null),B=ze.useRef(null),U=ze.useRef(null),$=ze.useRef(!1),W=ze.useRef(null),H=ze.useRef(0),G=ze.useRef(!1),K=ze.useRef(0),Q=ze.useRef(null),Y=ze.useRef((null==(I=Q.current)?void 0:I.getBoundingClientRect().height)||0),Z=ze.useRef((null==(T=Q.current)?void 0:T.getBoundingClientRect().width)||0),X=ze.useRef(0),J=ze.useCallback((e=>{o&&e===ae.length-1&&(V.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:ae,onDrag:oe,shouldFade:ie,getPercentageDragged:se}=Vte({snapPoints:o,activeSnapPointProp:p,setActiveSnapPointProp:h,drawerRef:Q,fadeFromIndex:d,overlayRef:L,onSnapPointChange:J,direction:_,container:z,snapToSequentialPoint:x});$te({isDisabled:!R||N||!y||D||!j||!E||!k});const{restorePositionSetting:ce}=Hte({isOpen:R,modal:y,nested:v,hasBeenOpened:j,preventScrollRestoration:S,noBodyStyles:b});function le(){return(window.innerWidth-26)/window.innerWidth}function ue(e,t){var n,r;let a=e;const o=null==(n=window.getSelection())?void 0:n.toString(),i=Q.current?nb(Q.current,_):null,s=new Date;if(a.hasAttribute("data-vaul-no-drag")||a.closest("[data-vaul-no-drag]"))return!1;if("right"===_||"left"===_)return!0;if(V.current&&s.getTime()-V.current.getTime()<500)return!1;if(null!==i&&("bottom"===_?i>0:i<0))return!0;if(o&&o.length>0)return!1;if(s.getTime()-(null==(r=U.current)?void 0:r.getTime())<l&&0===i||t)return U.current=s,!1;for(;a;){if(a.scrollHeight>a.clientHeight){if(0!==a.scrollTop)return U.current=new Date,!1;if("dialog"===a.getAttribute("role"))return!0}a=a.parentNode}return!0}function fe(e){!N||!Q.current||(Q.current.classList.remove(NE),$.current=!1,M(!1),B.current=new Date),null==g||g(),e||P(!1),setTimeout((()=>{o&&ne(o[0])}),1e3*_r.DURATION)}function de(){if(!Q.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=nb(Q.current,_);xa(Q.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`}),xa(L.current,{transition:`opacity ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,opacity:"1"}),i&&t&&t>0&&R&&xa(e,{borderRadius:"8px",overflow:"hidden",...Sa(_)?{transform:`scale(${le()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${le()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${_r.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_r.EASE.join(",")})`},!0)}return ze.useEffect((()=>{var e;function t(){if(!Q.current||!E)return;if(PC(document.activeElement)||G.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const a=Q.current.getBoundingClientRect().height||0,i=a>.8*n;X.current||(X.current=a);const s=Q.current.getBoundingClientRect().top;if(Math.abs(K.current-r)>60&&(G.current=!G.current),o&&o.length>0&&ae&&te){r+=ae[te]||0}if(K.current=r,a>t||G.current){const e=Q.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(i?s:26)),Q.current.style.height=m?e-Math.max(r,0)+"px":`${Math.max(n,t-s)}px`}else Q.current.style.height=`${X.current}px`;o&&o.length>0&&!G.current?Q.current.style.bottom="0px":Q.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}}),[te,o,ae]),ze.useEffect((()=>(R&&(xa(document.documentElement,{scrollBehavior:"auto"}),V.current=new Date),()=>{Nte(document.documentElement,"scrollBehavior")})),[R]),ze.createElement(yte,{defaultOpen:w,onOpenChange:e=>{!u&&!e||(e?O(!0):fe(!0),P(e))},open:R},ze.createElement(EL.Provider,{value:{activeSnapPoint:ee,snapPoints:o,setActiveSnapPoint:ne,drawerRef:Q,overlayRef:L,onOpenChange:t,onPress:function(e){var t,n;!u&&!o||Q.current&&!Q.current.contains(e.target)||(Y.current=(null==(t=Q.current)?void 0:t.getBoundingClientRect().height)||0,Z.current=(null==(n=Q.current)?void 0:n.getBoundingClientRect().width)||0,M(!0),q.current=new Date,CL()&&window.addEventListener("touchend",(()=>$.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),H.current=Sa(_)?e.pageY:e.pageX)},onRelease:function(e){if(!N||!Q.current)return;Q.current.classList.remove(NE),$.current=!1,M(!1),B.current=new Date;const t=nb(Q.current,_);if(!ue(e.target,!1)||!t||Number.isNaN(t)||null===q.current)return;const n=B.current.getTime()-q.current.getTime(),r=H.current-(Sa(_)?e.pageY:e.pageX),i=Math.abs(r)/n;if(i>.05&&(F(!0),setTimeout((()=>{F(!1)}),200)),o)return re({draggedDistance:r*("bottom"===_||"right"===_?1:-1),closeDrawer:fe,velocity:i,dismissible:u}),void(null==a||a(e,!0));if("bottom"===_||"right"===_?r>0:r<0)return de(),void(null==a||a(e,!0));if(i>IL)return fe(),void(null==a||a(e,!1));var s;const l=Math.min(null!=(s=Q.current.getBoundingClientRect().height)?s:0,window.innerHeight);var f;const d=Math.min(null!=(f=Q.current.getBoundingClientRect().width)?f:0,window.innerWidth),p="left"===_||"right"===_;if(Math.abs(t)>=(p?d:l)*c)return fe(),void(null==a||a(e,!1));null==a||a(e,!0),de()},onDrag:function(e){if(Q.current&&N){const t="bottom"===_||"right"===_?1:-1,n=(H.current-(Sa(_)?e.pageY:e.pageX))*t,a=n>0,s=o&&!u&&!a;if(s&&0===te)return;const c=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]");let f=c/("bottom"===_||"top"===_?Y.current:Z.current);const p=se(c,a);if(null!==p&&(f=p),s&&f>=1||!$.current&&!ue(e.target,a))return;if(Q.current.classList.add(NE),$.current=!0,xa(Q.current,{transition:"none"}),xa(L.current,{transition:"none"}),o&&oe({draggedDistance:n}),a&&!o){const e=Lte(n),r=Math.min(-1*e,0)*t;return void xa(Q.current,{transform:Sa(_)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}const h=1-f;if((ie||d&&te===d-1)&&(null==r||r(e,f),xa(L.current,{opacity:`${h}`,transition:"none"},!0)),l&&L.current&&i){const e=Math.min(le()+f*(1-le()),1),t=8-8*f,n=Math.max(0,14-14*f);xa(l,{borderRadius:`${t}px`,transform:Sa(_)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!o){const e=c*t;xa(Q.current,{transform:Sa(_)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:u,handleOnly:f,isOpen:R,isDragging:N,shouldFade:ie,closeDrawer:fe,onNestedDrag:function(e,t){if(t<0)return;const n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),a=16*t-16;xa(Q.current,{transform:Sa(_)?`scale(${r}) translate3d(0, ${a}px, 0)`:`scale(${r}) translate3d(${a}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;W.current&&window.clearTimeout(W.current),xa(Q.current,{transition:`transform ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&Q.current&&(W.current=setTimeout((()=>{const e=nb(Q.current,_);xa(Q.current,{transition:"none",transform:Sa(_)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=Sa(_)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,a=t?-16:0;t&&xa(Q.current,{transition:`transform ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,transform:Sa(_)?`scale(${r}) translate3d(0, ${a}px, 0)`:`scale(${r}) translate3d(${a}px, 0, 0)`})},keyboardIsOpen:G,modal:y,snapPointsOffset:ae,direction:_,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:b,container:z,autoFocus:C}},n))}const ML=ze.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:a,shouldFade:o,isOpen:i,modal:s}=G1(),c=AL(t,n),l=r&&r.length>0;return s?ze.createElement(bte,{onMouseUp:a,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":i&&l?"true":"false","data-vaul-snap-points-overlay":i&&o?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),null)}));ML.displayName="Drawer.Overlay";const DL=ze.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},a){const{drawerRef:o,onPress:i,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,modal:f,isOpen:d,direction:p,snapPoints:h,container:m,handleOnly:y,autoFocus:g}=G1(),[v,b]=ze.useState(!1),_=AL(a,o),w=ze.useRef(null),k=ze.useRef(null),x=ze.useRef(!1),S=h&&h.length>0;Wte();function E(e){w.current=null,x.current=!1,s(e)}return ze.useEffect((()=>{S&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),ze.createElement(wte,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":v?"true":"false","data-vaul-snap-points":d&&S?"true":"false","data-vaul-custom-container":m?"true":"false",...r,ref:_,style:u&&u.length>0?{"--snap-point-height":`${u[0]}px`,...t}:t,onPointerDown:e=>{y||(null==r.onPointerDown||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},i(e))},onOpenAutoFocus:e=>{null==n||n(e),g||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),f&&!t.defaultPrevented?l.current&&(l.current=!1):t.preventDefault()},onFocusOutside:e=>{f||e.preventDefault()},onPointerMove:e=>{if(k.current=e,y||(null==r.onPointerMove||r.onPointerMove.call(r,e),!w.current))return;const t=e.pageY-w.current.y,n=e.pageX-w.current.x,a="touch"===e.pointerType?10:2;((e,t,n=0)=>{if(x.current)return!0;const r=Math.abs(e.y),a=Math.abs(e.x),o=a>r,i=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*i<0)&&a>=0&&a<=n)return o}else if(!(e.y*i<0)&&r>=0&&r<=n)return!o;return x.current=!0,!0})({x:n,y:t},p,a)?c(e):(Math.abs(n)>a||Math.abs(t)>a)&&(w.current=null)},onPointerUp:e=>{null==r.onPointerUp||r.onPointerUp.call(r,e),w.current=null,x.current=!1,s(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),E(k.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),E(k.current)}})}));DL.displayName="Drawer.Content";const Gte=250,Kte=120,NL=ze.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:a,isDragging:o,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:f,onPress:d,onDrag:p}=G1(),h=ze.useRef(null),m=ze.useRef(!1);function y(){window.clearTimeout(h.current),m.current=!1}return ze.createElement("div",{onClick:function(){m.current?y():window.setTimeout((()=>{!function(){if(o||e||m.current)return void y();if(y(),(!i||0===i.length)&&l)return void a();if(s===i[i.length-1]&&l)return void a();const t=i.findIndex((e=>e===s));if(-1===t)return;const n=i[t+1];c(n)}()}),120)},onPointerCancel:y,onPointerDown:e=>{u&&d(e),h.current=window.setTimeout((()=>{m.current=!0}),250)},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},ze.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function Qte({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:a,onNestedRelease:o}=G1();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return ze.createElement(zL,{nested:!0,onClose:()=>{a(!1)},onDrag:(t,n)=>{r(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&a(e)},onRelease:o,...n})}function Yte(e){const t=G1(),{container:n=t.container,...r}=e;return ze.createElement(vte,{container:n,...r})}NL.displayName="Drawer.Handle";const Op={Root:zL,NestedRoot:Qte,Content:DL,Overlay:ML,Trigger:_te,Portal:Yte,Handle:NL,Close:Ste,Title:kte,Description:xte},Zte=Op.Portal,LL=v.forwardRef((({className:e,...t},n)=>F.jsx(Op.Overlay,{ref:n,className:$e("fixed inset-0 z-50 bg-black/5",e),...t})));LL.displayName=Op.Overlay.displayName;const Xte=v.forwardRef((({className:e,children:t,direction:n="bottom",...r},a)=>F.jsxs(Zte,{children:[F.jsx(LL,{}),F.jsxs(Op.Content,{ref:a,className:$e("fixed z-50 border bg-background shadow-lg","bottom"===n&&"inset-x-0 bottom-0 mt-24 flex h-auto flex-col rounded-t-lg","top"===n&&"inset-x-0 top-0 mb-24 flex h-auto flex-col rounded-b-lg","left"===n&&"inset-y-0 left-0 flex h-full flex-col","right"===n&&"inset-y-0 right-0 flex h-full w-[346px] flex-col sm:w-[435px]",e),...r,children:["bottom"===n&&F.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));Xte.displayName="DrawerContent";const Jte=v.forwardRef((({className:e,...t},n)=>F.jsx(Op.Title,{ref:n,className:$e("text-lg font-semibold leading-none tracking-tight",e),...t})));Jte.displayName=Op.Title.displayName;const ene=v.forwardRef((({className:e,...t},n)=>F.jsx(Op.Description,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));function VA(e){const t=e+"CollectionProvider",[n,r]=ii(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e+"CollectionSlot",s=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=ze.useRef(null),o=ze.useRef(new Map).current;return ze.createElement(a,{scope:t,itemMap:o,collectionRef:r},n)},Slot:ze.forwardRef(((e,t)=>{const{scope:n,children:r}=e,a=yn(t,o(i,n).collectionRef);return ze.createElement(pm,{ref:a},r)})),ItemSlot:ze.forwardRef(((e,t)=>{const{scope:n,children:r,...a}=e,i=ze.useRef(null),l=yn(t,i),u=o(s,n);return ze.useEffect((()=>(u.itemMap.set(i,{ref:i,...a}),()=>{u.itemMap.delete(i)}))),ze.createElement(pm,{[c]:"",ref:l},r)}))},function(t){const n=o(e+"CollectionConsumer",t);return ze.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}ene.displayName=Op.Description.displayName;const tne=v.createContext(void 0);function qA(e){const t=v.useContext(tne);return e||t||"ltr"}const nne=["top","right","bottom","left"],kp=Math.min,ts=Math.max,tw=Math.round,rb=Math.floor,xp=e=>({x:e,y:e}),rne={left:"right",right:"left",bottom:"top",top:"bottom"},ane={start:"end",end:"start"};function OC(e,t,n){return ts(e,kp(t,n))}function vu(e,t){return"function"==typeof e?e(t):e}function bu(e){return e.split("-")[0]}function K1(e){return e.split("-")[1]}function WA(e){return"x"===e?"y":"x"}function HA(e){return"y"===e?"height":"width"}function Sp(e){return["top","bottom"].includes(bu(e))?"y":"x"}function GA(e){return WA(Sp(e))}function one(e,t,n){void 0===n&&(n=!1);const r=K1(e),a=GA(e),o=HA(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=nw(i)),[i,nw(i)]}function ine(e){const t=nw(e);return[zC(e),t,zC(t)]}function zC(e){return e.replace(/start|end/g,(e=>ane[e]))}function sne(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}function cne(e,t,n,r){const a=K1(e);let o=sne(bu(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(zC)))),o}function nw(e){return e.replace(/left|right|bottom|top/g,(e=>rne[e]))}function lne(e){return{top:0,right:0,bottom:0,left:0,...e}}function jL(e){return"number"!=typeof e?lne(e):{top:e,right:e,bottom:e,left:e}}function rw(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Cz(e,t,n){let{reference:r,floating:a}=e;const o=Sp(t),i=GA(t),s=HA(i),c=bu(t),l="y"===o,u=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,d=r[s]/2-a[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-a.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-a.width,y:f};break;default:p={x:r.x,y:r.y}}switch(K1(t)){case"start":p[i]-=d*(n&&l?-1:1);break;case"end":p[i]+=d*(n&&l?-1:1)}return p}const fne=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:f}=Cz(l,r,c),d=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:m}=s[n],{x:y,y:g,data:v,reset:b}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:p,rects:l,platform:i,elements:{reference:e,floating:t}});u=y??u,f=g??f,p={...p,[o]:{...p[o],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(l=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:f}=Cz(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:a,middlewareData:p}};async function t_(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=vu(t,e),h=jL(p),m=s[d?"floating"===f?"reference":"floating":f],y=rw(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},_=rw(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:c}):g);return{top:(y.top-_.top+h.top)/b.y,bottom:(_.bottom-y.bottom+h.bottom)/b.y,left:(y.left-_.left+h.left)/b.x,right:(_.right-y.right+h.right)/b.x}}const une=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=vu(e,t)||{};if(null==l)return{};const f=jL(u),d={x:n,y:r},p=GA(a),h=HA(p),m=await i.getDimensions(l),y="y"===p,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",_=o.reference[h]+o.reference[p]-d[p]-o.floating[h],w=d[p]-o.reference[p],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let x=k?k[b]:0;(!x||!await(null==i.isElement?void 0:i.isElement(k)))&&(x=s.floating[b]||o.floating[h]);const S=_/2-w/2,E=x/2-m[h]/2-1,A=kp(f[g],E),z=kp(f[v],E),C=A,I=x-m[h]-z,T=x/2-m[h]/2+S,R=OC(C,T,I),P=!c.arrow&&null!=K1(a)&&T!==R&&o.reference[h]/2-(T<C?A:z)-m[h]/2<0,j=P?T<C?T-C:T-I:0;return{[p]:d[p]+j,data:{[p]:R,centerOffset:T-R-j,...P&&{alignmentOffset:j}},reset:P}}}),dne=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=vu(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const g=bu(a),v=Sp(s),b=bu(s)===s,_=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=d||(b||!m?[nw(s)]:ine(s)),k="none"!==h;!d&&k&&w.push(...cne(s,m,h,_));const x=[s,...w],S=await t_(t,y),E=[];let A=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[g]),f){const e=one(a,i,_);E.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:a,overflows:E}],!E.every((e=>e<=0))){var z,C;const e=((null==(z=o.flip)?void 0:z.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(C=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(p){case"bestFit":{var I;const e=null==(I=A.filter((e=>{if(k){const t=Sp(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}};function Rz(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Az(e){return nne.some((t=>e[t]>=0))}const pne=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=vu(e,t);switch(r){case"referenceHidden":{const e=Rz(await t_(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Az(e)}}}case"escaped":{const e=Rz(await t_(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Az(e)}}}default:return{}}}}};async function hne(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=bu(n),s=K1(n),c="y"===Sp(n),l=["left","top"].includes(i)?-1:1,u=o&&c?-1:1,f=vu(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}const mne=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,c=await hne(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+c.x,y:o+c.y,data:{...c,placement:i}}}}},gne=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=vu(e,t),l={x:n,y:r},u=await t_(t,c),f=Sp(bu(a)),d=WA(f);let p=l[d],h=l[f];if(o){const e="y"===d?"bottom":"right";p=OC(p+u["y"===d?"top":"left"],p,p-u[e])}if(i){const e="y"===f?"bottom":"right";h=OC(h+u["y"===f?"top":"left"],h,h-u[e])}const m=s.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:o,[f]:i}}}}}},yne=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=vu(e,t),u={x:n,y:r},f=Sp(a),d=WA(f);let p=u[d],h=u[f];const m=vu(s,t),y="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+y.mainAxis,n=o.reference[d]+o.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,v;const e="y"===d?"width":"height",t=["top","left"].includes(bu(a)),n=o.reference[f]-o.floating[e]+(t&&(null==(g=i.offset)?void 0:g[f])||0)+(t?0:y.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[f])||0)-(t?y.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[d]:p,[f]:h}}}},_ne=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:c=()=>{},...l}=vu(e,t),u=await t_(t,l),f=bu(a),d=K1(a),p="y"===Sp(a),{width:h,height:m}=o.floating;let y,g;"top"===f||"bottom"===f?(y=f,g=d===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,y="end"===d?"top":"bottom");const v=m-u.top-u.bottom,b=h-u.left-u.right,_=kp(m-u[y],v),w=kp(h-u[g],b),k=!t.middlewareData.shift;let x=_,S=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(x=v),k&&!d){const e=ts(u.left,0),t=ts(u.right,0),n=ts(u.top,0),r=ts(u.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:ts(u.left,u.right)):x=m-2*(0!==n||0!==r?n+r:ts(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:x});const E=await i.getDimensions(s.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function wk(){return typeof window<"u"}function Ep(e){return BL(e)?(e.nodeName||"").toLowerCase():"#document"}function ns(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Eu(e){var t;return null==(t=(BL(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function BL(e){return!!wk()&&(e instanceof Node||e instanceof ns(e).Node)}function Vl(e){return!!wk()&&(e instanceof Element||e instanceof ns(e).Element)}function ql(e){return!!wk()&&(e instanceof HTMLElement||e instanceof ns(e).HTMLElement)}function Tz(e){return!(!wk()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ns(e).ShadowRoot)}function V_(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Vs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function vne(e){return["table","td","th"].includes(Ep(e))}function bne(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function KA(e){const t=QA(),n=Vl(e)?Vs(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function FL(e){let t=C1(e);for(;ql(t)&&!kk(t);){if(KA(t))return t;if(bne(t))return null;t=C1(t)}return null}function QA(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function kk(e){return["html","body","#document"].includes(Ep(e))}function Vs(e){return ns(e).getComputedStyle(e)}function xk(e){return Vl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function C1(e){if("html"===Ep(e))return e;const t=e.assignedSlot||e.parentNode||Tz(e)&&e.host||Eu(e);return Tz(t)?t.host:t}function UL(e){const t=C1(e);return kk(t)?e.ownerDocument?e.ownerDocument.body:e.body:ql(t)&&V_(t)?t:UL(t)}function n_(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=UL(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=ns(a);if(o){const e=wne(i);return t.concat(i,i.visualViewport||[],V_(a)?a:[],e&&n?n_(e):[])}return t.concat(a,n_(a,[],n))}function wne(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function VL(e){const t=Vs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=ql(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=tw(n)!==o||tw(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function YA(e){return Vl(e)?e:e.contextElement}function _1(e){const t=YA(e);if(!ql(t))return xp(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=VL(t);let i=(o?tw(n.width):n.width)/r,s=(o?tw(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const kne=xp(0);function qL(e){const t=ns(e);return QA()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:kne}function xne(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ns(e))&&t}function vm(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=YA(e);let i=xp(1);t&&(r?Vl(r)&&(i=_1(r)):i=_1(e));const s=xne(o,n,r)?qL(o):xp(0);let c=(a.left+s.x)/i.x,l=(a.top+s.y)/i.y,u=a.width/i.x,f=a.height/i.y;if(o){const e=ns(o),t=r&&Vl(r)?ns(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=_1(n),t=n.getBoundingClientRect(),r=Vs(n),a=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=a,l+=o,n=ns(n).frameElement}}return rw({width:u,height:f,x:c,y:l})}const Sne=[":popover-open",":modal"];function WL(e){let t=!1,n=0,r=0;if(Sne.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=FL(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function Ene(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=Eu(r),[i]=t?WL(t.floating):[!1];if(r===o||i)return n;let s={scrollLeft:0,scrollTop:0},c=xp(1);const l=xp(0),u=ql(r);if((u||!u&&"fixed"!==a)&&(("body"!==Ep(r)||V_(o))&&(s=xk(r)),ql(r))){const e=vm(r);c=_1(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+l.x,y:n.y*c.y-s.scrollTop*c.y+l.y}}function Cne(e){return Array.from(e.getClientRects())}function HL(e){return vm(Eu(e)).left+xk(e).scrollLeft}function Rne(e){const t=Eu(e),n=xk(e),r=e.ownerDocument.body,a=ts(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ts(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+HL(e);const s=-n.scrollTop;return"rtl"===Vs(r).direction&&(i+=ts(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}function Ane(e,t){const n=ns(e),r=Eu(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,c=0;if(a){o=a.width,i=a.height;const e=QA();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:s,y:c}}function Tne(e,t){const n=vm(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=ql(e)?_1(e):xp(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}function Iz(e,t,n){let r;if("viewport"===t)r=Ane(e,n);else if("document"===t)r=Rne(Eu(e));else if(Vl(t))r=Tne(t,n);else{const n=qL(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return rw(r)}function GL(e,t){const n=C1(e);return!(n===t||!Vl(n)||kk(n))&&("fixed"===Vs(n).position||GL(n,t))}function Ine(e,t){const n=t.get(e);if(n)return n;let r=n_(e,[],!1).filter((e=>Vl(e)&&"body"!==Ep(e))),a=null;const o="fixed"===Vs(e).position;let i=o?C1(e):e;for(;Vl(i)&&!kk(i);){const t=Vs(i),n=KA(i);!n&&"fixed"===t.position&&(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||V_(i)&&!n&&GL(e,i))?r=r.filter((e=>e!==i)):a=t,i=C1(i)}return t.set(e,r),r}function Pne(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?Ine(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=Iz(t,n,a);return e.top=ts(r.top,e.top),e.right=kp(r.right,e.right),e.bottom=kp(r.bottom,e.bottom),e.left=ts(r.left,e.left),e}),Iz(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function $ne(e){const{width:t,height:n}=VL(e);return{width:t,height:n}}function One(e,t,n,r){const a=ql(t),o=Eu(t),i="fixed"===n,s=vm(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=xp(0);if(a||!a&&!i)if(("body"!==Ep(t)||V_(o))&&(c=xk(t)),a){const e=vm(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=HL(o));let u=s.left+c.scrollLeft-l.x,f=s.top+c.scrollTop-l.y;const[d,p,h]=WL(r);return d&&(u+=p,f+=h,a&&(u+=t.clientLeft,f+=t.clientTop)),{x:u,y:f,width:s.width,height:s.height}}function Pz(e,t){return ql(e)&&"fixed"!==Vs(e).position?t?t(e):e.offsetParent:null}function KL(e,t){const n=ns(e);if(!ql(e))return n;let r=Pz(e,t);for(;r&&vne(r)&&"static"===Vs(r).position;)r=Pz(r,t);return r&&("html"===Ep(r)||"body"===Ep(r)&&"static"===Vs(r).position&&!KA(r))?n:r||FL(e)||n}const zne=async function(e){const t=this.getOffsetParent||KL,n=this.getDimensions;return{reference:One(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function Mne(e){return"rtl"===Vs(e).direction}const Dne={convertOffsetParentRelativeRectToViewportRelativeRect:Ene,getDocumentElement:Eu,getClippingRect:Pne,getOffsetParent:KL,getElementRects:zne,getClientRects:Cne,getDimensions:$ne,getScale:_1,isElement:Vl,isRTL:Mne};function Nne(e,t){let n,r=null;const a=Eu(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),o();const{left:l,top:u,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const p={rootMargin:-rb(u)+"px "+-rb(a.clientWidth-(l+f))+"px "+-rb(a.clientHeight-(u+d))+"px "+-rb(l)+"px",threshold:ts(0,kp(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:a.ownerDocument})}catch{r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}function Lne(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=YA(e),u=a||o?[...l?n_(l):[],...n_(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const f=l&&s?Nne(l,n):null;let d=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),l&&!c&&p.observe(l),p.observe(t));let h,m=c?vm(e):null;return c&&function t(){const r=vm(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const jne=gne,Bne=dne,Fne=_ne,Une=pne,$z=une,Vne=yne,qne=(e,t,n)=>{const r=new Map,a={platform:Dne,...n},o={...a.platform,_c:r};return fne(e,t,{...a,platform:o})};var zb=typeof document<"u"?v.useLayoutEffect:v.useEffect;function aw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!aw(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(!("_owner"===n&&e.$$typeof||aw(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function QL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Oz(e,t){const n=QL(e);return Math.round(t*n)/n}function LE(e){const t=v.useRef(e);return zb((()=>{t.current=e})),t}function Wne(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,f]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=v.useState(r);aw(d,r)||p(r);const[h,m]=v.useState(null),[y,g]=v.useState(null),b=v.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),_=v.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),w=o||h,k=i||y,x=v.useRef(null),S=v.useRef(null),E=v.useRef(u),A=null!=c,z=LE(c),C=LE(a),I=LE(l),T=v.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:d};C.current&&(e.platform=C.current),qne(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==I.current};R.current&&!aw(E.current,t)&&(E.current=t,Zl.flushSync((()=>{f(t)})))}))}),[d,t,n,C,I]);zb((()=>{!1===l&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[l]);const R=v.useRef(!1);zb((()=>(R.current=!0,()=>{R.current=!1})),[]),zb((()=>{if(w&&(x.current=w),k&&(S.current=k),w&&k){if(z.current)return z.current(w,k,T);T()}}),[w,k,T,z,A]);const P=v.useMemo((()=>({reference:x,floating:S,setReference:b,setFloating:_})),[b,_]),j=v.useMemo((()=>({reference:w,floating:k})),[w,k]),O=v.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=Oz(j.floating,u.x),r=Oz(j.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...QL(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,j.floating,u.x,u.y]);return v.useMemo((()=>({...u,update:T,refs:P,elements:j,floatingStyles:O})),[u,T,P,j,O])}const Hne=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?$z({element:n.current,padding:r}).fn(t):{}:n?$z({element:n,padding:r}).fn(t):{}}}),Gne=(e,t)=>({...mne(e),options:[e,t]}),Kne=(e,t)=>({...jne(e),options:[e,t]}),Qne=(e,t)=>({...Vne(e),options:[e,t]}),Yne=(e,t)=>({...Bne(e),options:[e,t]}),Zne=(e,t)=>({...Fne(e),options:[e,t]}),Xne=(e,t)=>({...Une(e),options:[e,t]}),Jne=(e,t)=>({...Hne(e),options:[e,t]}),YL="Popper",[ZL,Q1]=ii(YL),[ere,XL]=ZL(YL),tre=e=>{const{__scopePopper:t,children:n}=e,[r,a]=v.useState(null);return v.createElement(ere,{scope:t,anchor:r,onAnchorChange:a},n)},nre="PopperAnchor",rre=v.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=XL(nre,n),i=v.useRef(null),s=yn(t,i);return v.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:v.createElement(St.div,Le({},a,{ref:s}))})),JL="PopperContent",[are,MWe]=ZL(JL),ore=v.forwardRef(((e,t)=>{var n,r,a,o,i,s,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:d=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:y=!0,collisionBoundary:g=[],collisionPadding:b=0,sticky:_="partial",hideWhenDetached:w=!1,updatePositionStrategy:k="optimized",onPlaced:x,...S}=e,E=XL(JL,u),[A,z]=v.useState(null),C=yn(t,(e=>z(e))),[I,T]=v.useState(null),R=yk(I),P=null!==(n=null==R?void 0:R.width)&&void 0!==n?n:0,j=null!==(r=null==R?void 0:R.height)&&void 0!==r?r:0,O=f+("center"!==p?"-"+p:""),N="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},M=Array.isArray(g)?g:[g],D=M.length>0,F={padding:N,boundary:M.filter(ire),altBoundary:D},{refs:L,floatingStyles:V,placement:q,isPositioned:B,middlewareData:U}=Wne({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>Lne(...e,{animationFrame:"always"===k}),elements:{reference:E.anchor},middleware:[Gne({mainAxis:d+j,alignmentAxis:h}),y&&Kne({mainAxis:!0,crossAxis:!1,limiter:"partial"===_?Qne():void 0,...F}),y&&Yne({...F}),Zne({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),I&&Jne({element:I,padding:m}),sre({arrowWidth:P,arrowHeight:j}),w&&Xne({strategy:"referenceHidden",...F})]}),[$,W]=ej(q),H=Bc(x);Mo((()=>{B&&(null==H||H())}),[B,H]);const G=null===(a=U.arrow)||void 0===a?void 0:a.x,K=null===(o=U.arrow)||void 0===o?void 0:o.y,Q=0!==(null===(i=U.arrow)||void 0===i?void 0:i.centerOffset),[Y,Z]=v.useState();return Mo((()=>{A&&Z(window.getComputedStyle(A).zIndex)}),[A]),v.createElement("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:B?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(c=U.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},v.createElement(are,{scope:u,placedSide:$,onArrowChange:T,arrowX:G,arrowY:K,shouldHideArrow:Q},v.createElement(St.div,Le({"data-side":$,"data-align":W},S,{ref:C,style:{...S.style,animation:B?void 0:"none",opacity:null!==(l=U.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))}));function ire(e){return null!==e}const sre=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a,o,i;const{placement:s,rects:c,middlewareData:l}=t,u=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),f=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=ej(s),m={start:"0%",center:"50%",end:"100%"}[h],y=(null!==(r=null===(a=l.arrow)||void 0===a?void 0:a.x)&&void 0!==r?r:0)+f/2,g=(null!==(o=null===(i=l.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+d/2;let v="",b="";return"bottom"===p?(v=u?m:`${y}px`,b=-d+"px"):"top"===p?(v=u?m:`${y}px`,b=`${c.floating.height+d}px`):"right"===p?(v=-d+"px",b=u?m:`${g}px`):"left"===p&&(v=`${c.floating.width+d}px`,b=u?m:`${g}px`),{data:{x:v,y:b}}}});function ej(e){const[t,n="center"]=e.split("-");return[t,n]}const tj=tre,ZA=rre,XA=ore,jE="rovingFocusGroup.onEntryFocus",cre={bubbles:!1,cancelable:!0},JA="RovingFocusGroup",[MC,nj,lre]=VA(JA),[fre,Y1]=ii(JA,[lre]),[ure,dre]=fre(JA),pre=v.forwardRef(((e,t)=>v.createElement(MC.Provider,{scope:e.__scopeRovingFocusGroup},v.createElement(MC.Slot,{scope:e.__scopeRovingFocusGroup},v.createElement(hre,Le({},e,{ref:t})))))),hre=v.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,...u}=e,f=v.useRef(null),d=yn(t,f),p=qA(o),[h=null,m]=wp({prop:i,defaultProp:s,onChange:c}),[y,g]=v.useState(!1),b=Bc(l),_=nj(n),w=v.useRef(!1),[k,x]=v.useState(0);return v.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(jE,b),()=>e.removeEventListener(jE,b)}),[b]),v.createElement(ure,{scope:n,orientation:r,dir:p,loop:a,currentTabStopId:h,onItemFocus:v.useCallback((e=>m(e)),[m]),onItemShiftTab:v.useCallback((()=>g(!0)),[]),onFocusableItemAdd:v.useCallback((()=>x((e=>e+1))),[]),onFocusableItemRemove:v.useCallback((()=>x((e=>e-1))),[])},v.createElement(St.div,Le({tabIndex:y||0===k?-1:0,"data-orientation":r},u,{ref:d,style:{outline:"none",...e.style},onMouseDown:lt(e.onMouseDown,(()=>{w.current=!0})),onFocus:lt(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(jE,cre);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=_().filter((e=>e.focusable));rj([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:lt(e.onBlur,(()=>g(!1)))})))})),mre="RovingFocusGroupItem",gre=v.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,...i}=e,s=hp(),c=o||s,l=dre(mre,n),u=l.currentTabStopId===c,f=nj(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=l;return v.useEffect((()=>{if(r)return d(),()=>p()}),[r,d,p]),v.createElement(MC.ItemSlot,{scope:n,id:c,focusable:r,active:a},v.createElement(St.span,Le({tabIndex:u?0:-1,"data-orientation":l.orientation},i,{ref:t,onMouseDown:lt(e.onMouseDown,(e=>{r?l.onItemFocus(c):e.preventDefault()})),onFocus:lt(e.onFocus,(()=>l.onItemFocus(c))),onKeyDown:lt(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=vre(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let n=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=l.loop?bre(n,r+1):n.slice(r+1)}setTimeout((()=>rj(n)))}}))})))})),yre={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _re(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function vre(e,t,n){const r=_re(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return yre[r]}function rj(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function bre(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const eT=pre,tT=gre,DC=["Enter"," "],wre=["ArrowDown","PageUp","Home"],aj=["ArrowUp","PageDown","End"],kre=[...wre,...aj],xre={ltr:[...DC,"ArrowRight"],rtl:[...DC,"ArrowLeft"]},Sre={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Sk="Menu",[r_,Ere,Cre]=VA(Sk),[Im,oj]=ii(Sk,[Cre,Q1,Y1]),ij=Q1(),sj=Y1(),[DWe,Pm]=Im(Sk),[NWe,q_]=Im(Sk),Rre=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,a=ij(n);return v.createElement(ZA,Le({},a,r,{ref:t}))})),cj="MenuPortal",[Are,lj]=Im(cj,{forceMount:void 0}),Tre=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,o=Pm(cj,t);return v.createElement(Are,{scope:t,forceMount:n},v.createElement(Ws,{present:n||o.open},v.createElement(iA,{asChild:!0,container:a},r)))},zc="MenuContent",[Ire,nT]=Im(zc),Pre=v.forwardRef(((e,t)=>{const n=lj(zc,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=Pm(zc,e.__scopeMenu),i=q_(zc,e.__scopeMenu);return v.createElement(r_.Provider,{scope:e.__scopeMenu},v.createElement(Ws,{present:r||o.open},v.createElement(r_.Slot,{scope:e.__scopeMenu},i.modal?v.createElement($re,Le({},a,{ref:t})):v.createElement(Ore,Le({},a,{ref:t})))))})),$re=v.forwardRef(((e,t)=>{const n=Pm(zc,e.__scopeMenu),r=v.useRef(null),a=yn(t,r);return v.useEffect((()=>{const e=r.current;if(e)return rk(e)}),[]),v.createElement(rT,Le({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:lt(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Ore=v.forwardRef(((e,t)=>{const n=Pm(zc,e.__scopeMenu);return v.createElement(rT,Le({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),rT=v.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p,disableOutsideScroll:h,...m}=e,y=Pm(zc,n),g=q_(zc,n),b=ij(n),_=sj(n),w=Ere(n),[k,x]=v.useState(null),S=v.useRef(null),E=yn(t,S,y.onContentChange),A=v.useRef(0),z=v.useRef(""),C=v.useRef(0),I=v.useRef(null),T=v.useRef("right"),R=v.useRef(0),P=h?nk:v.Fragment,j=h?{as:pm,allowPinchZoom:!0}:void 0;v.useEffect((()=>()=>window.clearTimeout(A.current)),[]),sA();const O=v.useCallback((e=>{var t,n;return T.current===(null===(t=I.current)||void 0===t?void 0:t.side)&&Zre(e,null===(n=I.current)||void 0===n?void 0:n.area)}),[]);return v.createElement(Ire,{scope:n,searchRef:z,onItemEnter:v.useCallback((e=>{O(e)&&e.preventDefault()}),[O]),onItemLeave:v.useCallback((e=>{var t;O(e)||(null===(t=S.current)||void 0===t||t.focus(),x(null))}),[O]),onTriggerLeave:v.useCallback((e=>{O(e)&&e.preventDefault()}),[O]),pointerGraceTimerRef:C,onPointerGraceIntentChange:v.useCallback((e=>{I.current=e}),[])},v.createElement(P,j,v.createElement(oA,{asChild:!0,trapped:a,onMountAutoFocus:lt(o,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:i},v.createElement(ek,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p},v.createElement(eT,Le({asChild:!0},_,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:x,onEntryFocus:lt(c,(e=>{g.isUsingKeyboardRef.current||e.preventDefault()}))}),v.createElement(XA,Le({role:"menu","aria-orientation":"vertical","data-state":hj(y.open),"data-radix-menu-content":"",dir:g.dir},b,m,{ref:E,style:{outline:"none",...m.style},onKeyDown:lt(m.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=z.current+e,a=w().filter((e=>!e.disabled)),o=document.activeElement,i=null===(t=a.find((e=>e.ref.current===o)))||void 0===t?void 0:t.textValue,s=Qre(a.map((e=>e.textValue)),r,i),c=null===(n=a.find((e=>e.textValue===s)))||void 0===n?void 0:n.ref.current;(function e(t){z.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout((()=>e("")),1e3))})(r),c&&setTimeout((()=>c.focus()))})(e.key));const a=S.current;if(e.target!==a||!kre.includes(e.key))return;e.preventDefault();const o=w().filter((e=>!e.disabled)).map((e=>e.ref.current));aj.includes(e.key)&&o.reverse(),Gre(o)})),onBlur:lt(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),z.current="")})),onPointerMove:lt(e.onPointerMove,a_((e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";T.current=t,R.current=e.clientX}})))})))))))})),zre=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return v.createElement(St.div,Le({},r,{ref:t}))})),NC="MenuItem",zz="menu.itemSelect",aT=v.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,o=v.useRef(null),i=q_(NC,e.__scopeMenu),s=nT(NC,e.__scopeMenu),c=yn(t,o),l=v.useRef(!1);return v.createElement(fj,Le({},a,{ref:c,disabled:n,onClick:lt(e.onClick,(()=>{const e=o.current;if(!n&&e){const t=new CustomEvent(zz,{bubbles:!0,cancelable:!0});e.addEventListener(zz,(e=>null==r?void 0:r(e)),{once:!0}),l7(e,t),t.defaultPrevented?l.current=!1:i.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),l.current=!0},onPointerUp:lt(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:lt(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||DC.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),fj=v.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,i=nT(NC,n),s=sj(n),c=v.useRef(null),l=yn(t,c),[u,f]=v.useState(!1),[d,p]=v.useState("");return v.useEffect((()=>{const e=c.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[o.children]),v.createElement(r_.ItemSlot,{scope:n,disabled:r,textValue:a??d},v.createElement(tT,Le({asChild:!0},s,{focusable:!r}),v.createElement(St.div,Le({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:l,onPointerMove:lt(e.onPointerMove,a_((e=>{r?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:lt(e.onPointerLeave,a_((e=>i.onItemLeave(e)))),onFocus:lt(e.onFocus,(()=>f(!0))),onBlur:lt(e.onBlur,(()=>f(!1)))}))))})),Mre=v.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return v.createElement(dj,{scope:e.__scopeMenu,checked:n},v.createElement(aT,Le({role:"menuitemcheckbox","aria-checked":ow(n)?"mixed":n},a,{ref:t,"data-state":oT(n),onSelect:lt(a.onSelect,(()=>null==r?void 0:r(!!ow(n)||!n)),{checkForDefaultPrevented:!1})})))})),Dre="MenuRadioGroup",[LWe,Nre]=Im(Dre,{value:void 0,onValueChange:()=>{}}),Lre="MenuRadioItem",jre=v.forwardRef(((e,t)=>{const{value:n,...r}=e,a=Nre(Lre,e.__scopeMenu),o=n===a.value;return v.createElement(dj,{scope:e.__scopeMenu,checked:o},v.createElement(aT,Le({role:"menuitemradio","aria-checked":o},r,{ref:t,"data-state":oT(o),onSelect:lt(r.onSelect,(()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,n)}),{checkForDefaultPrevented:!1})})))})),uj="MenuItemIndicator",[dj,Bre]=Im(uj,{checked:!1}),Fre=v.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,o=Bre(uj,n);return v.createElement(Ws,{present:r||ow(o.checked)||!0===o.checked},v.createElement(St.span,Le({},a,{ref:t,"data-state":oT(o.checked)})))})),Ure=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return v.createElement(St.div,Le({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),Vre="MenuSub",[jWe,pj]=Im(Vre),ab="MenuSubTrigger",qre=v.forwardRef(((e,t)=>{const n=Pm(ab,e.__scopeMenu),r=q_(ab,e.__scopeMenu),a=pj(ab,e.__scopeMenu),o=nT(ab,e.__scopeMenu),i=v.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=o,l={__scopeMenu:e.__scopeMenu},u=v.useCallback((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return v.useEffect((()=>u),[u]),v.useEffect((()=>{const e=s.current;return()=>{window.clearTimeout(e),c(null)}}),[s,c]),v.createElement(Rre,Le({asChild:!0},l),v.createElement(fj,Le({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":hj(n.open)},e,{ref:rA(t,a.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:lt(e.onPointerMove,a_((t=>{o.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:lt(e.onPointerLeave,a_((e=>{var t;u();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var a;const t=null===(a=n.content)||void 0===a?void 0:a.dataset.side,i="right"===t,c=i?-5:5,l=r[i?"left":"right"],u=r[i?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+c,y:e.clientY},{x:l,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:l,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>o.onPointerGraceIntentChange(null)),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}}))),onKeyDown:lt(e.onKeyDown,(t=>{const a=""!==o.searchRef.current;var i;e.disabled||a&&" "===t.key||!xre[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})))})),Wre="MenuSubContent",Hre=v.forwardRef(((e,t)=>{const n=lj(zc,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=Pm(zc,e.__scopeMenu),i=q_(zc,e.__scopeMenu),s=pj(Wre,e.__scopeMenu),c=v.useRef(null),l=yn(t,c);return v.createElement(r_.Provider,{scope:e.__scopeMenu},v.createElement(Ws,{present:r||o.open},v.createElement(r_.Slot,{scope:e.__scopeMenu},v.createElement(rT,Le({id:s.contentId,"aria-labelledby":s.triggerId},a,{ref:l,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;i.isUsingKeyboardRef.current&&(null===(t=c.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:lt(e.onFocusOutside,(e=>{e.target!==s.trigger&&o.onOpenChange(!1)})),onEscapeKeyDown:lt(e.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:lt(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=Sre[i.dir].includes(e.key);var r;t&&n&&(o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function hj(e){return e?"open":"closed"}function ow(e){return"indeterminate"===e}function oT(e){return ow(e)?"indeterminate":e?"checked":"unchecked"}function Gre(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Kre(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function Qre(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=Kre(e,Math.max(a,0));1===r.length&&(o=o.filter((e=>e!==n)));const i=o.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function Yre(e,t){const{x:n,y:r}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const i=t[e].x,s=t[e].y,c=t[o].x,l=t[o].y;s>r!=l>r&&n<(c-i)*(r-s)/(l-s)+i&&(a=!a)}return a}function Zre(e,t){if(!t)return!1;return Yre({x:e.clientX,y:e.clientY},t)}function a_(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Xre=Tre,Jre=Pre,eae=zre,tae=aT,nae=Mre,rae=jre,aae=Fre,oae=Ure,iae=qre,sae=Hre,mj="DropdownMenu",[cae,BWe]=ii(mj,[oj]),Jl=oj(),[FWe,lae]=cae(mj),fae=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Jl(t);return v.createElement(Xre,Le({},r,n))},uae="DropdownMenuContent",dae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=lae(uae,n),o=Jl(n),i=v.useRef(!1);return v.createElement(Jre,Le({id:a.contentId,"aria-labelledby":a.triggerId},o,r,{ref:t,onCloseAutoFocus:lt(e.onCloseAutoFocus,(e=>{var t;i.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),i.current=!1,e.preventDefault()})),onInteractOutside:lt(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(i.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),pae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(eae,Le({},a,r,{ref:t}))})),hae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(tae,Le({},a,r,{ref:t}))})),mae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(nae,Le({},a,r,{ref:t}))})),gae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(rae,Le({},a,r,{ref:t}))})),yae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(aae,Le({},a,r,{ref:t}))})),_ae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(oae,Le({},a,r,{ref:t}))})),vae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(iae,Le({},a,r,{ref:t}))})),bae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(sae,Le({},a,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),wae=fae,gj=dae,yj=pae,_j=hae,vj=mae,bj=gae,wj=yae,iT=_ae,kj=vae,xj=bae,kae=v.forwardRef((({className:e,inset:t,children:n,...r},a)=>F.jsxs(kj,{ref:a,className:$e("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,F.jsx(Z8,{className:"ml-auto h-4 w-4"})]})));kae.displayName=kj.displayName;const xae=v.forwardRef((({className:e,...t},n)=>F.jsx(xj,{ref:n,className:$e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));xae.displayName=xj.displayName;const Sae=v.forwardRef((({className:e,sideOffset:t=4,...n},r)=>F.jsx(wae,{children:F.jsx(gj,{ref:r,sideOffset:t,className:$e("z-[101] min-w-[8rem] overflow-hidden rounded-md border bg-popover p-[8px] text-popover-foreground shadow-md data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})})));Sae.displayName=gj.displayName;const Eae=v.forwardRef((({className:e,inset:t,...n},r)=>F.jsx(_j,{ref:r,className:$e("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n})));Eae.displayName=_j.displayName;const Cae=v.forwardRef((({className:e,children:t,checked:n,...r},a)=>F.jsxs(vj,{ref:a,className:$e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[F.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:F.jsx(wj,{children:F.jsx(eA,{className:"h-4 w-4"})})}),t]})));Cae.displayName=vj.displayName;const Rae=v.forwardRef((({className:e,children:t,...n},r)=>F.jsxs(bj,{ref:r,className:$e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[F.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:F.jsx(wj,{children:F.jsx(X8,{className:"h-2 w-2 fill-current"})})}),t]})));Rae.displayName=bj.displayName;const Aae=v.forwardRef((({className:e,inset:t,...n},r)=>F.jsx(yj,{ref:r,className:$e("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})));Aae.displayName=yj.displayName;const Tae=v.forwardRef((({className:e,...t},n)=>F.jsx(iT,{ref:n,className:$e("-mx-1 my-1 h-px bg-muted",e),...t})));Tae.displayName=iT.displayName;var W_=e=>"checkbox"===e.type,u1=e=>e instanceof Date,ti=e=>null==e;const Sj=e=>"object"==typeof e;var ua=e=>!ti(e)&&!Array.isArray(e)&&Sj(e)&&!u1(e),Iae=e=>ua(e)&&e.target?W_(e.target)?e.target.checked:e.target.value:e,Pae=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,$ae=(e,t)=>e.has(Pae(t)),Oae=e=>{const t=e.constructor&&e.constructor.prototype;return ua(t)&&t.hasOwnProperty("isPrototypeOf")},sT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ns(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(sT&&(e instanceof Blob||e instanceof FileList)||!n&&!ua(e))return e;if(t=n?[]:{},n||Oae(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=Ns(e[n]));else t=e}return t}var H_=e=>Array.isArray(e)?e.filter(Boolean):[],Br=e=>void 0===e,dt=(e,t,n)=>{if(!t||!ua(e))return n;const r=H_(t.split(/[,[\].]+?/)).reduce(((e,t)=>ti(e)?e:e[t]),e);return Br(r)||r===e?Br(e[t])?n:e[t]:r},du=e=>"boolean"==typeof e;const Mz={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ic={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},nu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ej=ze.createContext(null),zae=()=>ze.useContext(Ej),Mae=e=>{const{children:t,...n}=e;return ze.createElement(Ej.Provider,{value:n},t)};var Dae=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const n in e)Object.defineProperty(a,n,{get:()=>{const a=n;return t._proxyFormState[a]!==Ic.all&&(t._proxyFormState[a]=!r||Ic.all),e[a]}});return a},Ls=e=>ua(e)&&!Object.keys(e).length,Nae=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return Ls(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===Ic.all))},BE=e=>Array.isArray(e)?e:[e];function Lae(e){const t=ze.useRef(e);t.current=e,ze.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var Nl=e=>"string"==typeof e,jae=(e,t,n,r,a)=>Nl(e)?(r&&t.watch.add(e),dt(n,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),dt(n,e)))):(r&&(t.watchAll=!0),n),cT=e=>/^\w*$/.test(e),Cj=e=>H_(e.replace(/["|']|\]/g,"").split(/\.|\[/)),or=(e,t,n)=>{let r=-1;const a=cT(t)?[t]:Cj(t),o=a.length,i=o-1;for(;++r<o;){const t=a[r];let o=n;if(r!==i){const n=e[t];o=ua(n)||Array.isArray(n)?n:isNaN(+a[r+1])?{}:[]}e[t]=o,e=e[t]}return e},Bae=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Dz=e=>({isOnSubmit:!e||e===Ic.onSubmit,isOnBlur:e===Ic.onBlur,isOnChange:e===Ic.onChange,isOnAll:e===Ic.all,isOnTouch:e===Ic.onTouched}),Nz=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const Py=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=dt(e,a);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!r)break;if(e.ref&&t(e.ref,e.name)&&!r)break;Py(o,t)}else ua(o)&&Py(o,t)}}};var Fae=(e,t,n)=>{const r=H_(dt(e,n));return or(r,"root",t[n]),or(e,n,r),e},lT=e=>"file"===e.type,pp=e=>"function"==typeof e,iw=e=>{if(!sT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Mb=e=>Nl(e),fT=e=>"radio"===e.type,sw=e=>e instanceof RegExp;const Lz={value:!1,isValid:!1},jz={value:!0,isValid:!0};var Rj=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Br(e[0].attributes.value)?Br(e[0].value)||""===e[0].value?jz:{value:e[0].value,isValid:!0}:jz:Lz}return Lz};const Bz={isValid:!1,value:null};var Aj=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Bz):Bz;function Fz(e,t,n="validate"){if(Mb(e)||Array.isArray(e)&&e.every(Mb)||du(e)&&!e)return{type:n,message:Mb(e)?e:"",ref:t}}var e1=e=>ua(e)&&!sw(e)?e:{value:e,message:""},Uz=async(e,t,n,r,a)=>{const{ref:o,refs:i,required:s,maxLength:c,minLength:l,min:u,max:f,pattern:d,validate:p,name:h,valueAsNumber:m,mount:y,disabled:g}=e._f,v=dt(t,h);if(!y||g)return{};const b=i?i[0]:o,_=e=>{r&&b.reportValidity&&(b.setCustomValidity(du(e)?"":e||""),b.reportValidity())},w={},k=fT(o),x=W_(o),S=k||x,E=(m||lT(o))&&Br(o.value)&&Br(v)||iw(o)&&""===o.value||""===v||Array.isArray(v)&&!v.length,A=Bae.bind(null,h,n,w),z=(e,t,n,r=nu.maxLength,a=nu.minLength)=>{const i=e?t:n;w[h]={type:e?r:a,message:i,ref:o,...A(e?r:a,i)}};if(a?!Array.isArray(v)||!v.length:s&&(!S&&(E||ti(v))||du(v)&&!v||x&&!Rj(i).isValid||k&&!Aj(i).isValid)){const{value:e,message:t}=Mb(s)?{value:!!s,message:s}:e1(s);if(e&&(w[h]={type:nu.required,message:t,ref:b,...A(nu.required,t)},!n))return _(t),w}if(!(E||ti(u)&&ti(f))){let e,t;const r=e1(f),a=e1(u);if(ti(v)||isNaN(v)){const n=o.valueAsDate||new Date(v),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==o.type,c="week"==o.type;Nl(r.value)&&v&&(e=s?i(v)>i(r.value):c?v>r.value:n>new Date(r.value)),Nl(a.value)&&v&&(t=s?i(v)<i(a.value):c?v<a.value:n<new Date(a.value))}else{const n=o.valueAsNumber||v&&+v;ti(r.value)||(e=n>r.value),ti(a.value)||(t=n<a.value)}if((e||t)&&(z(!!e,r.message,a.message,nu.max,nu.min),!n))return _(w[h].message),w}if((c||l)&&!E&&(Nl(v)||a&&Array.isArray(v))){const e=e1(c),t=e1(l),r=!ti(e.value)&&v.length>+e.value,a=!ti(t.value)&&v.length<+t.value;if((r||a)&&(z(r,e.message,t.message),!n))return _(w[h].message),w}if(d&&!E&&Nl(v)){const{value:e,message:t}=e1(d);if(sw(e)&&!v.match(e)&&(w[h]={type:nu.pattern,message:t,ref:o,...A(nu.pattern,t)},!n))return _(t),w}if(p)if(pp(p)){const e=Fz(await p(v,t),b);if(e&&(w[h]={...e,...A(nu.validate,e.message)},!n))return _(e.message),w}else if(ua(p)){let e={};for(const r in p){if(!Ls(e)&&!n)break;const a=Fz(await p[r](v,t),b,r);a&&(e={...a,...A(r,a.message)},_(a.message),n&&(w[h]=e))}if(!Ls(e)&&(w[h]={ref:b,...e},!n))return w}return _(!0),w};function Uae(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Br(e)?r++:e[t[r++]];return e}function Vae(e){for(const t in e)if(e.hasOwnProperty(t)&&!Br(e[t]))return!1;return!0}function Ua(e,t){const n=Array.isArray(t)?t:cT(t)?[t]:Cj(t),r=1===n.length?e:Uae(e,n),a=n.length-1,o=n[a];return r&&delete r[o],0!==a&&(ua(r)&&Ls(r)||Array.isArray(r)&&Vae(r))&&Ua(e,n.slice(0,-1)),e}var FE=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},cw=e=>ti(e)||!Sj(e);function nm(e,t){if(cw(e)||cw(t))return e===t;if(u1(e)&&u1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const n=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(u1(n)&&u1(e)||ua(n)&&ua(e)||Array.isArray(n)&&Array.isArray(e)?!nm(n,e):n!==e)return!1}}return!0}var Tj=e=>"select-multiple"===e.type,qae=e=>fT(e)||W_(e),UE=e=>iw(e)&&e.isConnected,Wae=e=>ua(e)&&Object.values(e).some((e=>e)),Ij=e=>{for(const t in e)if(pp(e[t]))return!0;return!1};function lw(e,t={}){const n=Array.isArray(e);if(ua(e)||n)for(const n in e)Array.isArray(e[n])||ua(e[n])&&!Ij(e[n])?(t[n]=Array.isArray(e[n])?[]:{},lw(e[n],t[n])):ti(e[n])||(t[n]=!0);return t}function Pj(e,t,n){const r=Array.isArray(e);if(ua(e)||r)for(const r in e)Array.isArray(e[r])||ua(e[r])&&!Ij(e[r])?Br(t)||cw(n[r])?n[r]=Array.isArray(e[r])?lw(e[r],[]):{...lw(e[r])}:Pj(e[r],ti(t)?{}:t[r],n[r]):n[r]=!nm(e[r],t[r]);return n}var ob=(e,t)=>Pj(e,t,lw(t)),$j=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Br(e)?e:t?""===e?NaN:e&&+e:n&&Nl(e)?new Date(e):r?r(e):e;function VE(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return lT(t)?t.files:fT(t)?Aj(e.refs).value:Tj(t)?[...t.selectedOptions].map((({value:e})=>e)):W_(t)?Rj(e.refs).value:$j(Br(t.value)?e.ref.value:t.value,e)}var Hae=(e,t,n,r)=>{const a={};for(const n of e){const e=dt(t,n);e&&or(a,n,e._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},oy=e=>Br(e)?e:sw(e)?e.source:ua(e)?sw(e.value)?e.value.source:e.value:e,Gae=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Vz(e,t,n){const r=dt(e,n);if(r||cT(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=dt(t,r),i=dt(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};a.pop()}return{name:n}}var Kae=(e,t,n,r,a)=>!a.isOnAll&&(!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:!(n?r.isOnChange:a.isOnChange)||e),Qae=(e,t)=>!H_(dt(e,t)).length&&Ua(e,t);const Yae={mode:Ic.onSubmit,reValidateMode:Ic.onChange,shouldFocusError:!0};function Zae(e={}){let t,n={...Yae,...e},r={submitCount:0,isDirty:!1,isLoading:pp(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},o=(ua(n.defaultValues)||ua(n.values))&&Ns(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:Ns(o),s={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:FE(),array:FE(),state:FE()},d=Dz(n.mode),p=Dz(n.reValidateMode),h=n.criteriaMode===Ic.all,m=async e=>{if(u.isValid||e){const e=n.resolver?Ls((await _()).errors):await w(a,!0);e!==r.isValid&&f.state.next({isValid:e})}},y=(e,t)=>{(u.isValidating||u.validatingFields)&&(t.forEach((t=>{or(r.validatingFields,t,e)})),r.isValidating=Wae(r.validatingFields),f.state.next({validatingFields:r.validatingFields,isValidating:r.isValidating}))},g=(e,t,n,r)=>{const c=dt(a,e);if(c){const a=dt(i,e,Br(n)?dt(o,e):n);Br(a)||r&&r.defaultChecked||t?or(i,e,t?a:VE(c._f)):S(e,a),s.mount&&m()}},v=(e,t,n,i,s)=>{let c=!1,l=!1;const d={name:e},p=!(!dt(a,e)||!dt(a,e)._f.disabled);if(!n||i){u.isDirty&&(l=r.isDirty,r.isDirty=d.isDirty=k(),c=l!==d.isDirty);const n=p||nm(dt(o,e),t);l=!(p||!dt(r.dirtyFields,e)),n||p?Ua(r.dirtyFields,e):or(r.dirtyFields,e,!0),d.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&l!==!n}if(n){const t=dt(r.touchedFields,e);t||(or(r.touchedFields,e,n),d.touchedFields=r.touchedFields,c=c||u.touchedFields&&t!==n)}return c&&s&&f.state.next(d),c?d:{}},b=(n,a,o,i)=>{const s=dt(r.errors,n),c=u.isValid&&du(a)&&r.isValid!==a;if(e.delayError&&o?(t=(e=>t=>{clearTimeout(l),l=setTimeout(e,t)})((()=>((e,t)=>{or(r.errors,e,t),f.state.next({errors:r.errors})})(n,o))),t(e.delayError)):(clearTimeout(l),t=null,o?or(r.errors,n,o):Ua(r.errors,n)),(o?!nm(s,o):s)||!Ls(i)||c){const e={...i,...c&&du(a)?{isValid:a}:{},errors:r.errors,name:n};r={...r,...e},f.state.next(e)}y(!1,Object.keys(r.validatingFields).filter((e=>e===n)))},_=async e=>n.resolver(i,n.context,Hae(e||c.mount,a,n.criteriaMode,n.shouldUseNativeValidation)),w=async(e,t,a={valid:!0})=>{for(const o in e){const s=e[o];if(s){const{_f:e,...o}=s;if(e){const o=c.array.has(e.name),l=await Uz(s,i,h,n.shouldUseNativeValidation&&!t,o);if(l[e.name]&&(a.valid=!1,t))break;!t&&(dt(l,e.name)?o?Fae(r.errors,l,e.name):or(r.errors,e.name,l[e.name]):Ua(r.errors,e.name))}o&&await w(o,t,a)}}return a.valid},k=(e,t)=>(e&&t&&or(i,e,t),!nm(T(),o)),x=(e,t,n)=>jae(e,c,{...s.mount?i:Br(t)?o:Nl(e)?{[e]:t}:t},n,t),S=(e,t,n={})=>{const r=dt(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&or(i,e,$j(t,n)),o=iw(n.ref)&&ti(t)?"":t,Tj(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?W_(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):lT(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||f.values.next({name:e,values:{...i}})))}(n.shouldDirty||n.shouldTouch)&&v(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&I(e)},E=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=dt(a,i);!c.array.has(e)&&cw(o)&&(!s||s._f)||u1(o)?S(i,o,n):E(i,o,n)}},A=(e,t,n={})=>{const l=dt(a,e),d=c.array.has(e),p=Ns(t);or(i,e,p),d?(f.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&f.state.next({name:e,dirtyFields:ob(o,i),isDirty:k(e,p)})):!l||l._f||ti(p)?S(e,p,n):E(e,p,n),Nz(e,c)&&f.state.next({...r}),f.values.next({name:s.mount?e:void 0,values:{...i}})},z=async e=>{const o=e.target;let s=o.name,l=!0;const g=dt(a,s),k=e=>{l=Number.isNaN(e)||e===dt(i,s,e)};if(g){let x,S;const E=o.type?VE(g._f):Iae(e),A=e.type===Mz.BLUR||e.type===Mz.FOCUS_OUT,z=!Gae(g._f)&&!n.resolver&&!dt(r.errors,s)&&!g._f.deps||Kae(A,dt(r.touchedFields,s),r.isSubmitted,p,d),C=Nz(s,c,A);or(i,s,E),A?(g._f.onBlur&&g._f.onBlur(e),t&&t(0)):g._f.onChange&&g._f.onChange(e);const T=v(s,E,A,!1),R=!Ls(T)||C;if(!A&&f.values.next({name:s,type:e.type,values:{...i}}),z)return u.isValid&&m(),R&&f.state.next({name:s,...C?{}:T});if(!A&&C&&f.state.next({...r}),y(!0,[s]),n.resolver){const{errors:e}=await _([s]);if(k(E),l){const t=Vz(r.errors,a,s),n=Vz(e,a,t.name||s);x=n.error,s=n.name,S=Ls(e)}}else x=(await Uz(g,i,h,n.shouldUseNativeValidation))[s],k(E),l&&(x?S=!1:u.isValid&&(S=await w(a,!0)));l&&(g._f.deps&&I(g._f.deps),b(s,S,x,T))}},C=(e,t)=>{if(dt(r.errors,t)&&e.focus)return e.focus(),1},I=async(e,t={})=>{let o,i;const s=BE(e);if(y(!0,s),n.resolver){const t=await(async e=>{const{errors:t}=await _(e);if(e)for(const n of e){const e=dt(t,n);e?or(r.errors,n,e):Ua(r.errors,n)}else r.errors=t;return t})(Br(e)?e:s);o=Ls(t),i=e?!s.some((e=>dt(t,e))):o}else e?(i=(await Promise.all(s.map((async e=>{const t=dt(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&m()):i=o=await w(a);return f.state.next({...!Nl(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!i&&Py(a,C,e?s:c.mount),i},T=e=>{const t={...o,...s.mount?i:{}};return Br(e)?t:Nl(e)?dt(t,e):e.map((e=>dt(t,e)))},R=(e,t)=>({invalid:!!dt((t||r).errors,e),isDirty:!!dt((t||r).dirtyFields,e),isTouched:!!dt((t||r).touchedFields,e),isValidating:!!dt((t||r).validatingFields,e),error:dt((t||r).errors,e)}),P=(e,t,n)=>{const o=(dt(a,e,{_f:{}})._f||{}).ref;or(r.errors,e,{...t,ref:o}),f.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},j=(e,t={})=>{for(const s of e?BE(e):c.mount)c.mount.delete(s),c.array.delete(s),t.keepValue||(Ua(a,s),Ua(i,s)),!t.keepError&&Ua(r.errors,s),!t.keepDirty&&Ua(r.dirtyFields,s),!t.keepTouched&&Ua(r.touchedFields,s),!t.keepIsValidating&&Ua(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&Ua(o,s);f.values.next({values:{...i}}),f.state.next({...r,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&m()},O=({disabled:e,name:t,field:n,fields:r,value:a})=>{if(du(e)){const o=e?void 0:Br(a)?VE(n?n._f:dt(r,t)._f):a;or(i,t,o),v(t,o,!1,!1,!0)}},N=(e,t={})=>{let r=dt(a,e);const i=du(t.disabled);return or(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),c.mount.add(e),r?O({field:r,disabled:t.disabled,name:e,value:t.value}):g(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:oy(t.min),max:oy(t.max),minLength:oy(t.minLength),maxLength:oy(t.maxLength),pattern:oy(t.pattern)}:{},name:e,onChange:z,onBlur:z,ref:i=>{if(i){N(e,t),r=dt(a,e);const n=Br(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=qae(n),c=r._f.refs||[];if(s?c.find((e=>e===n)):n===r._f.ref)return;or(a,e,{_f:{...r._f,...s?{refs:[...c.filter(UE),n,...Array.isArray(dt(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else r=dt(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!$ae(c.array,e)||!s.action)&&c.unMount.add(e)}}},M=()=>n.shouldFocusError&&Py(a,C,c.mount),D=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=Ns(i);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await _();r.errors=e,c=t}else await w(a);if(Ua(r.errors,"root"),Ls(r.errors)){f.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else t&&await t({...r.errors},o),M(),setTimeout(M);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ls(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},F=(t,n={})=>{const l=t?Ns(t):o,d=Ns(l),p=Ls(t),h=p?o:d;if(n.keepDefaultValues||(o=l),!n.keepValues){if(n.keepDirtyValues)for(const e of c.mount)dt(r.dirtyFields,e)?or(h,e,dt(i,e)):A(e,dt(h,e));else{if(sT&&Br(t))for(const e of c.mount){const t=dt(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(iw(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=e.shouldUnregister?n.keepDefaultValues?Ns(o):{}:Ns(h),f.array.next({values:{...h}}),f.values.next({values:{...h}})}c={mount:n.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!n.keepIsValid||!!n.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!p&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||nm(t,o))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:p?[]:n.keepDirtyValues?n.keepDefaultValues&&i?ob(o,i):r.dirtyFields:n.keepDefaultValues&&t?ob(o,t):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},L=(e,t)=>F(pp(e)?e(i):e,t);return{control:{register:N,unregister:j,getFieldState:R,handleSubmit:D,setError:P,_executeSchema:_,_getWatch:x,_getDirty:k,_updateValid:m,_removeUnmounted:()=>{for(const e of c.unMount){const t=dt(a,e);t&&(t._f.refs?t._f.refs.every((e=>!UE(e))):!UE(t._f.ref))&&j(e)}c.unMount=new Set},_updateFieldArray:(e,t=[],n,c,l=!0,d=!0)=>{if(c&&n){if(s.action=!0,d&&Array.isArray(dt(a,e))){const t=n(dt(a,e),c.argA,c.argB);l&&or(a,e,t)}if(d&&Array.isArray(dt(r.errors,e))){const t=n(dt(r.errors,e),c.argA,c.argB);l&&or(r.errors,e,t),Qae(r.errors,e)}if(u.touchedFields&&d&&Array.isArray(dt(r.touchedFields,e))){const t=n(dt(r.touchedFields,e),c.argA,c.argB);l&&or(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=ob(o,i)),f.state.next({name:e,isDirty:k(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else or(i,e,t)},_updateDisabledField:O,_getFieldArray:t=>H_(dt(s.mount?i:o,t,e.shouldUnregister?dt(o,t,[]):[])),_reset:F,_resetDefaultValues:()=>pp(n.defaultValues)&&n.defaultValues().then((e=>{L(e,n.resetOptions),f.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{du(e)&&(f.state.next({disabled:e}),Py(a,((t,n)=>{let r=e;const o=dt(a,n);o&&du(o._f.disabled)&&(r||(r=o._f.disabled)),t.disabled=r}),0,!1))},_subjects:f,_proxyFormState:u,_setErrors:e=>{r.errors=e,f.state.next({errors:r.errors,isValid:!1})},get _fields(){return a},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return c},set _names(e){c=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:I,register:N,handleSubmit:D,watch:(e,t)=>pp(e)?f.values.subscribe({next:n=>e(x(void 0,t),n)}):x(e,t,!0),setValue:A,getValues:T,reset:L,resetField:(e,t={})=>{dt(a,e)&&(Br(t.defaultValue)?A(e,Ns(dt(o,e))):(A(e,t.defaultValue),or(o,e,Ns(t.defaultValue))),t.keepTouched||Ua(r.touchedFields,e),t.keepDirty||(Ua(r.dirtyFields,e),r.isDirty=t.defaultValue?k(e,Ns(dt(o,e))):k()),t.keepError||(Ua(r.errors,e),u.isValid&&m()),f.state.next({...r}))},clearErrors:e=>{e&&BE(e).forEach((e=>Ua(r.errors,e))),f.state.next({errors:e?r.errors:{}})},unregister:j,setError:P,setFocus:(e,t={})=>{const n=dt(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:R}}function Xae(e={}){const t=ze.useRef(),n=ze.useRef(),[r,a]=ze.useState({isDirty:!1,isValidating:!1,isLoading:pp(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:pp(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Zae(e),formState:r});const o=t.current.control;return o._options=e,Lae({subject:o._subjects.state,next:e=>{Nae(e,o._proxyFormState,o._updateFormState)&&a({...o._formState})}}),ze.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),ze.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,r.isDirty]),ze.useEffect((()=>{e.values&&!nm(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),ze.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),ze.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),ze.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=Dae(r,o),t.current}function qz(e,[t,n]){return Math.min(n,Math.max(t,e))}const Oj=v.forwardRef(((e,t)=>v.createElement(St.span,Le({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Jae=Oj,eoe=[" ","Enter","ArrowUp","ArrowDown"],toe=[" ","Enter"],Ek="Select",[Ck,Rk,noe]=VA(Ek),[Z1,UWe]=ii(Ek,[noe,Q1]),uT=Q1(),[roe,$m]=Z1(Ek),[aoe,ooe]=Z1(Ek),ioe=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:d,required:p}=e,h=uT(t),[m,y]=v.useState(null),[g,b]=v.useState(null),[_,w]=v.useState(!1),k=qA(l),[x=!1,S]=wp({prop:r,defaultProp:a,onChange:o}),[E,A]=wp({prop:i,defaultProp:s,onChange:c}),z=v.useRef(null),C=!m||!!m.closest("form"),[I,T]=v.useState(new Set),R=Array.from(I).map((e=>e.props.value)).join(";");return v.createElement(tj,h,v.createElement(roe,{required:p,scope:t,trigger:m,onTriggerChange:y,valueNode:g,onValueNodeChange:b,valueNodeHasChildren:_,onValueNodeHasChildrenChange:w,contentId:hp(),value:E,onValueChange:A,open:x,onOpenChange:S,dir:k,triggerPointerDownPosRef:z,disabled:d},v.createElement(Ck.Provider,{scope:t},v.createElement(aoe,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback((e=>{T((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:v.useCallback((e=>{T((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),C?v.createElement(Lj,{key:R,"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:f,value:E,onChange:e=>A(e.target.value),disabled:d},void 0===E?v.createElement("option",{value:""}):null,Array.from(I)):null))},soe="SelectTrigger",coe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=uT(n),i=$m(soe,n),s=i.disabled||r,c=yn(t,i.onTriggerChange),l=Rk(n),[u,f,d]=jj((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=Bj(t,e,n);void 0!==r&&i.onValueChange(r.value)})),p=()=>{s||(i.onOpenChange(!0),d())};return v.createElement(ZA,Le({asChild:!0},o),v.createElement(St.button,Le({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Nj(i.value)?"":void 0},a,{ref:c,onClick:lt(a.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:lt(a.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:lt(a.onKeyDown,(e=>{const t=""!==u.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&f(e.key),(!t||" "!==e.key)&&eoe.includes(e.key)&&(p(),e.preventDefault())}))})))})),loe="SelectValue",foe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,c=$m(loe,n),{onValueNodeHasChildrenChange:l}=c,u=void 0!==o,f=yn(t,c.onValueNodeChange);return Mo((()=>{l(u)}),[l,u]),v.createElement(St.span,Le({},s,{ref:f,style:{pointerEvents:"none"}}),Nj(c.value)?v.createElement(v.Fragment,null,i):o)})),uoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return v.createElement(St.span,Le({"aria-hidden":!0},a,{ref:t}),r||"▼")})),doe=e=>v.createElement(iA,Le({asChild:!0},e)),R1="SelectContent",poe=v.forwardRef(((e,t)=>{const n=$m(R1,e.__scopeSelect),[r,a]=v.useState();if(Mo((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?Zl.createPortal(v.createElement(zj,{scope:e.__scopeSelect},v.createElement(Ck.Slot,{scope:e.__scopeSelect},v.createElement("div",null,e.children))),t):null}return v.createElement(hoe,Le({},e,{ref:t}))})),su=10,[zj,Om]=Z1(R1),hoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:y,...g}=e,b=$m(R1,n),[_,w]=v.useState(null),[k,x]=v.useState(null),S=yn(t,(e=>w(e))),[E,A]=v.useState(null),[z,C]=v.useState(null),I=Rk(n),[T,R]=v.useState(!1),P=v.useRef(!1);v.useEffect((()=>{if(_)return rk(_)}),[_]),sA();const j=v.useCallback((e=>{const[t,...n]=I().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement;for(const n of e)if(n===a||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),null==n||n.focus(),document.activeElement!==a))return}),[I,k]),O=v.useCallback((()=>j([E,_])),[j,E,_]);v.useEffect((()=>{T&&O()}),[T,O]);const{onOpenChange:N,triggerPointerDownPosRef:M}=b;v.useEffect((()=>{if(_){let e={x:0,y:0};const t=t=>{var n,r,a,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=M.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(a=null===(o=M.current)||void 0===o?void 0:o.y)&&void 0!==a?a:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():_.contains(n.target)||N(!1),document.removeEventListener("pointermove",t),M.current=null};return null!==M.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[_,N,M]),v.useEffect((()=>{const e=()=>N(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[N]);const[D,F]=jj((e=>{const t=I().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=Bj(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),L=v.useCallback(((e,t,n)=>{const r=!P.current&&!n;(void 0!==b.value&&b.value===t||r)&&(A(e),r&&(P.current=!0))}),[b.value]),V=v.useCallback((()=>null==_?void 0:_.focus()),[_]),q=v.useCallback(((e,t,n)=>{const r=!P.current&&!n;(void 0!==b.value&&b.value===t||r)&&C(e)}),[b.value]),B="popper"===r?Wz:moe,U=B===Wz?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:y}:{};return v.createElement(zj,{scope:n,content:_,viewport:k,onViewportChange:x,itemRefCallback:L,selectedItem:E,onItemLeave:V,itemTextRefCallback:q,focusSelectedItem:O,selectedItemText:z,position:r,isPositioned:T,searchRef:D},v.createElement(nk,{as:pm,allowPinchZoom:!0},v.createElement(oA,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:lt(a,(e=>{var t;null===(t=b.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},v.createElement(ek,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},v.createElement(B,Le({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault()},g,U,{onPlaced:()=>R(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:lt(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>j(t))),e.preventDefault()}}))}))))))})),moe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=$m(R1,n),i=Om(R1,n),[s,c]=v.useState(null),[l,u]=v.useState(null),f=yn(t,(e=>u(e))),d=Rk(n),p=v.useRef(!1),h=v.useRef(!0),{viewport:m,selectedItem:y,selectedItemText:g,focusSelectedItem:b}=i,_=v.useCallback((()=>{if(o.trigger&&o.valueNode&&s&&l&&m&&y&&g){const e=o.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=g.getBoundingClientRect();if("rtl"!==o.dir){const r=a.left-t.left,o=n.left-r,i=e.left-o,c=e.width+i,l=Math.max(c,t.width),u=window.innerWidth-su,f=qz(o,[su,u-l]);s.style.minWidth=c+"px",s.style.left=f+"px"}else{const r=t.right-a.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,c=e.width+i,l=Math.max(c,t.width),u=window.innerWidth-su,f=qz(o,[su,u-l]);s.style.minWidth=c+"px",s.style.right=f+"px"}const i=d(),c=window.innerHeight-2*su,u=m.scrollHeight,f=window.getComputedStyle(l),h=parseInt(f.borderTopWidth,10),v=parseInt(f.paddingTop,10),b=parseInt(f.borderBottomWidth,10),_=h+v+u+parseInt(f.paddingBottom,10)+b,w=Math.min(5*y.offsetHeight,_),k=window.getComputedStyle(m),x=parseInt(k.paddingTop,10),S=parseInt(k.paddingBottom,10),E=e.top+e.height/2-su,A=c-E,z=y.offsetHeight/2,C=h+v+(y.offsetTop+z),I=_-C;if(C<=E){const e=y===i[i.length-1].ref.current;s.style.bottom="0px";const t=l.clientHeight-m.offsetTop-m.offsetHeight,n=C+Math.max(A,z+(e?S:0)+t+b);s.style.height=n+"px"}else{const e=y===i[0].ref.current;s.style.top="0px";const t=Math.max(E,h+m.offsetTop+(e?x:0)+z)+I;s.style.height=t+"px",m.scrollTop=C-E+m.offsetTop}s.style.margin=`${su}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=c+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[d,o.trigger,o.valueNode,s,l,m,y,g,o.dir,r]);Mo((()=>_()),[_]);const[w,k]=v.useState();Mo((()=>{l&&k(window.getComputedStyle(l).zIndex)}),[l]);const x=v.useCallback((e=>{e&&!0===h.current&&(_(),null==b||b(),h.current=!1)}),[_,b]);return v.createElement(goe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:x},v.createElement("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},v.createElement(St.div,Le({},a,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}}))))})),Wz=v.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=su,...o}=e,i=uT(n);return v.createElement(XA,Le({},i,o,{ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[goe,dT]=Z1(R1,{}),Hz="SelectViewport",yoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=Om(Hz,n),o=dT(Hz,n),i=yn(t,a.onViewportChange),s=v.useRef(0);return v.createElement(v.Fragment,null,v.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),v.createElement(Ck.Slot,{scope:n},v.createElement(St.div,Le({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:lt(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*su,a=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),i=Math.max(a,o);if(i<r){const a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))})),_oe="SelectGroup",[voe,boe]=Z1(_oe),woe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=hp();return v.createElement(voe,{scope:n,id:a},v.createElement(St.div,Le({role:"group","aria-labelledby":a},r,{ref:t})))})),koe="SelectLabel",xoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=boe(koe,n);return v.createElement(St.div,Le({id:a.id},r,{ref:t}))})),LC="SelectItem",[Soe,Mj]=Z1(LC),Eoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=$m(LC,n),c=Om(LC,n),l=s.value===r,[u,f]=v.useState(o??""),[d,p]=v.useState(!1),h=yn(t,(e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,r,a)})),m=hp(),y=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.createElement(Soe,{scope:n,value:r,disabled:a,textId:m,isSelected:l,onItemTextChange:v.useCallback((e=>{f((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},v.createElement(Ck.ItemSlot,{scope:n,value:r,disabled:a,textValue:u},v.createElement(St.div,Le({role:"option","aria-labelledby":m,"data-highlighted":d?"":void 0,"aria-selected":l&&d,"data-state":l?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},i,{ref:h,onFocus:lt(i.onFocus,(()=>p(!0))),onBlur:lt(i.onBlur,(()=>p(!1))),onPointerUp:lt(i.onPointerUp,y),onPointerMove:lt(i.onPointerMove,(e=>{var t;a?null===(t=c.onItemLeave)||void 0===t||t.call(c):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:lt(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=c.onItemLeave)||void 0===t||t.call(c))})),onKeyDown:lt(i.onKeyDown,(e=>{var t;""!==(null===(t=c.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(toe.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))}))))})),ib="SelectItemText",Coe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=$m(ib,n),s=Om(ib,n),c=Mj(ib,n),l=ooe(ib,n),[u,f]=v.useState(null),d=yn(t,(e=>f(e)),c.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,c.value,c.disabled)})),p=null==u?void 0:u.textContent,h=v.useMemo((()=>v.createElement("option",{key:c.value,value:c.value,disabled:c.disabled},p)),[c.disabled,c.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:y}=l;return Mo((()=>(m(h),()=>y(h))),[m,y,h]),v.createElement(v.Fragment,null,v.createElement(St.span,Le({id:c.textId},o,{ref:d})),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Zl.createPortal(o.children,i.valueNode):null)})),Roe="SelectItemIndicator",Aoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return Mj(Roe,n).isSelected?v.createElement(St.span,Le({"aria-hidden":!0},r,{ref:t})):null})),Gz="SelectScrollUpButton",Toe=v.forwardRef(((e,t)=>{const n=Om(Gz,e.__scopeSelect),r=dT(Gz,e.__scopeSelect),[a,o]=v.useState(!1),i=yn(t,r.onScrollButtonChange);return Mo((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?v.createElement(Dj,Le({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),Kz="SelectScrollDownButton",Ioe=v.forwardRef(((e,t)=>{const n=Om(Kz,e.__scopeSelect),r=dT(Kz,e.__scopeSelect),[a,o]=v.useState(!1),i=yn(t,r.onScrollButtonChange);return Mo((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?v.createElement(Dj,Le({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),Dj=v.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Om("SelectScrollButton",n),i=v.useRef(null),s=Rk(n),c=v.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return v.useEffect((()=>()=>c()),[c]),Mo((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[s]),v.createElement(St.div,Le({"aria-hidden":!0},a,{ref:t,style:{flexShrink:0,...a.style},onPointerDown:lt(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:lt(a.onPointerMove,(()=>{var e;null===(e=o.onItemLeave)||void 0===e||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:lt(a.onPointerLeave,(()=>{c()}))}))})),Poe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return v.createElement(St.div,Le({"aria-hidden":!0},r,{ref:t}))}));function Nj(e){return""===e||void 0===e}const Lj=v.forwardRef(((e,t)=>{const{value:n,...r}=e,a=v.useRef(null),o=yn(t,a),i=gk(n);return v.useEffect((()=>{const e=a.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),v.createElement(Oj,{asChild:!0},v.createElement("select",Le({},r,{ref:o,defaultValue:n})))}));function jj(e){const t=Bc(e),n=v.useRef(""),r=v.useRef(0),a=v.useCallback((e=>{const a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(a)}),[t]),o=v.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return v.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,a,o]}function Bj(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=$oe(e,Math.max(a,0));1===r.length&&(o=o.filter((e=>e!==n)));const i=o.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function $oe(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}Lj.displayName="BubbleSelect";const Fj=ioe,Uj=coe,Vj=foe,Ooe=uoe,zoe=doe,qj=poe,Moe=yoe,Wj=woe,Hj=xoe,Gj=Eoe,Doe=Coe,Noe=Aoe,Kj=Toe,Qj=Ioe,Yj=Poe,Loe=Fj,pT=v.forwardRef((({...e},t)=>F.jsx(Loe,{ref:t,...e})));pT.displayName=Fj.displayName;const hT=v.forwardRef(((e,t)=>F.jsx(Wj,{ref:t,...e})));hT.displayName=Wj.displayName;const mT=v.forwardRef(((e,t)=>F.jsx(Vj,{ref:t,...e})));mT.displayName=Vj.displayName;const gT=v.forwardRef((({className:e,children:t,...n},r)=>F.jsxs(Uj,{ref:r,className:$e("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:text-left",e),...n,children:[t,F.jsx(Ooe,{asChild:!0,children:F.jsx(Q8,{className:"h-4 w-4 opacity-50"})})]})));gT.displayName=Uj.displayName;const Zj=v.forwardRef((({className:e,...t},n)=>F.jsx(Kj,{ref:n,className:$e("flex cursor-default items-center justify-center py-1",e),...t,children:F.jsx(yG,{className:"h-4 w-4"})})));Zj.displayName=Kj.displayName;const Xj=v.forwardRef((({className:e,...t},n)=>F.jsx(Qj,{ref:n,className:$e("flex cursor-default items-center justify-center py-1",e),...t,children:F.jsx(Q8,{className:"h-4 w-4"})})));Xj.displayName=Qj.displayName;const yT=v.forwardRef((({className:e,children:t,position:n="popper",...r},a)=>F.jsx(zoe,{children:F.jsxs(qj,{ref:a,className:$e("relative z-[150] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[F.jsx(Zj,{}),F.jsx(Moe,{className:$e("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),F.jsx(Xj,{})]})})));yT.displayName=qj.displayName;const Jj=v.forwardRef((({className:e,...t},n)=>F.jsx(Hj,{ref:n,className:$e("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})));Jj.displayName=Hj.displayName;const _T=v.forwardRef((({className:e,showCheck:t=!0,children:n,...r},a)=>F.jsxs(Gj,{ref:a,className:$e("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[t&&F.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:F.jsx(Noe,{children:F.jsx(eA,{className:"size-4"})})}),F.jsx(Doe,{children:n})]})));_T.displayName=Gj.displayName;const eB=v.forwardRef((({className:e,...t},n)=>F.jsx(Yj,{ref:n,className:$e("-mx-1 my-1 h-px bg-muted",e),...t})));eB.displayName=Yj.displayName;const joe=v.createContext({}),zp=()=>{const e=v.useContext(joe),t=v.useContext(tB),n=zae();e||console.error("useFormContext must be used within a FormProvider");const{getFieldState:r,formState:a}=n,o=r(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},tB=v.createContext({}),Boe=v.forwardRef((({className:e,...t},n)=>{const r=v.useId();return F.jsx(tB.Provider,{value:{id:r},children:F.jsx("div",{ref:n,className:$e("mt-[8px]",e),...t})})}));Boe.displayName="FormItem";const Foe=v.forwardRef((({className:e,isRequired:t,...n},r)=>{var a;const{formItemId:o}=zp();return F.jsx(xT,{ref:r,className:$e("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:t?`*${null==(a=n.children)?void 0:a.toString()}`:n.children})}));Foe.displayName="FormLabel";const Uoe=v.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:a,formMessageId:o}=zp();return F.jsx($p,{ref:t,id:r,"aria-describedby":n?`${a} ${o}`:`${a}`,"aria-invalid":!!n,...e})}));Uoe.displayName="FormControl";const Voe=v.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=zp();return F.jsx("p",{ref:n,id:r,className:$e("text-sm text-muted-foreground",e),...t})}));Voe.displayName="FormDescription";const qoe=v.forwardRef((({className:e,children:t,...n},r)=>{const{error:a,formMessageId:o}=zp(),i=a?String(null==a?void 0:a.message):t;return i?F.jsxs("p",{ref:r,id:o,className:$e("flex items-center gap-0.5 pt-1 text-sm font-medium text-destructive",e),...n,children:[F.jsx(BG,{size:16,className:"text-red-dark"})," ",i]}):null}));qoe.displayName="FormMessage";const Woe=v.forwardRef((({...e},t)=>{const{name:n}=zp();return F.jsx(pT,{ref:t,name:n,...e})}));Woe.displayName="FormSelect";const Hoe=v.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:a}=zp();return F.jsx(gT,{ref:r,id:a,className:e,...n,children:t})}));Hoe.displayName="FormSelectTrigger";const Goe=v.forwardRef(((e,t)=>F.jsx(yT,{ref:t,...e})));Goe.displayName="FormSelectContent";const Koe=v.forwardRef(((e,t)=>F.jsx(_T,{ref:t,...e})));Koe.displayName="FormSelectItem";const Qoe=v.forwardRef(((e,t)=>F.jsx(hT,{ref:t,...e})));Qoe.displayName="FormSelectGroup";const Yoe=v.forwardRef(((e,t)=>F.jsx(Jj,{ref:t,...e})));Yoe.displayName="FormSelectLabel";const Zoe=v.forwardRef(((e,t)=>F.jsx(eB,{ref:t,...e})));Zoe.displayName="FormSelectSeparator";const Xoe=v.forwardRef(((e,t)=>F.jsx(mT,{ref:t,...e})));function sm(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function nB(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>v.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return v.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=v.createContext(r),o=n.length;function i(t){const{scope:n,children:r,...i}=t,s=(null==n?void 0:n[e][o])||a,c=v.useMemo((()=>i),Object.values(i));return v.createElement(s.Provider,{value:c},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=(null==i?void 0:i[e][o])||a,c=v.useContext(s);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Joe(r,...t)]}function Joe(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return v.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Ak(e){const t=v.useRef(e);return v.useEffect((()=>{t.current=e})),v.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function eie(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function tie(...e){return t=>e.forEach((e=>eie(e,t)))}function nie(...e){return v.useCallback(tie(...e),e)}function zm(e){return e.split("-")[0]}function G_(e){return e.split("-")[1]}function X1(e){return["top","bottom"].includes(zm(e))?"x":"y"}function vT(e){return"y"===e?"height":"width"}function Qz(e,t,n){let{reference:r,floating:a}=e;const o=r.x+r.width/2-a.width/2,i=r.y+r.height/2-a.height/2,s=X1(t),c=vT(s),l=r[c]/2-a[c]/2,u="x"===s;let f;switch(zm(t)){case"top":f={x:o,y:r.y-a.height};break;case"bottom":f={x:o,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:i};break;case"left":f={x:r.x-a.width,y:i};break;default:f={x:r.x,y:r.y}}switch(G_(t)){case"start":f[s]-=l*(n&&u?-1:1);break;case"end":f[s]+=l*(n&&u?-1:1)}return f}Xoe.displayName="FormSelectValue";const rie=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:l,y:u}=Qz(c,r,s),f=r,d={},p=0;for(let n=0;n<o.length;n++){const{name:h,fn:m}=o[n],{x:y,y:g,data:v,reset:b}=await m({x:l,y:u,initialPlacement:r,placement:f,strategy:a,middlewareData:d,rects:c,platform:i,elements:{reference:e,floating:t}});l=y??l,u=g??u,d={...d,[h]:{...d[h],...v}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:l,y:u}=Qz(c,f,s))),n=-1)}return{x:l,y:u,placement:f,strategy:a,middlewareData:d}};function rB(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function fw(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function o_(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,h=rB(p),m=s[d?"floating"===f?"reference":"floating":f],y=fw(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g=fw(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...i.floating,x:r,y:a}:i.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),strategy:c}):i[f]);return{top:y.top-g.top+h.top,bottom:g.bottom-y.bottom+h.bottom,left:y.left-g.left+h.left,right:g.right-y.right+h.right}}const aie=Math.min,Xh=Math.max;function jC(e,t,n){return Xh(e,aie(t,n))}const Yz=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:a,y:o,placement:i,rects:s,platform:c}=t;if(null==n)return{};const l=rB(r),u={x:a,y:o},f=X1(i),d=G_(i),p=vT(f),h=await c.getDimensions(n),m="y"===f?"top":"left",y="y"===f?"bottom":"right",g=s.reference[p]+s.reference[f]-u[f]-s.floating[p],v=u[f]-s.reference[f],b=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let _=b?"y"===f?b.clientHeight||0:b.clientWidth||0:0;0===_&&(_=s.floating[p]);const w=g/2-v/2,k=l[m],x=_-h[p]-l[y],S=_/2-h[p]/2+w,E=jC(k,S,x),A=("start"===d?l[m]:l[y])>0&&S!==E&&s.reference[p]<=s.floating[p];return{[f]:u[f]-(A?S<k?k-S:x-S:0),data:{[f]:E,centerOffset:S-E}}}}),oie={left:"right",right:"left",bottom:"top",top:"bottom"};function uw(e){return e.replace(/left|right|bottom|top/g,(e=>oie[e]))}function iie(e,t,n){void 0===n&&(n=!1);const r=G_(e),a=X1(e),o=vT(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=uw(i)),{main:i,cross:uw(i)}}const sie={start:"end",end:"start"};function Zz(e){return e.replace(/start|end/g,(e=>sie[e]))}const aB=["top","right","bottom","left"];aB.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const cie=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:a,rects:o,initialPlacement:i,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...h}=e,m=zm(r),y=[i,...f||(m!==i&&p?function(e){const t=uw(e);return[Zz(e),t,Zz(t)]}(i):[uw(i)])],g=await o_(t,h),v=[];let b=(null==(n=a.flip)?void 0:n.overflows)||[];if(l&&v.push(g[m]),u){const{main:e,cross:t}=iie(r,o,await(null==s.isRTL?void 0:s.isRTL(c.floating)));v.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:v}],!v.every((e=>e<=0))){var _,w;const e=(null!=(_=null==(w=a.flip)?void 0:w.index)?_:0)+1,t=y[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var k;const e=null==(k=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0].placement;e&&(n=e);break}case"initialPlacement":n=i}if(r!==n)return{reset:{placement:n}}}return{}}}};function Xz(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jz(e){return aB.some((t=>e[t]>=0))}const lie=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=Xz(await o_(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:Jz(t)}}}case"escaped":{const t=Xz(await o_(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:Jz(t)}}}default:return{}}}}},fie=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=zm(n),s=G_(n),c="x"===X1(n),l=["left","top"].includes(i)?-1:1,u=o&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return{x:n+a.x,y:r+a.y,data:a}}}};function oB(e){return"x"===e?"y":"x"}const uie=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,l={x:n,y:r},u=await o_(t,c),f=X1(zm(a)),d=oB(f);let p=l[f],h=l[d];if(o){const e="y"===f?"bottom":"right";p=jC(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";h=jC(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},die=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=e,u={x:n,y:r},f=X1(a),d=oB(f);let p=u[f],h=u[d];const m="function"==typeof s?s({...o,placement:a}):s,y="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+y.mainAxis,n=o.reference[f]+o.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,v,b,_;const e="y"===f?"width":"height",t=["top","left"].includes(zm(a)),n=o.reference[d]-o.floating[e]+(t&&null!=(g=null==(v=i.offset)?void 0:v[d])?g:0)+(t?0:y.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:null!=(b=null==(_=i.offset)?void 0:_[d])?b:0)-(t?y.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},pie=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:a,elements:o}=t,{apply:i,...s}=e,c=await o_(t,s),l=zm(n),u=G_(n);let f,d;"top"===l||"bottom"===l?(f=l,d=u===(await(null==a.isRTL?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(d=l,f="end"===u?"top":"bottom");const p=Xh(c.left,0),h=Xh(c.right,0),m=Xh(c.top,0),y=Xh(c.bottom,0),g={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==y?m+y:Xh(c.top,c.bottom)):c[f]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==h?p+h:Xh(c.left,c.right)):c[d])},v=await a.getDimensions(o.floating);null==i||i({...t,...g});const b=await a.getDimensions(o.floating);return v.width!==b.width||v.height!==b.height?{reset:{rects:!0}}:{}}}};function iB(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Cu(e){if(null==e)return window;if(!iB(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function K_(e){return Cu(e).getComputedStyle(e)}function mu(e){return iB(e)?"":e?(e.nodeName||"").toLowerCase():""}function sB(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Wl(e){return e instanceof Cu(e).HTMLElement}function Cp(e){return e instanceof Cu(e).Element}function bT(e){return!(typeof ShadowRoot>"u")&&(e instanceof Cu(e).ShadowRoot||e instanceof ShadowRoot)}function Tk(e){const{overflow:t,overflowX:n,overflowY:r}=K_(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function hie(e){return["table","td","th"].includes(mu(e))}function eM(e){const t=/firefox/i.test(sB()),n=K_(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function cB(){return!/^((?!chrome|android).)*safari/i.test(sB())}const tM=Math.min,$y=Math.max,dw=Math.round;function gu(e,t,n){var r,a,o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,l=1;t&&Wl(e)&&(c=e.offsetWidth>0&&dw(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&dw(s.height)/e.offsetHeight||1);const u=Cp(e)?Cu(e):window,f=!cB()&&n,d=(s.left+(f&&null!=(r=null==(a=u.visualViewport)?void 0:a.offsetLeft)?r:0))/c,p=(s.top+(f&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetTop)?o:0))/l,h=s.width/c,m=s.height/l;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function gp(e){return(t=e,(t instanceof Cu(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Ik(e){return Cp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lB(e){return gu(gp(e)).left+Ik(e).scrollLeft}function mie(e,t,n){const r=Wl(t),a=gp(t),o=gu(e,r&&function(e){const t=gu(e);return dw(t.width)!==e.offsetWidth||dw(t.height)!==e.offsetHeight}(t),"fixed"===n);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==mu(t)||Tk(a))&&(i=Ik(t)),Wl(t)){const e=gu(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=lB(a));return{x:o.left+i.scrollLeft-s.x,y:o.top+i.scrollTop-s.y,width:o.width,height:o.height}}function fB(e){return"html"===mu(e)?e:e.assignedSlot||e.parentNode||(bT(e)?e.host:null)||gp(e)}function nM(e){return Wl(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function BC(e){const t=Cu(e);let n=nM(e);for(;n&&hie(n)&&"static"===getComputedStyle(n).position;)n=nM(n);return n&&("html"===mu(n)||"body"===mu(n)&&"static"===getComputedStyle(n).position&&!eM(n))?t:n||function(e){let t=fB(e);for(bT(t)&&(t=t.host);Wl(t)&&!["html","body"].includes(mu(t));){if(eM(t))return t;t=t.parentNode}return null}(e)||t}function rM(e){if(Wl(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=gu(e);return{width:t.width,height:t.height}}function uB(e){const t=fB(e);return["html","body","#document"].includes(mu(t))?e.ownerDocument.body:Wl(t)&&Tk(t)?t:uB(t)}function pw(e,t){var n;void 0===t&&(t=[]);const r=uB(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Cu(r),i=a?[o].concat(o.visualViewport||[],Tk(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(pw(i))}function aM(e,t,n){return"viewport"===t?fw(function(e,t){const n=Cu(e),r=gp(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,c=0;if(a){o=a.width,i=a.height;const e=cB();(e||!e&&"fixed"===t)&&(s=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:s,y:c}}(e,n)):Cp(t)?function(e,t){const n=gu(e,!1,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft;return{top:r,left:a,x:a,y:r,right:a+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):fw(function(e){var t;const n=gp(e),r=Ik(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=$y(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=$y(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let s=-r.scrollLeft+lB(e);const c=-r.scrollTop;return"rtl"===K_(a||n).direction&&(s+=$y(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:c}}(gp(e)))}function gie(e){const t=pw(e),n=["absolute","fixed"].includes(K_(e).position)&&Wl(e)?BC(e):e;return Cp(n)?t.filter((e=>Cp(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&bT(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==mu(e))):[]}const yie={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?gie(t):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=aM(t,n,a);return e.top=$y(r.top,e.top),e.right=tM(r.right,e.right),e.bottom=tM(r.bottom,e.bottom),e.left=$y(r.left,e.left),e}),aM(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=Wl(n),o=gp(n);if(n===o)return t;let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((a||!a&&"fixed"!==r)&&(("body"!==mu(n)||Tk(o))&&(i=Ik(n)),Wl(n))){const e=gu(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-i.scrollLeft+s.x,y:t.y-i.scrollTop+s.y}},isElement:Cp,getDimensions:rM,getOffsetParent:BC,getDocumentElement:gp,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:mie(t,BC(n),r),floating:{...rM(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===K_(e).direction};function _ie(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=!0,animationFrame:s=!1}=r,c=a&&!s,l=o&&!s,u=c||l?[...Cp(e)?pw(e):[],...pw(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));let f,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Cp(e)&&!s&&d.observe(e),d.observe(t)}let p=s?gu(e):null;return s&&function t(){const r=gu(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(f)}}const vie=(e,t,n)=>rie(e,t,{platform:yie,...n});var FC=typeof document<"u"?v.useLayoutEffect:v.useEffect;function UC(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!UC(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(!("_owner"===n&&e.$$typeof||UC(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function bie(e){const t=v.useRef(e);return FC((()=>{t.current=e})),t}function wie(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:a}=void 0===e?{}:e;const o=v.useRef(null),i=v.useRef(null),s=bie(a),c=v.useRef(null),[l,u]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[f,d]=v.useState(t);UC(null==f?void 0:f.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||d(t);const p=v.useCallback((()=>{!o.current||!i.current||vie(o.current,i.current,{middleware:f,placement:n,strategy:r}).then((e=>{h.current&&Zl.flushSync((()=>{u(e)}))}))}),[f,n,r]);FC((()=>{h.current&&p()}),[p]);const h=v.useRef(!1);FC((()=>(h.current=!0,()=>{h.current=!1})),[]);const m=v.useCallback((()=>{if("function"==typeof c.current&&(c.current(),c.current=null),o.current&&i.current)if(s.current){const e=s.current(o.current,i.current,p);c.current=e}else p()}),[p,s]),y=v.useCallback((e=>{o.current=e,m()}),[m]),g=v.useCallback((e=>{i.current=e,m()}),[m]),b=v.useMemo((()=>({reference:o,floating:i})),[]);return v.useMemo((()=>({...l,update:p,refs:b,reference:y,floating:g})),[l,p,b,y,g])}const kie=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn:e=>function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?Yz({element:t.current,padding:n}).fn(e):{}:t?Yz({element:t,padding:n}).fn(e):{}}};function xie(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Sie(...e){return t=>e.forEach((e=>xie(e,t)))}const dB=v.forwardRef(((e,t)=>{const{children:n,...r}=e,a=v.Children.toArray(n),o=a.find(Cie);if(o){const e=o.props.children,n=a.map((t=>t===o?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return v.createElement(VC,Le({},r,{ref:t}),v.isValidElement(e)?v.cloneElement(e,void 0,n):null)}return v.createElement(VC,Le({},r,{ref:t}),n)}));dB.displayName="Slot";const VC=v.forwardRef(((e,t)=>{const{children:n,...r}=e;return v.isValidElement(n)?v.cloneElement(n,{...Rie(r,n.props),ref:Sie(t,n.ref)}):v.Children.count(n)>1?v.Children.only(null):null}));VC.displayName="SlotClone";const Eie=({children:e})=>v.createElement(v.Fragment,null,e);function Cie(e){return v.isValidElement(e)&&e.type===Eie}function Rie(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}const Aie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],qC=Aie.reduce(((e,t)=>{const n=v.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?dB:t;return v.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),v.createElement(o,Le({},a,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Tie(e,t){e&&Zl.flushSync((()=>e.dispatchEvent(t)))}function Iie(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Pie(...e){return t=>e.forEach((e=>Iie(e,t)))}function $ie(...e){return v.useCallback(Pie(...e),e)}const rm=null!=globalThis&&globalThis.document?v.useLayoutEffect:()=>{};function Oie(e){const[t,n]=v.useState(void 0);return rm((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const pB="Popper",[wT,hB]=nB(pB),[VWe,zie]=wT(pB),hw="PopperContent",[Mie,qWe]=wT(hw),[Die,Nie]=wT(hw,{hasParent:!1,positionUpdateFns:new Set}),Lie=v.forwardRef(((e,t)=>{var n,r,a,o,i,s,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:d=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:y=[],collisionPadding:g=0,sticky:b="partial",hideWhenDetached:_=!1,avoidCollisions:w=!0,onPlaced:k,...x}=e,S=zie(hw,u),[E,A]=v.useState(null),z=$ie(t,(e=>A(e))),[C,I]=v.useState(null),T=Oie(C),R=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,P=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,j=f+("center"!==p?"-"+p:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},N=Array.isArray(y)?y:[y],M=N.length>0,D={padding:O,boundary:N.filter(Bie),altBoundary:M},{reference:F,floating:L,strategy:V,x:q,y:B,placement:U,middlewareData:$,update:W}=wie({strategy:"fixed",placement:j,whileElementsMounted:_ie,middleware:[Fie(),fie({mainAxis:d+P,alignmentAxis:h}),w?uie({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?die():void 0,...D}):void 0,C?kie({element:C,padding:m}):void 0,w?cie({...D}):void 0,pie({...D,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),Uie({arrowWidth:R,arrowHeight:P}),_?lie({strategy:"referenceHidden"}):void 0].filter(jie)});rm((()=>{F(S.anchor)}),[F,S.anchor]);const H=null!==q&&null!==B,[G,K]=mB(U),Q=Ak(k);rm((()=>{H&&(null==Q||Q())}),[H,Q]);const Y=null===(a=$.arrow)||void 0===a?void 0:a.x,Z=null===(o=$.arrow)||void 0===o?void 0:o.y,X=0!==(null===(i=$.arrow)||void 0===i?void 0:i.centerOffset),[J,ee]=v.useState();rm((()=>{E&&ee(window.getComputedStyle(E).zIndex)}),[E]);const{hasParent:te,positionUpdateFns:ne}=Nie(hw,u),re=!te;v.useLayoutEffect((()=>{if(!re)return ne.add(W),()=>{ne.delete(W)}}),[re,ne,W]),rm((()=>{re&&H&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,H,ne]);const ae={"data-side":G,"data-align":K,...x,ref:z,style:{...x.style,animation:H?void 0:"none",opacity:null!==(s=$.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return v.createElement("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:V,left:0,top:0,transform:H?`translate3d(${Math.round(q)}px, ${Math.round(B)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(c=$.transformOrigin)||void 0===c?void 0:c.x,null===(l=$.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},v.createElement(Mie,{scope:u,placedSide:G,onArrowChange:I,arrowX:Y,arrowY:Z,shouldHideArrow:X},re?v.createElement(Die,{scope:u,hasParent:!0,positionUpdateFns:ne},v.createElement(qC.div,ae)):v.createElement(qC.div,ae)))}));function jie(e){return void 0!==e}function Bie(e){return null!==e}const Fie=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:a}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${a}px`),{}}}),Uie=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a,o,i;const{placement:s,rects:c,middlewareData:l}=t,u=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),f=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=mB(s),m={start:"0%",center:"50%",end:"100%"}[h],y=(null!==(r=null===(a=l.arrow)||void 0===a?void 0:a.x)&&void 0!==r?r:0)+f/2,g=(null!==(o=null===(i=l.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+d/2;let v="",b="";return"bottom"===p?(v=u?m:`${y}px`,b=-d+"px"):"top"===p?(v=u?m:`${y}px`,b=`${c.floating.height+d}px`):"right"===p?(v=-d+"px",b=u?m:`${g}px`):"left"===p&&(v=`${c.floating.width+d}px`,b=u?m:`${g}px`),{data:{x:v,y:b}}}});function mB(e){const[t,n="center"]=e.split("-");return[t,n]}const Vie=Lie;function qie(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Wie(...e){return t=>e.forEach((e=>qie(e,t)))}function Hie(...e){return v.useCallback(Wie(...e),e)}function Gie(e,t){return v.useReducer(((e,n)=>t[e][n]??e),e)}const gB=e=>{const{present:t,children:n}=e,r=Kie(t),a="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),o=Hie(r.ref,a.ref);return"function"==typeof n||r.isPresent?v.cloneElement(a,{ref:o}):null};function Kie(e){const[t,n]=v.useState(),r=v.useRef({}),a=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[s,c]=Gie(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect((()=>{const e=sb(r.current);o.current="mounted"===s?e:"none"}),[s]),rm((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=sb(t);e?c("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,c]),rm((()=>{if(t){const e=e=>{const n=sb(r.current).includes(e.animationName);e.target===t&&n&&Zl.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(o.current=sb(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function sb(e){return(null==e?void 0:e.animationName)||"none"}function Qie(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Yie(...e){return t=>e.forEach((e=>Qie(e,t)))}function Zie(...e){return v.useCallback(Yie(...e),e)}function Xie(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ak(e);v.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}gB.displayName="Presence";const WC="dismissableLayer.update",Jie="dismissableLayer.pointerDownOutside",ese="dismissableLayer.focusOutside";let oM;const tse=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nse=v.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(tse),[f,d]=v.useState(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=v.useState({}),m=Zie(t,(e=>d(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(g),_=f?y.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=_>=b,x=rse((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));!k||n||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p),S=ase((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p);return Xie((e=>{_===u.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),v.useEffect((()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(oM=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),iM(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=oM)}}),[f,p,r,u]),v.useEffect((()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),iM())}),[f,u]),v.useEffect((()=>{const e=()=>h({});return document.addEventListener(WC,e),()=>document.removeEventListener(WC,e)}),[]),v.createElement(qC.div,Le({},l,{ref:m,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:sm(e.onFocusCapture,S.onFocusCapture),onBlurCapture:sm(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:sm(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function rse(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ak(e),r=v.useRef(!1),a=v.useRef((()=>{}));return v.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){yB(Jie,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ase(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ak(e),r=v.useRef(!1);return v.useEffect((()=>{const e=e=>{e.target&&!r.current&&yB(ese,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function iM(){const e=new CustomEvent(WC);document.dispatchEvent(e)}function yB(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Tie(a,o):a.dispatchEvent(o)}let qE;const _B="HoverCard",[vB,WWe]=nB(_B,[hB]),ose=hB(),[HWe,bB]=vB(_B),ise="HoverCardPortal",[GWe,sse]=vB(ise,{forceMount:void 0}),HC="HoverCardContent",cse=v.forwardRef(((e,t)=>{const n=sse(HC,e.__scopeHoverCard),{forceMount:r=n.forceMount,...a}=e,o=bB(HC,e.__scopeHoverCard);return v.createElement(gB,{present:r||o.open},v.createElement(lse,Le({"data-state":o.open?"open":"closed"},a,{onPointerEnter:sm(e.onPointerEnter,sM(o.onOpen)),onPointerLeave:sm(e.onPointerLeave,sM(o.onClose)),ref:t})))})),lse=v.forwardRef(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,...s}=e,c=bB(HC,n),l=ose(n),u=v.useRef(null),f=nie(t,u),[d,p]=v.useState(!1);return v.useEffect((()=>{if(d){const e=document.body;return qE=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=qE,e.style.webkitUserSelect=qE}}}),[d]),v.useEffect((()=>{if(u.current){const e=()=>{p(!1),c.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(c.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}}),[c.isPointerDownOnContentRef,c.hasSelectionRef]),v.useEffect((()=>{u.current&&fse(u.current).forEach((e=>e.setAttribute("tabindex","-1")))})),v.createElement(nse,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:sm(o,(e=>{e.preventDefault()})),onDismiss:c.onDismiss},v.createElement(Vie,Le({},l,s,{onPointerDown:sm(s.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0})),ref:f,style:{...s.style,userSelect:d?"text":void 0,WebkitUserSelect:d?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function sM(e){return t=>"touch"===t.pointerType?void 0:e()}function fse(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const wB=cse,use=v.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},a)=>F.jsx(wB,{ref:a,align:t,sideOffset:n,className:$e("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));use.displayName=wB.displayName;const kT=v.forwardRef((({className:e,type:t,...n},r)=>{const{error:a}=zp();return F.jsx("input",{type:t,className:$e("flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-base placeholder:text-muted-foreground placeholder:text-slate-400 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",{"border-red-dark focus-visible:border-input focus-visible:ring-red-dark":!!a},e),ref:r,...n})}));kT.displayName="Input";const dse=v.forwardRef(((e,t)=>v.createElement(St.label,Le({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),kB=dse,pse=Yl("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),xT=v.forwardRef((({className:e,...t},n)=>F.jsx(kB,{ref:n,className:$e(pse(),e),...t})));xT.displayName=kB.displayName;const xB="Radio",[hse,SB]=ii(xB),[mse,gse]=hse(xB),yse=v.forwardRef(((e,t)=>{const{__scopeRadio:n,name:r,checked:a=!1,required:o,disabled:i,value:s="on",onCheck:c,...l}=e,[u,f]=v.useState(null),d=yn(t,(e=>f(e))),p=v.useRef(!1),h=!u||!!u.closest("form");return v.createElement(mse,{scope:n,checked:a,disabled:i},v.createElement(St.button,Le({type:"button",role:"radio","aria-checked":a,"data-state":EB(a),"data-disabled":i?"":void 0,disabled:i,value:s},l,{ref:d,onClick:lt(e.onClick,(e=>{a||null==c||c(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&v.createElement(bse,{control:u,bubbles:!p.current,name:r,value:s,checked:a,required:o,disabled:i,style:{transform:"translateX(-100%)"}}))})),_se="RadioIndicator",vse=v.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:r,...a}=e,o=gse(_se,n);return v.createElement(Ws,{present:r||o.checked},v.createElement(St.span,Le({"data-state":EB(o.checked),"data-disabled":o.disabled?"":void 0},a,{ref:t})))})),bse=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=gk(n),s=yk(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});a.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Le({type:"radio","aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function EB(e){return e?"checked":"unchecked"}const wse=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],CB="RadioGroup",[kse,KWe]=ii(CB,[Y1,SB]),RB=Y1(),AB=SB(),[xse,Sse]=kse(CB),Ese=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:a,value:o,required:i=!1,disabled:s=!1,orientation:c,dir:l,loop:u=!0,onValueChange:f,...d}=e,p=RB(n),h=qA(l),[m,y]=wp({prop:o,defaultProp:a,onChange:f});return v.createElement(xse,{scope:n,name:r,required:i,disabled:s,value:m,onValueChange:y},v.createElement(eT,Le({asChild:!0},p,{orientation:c,dir:h,loop:u}),v.createElement(St.div,Le({role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:h},d,{ref:t}))))})),Cse="RadioGroupItem",Rse=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...a}=e,o=Sse(Cse,n),i=o.disabled||r,s=RB(n),c=AB(n),l=v.useRef(null),u=yn(t,l),f=o.value===a.value,d=v.useRef(!1);return v.useEffect((()=>{const e=e=>{wse.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),v.createElement(tT,Le({asChild:!0},s,{focusable:!i,active:f}),v.createElement(yse,Le({disabled:i,required:o.required,checked:f},c,a,{name:o.name,ref:u,onCheck:()=>o.onValueChange(a.value),onKeyDown:lt((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:lt(a.onFocus,(()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),Ase=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,a=AB(n);return v.createElement(vse,Le({},a,r,{ref:t}))})),TB=Ese,IB=Rse,Tse=Ase,PB=v.forwardRef((({className:e,...t},n)=>F.jsx(TB,{className:$e("grid gap-2",e),...t,ref:n})));PB.displayName=TB.displayName;const $B=v.forwardRef((({className:e,...t},n)=>F.jsx(IB,{ref:n,className:$e("aspect-square h-4 w-4 rounded-full border-[1.67px] border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:F.jsx(Tse,{className:"flex items-center justify-center",children:F.jsx(X8,{className:"h-2.5 w-2.5 fill-current text-current"})})})));$B.displayName=IB.displayName;const Ise=P7,Pse=ak,OB=v.forwardRef((({className:e,...t},n)=>F.jsx(q1,{className:$e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));OB.displayName=q1.displayName;const $se=Yl("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),zB=v.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...a},o)=>F.jsxs(Pse,{children:[F.jsx(OB,{className:$e("bg-slate-900/70",n)}),F.jsxs(W1,{ref:o,className:$e($se({side:e}),t),...a,children:[r,F.jsxs(ok,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[F.jsx(J8,{className:"h-4 w-4"}),F.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));zB.displayName=W1.displayName;const MB=({className:e,...t})=>F.jsx("div",{className:$e("flex flex-col space-y-2 text-center sm:text-left",e),...t});MB.displayName="SheetHeader";const DB=v.forwardRef((({className:e,...t},n)=>F.jsx(D_,{ref:n,className:$e("text-lg font-semibold text-foreground",e),...t})));DB.displayName=D_.displayName;const NB=v.forwardRef((({className:e,...t},n)=>F.jsx(N_,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));NB.displayName=N_.displayName;const[Pk,QWe]=ii("Tooltip",[Q1]),ST=Q1(),Ose="TooltipProvider",zse=700,GC="tooltip.open",[Mse,ET]=Pk(Ose),LB=e=>{const{__scopeTooltip:t,delayDuration:n=zse,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,[i,s]=v.useState(!0),c=v.useRef(!1),l=v.useRef(0);return v.useEffect((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),v.createElement(Mse,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:v.useCallback((()=>{window.clearTimeout(l.current),s(!1)}),[]),onClose:v.useCallback((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:v.useCallback((e=>{c.current=e}),[]),disableHoverableContent:a},o)},CT="Tooltip",[Dse,$k]=Pk(CT),jB=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,c=ET(CT,e.__scopeTooltip),l=ST(t),[u,f]=v.useState(null),d=hp(),p=v.useRef(0),h=i??c.disableHoverableContent,m=s??c.delayDuration,y=v.useRef(!1),[g=!1,b]=wp({prop:r,defaultProp:a,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(GC))):c.onClose(),null==o||o(e)}}),_=v.useMemo((()=>g?y.current?"delayed-open":"instant-open":"closed"),[g]),w=v.useCallback((()=>{window.clearTimeout(p.current),y.current=!1,b(!0)}),[b]),k=v.useCallback((()=>{window.clearTimeout(p.current),b(!1)}),[b]),x=v.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{y.current=!0,b(!0)}),m)}),[m,b]);return v.useEffect((()=>()=>window.clearTimeout(p.current)),[]),v.createElement(tj,l,v.createElement(Dse,{scope:t,contentId:d,open:g,stateAttribute:_,trigger:u,onTriggerChange:f,onTriggerEnter:v.useCallback((()=>{c.isOpenDelayed?x():w()}),[c.isOpenDelayed,x,w]),onTriggerLeave:v.useCallback((()=>{h?k():window.clearTimeout(p.current)}),[k,h]),onOpen:w,onClose:k,disableHoverableContent:h},n))},cM="TooltipTrigger",BB=v.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=$k(cM,n),o=ET(cM,n),i=ST(n),s=yn(t,v.useRef(null),a.onTriggerChange),c=v.useRef(!1),l=v.useRef(!1),u=v.useCallback((()=>c.current=!1),[]);return v.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),v.createElement(ZA,Le({asChild:!0},i),v.createElement(St.button,Le({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},r,{ref:s,onPointerMove:lt(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),l.current=!0)})),onPointerLeave:lt(e.onPointerLeave,(()=>{a.onTriggerLeave(),l.current=!1})),onPointerDown:lt(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:lt(e.onFocus,(()=>{c.current||a.onOpen()})),onBlur:lt(e.onBlur,a.onClose),onClick:lt(e.onClick,a.onClose)})))})),Nse="TooltipPortal",[YWe,Lse]=Pk(Nse,{forceMount:void 0}),i_="TooltipContent",FB=v.forwardRef(((e,t)=>{const n=Lse(i_,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,i=$k(i_,e.__scopeTooltip);return v.createElement(Ws,{present:r||i.open},i.disableHoverableContent?v.createElement(UB,Le({side:a},o,{ref:t})):v.createElement(jse,Le({side:a},o,{ref:t})))})),jse=v.forwardRef(((e,t)=>{const n=$k(i_,e.__scopeTooltip),r=ET(i_,e.__scopeTooltip),a=v.useRef(null),o=yn(t,a),[i,s]=v.useState(null),{trigger:c,onClose:l}=n,u=a.current,{onPointerInTransitChange:f}=r,d=v.useCallback((()=>{s(null),f(!1)}),[f]),p=v.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},a=Wse([...Use(r,Fse(r,n.getBoundingClientRect())),...Vse(t.getBoundingClientRect())]);s(a),f(!0)}),[f]);return v.useEffect((()=>()=>d()),[d]),v.useEffect((()=>{if(c&&u){const e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[c,u,p,d]),v.useEffect((()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==u?void 0:u.contains(t)),a=!qse(n,i);r?d():a&&(d(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,u,i,l,d]),v.createElement(UB,Le({},e,{ref:o}))})),[Bse,ZWe]=Pk(CT,{isInside:!1}),UB=v.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=e,c=$k(i_,n),l=ST(n),{onClose:u}=c;return v.useEffect((()=>(document.addEventListener(GC,u),()=>document.removeEventListener(GC,u))),[u]),v.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,u]),v.createElement(ek,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u},v.createElement(XA,Le({"data-state":c.stateAttribute},l,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),v.createElement(aA,null,r),v.createElement(Bse,{scope:n,isInside:!0},v.createElement(Jae,{id:c.contentId,role:"tooltip"},a||r))))}));function Fse(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Use(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function Vse(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function qse(e,t){const{x:n,y:r}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const i=t[e].x,s=t[e].y,c=t[o].x,l=t[o].y;s>r!=l>r&&n<(c-i)*(r-s)/(l-s)+i&&(a=!a)}return a}function Wse(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),Hse(t)}function Hse(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Gse=LB,Kse=jB,Qse=BB,VB=FB,Yse=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},Zse={deviceType:Yse()},RT=Ca({name:"ui",initialState:Zse,reducers:{setDeviceType:(e,{payload:t})=>{e.deviceType=t}},selectors:{selectDeviceType:e=>e.deviceType,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});var WE,lM,HE,fM,GE,uM,KE,dM,QE,pM,YE,hM,ZE,mM,XE,gM,JE,yM,e4,_M,t4,vM,n4,bM,r4,wM,a4,kM,o4,xM,i4,SM,s4,EM,c4,CM,l4,RM,f4,AM,u4,TM,d4,IM,p4,PM,h4,$M,m4,OM,g4,zM,y4,MM,_4,DM,v4,NM,b4,LM,w4,jM,k4,BM,x4,FM,S4,UM,E4,VM,C4,qM,R4,WM,A4,HM,T4,GM,I4,KM,P4,QM;function qB(){if(lM)return WE;lM=1;var e=_5(),t=e&&new e;return WE=t}function WB(){if(fM)return HE;fM=1;var e=IA(),t=qB();return HE=t?function(e,n){return t.set(e,n),e}:e}function Ok(){if(uM)return GE;uM=1;var e=mk(),t=Uc();return GE=function(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var a=e(n.prototype),o=n.apply(a,r);return t(o)?o:a}},GE}function Xse(){if(dM)return KE;dM=1;var e=Ok(),t=si();return KE=function(n,r,a){var o=1&r,i=e(n);return function e(){return(this&&this!==t&&this instanceof e?i:n).apply(o?a:this,arguments)}},KE}function HB(){if(pM)return QE;pM=1;var e=Math.max;return QE=function(t,n,r,a){for(var o=-1,i=t.length,s=r.length,c=-1,l=n.length,u=e(i-s,0),f=Array(l+u),d=!a;++c<l;)f[c]=n[c];for(;++o<s;)(d||o<i)&&(f[r[o]]=t[o]);for(;u--;)f[c++]=t[o++];return f}}function GB(){if(hM)return YE;hM=1;var e=Math.max;return YE=function(t,n,r,a){for(var o=-1,i=t.length,s=-1,c=r.length,l=-1,u=n.length,f=e(i-c,0),d=Array(f+u),p=!a;++o<f;)d[o]=t[o];for(var h=o;++l<u;)d[h+l]=n[l];for(;++s<c;)(p||o<i)&&(d[h+r[s]]=t[o++]);return d}}function Jse(){if(mM)return ZE;return mM=1,ZE=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function AT(){if(gM)return XE;return gM=1,XE=function(){}}function TT(){if(yM)return JE;yM=1;var e=mk(),t=AT();function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}return n.prototype=e(t.prototype),n.prototype.constructor=n,JE=n}function KB(){if(_M)return e4;_M=1;var e=qB(),t=k5();return e4=e?function(t){return e.get(t)}:t}function ece(){if(vM)return t4;vM=1;return t4={}}function tce(){if(bM)return n4;bM=1;var e=ece(),t=Object.prototype.hasOwnProperty;return n4=function(n){for(var r=n.name+"",a=e[r],o=t.call(e,r)?a.length:0;o--;){var i=a[o],s=i.func;if(null==s||s==n)return i.name}return r}}function QB(){if(wM)return r4;wM=1;var e=mk(),t=AT();function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}return n.prototype=e(t.prototype),n.prototype.constructor=n,r4=n}function nce(){if(kM)return a4;kM=1;var e=TT(),t=QB(),n=hk();return a4=function(r){if(r instanceof e)return r.clone();var a=new t(r.__wrapped__,r.__chain__);return a.__actions__=n(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}}function rce(){if(xM)return o4;xM=1;var e=TT(),t=QB(),n=AT(),r=Ai(),a=os(),o=nce(),i=Object.prototype.hasOwnProperty;function s(n){if(a(n)&&!r(n)&&!(n instanceof e)){if(n instanceof t)return n;if(i.call(n,"__wrapped__"))return o(n)}return new t(n)}return s.prototype=n.prototype,s.prototype.constructor=s,o4=s}function ace(){if(SM)return i4;SM=1;var e=TT(),t=KB(),n=tce(),r=rce();return i4=function(a){var o=n(a),i=r[o];if("function"!=typeof i||!(o in e.prototype))return!1;if(a===i)return!0;var s=t(i);return!!s&&a===s[0]}}function YB(){if(EM)return s4;EM=1;var e=WB(),t=S5()(e);return s4=t}function oce(){if(CM)return c4;CM=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return c4=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function ice(){if(RM)return l4;RM=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;return l4=function(t,n){var r=n.length;if(!r)return t;var a=r-1;return n[a]=(r>1?"& ":"")+n[a],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}}function sce(){if(AM)return f4;AM=1;var e=OA(),t=$X(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return f4=function(r,a){return e(n,(function(e){var n="_."+e[0];a&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function ZB(){if(TM)return u4;TM=1;var e=oce(),t=ice(),n=E5(),r=sce();return u4=function(a,o,i){var s=o+"";return n(a,t(s,r(e(s),i)))}}function XB(){if(IM)return d4;IM=1;var e=ace(),t=YB(),n=ZB();return d4=function(r,a,o,i,s,c,l,u,f,d){var p=8&a;a|=p?32:64,4&(a&=~(p?64:32))||(a&=-4);var h=[r,a,s,p?c:void 0,p?l:void 0,p?void 0:c,p?void 0:l,u,f,d],m=o.apply(void 0,h);return e(r)&&t(m,h),m.placeholder=i,n(m,r,a)}}function JB(){if(PM)return p4;return PM=1,p4=function(e){return e.placeholder}}function cce(){if($M)return h4;$M=1;var e=hk(),t=EA(),n=Math.min;return h4=function(r,a){for(var o=r.length,i=n(a.length,o),s=e(r);i--;){var c=a[i];r[i]=t(c,o)?s[c]:void 0}return r}}function IT(){if(OM)return m4;OM=1;var e="__lodash_placeholder__";return m4=function(t,n){for(var r=-1,a=t.length,o=0,i=[];++r<a;){var s=t[r];(s===n||s===e)&&(t[r]=e,i[o++]=r)}return i}}function eF(){if(zM)return g4;zM=1;var e=HB(),t=GB(),n=Jse(),r=Ok(),a=XB(),o=JB(),i=cce(),s=IT(),c=si();return g4=function l(u,f,d,p,h,m,y,g,v,b){var _=128&f,w=1&f,k=2&f,x=24&f,S=512&f,E=k?void 0:r(u);return function A(){for(var z=arguments.length,C=Array(z),I=z;I--;)C[I]=arguments[I];if(x)var T=o(A),R=n(C,T);if(p&&(C=e(C,p,h,x)),m&&(C=t(C,m,y,x)),z-=R,x&&z<b){var P=s(C,T);return a(u,f,l,A.placeholder,d,C,P,g,v,b-z)}var j=w?d:this,O=k?j[u]:u;return z=C.length,g?C=i(C,g):S&&z>1&&C.reverse(),_&&v<z&&(C.length=v),this&&this!==c&&this instanceof A&&(O=E||r(O)),O.apply(j,C)}},g4}function lce(){if(MM)return y4;MM=1;var e=PA(),t=Ok(),n=eF(),r=XB(),a=JB(),o=IT(),i=si();return y4=function(s,c,l){var u=t(s);return function t(){for(var f=arguments.length,d=Array(f),p=f,h=a(t);p--;)d[p]=arguments[p];var m=f<3&&d[0]!==h&&d[f-1]!==h?[]:o(d,h);return(f-=m.length)<l?r(s,c,n,t.placeholder,void 0,d,m,void 0,void 0,l-f):e(this&&this!==i&&this instanceof t?u:s,this,d)}},y4}function fce(){if(DM)return _4;DM=1;var e=PA(),t=Ok(),n=si();return _4=function(r,a,o,i){var s=1&a,c=t(r);return function t(){for(var a=-1,l=arguments.length,u=-1,f=i.length,d=Array(f+l),p=this&&this!==n&&this instanceof t?c:r;++u<f;)d[u]=i[u];for(;l--;)d[u++]=arguments[++a];return e(p,s?o:this,d)}},_4}function uce(){if(NM)return v4;NM=1;var e=HB(),t=GB(),n=IT(),r="__lodash_placeholder__",a=128,o=Math.min;return v4=function(i,s){var c=i[1],l=s[1],u=c|l,f=u<131,d=l==a&&8==c||l==a&&256==c&&i[7].length<=s[8]||384==l&&s[7].length<=s[8]&&8==c;if(!f&&!d)return i;1&l&&(i[2]=s[2],u|=1&c?0:4);var p=s[3];if(p){var h=i[3];i[3]=h?e(h,p,s[4]):p,i[4]=h?n(i[3],r):s[4]}return(p=s[5])&&(h=i[5],i[5]=h?t(h,p,s[6]):p,i[6]=h?n(i[5],r):s[6]),(p=s[7])&&(i[7]=p),l&a&&(i[8]=null==i[8]?s[8]:o(i[8],s[8])),null==i[9]&&(i[9]=s[9]),i[0]=s[0],i[1]=u,i}}function PT(){if(LM)return b4;LM=1;var e=WB(),t=Xse(),n=lce(),r=eF(),a=fce(),o=KB(),i=uce(),s=YB(),c=ZB(),l=T5(),u=Math.max;return b4=function(f,d,p,h,m,y,g,v){var b=2&d;if(!b&&"function"!=typeof f)throw new TypeError("Expected a function");var _=h?h.length:0;if(_||(d&=-97,h=m=void 0),g=void 0===g?g:u(l(g),0),v=void 0===v?v:l(v),_-=m?m.length:0,64&d){var w=h,k=m;h=m=void 0}var x=b?void 0:o(f),S=[f,d,p,h,m,w,k,y,g,v];if(x&&i(S,x),f=S[0],d=S[1],p=S[2],h=S[3],m=S[4],!(v=S[9]=void 0===S[9]?b?0:f.length:u(S[9]-_,0))&&24&d&&(d&=-25),d&&1!=d)E=8==d||16==d?n(f,d,v):32!=d&&33!=d||m.length?r.apply(void 0,S):a(f,d,p,h);else var E=t(f,d,p);return c((x?e:s)(E,S),f,d)}}function dce(){if(jM)return w4;jM=1;var e=PT();return w4=function(t,n,r){return n=r?void 0:n,n=t&&null==n?t.length:n,e(t,128,void 0,void 0,void 0,void 0,n)}}function pce(){if(BM)return k4;BM=1;var e=O5();return k4=function(t){return e(t,4)}}function hce(){if(FM)return x4;FM=1;var e=PT();function t(n,r,a){var o=e(n,8,void 0,void 0,void 0,void 0,void 0,r=a?void 0:r);return o.placeholder=t.placeholder,o}return t.placeholder={},x4=t}function mce(){if(UM)return S4;UM=1;var e=xu(),t=os(),n=JX();return S4=function(r){if(!t(r))return!1;var a=e(r);return"[object Error]"==a||"[object DOMException]"==a||"string"==typeof r.message&&"string"==typeof r.name&&!n(r)}}function gce(){if(VM)return E4;VM=1;var e=F_(),t=os();return E4=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function yce(){if(qM)return C4;qM=1;var e=O5(),t=RX();return C4=function(n){return t("function"==typeof n?n:e(n,1))}}function _ce(){if(WM)return R4;WM=1;var e=PT(),t=bJ(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return R4=n}function vce(){if(HM)return A4;HM=1;var e=n5(),t=hk(),n=Ai(),r=j_(),a=t5(),o=B_(),i=r5();return A4=function(s){return n(s)?e(s,o):r(s)?[s]:t(a(i(s)))}}function bce(){return GM||(GM=1,T4={ary:dce(),assign:P5(),clone:pce(),curry:hce(),forEach:OA(),isArray:Ai(),isError:mce(),isFunction:sk(),isWeakMap:gce(),iteratee:yce(),keys:m5(),rearg:_ce(),toInteger:T5(),toPath:vce()}),T4}function tF(){if(KM)return I4;KM=1;var e=G8(),t=bce();return I4=function(n,r,a){return e(t,n,r,a)}}function wce(){if(QM)return P4;QM=1;var e=tF()("debounce",R5());return e.placeholder=JR(),P4=e}function kce(e,t,n=window){const r=v.useRef(t);v.useEffect((()=>{r.current=t}),[t]),v.useEffect((()=>{if(!n)return;const t=e=>r.current(e);return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}),[e,n])}wce();var YM,ZM,$4={exports:{}},O4={};
78
+ */function VZ(){if(WP)return Pn;WP=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case o:case a:case u:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case p:case d:case i:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Pn.ContextConsumer=s,Pn.ContextProvider=i,Pn.Element=t,Pn.ForwardRef=l,Pn.Fragment=r,Pn.Lazy=p,Pn.Memo=d,Pn.Portal=n,Pn.Profiler=o,Pn.StrictMode=a,Pn.Suspense=u,Pn.SuspenseList=f,Pn.isAsyncMode=function(){return!1},Pn.isConcurrentMode=function(){return!1},Pn.isContextConsumer=function(e){return m(e)===s},Pn.isContextProvider=function(e){return m(e)===i},Pn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Pn.isForwardRef=function(e){return m(e)===l},Pn.isFragment=function(e){return m(e)===r},Pn.isLazy=function(e){return m(e)===p},Pn.isMemo=function(e){return m(e)===d},Pn.isPortal=function(e){return m(e)===n},Pn.isProfiler=function(e){return m(e)===o},Pn.isStrictMode=function(e){return m(e)===a},Pn.isSuspense=function(e){return m(e)===u},Pn.isSuspenseList=function(e){return m(e)===f},Pn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===a||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===i||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Pn.typeOf=m,Pn}function qZ(){return HP||(HP=1,mS.exports=VZ()),mS.exports}function s5(){if(GP)return gS;GP=1;var e=xu(),t=os();return gS=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function WZ(){if(KP)return yS;KP=1;var e=s5();return yS=function(t){return e(t)&&t!=+t}}qZ(),WZ(),s5();var vS,QP,bS,YP,wS,ZP,kS,XP,xS,JP,SS,e$,ES,t$,CS,n$,RS,r$,AS,a$,TS,o$,IS,i$,PS,s$,$S,c$,OS,l$,zS,f$,MS,u$,DS,d$,NS,p$,LS,h$,jS,m$,BS,g$,FS,y$,US,_$,Yv=function(e){return UZ(e)&&e.indexOf("%")===e.length-1},HZ=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},_S=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a]};function GZ(){if(QP)return vS;QP=1;var e=fk();return vS=function(){this.__data__=new e,this.size=0}}function KZ(){if(YP)return bS;return YP=1,bS=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function QZ(){if(ZP)return wS;return ZP=1,wS=function(e){return this.__data__.get(e)}}function YZ(){if(XP)return kS;return XP=1,kS=function(e){return this.__data__.has(e)}}function ZZ(){if(JP)return xS;JP=1;var e=fk(),t=_A(),n=vA();return xS=function(r,a){var o=this.__data__;if(o instanceof e){var i=o.__data__;if(!t||i.length<199)return i.push([r,a]),this.size=++o.size,this;o=this.__data__=new n(i)}return o.set(r,a),this.size=o.size,this}}function bA(){if(e$)return SS;e$=1;var e=fk(),t=GZ(),n=KZ(),r=QZ(),a=YZ(),o=ZZ();function i(t){var n=this.__data__=new e(t);this.size=n.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=a,i.prototype.set=o,SS=i}function XZ(){if(t$)return ES;t$=1;return ES=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function JZ(){if(n$)return CS;return n$=1,CS=function(e){return this.__data__.has(e)}}function eX(){if(r$)return RS;r$=1;var e=vA(),t=XZ(),n=JZ();function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,RS=r}function tX(){if(a$)return AS;return a$=1,AS=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}function nX(){if(o$)return TS;return o$=1,TS=function(e,t){return e.has(t)}}function c5(){if(i$)return IS;i$=1;var e=eX(),t=tX(),n=nX();return IS=function(r,a,o,i,s,c){var l=1&o,u=r.length,f=a.length;if(u!=f&&!(l&&f>u))return!1;var d=c.get(r),p=c.get(a);if(d&&p)return d==a&&p==r;var h=-1,m=!0,y=2&o?new e:void 0;for(c.set(r,a),c.set(a,r);++h<u;){var g=r[h],v=a[h];if(i)var b=l?i(v,g,h,a,r,c):i(g,v,h,r,a,c);if(void 0!==b){if(b)continue;m=!1;break}if(y){if(!t(a,(function(e,t){if(!n(y,t)&&(g===e||s(g,e,o,i,c)))return y.push(t)}))){m=!1;break}}else if(g!==v&&!s(g,v,o,i,c)){m=!1;break}}return c.delete(r),c.delete(a),m}}function l5(){if(s$)return PS;s$=1;var e=si().Uint8Array;return PS=e}function rX(){if(c$)return $S;return c$=1,$S=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function aX(){if(l$)return OS;return l$=1,OS=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function oX(){if(f$)return zS;f$=1;var e=H1(),t=l5(),n=yA(),r=c5(),a=rX(),o=aX(),i=e?e.prototype:void 0,s=i?i.valueOf:void 0;return zS=function(e,i,c,l,u,f,d){switch(c){case"[object DataView]":if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=i.byteLength||!f(new t(e),new t(i)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+i);case"[object Error]":return e.name==i.name&&e.message==i.message;case"[object RegExp]":case"[object String]":return e==i+"";case"[object Map]":var p=a;case"[object Set]":var h=1&l;if(p||(p=o),e.size!=i.size&&!h)return!1;var m=d.get(e);if(m)return m==i;l|=2,d.set(e,i);var y=r(p(e),p(i),l,u,f,d);return d.delete(e),y;case"[object Symbol]":if(s)return s.call(e)==s.call(i)}return!1}}function wA(){if(u$)return MS;return u$=1,MS=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}}function f5(){if(d$)return DS;d$=1;var e=wA(),t=Ai();return DS=function(n,r,a){var o=r(n);return t(n)?o:e(o,a(n))}}function iX(){if(p$)return NS;return p$=1,NS=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}}function u5(){if(h$)return LS;return h$=1,LS=function(){return[]}}function kA(){if(m$)return jS;m$=1;var e=iX(),t=u5(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return jS=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function sX(){if(g$)return BS;return g$=1,BS=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function cX(){if(y$)return FS;y$=1;var e=xu(),t=os();return FS=function(n){return t(n)&&"[object Arguments]"==e(n)}}function xA(){if(_$)return US;_$=1;var e=cX(),t=os(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!a.call(e,"callee")};return US=o}var VS,v$,b$,qS,w$,WS,k$,HS,x$,GS,S$,my={exports:{}};function lX(){if(v$)return VS;return v$=1,VS=function(){return!1}}function SA(){return b$||(b$=1,e=my,t=my.exports,n=si(),r=lX(),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r,e.exports=s),my.exports;var e,t,n,r,a,o,i,s}function EA(){if(w$)return qS;w$=1;var e=/^(?:0|[1-9]\d*)$/;return qS=function(t,n){var r=typeof t;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function CA(){if(k$)return WS;k$=1;return WS=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function fX(){if(x$)return HS;x$=1;var e=xu(),t=CA(),n=os(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,HS=function(a){return n(a)&&t(a.length)&&!!r[e(a)]}}function RA(){if(S$)return GS;return S$=1,GS=function(e){return function(t){return e(t)}}}my.exports;var E$,KS,C$,QS,R$,YS,A$,ZS,T$,XS,I$,JS,P$,e6,$$,t6,O$,n6,z$,r6,M$,a6,D$,o6,N$,i6,L$,s6,j$,c6,B$,l6,F$,f6,U$,u6,V$,d6,q$,p6,W$,h6,H$,m6,G$,g6,K$,y6,Q$,_6,Y$,v6,Z$,b6,X$,w6,J$,k6,eO,x6,tO,S6,nO,E6,rO,C6,aO,R6,oO,A6,iO,T6,sO,I6,cO,P6,lO,$6,fO,O6,uO,z6,dO,M6,pO,D6,hO,N6,mO,L6,gO,j6,yO,B6,_O,F6,vO,U6,bO,V6,wO,q6,kO,W6,xO,gy={exports:{}};function AA(){return E$||(E$=1,e=gy,t=gy.exports,n=J7(),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,o=a&&a.exports===r&&n.process,i=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch{}}(),e.exports=i),gy.exports;var e,t,n,r,a,o,i}function d5(){if(C$)return KS;C$=1;var e=fX(),t=RA(),n=AA(),r=n&&n.isTypedArray,a=r?t(r):e;return KS=a}function p5(){if(R$)return QS;R$=1;var e=sX(),t=xA(),n=Ai(),r=SA(),a=EA(),o=d5(),i=Object.prototype.hasOwnProperty;return QS=function(s,c){var l=n(s),u=!l&&t(s),f=!l&&!u&&r(s),d=!l&&!u&&!f&&o(s),p=l||u||f||d,h=p?e(s.length,String):[],m=h.length;for(var y in s)(c||i.call(s,y))&&(!p||!("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,m)))&&h.push(y);return h}}function TA(){if(A$)return YS;A$=1;var e=Object.prototype;return YS=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function h5(){if(T$)return ZS;return T$=1,ZS=function(e,t){return function(n){return e(t(n))}}}function uX(){if(I$)return XS;I$=1;var e=h5()(Object.keys,Object);return XS=e}function m5(){if(P$)return JS;P$=1;var e=TA(),t=uX(),n=Object.prototype.hasOwnProperty;return JS=function(r){if(!e(r))return t(r);var a=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&a.push(o);return a}}function g5(){if($$)return e6;$$=1;var e=sk(),t=CA();return e6=function(n){return null!=n&&t(n.length)&&!e(n)}}function dk(){if(O$)return t6;O$=1;var e=p5(),t=m5(),n=g5();return t6=function(r){return n(r)?e(r):t(r)}}function y5(){if(z$)return n6;z$=1;var e=f5(),t=kA(),n=dk();return n6=function(r){return e(r,n,t)}}function dX(){if(M$)return r6;M$=1;var e=y5(),t=Object.prototype.hasOwnProperty;return r6=function(n,r,a,o,i,s){var c=1&a,l=e(n),u=l.length;if(u!=e(r).length&&!c)return!1;for(var f=u;f--;){var d=l[f];if(!(c?d in r:t.call(r,d)))return!1}var p=s.get(n),h=s.get(r);if(p&&h)return p==r&&h==n;var m=!0;s.set(n,r),s.set(r,n);for(var y=c;++f<u;){var g=n[d=l[f]],v=r[d];if(o)var b=c?o(v,g,d,r,n,s):o(g,v,d,n,r,s);if(!(void 0===b?g===v||i(g,v,a,o,s):b)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var _=n.constructor,w=r.constructor;_!=w&&"constructor"in n&&"constructor"in r&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(m=!1)}return s.delete(n),s.delete(r),m}}function pX(){if(D$)return a6;D$=1;var e=Am()(si(),"DataView");return a6=e}function hX(){if(N$)return o6;N$=1;var e=Am()(si(),"Promise");return o6=e}function mX(){if(L$)return i6;L$=1;var e=Am()(si(),"Set");return i6=e}function _5(){if(j$)return s6;j$=1;var e=Am()(si(),"WeakMap");return s6=e}function F_(){if(B$)return c6;B$=1;var e=pX(),t=_A(),n=hX(),r=mX(),a=_5(),o=xu(),i=e5(),s="[object Map]",c="[object Promise]",l="[object Set]",u="[object WeakMap]",f="[object DataView]",d=i(e),p=i(t),h=i(n),m=i(r),y=i(a),g=o;return(e&&g(new e(new ArrayBuffer(1)))!=f||t&&g(new t)!=s||n&&g(n.resolve())!=c||r&&g(new r)!=l||a&&g(new a)!=u)&&(g=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?i(n):"";if(r)switch(r){case d:return f;case p:return s;case h:return c;case m:return l;case y:return u}return t}),c6=g}function gX(){if(F$)return l6;F$=1;var e=bA(),t=c5(),n=oX(),r=dX(),a=F_(),o=Ai(),i=SA(),s=d5(),c="[object Arguments]",l="[object Array]",u="[object Object]",f=Object.prototype.hasOwnProperty;return l6=function(d,p,h,m,y,g){var v=o(d),b=o(p),_=v?l:a(d),w=b?l:a(p),k=(_=_==c?u:_)==u,x=(w=w==c?u:w)==u,S=_==w;if(S&&i(d)){if(!i(p))return!1;v=!0,k=!1}if(S&&!k)return g||(g=new e),v||s(d)?t(d,p,h,m,y,g):n(d,p,_,h,m,y,g);if(!(1&h)){var E=k&&f.call(d,"__wrapped__"),A=x&&f.call(p,"__wrapped__");if(E||A){var z=E?d.value():d,C=A?p.value():p;return g||(g=new e),y(z,C,h,m,g)}}return!!S&&(g||(g=new e),r(d,p,h,m,y,g))}}function v5(){if(U$)return f6;U$=1;var e=gX(),t=os();return f6=function n(r,a,o,i,s){return r===a||(null==r||null==a||!t(r)&&!t(a)?r!=r&&a!=a:e(r,a,o,i,n,s))},f6}function yX(){if(V$)return u6;V$=1;var e=bA(),t=v5();return u6=function(n,r,a,o){var i=a.length,s=i,c=!o;if(null==n)return!s;for(n=Object(n);i--;){var l=a[i];if(c&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++i<s;){var u=(l=a[i])[0],f=n[u],d=l[1];if(c&&l[2]){if(void 0===f&&!(u in n))return!1}else{var p=new e;if(o)var h=o(f,d,u,n,r,p);if(!(void 0===h?t(d,f,3,o,p):h))return!1}}return!0}}function b5(){if(q$)return d6;q$=1;var e=Uc();return d6=function(t){return t==t&&!e(t)}}function _X(){if(W$)return p6;W$=1;var e=b5(),t=dk();return p6=function(n){for(var r=t(n),a=r.length;a--;){var o=r[a],i=n[o];r[a]=[o,i,e(i)]}return r}}function w5(){if(H$)return h6;return H$=1,h6=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function vX(){if(G$)return m6;G$=1;var e=yX(),t=_X(),n=w5();return m6=function(r){var a=t(r);return 1==a.length&&a[0][2]?n(a[0][0],a[0][1]):function(t){return t===r||e(t,r,a)}}}function bX(){if(K$)return g6;return K$=1,g6=function(e,t){return null!=e&&t in Object(e)}}function wX(){if(Q$)return y6;Q$=1;var e=a5(),t=xA(),n=Ai(),r=EA(),a=CA(),o=B_();return y6=function(i,s,c){for(var l=-1,u=(s=e(s,i)).length,f=!1;++l<u;){var d=o(s[l]);if(!(f=null!=i&&c(i,d)))break;i=i[d]}return f||++l!=u?f:!!(u=null==i?0:i.length)&&a(u)&&r(d,u)&&(n(i)||t(i))}}function kX(){if(Y$)return _6;Y$=1;var e=bX(),t=wX();return _6=function(n,r){return null!=n&&t(n,r,e)}}function xX(){if(Z$)return v6;Z$=1;var e=v5(),t=i5(),n=kX(),r=gA(),a=b5(),o=w5(),i=B_();return v6=function(s,c){return r(s)&&a(c)?o(i(s),c):function(r){var a=t(r,s);return void 0===a&&a===c?n(r,s):e(c,a,3)}}}function IA(){if(X$)return b6;return X$=1,b6=function(e){return e}}function SX(){if(J$)return w6;return J$=1,w6=function(e){return function(t){return null==t?void 0:t[e]}}}function EX(){if(eO)return k6;eO=1;var e=o5();return k6=function(t){return function(n){return e(n,t)}}}function CX(){if(tO)return x6;tO=1;var e=SX(),t=EX(),n=gA(),r=B_();return x6=function(a){return n(a)?e(r(a)):t(a)}}function RX(){if(nO)return S6;nO=1;var e=vX(),t=xX(),n=IA(),r=Ai(),a=CX();return S6=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?r(o)?t(o[0],o[1]):e(o):a(o)}}function AX(){if(rO)return E6;return rO=1,E6=function(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}}function TX(){if(aO)return C6;return aO=1,C6=function(e){return e!=e}}function IX(){if(oO)return R6;return oO=1,R6=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}}function PX(){if(iO)return A6;iO=1;var e=AX(),t=TX(),n=IX();return A6=function(r,a,o){return a==a?n(r,a,o):e(r,t,o)}}function $X(){if(sO)return T6;sO=1;var e=PX();return T6=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function k5(){if(cO)return I6;return cO=1,I6=function(){}}function OX(){if(lO)return P6;lO=1;var e=H1(),t=xA(),n=Ai(),r=e?e.isConcatSpreadable:void 0;return P6=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function zX(){if(fO)return $6;fO=1;var e=wA(),t=OX();return $6=function n(r,a,o,i,s){var c=-1,l=r.length;for(o||(o=t),s||(s=[]);++c<l;){var u=r[c];a>0&&o(u)?a>1?n(u,a-1,o,i,s):e(s,u):i||(s[s.length]=u)}return s},$6}function PA(){if(uO)return O6;return uO=1,O6=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}}function MX(){if(dO)return z6;dO=1;var e=PA(),t=Math.max;return z6=function(n,r,a){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,i=-1,s=t(o.length-r,0),c=Array(s);++i<s;)c[i]=o[r+i];i=-1;for(var l=Array(r+1);++i<r;)l[i]=o[i];return l[r]=a(c),e(n,this,l)}},z6}function DX(){if(pO)return M6;return pO=1,M6=function(e){return function(){return e}}}function x5(){if(hO)return D6;hO=1;var e=Am(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return D6=t}function NX(){if(mO)return N6;mO=1;var e=DX(),t=x5(),n=IA();return N6=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function S5(){if(gO)return L6;gO=1;var e=Date.now;return L6=function(t){var n=0,r=0;return function(){var a=e(),o=16-(a-r);if(r=a,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},L6}function E5(){if(yO)return j6;yO=1;var e=NX(),t=S5()(e);return j6=t}function LX(){if(_O)return B6;_O=1;var e=si();return B6=function(){return e.Date.now()}}function jX(){if(vO)return F6;vO=1;var e=/\s/;return F6=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function BX(){if(bO)return U6;bO=1;var e=jX(),t=/^\s+/;return U6=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function C5(){if(wO)return V6;wO=1;var e=BX(),t=Uc(),n=j_(),r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt;return V6=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var c="function"==typeof s.valueOf?s.valueOf():s;s=t(c)?c+"":c}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?i(s.slice(2),l?2:8):r.test(s)?NaN:+s}}function R5(){if(kO)return q6;kO=1;var e=Uc(),t=LX(),n=C5(),r=Math.max,a=Math.min;return q6=function(o,i,s){var c,l,u,f,d,p,h=0,m=!1,y=!1,g=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function v(e){var t=c,n=l;return c=l=void 0,h=e,f=o.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=i||t<0||y&&e-h>=u}function _(){var e=t();if(b(e))return w(e);d=setTimeout(_,function(e){var t=i-(e-p);return y?a(t,u-(e-h)):t}(e))}function w(e){return d=void 0,g&&c?v(e):(c=l=void 0,f)}function k(){var e=t(),n=b(e);if(c=arguments,l=this,p=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(_,i),m?v(e):f}(p);if(y)return clearTimeout(d),d=setTimeout(_,i),v(p)}return void 0===d&&(d=setTimeout(_,i)),f}return i=n(i)||0,e(s)&&(m=!!s.leading,u=(y="maxWait"in s)?r(n(s.maxWait)||0,i):u,g="trailing"in s?!!s.trailing:g),k.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=p=l=d=void 0},k.flush=function(){return void 0===d?f:w(t())},k},q6}function FX(){if(xO)return W6;xO=1;var e=R5(),t=Uc();return W6=function(n,r,a){var o=!0,i=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(a)&&(o="leading"in a?!!a.leading:o,i="trailing"in a?!!a.trailing:i),e(n,r,{leading:o,maxWait:r,trailing:i})}}gy.exports;var UX=FX();const VX=Ql(UX);function Jy(e){return(Jy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SO(Object(n),!0).forEach((function(t){qX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qX(e,t,n){return(t=WX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WX(e){var t=HX(e,"string");return"symbol"==Jy(t)?t:t+""}function HX(e,t){if("object"!=Jy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Jy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function GX(e,t){return ZX(e)||YX(e,t)||QX(e,t)||KX()}function KX(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function QX(e,t){if(e){if("string"==typeof e)return EO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EO(e,t)}}function EO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YX(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0!==t)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function ZX(e){if(Array.isArray(e))return e}var H6,CO,G6,RO,K6,AO,Q6,TO,Y6,IO,Z6,PO,X6,$O,J6,OO,eE,zO,tE,MO,nE,DO,rE,NO,aE,LO,XX=v.forwardRef((function(e,t){var n=e.aspect,r=e.initialDimension,a=void 0===r?{width:-1,height:-1}:r,o=e.width,i=void 0===o?"100%":o,s=e.height,c=void 0===s?"100%":s,l=e.minWidth,u=void 0===l?0:l,f=e.minHeight,d=e.maxHeight,p=e.children,h=e.debounce,m=void 0===h?0:h,y=e.id,g=e.className,b=e.onResize,_=e.style,w=void 0===_?{}:_,k=v.useRef(null),x=v.useRef();x.current=b,v.useImperativeHandle(t,(function(){return Object.defineProperty(k.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),k.current},configurable:!0})}));var S=GX(v.useState({containerWidth:a.width,containerHeight:a.height}),2),E=S[0],A=S[1],z=v.useCallback((function(e,t){A((function(n){var r=Math.round(e),a=Math.round(t);return n.containerWidth===r&&n.containerHeight===a?n:{containerWidth:r,containerHeight:a}}))}),[]);v.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,a=n.height;z(r,a),null===(t=x.current)||void 0===t||t.call(x,r,a)};m>0&&(e=VX(e,m,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=k.current.getBoundingClientRect(),r=n.width,a=n.height;return z(r,a),t.observe(k.current),function(){t.disconnect()}}),[z,m]);var C=v.useMemo((function(){var e=E.containerWidth,t=E.containerHeight;if(e<0||t<0)return null;_S(Yv(i)||Yv(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",i,c),_S(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Yv(i)?e:i,a=Yv(c)?t:c;n&&n>0&&(r?a=r/n:a&&(r=a*n),d&&a>d&&(a=d)),_S(r>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,a,i,c,u,f,n);var o=!Array.isArray(p)&&HZ(p.type).endsWith("Chart");return ze.Children.map(p,(function(e){return ze.isValidElement(e)?v.cloneElement(e,Zv({width:r,height:a},o?{style:Zv({height:"100%",width:"100%",maxHeight:a,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,c,d,f,u,E,i]);return ze.createElement("div",{id:y?"".concat(y):void 0,className:n7("recharts-responsive-container",g),style:Zv(Zv({},w),{},{width:i,height:c,minWidth:u,minHeight:f,maxHeight:d}),ref:k},C)}));function $A(){if(CO)return H6;CO=1;var e=h5()(Object.getPrototypeOf,Object);return H6=e}function JX(){if(RO)return G6;RO=1;var e=xu(),t=$A(),n=os(),r=Function.prototype,a=Object.prototype,o=r.toString,i=a.hasOwnProperty,s=o.call(Object);return G6=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var a=t(r);if(null===a)return!0;var c=i.call(a,"constructor")&&a.constructor;return"function"==typeof c&&c instanceof c&&o.call(c)==s}}function eJ(){if(AO)return K6;AO=1;var e=C5(),t=1/0;return K6=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function A5(){if(TO)return Q6;TO=1;var e=x5();return Q6=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function T5(){if(IO)return Y6;IO=1;var e=eJ();return Y6=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function OA(){if(PO)return Z6;return PO=1,Z6=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function I5(){if($O)return X6;$O=1;var e=A5(),t=yA(),n=Object.prototype.hasOwnProperty;return X6=function(r,a,o){var i=r[a];(!n.call(r,a)||!t(i,o)||void 0===o&&!(a in r))&&e(r,a,o)}}function pk(){if(OO)return J6;OO=1;var e=I5(),t=A5();return J6=function(n,r,a,o){var i=!a;a||(a={});for(var s=-1,c=r.length;++s<c;){var l=r[s],u=o?o(a[l],n[l],l,a,n):void 0;void 0===u&&(u=n[l]),i?t(a,l,u):e(a,l,u)}return a}}function P5(){if(zO)return eE;zO=1;var e=pk(),t=dk();return eE=function(n,r){return n&&e(r,t(r),n)}}function tJ(){if(MO)return tE;return MO=1,tE=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function nJ(){if(DO)return nE;DO=1;var e=Uc(),t=TA(),n=tJ(),r=Object.prototype.hasOwnProperty;return nE=function(a){if(!e(a))return n(a);var o=t(a),i=[];for(var s in a)"constructor"==s&&(o||!r.call(a,s))||i.push(s);return i}}function zA(){if(NO)return rE;NO=1;var e=p5(),t=nJ(),n=g5();return rE=function(r){return n(r)?e(r,!0):t(r)}}function rJ(){if(LO)return aE;LO=1;var e=pk(),t=zA();return aE=function(n,r){return n&&e(r,t(r),n)}}var jO,oE,BO,iE,FO,sE,UO,cE,VO,lE,qO,fE,WO,uE,HO,dE,GO,pE,KO,hE,QO,mE,YO,gE,ZO,yE,XO,_E,JO,vE,ez,bE,tz,wE,nz,kE,rz,xE,az,SE,oz,EE,iz,yy={exports:{}};function aJ(){return jO||(jO=1,e=yy,t=yy.exports,n=si(),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,o=a&&a.exports===r?n.Buffer:void 0,i=o?o.allocUnsafe:void 0,e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}),yy.exports;var e,t,n,r,a,o,i}function hk(){if(BO)return oE;return BO=1,oE=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function oJ(){if(FO)return iE;FO=1;var e=pk(),t=kA();return iE=function(n,r){return e(n,t(n),r)}}function $5(){if(UO)return sE;UO=1;var e=wA(),t=$A(),n=kA(),r=u5(),a=Object.getOwnPropertySymbols;return sE=a?function(r){for(var a=[];r;)e(a,n(r)),r=t(r);return a}:r}function iJ(){if(VO)return cE;VO=1;var e=pk(),t=$5();return cE=function(n,r){return e(n,t(n),r)}}function sJ(){if(qO)return lE;qO=1;var e=f5(),t=$5(),n=zA();return lE=function(r){return e(r,n,t)}}function cJ(){if(WO)return fE;WO=1;var e=Object.prototype.hasOwnProperty;return fE=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}function MA(){if(HO)return uE;HO=1;var e=l5();return uE=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function lJ(){if(GO)return dE;GO=1;var e=MA();return dE=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function fJ(){if(KO)return pE;KO=1;var e=/\w*$/;return pE=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function uJ(){if(QO)return hE;QO=1;var e=H1(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return hE=function(e){return n?Object(n.call(e)):{}}}function dJ(){if(YO)return mE;YO=1;var e=MA();return mE=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function pJ(){if(ZO)return gE;ZO=1;var e=MA(),t=lJ(),n=fJ(),r=uJ(),a=dJ();return gE=function(o,i,s){var c=o.constructor;switch(i){case"[object ArrayBuffer]":return e(o);case"[object Boolean]":case"[object Date]":return new c(+o);case"[object DataView]":return t(o,s);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(o,s);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}}}function mk(){if(XO)return yE;XO=1;var e=Uc(),t=Object.create;return yE=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var a=new n;return n.prototype=void 0,a}}()}function hJ(){if(JO)return _E;JO=1;var e=mk(),t=$A(),n=TA();return _E=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function mJ(){if(ez)return vE;ez=1;var e=F_(),t=os();return vE=function(n){return t(n)&&"[object Map]"==e(n)}}function gJ(){if(tz)return bE;tz=1;var e=mJ(),t=RA(),n=AA(),r=n&&n.isMap,a=r?t(r):e;return bE=a}function yJ(){if(nz)return wE;nz=1;var e=F_(),t=os();return wE=function(n){return t(n)&&"[object Set]"==e(n)}}function _J(){if(rz)return kE;rz=1;var e=yJ(),t=RA(),n=AA(),r=n&&n.isSet,a=r?t(r):e;return kE=a}function O5(){if(az)return xE;az=1;var e=bA(),t=OA(),n=I5(),r=P5(),a=rJ(),o=aJ(),i=hk(),s=oJ(),c=iJ(),l=y5(),u=sJ(),f=F_(),d=cJ(),p=pJ(),h=hJ(),m=Ai(),y=SA(),g=gJ(),v=Uc(),b=_J(),_=dk(),w=zA(),k="[object Arguments]",x="[object Function]",S="[object Object]",E={};return E[k]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[S]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[x]=E["[object WeakMap]"]=!1,xE=function A(z,C,I,T,R,P){var j,O=1&C,N=2&C,M=4&C;if(I&&(j=R?I(z,T,R,P):I(z)),void 0!==j)return j;if(!v(z))return z;var D=m(z);if(D){if(j=d(z),!O)return i(z,j)}else{var F=f(z),L=F==x||"[object GeneratorFunction]"==F;if(y(z))return o(z,O);if(F==S||F==k||L&&!R){if(j=N||L?{}:h(z),!O)return N?c(z,a(j,z)):s(z,r(j,z))}else{if(!E[F])return R?z:{};j=p(z,F,O)}}P||(P=new e);var V=P.get(z);if(V)return V;P.set(z,j),b(z)?z.forEach((function(e){j.add(A(e,C,I,e,z,P))})):g(z)&&z.forEach((function(e,t){j.set(t,A(e,C,I,t,z,P))}));var q=D?void 0:(M?N?u:l:N?w:_)(z);return t(q||z,(function(e,t){q&&(e=z[t=e]),n(j,t,A(e,C,I,t,z,P))})),j},xE}function vJ(){if(oz)return SE;oz=1;var e=zX();return SE=function(t){return(null==t?0:t.length)?e(t,1):[]}}function bJ(){if(iz)return EE;iz=1;var e=vJ(),t=MX(),n=E5();return EE=function(r){return n(t(r,void 0,e),r+"")}}yy.exports;const wJ={light:"",dark:".dark"},z5=v.createContext(null);function M5(){const e=v.useContext(z5);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const kJ=v.forwardRef((({id:e,className:t,children:n,config:r,...a},o)=>{const i=v.useId(),s=`chart-${e||i.replace(/:/g,"")}`;return F.jsx(z5.Provider,{value:{config:r},children:F.jsxs("div",{"data-chart":s,ref:o,className:$e("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...a,children:[F.jsx(xJ,{id:s,config:r}),F.jsx(XX,{children:n})]})})}));kJ.displayName="Chart";const xJ=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?F.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(wJ).map((([t,r])=>`\n${r} [data-chart=${e}] {\n${n.map((([e,n])=>{var r;const a=(null==(r=n.theme)?void 0:r[t])||n.color;return a?` --color-${e}: ${a};`:null})).join("\n")}\n}\n`)).join("\n")}}):null},SJ=v.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:a=!1,hideIndicator:o=!1,label:i,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:f,labelKey:d},p)=>{const{config:h}=M5(),m=v.useMemo((()=>{var e;if(a||null==t||!t.length)return null;const[n]=t,r=`${d||(null==n?void 0:n.dataKey)||(null==n?void 0:n.name)||"value"}`,o=CC(h,n,r),l=d||"string"!=typeof i?null==o?void 0:o.label:(null==(e=h[i])?void 0:e.label)||i;return s?F.jsx("div",{className:$e("font-medium",c),children:s(l,t)}):l?F.jsx("div",{className:$e("font-medium",c),children:l}):null}),[i,s,t,a,c,h,d]);if(!e||null==t||!t.length)return null;const y=1===t.length&&"dot"!==r,g=t.length>10;return F.jsxs("div",{ref:p,className:$e("grid min-w-[8rem] items-start gap-1.5 rounded-sm border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",g&&"min-w-[16rem]",n),children:[y?null:m,F.jsx("div",{className:$e("grid gap-1.5",g&&"grid-cols-2 gap-x-4"),children:t.map(((e,t)=>{var n;const a=`${f||e.name||e.dataKey||"value"}`,i=CC(h,e,a),s=u||(null==(n=e.payload)?void 0:n.fill)||e.color||"";return F.jsx("div",{className:$e("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center"),children:l&&void 0!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.payload)&&e.name?l(e.value,e.name,e,t,[e.payload]):F.jsxs(F.Fragment,{children:[null!=i&&i.icon?F.jsx(i.icon,{}):!o&&F.jsx("div",{className:$e("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===r,"my-0.5":y&&"dashed"===r}),style:{"--color-bg":s,"--color-border":s}}),F.jsxs("div",{className:$e("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[F.jsxs("div",{className:"grid gap-1.5",children:[y?m:null,F.jsx("span",{className:"text-muted-foreground",children:(null==i?void 0:i.label)||e.name})]}),e.value&&F.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));SJ.displayName="ChartTooltip";const EJ=v.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:a,hoveredItem:o},i)=>{const{config:s}=M5(),c=v.useRef({});return v.useEffect((()=>{if(o&&c.current[o]){const e=c.current[o];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[o]),null!=n&&n.length?F.jsx("div",{ref:i,className:$e("flex h-[150px] w-full flex-wrap items-center justify-center gap-6 overflow-y-auto pb-10",e),children:n.map((e=>{var n;const i=`${r||e.dataKey||"value"}`,l=CC(s,e,i),u=!!a&&i===o;return F.jsxs("div",{ref:e=>{e?c.current[i]=e:delete c.current[i]},className:$e("group flex cursor-pointer select-none items-center gap-2 text-base transition-all duration-150",u?"scale-105 text-black":o?"text-gray-700 opacity-40":"text-gray-700"),onMouseEnter:()=>null==a?void 0:a(e.dataKey),onMouseLeave:()=>null==a?void 0:a(null),children:[null!=l&&l.icon&&!t?F.jsx(l.icon,{}):F.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color||""}}),F.jsx("span",{className:"min-w-[max-content]",children:(null==l?void 0:l.label)||e.name})]},(null==(n=e.value)?void 0:n.toString())||i)}))}):null}));function CC(e,t,n){if("object"!=typeof t||null===t)return;const r="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0;let a=n;return n in t&&"string"==typeof t[n]?a=t[n]:r&&n in r&&"string"==typeof r[n]&&(a=r[n]),a in e?e[a]:e[n]}function gk(e){const t=v.useRef({value:e,previous:e});return v.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function yk(e){const[t,n]=v.useState(void 0);return Mo((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}EJ.displayName="ChartLegend";const D5="Checkbox",[CJ,$We]=ii(D5),[RJ,AJ]=CJ(D5),TJ=v.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:c="on",onCheckedChange:l,...u}=e,[f,d]=v.useState(null),p=yn(t,(e=>d(e))),h=v.useRef(!1),m=!f||!!f.closest("form"),[y=!1,g]=wp({prop:a,defaultProp:o,onChange:l}),b=v.useRef(y);return v.useEffect((()=>{const e=null==f?void 0:f.form;if(e){const t=()=>g(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,g]),v.createElement(RJ,{scope:n,state:y,disabled:s},v.createElement(St.button,Le({type:"button",role:"checkbox","aria-checked":im(y)?"mixed":y,"aria-required":i,"data-state":N5(y),"data-disabled":s?"":void 0,disabled:s,value:c},u,{ref:p,onKeyDown:lt(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:lt(e.onClick,(e=>{g((e=>!!im(e)||!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&v.createElement($J,{control:f,bubbles:!h.current,name:r,value:c,checked:y,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),IJ="CheckboxIndicator",PJ=v.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=AJ(IJ,n);return v.createElement(Ws,{present:r||im(o.state)||!0===o.state},v.createElement(St.span,Le({"data-state":N5(o.state),"data-disabled":o.disabled?"":void 0},a,{ref:t,style:{pointerEvents:"none",...e.style}})))})),$J=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=gk(n),s=yk(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=im(n),a.call(e,!im(n)&&n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Le({type:"checkbox","aria-hidden":!0,defaultChecked:!im(n)&&n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function im(e){return"indeterminate"===e}function N5(e){return im(e)?"indeterminate":e?"checked":"unchecked"}const L5=TJ,OJ=PJ,sz=Yl("",{variants:{size:{default:"h-4 w-4",20:"size-5",24:"size-6",32:"size-8"},variant:{default:"peer shrink-0 rounded-xs border border-slate-700 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:border-slate-700 data-[state=checked]:bg-slate-700 data-[state=checked]:text-primary-foreground",dark:"shrink-0 bg-slate-900_50 data-[state=checked]:bg-slate-700 rounded-[4px] border-[2px] data-[state=checked]:text-primary-foreground border-slate-100 [&_svg]:size-[24px] [&_svg]:border-none"}},defaultVariants:{size:"default",variant:"default"}}),j5=v.forwardRef((({className:e,size:t,variant:n,...r},a)=>F.jsx(L5,{ref:a,className:$e(e,sz({size:t,variant:n})),...r,children:F.jsx(OJ,{className:$e("flex items-center justify-center text-current"),children:F.jsx(eA,{className:$e(sz({size:t}))})})})));j5.displayName=L5.displayName;var cz=1,zJ=.9,MJ=.8,DJ=.17,CE=.1,RE=.999,NJ=.9999,LJ=.99,jJ=/[\\\/_+.#"@\[\(\{&]/,BJ=/[\\\/_+.#"@\[\(\{&]/g,FJ=/[\s-]/,B5=/[\s-]/g;function RC(e,t,n,r,a,o,i){if(o===t.length)return a===e.length?cz:LJ;var s=`${a},${o}`;if(void 0!==i[s])return i[s];for(var c,l,u,f,d=r.charAt(o),p=n.indexOf(d,a),h=0;p>=0;)(c=RC(e,t,n,r,p+1,o+1,i))>h&&(p===a?c*=cz:jJ.test(e.charAt(p-1))?(c*=MJ,(u=e.slice(a,p-1).match(BJ))&&a>0&&(c*=Math.pow(RE,u.length))):FJ.test(e.charAt(p-1))?(c*=zJ,(f=e.slice(a,p-1).match(B5))&&a>0&&(c*=Math.pow(RE,f.length))):(c*=DJ,a>0&&(c*=Math.pow(RE,p-a))),e.charAt(p)!==t.charAt(o)&&(c*=NJ)),(c<CE&&n.charAt(p-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(p-1)!==r.charAt(o))&&((l=RC(e,t,n,r,p+1,o+2,i))*CE>c&&(c=l*CE)),c>h&&(h=c),p=n.indexOf(d,p+1);return i[s]=h,h}function lz(e){return e.toLowerCase().replace(B5," ")}function UJ(e,t,n){return RC(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,lz(e),lz(t),0,0,{})}var ny='[cmdk-group=""]',AE='[cmdk-group-items=""]',VJ='[cmdk-group-heading=""]',DA='[cmdk-item=""]',fz=`${DA}:not([aria-disabled="true"])`,AC="cmdk-item-select",em="data-value",qJ=(e,t,n)=>UJ(e,t,n),F5=v.createContext(void 0),U_=()=>v.useContext(F5),U5=v.createContext(void 0),NA=()=>v.useContext(U5),V5=v.createContext(void 0),q5=v.forwardRef(((e,t)=>{let n=s1((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=s1((()=>new Set)),a=s1((()=>new Map)),o=s1((()=>new Map)),i=s1((()=>new Set)),s=W5(e),{label:c,children:l,value:u,onValueChange:f,filter:d,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:y=!0,...g}=e,b=v.useId(),_=v.useId(),w=v.useId(),k=v.useRef(null),x=tee();mm((()=>{if(void 0!==u){let e=u.trim();n.current.value=e,S.emit()}}),[u]),mm((()=>{x(6,T)}),[]);let S=v.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var a,o,i;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)I(),z(),x(1,C);else if("value"===e&&(r||x(5,T),void 0!==(null==(a=s.current)?void 0:a.value))){let e=t??"";return void(null==(i=(o=s.current).onValueChange)||i.call(o,e))}S.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),E=v.useMemo((()=>({value:(e,t,r)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,A(t,r)),x(2,(()=>{z(),S.emit()})))},item:(e,t)=>(r.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),x(3,(()=>{I(),z(),n.current.value||C(),S.emit()})),()=>{o.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=R();x(4,(()=>{I(),(null==t?void 0:t.getAttribute("id"))===e&&C(),S.emit()}))}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],disablePointerSelection:m,listId:b,inputId:w,labelId:_,listInnerRef:k})),[]);function A(e,t){var r,a;let o=null!=(a=null==(r=s.current)?void 0:r.filter)?a:qJ;return e?o(e,n.current.search,t):0}function z(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=a.current.get(n),o=0;r.forEach((t=>{let n=e.get(t);o=Math.max(n,o)})),t.push([n,o])}));let r=k.current;P().sort(((t,n)=>{var r,a;let o=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(a=e.get(o))?a:0)})).forEach((e=>{let t=e.closest(AE);t?t.appendChild(e.parentElement===t?e:e.closest(`${AE} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${AE} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=k.current.querySelector(`${ny}[${em}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function C(){let e=P().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(em);S.setState("value",t||void 0)}function I(){var e,t,i,c;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let l=0;for(let a of r.current){let r=A(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(c=null==(i=o.current.get(a))?void 0:i.keywords)?c:[]);n.current.filtered.items.set(a,r),r>0&&l++}for(let[e,t]of a.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=l}function T(){var e,t,n;let r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(ny))?void 0:t.querySelector(VJ))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=k.current)?void 0:e.querySelector(`${DA}[aria-selected="true"]`)}function P(){var e;return Array.from(null==(e=k.current)?void 0:e.querySelectorAll(fz))}function j(e){let t=P()[e];t&&S.setState("value",t.getAttribute(em))}function O(e){var t;let n=R(),r=P(),a=r.findIndex((e=>e===n)),o=r[a+e];null!=(t=s.current)&&t.loop&&(o=a+e<0?r[r.length-1]:a+e===r.length?r[0]:r[a+e]),o&&S.setState("value",o.getAttribute(em))}function N(e){let t,n=R(),r=null==n?void 0:n.closest(ny);for(;r&&!t;)r=e>0?JJ(r,ny):eee(r,ny),t=null==r?void 0:r.querySelector(fz);t?S.setState("value",t.getAttribute(em)):O(e)}let M=()=>j(P().length-1),D=e=>{e.preventDefault(),e.metaKey?M():e.altKey?N(1):O(1)},F=e=>{e.preventDefault(),e.metaKey?j(0):e.altKey?N(-1):O(-1)};return v.createElement(St.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":y&&e.ctrlKey&&D(e);break;case"ArrowDown":D(e);break;case"p":case"k":y&&e.ctrlKey&&F(e);break;case"ArrowUp":F(e);break;case"Home":e.preventDefault(),j(0);break;case"End":e.preventDefault(),M();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=R();if(t){let e=new Event(AC);t.dispatchEvent(e)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:ree},c),_k(e,(e=>v.createElement(U5.Provider,{value:S},v.createElement(F5.Provider,{value:E},e)))))})),WJ=v.forwardRef(((e,t)=>{var n,r;let a=v.useId(),o=v.useRef(null),i=v.useContext(V5),s=U_(),c=W5(e),l=null!=(r=null==(n=c.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;mm((()=>{if(!l)return s.item(a,null==i?void 0:i.id)}),[l]);let u=H5(a,o,[e.value,e.children,o],e.keywords),f=NA(),d=gm((e=>e.value&&e.value===u.current)),p=gm((e=>!(!l&&!1!==s.filter())||(!e.search||e.filtered.items.get(a)>0)));function h(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,u.current)}function m(){f.setState("value",u.current,!0)}if(v.useEffect((()=>{let t=o.current;if(t&&!e.disabled)return t.addEventListener(AC,h),()=>t.removeEventListener(AC,h)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:y,value:g,onSelect:b,forceMount:_,keywords:w,...k}=e;return v.createElement(St.div,{ref:e_([o,t]),...k,id:a,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!d,"data-disabled":!!y,"data-selected":!!d,onPointerMove:y||s.disablePointerSelection?void 0:m,onClick:y?void 0:h},e.children)})),HJ=v.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,i=v.useId(),s=v.useRef(null),c=v.useRef(null),l=v.useId(),u=U_(),f=gm((e=>!(!a&&!1!==u.filter())||(!e.search||e.filtered.groups.has(i))));mm((()=>u.group(i)),[]),H5(i,s,[e.value,e.heading,c]);let d=v.useMemo((()=>({id:i,forceMount:a})),[a]);return v.createElement(St.div,{ref:e_([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&v.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),_k(e,(e=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},v.createElement(V5.Provider,{value:d},e)))))})),GJ=v.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,a=v.useRef(null),o=gm((e=>!e.search));return n||o?v.createElement(St.div,{ref:e_([a,t]),...r,"cmdk-separator":"",role:"separator"}):null})),KJ=v.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,a=null!=e.value,o=NA(),i=gm((e=>e.search)),s=gm((e=>e.value)),c=U_(),l=v.useMemo((()=>{var e;let t=null==(e=c.listInnerRef.current)?void 0:e.querySelector(`${DA}[${em}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return v.useEffect((()=>{null!=e.value&&o.setState("search",e.value)}),[e.value]),v.createElement(St.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:a?e.value:i,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})})),QJ=v.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=v.useRef(null),i=v.useRef(null),s=U_();return v.useEffect((()=>{if(i.current&&o.current){let e,t=i.current,n=o.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),v.createElement(St.div,{ref:e_([o,t]),...a,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},_k(e,(e=>v.createElement("div",{ref:e_([i,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),YJ=v.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:i,...s}=e;return v.createElement(P7,{open:n,onOpenChange:r},v.createElement(ak,{container:i},v.createElement(q1,{"cmdk-overlay":"",className:a}),v.createElement(W1,{"aria-label":e.label,"cmdk-dialog":"",className:o},v.createElement(q5,{ref:t,...s}))))})),ZJ=v.forwardRef(((e,t)=>gm((e=>0===e.filtered.count))?v.createElement(St.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),XJ=v.forwardRef(((e,t)=>{let{progress:n,children:r,label:a="Loading...",...o}=e;return v.createElement(St.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},_k(e,(e=>v.createElement("div",{"aria-hidden":!0},e))))})),Ti=Object.assign(q5,{List:QJ,Item:WJ,Input:KJ,Group:HJ,Separator:GJ,Dialog:YJ,Empty:ZJ,Loading:XJ});function JJ(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function eee(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function W5(e){let t=v.useRef(e);return mm((()=>{t.current=e})),t}var mm=typeof window>"u"?v.useEffect:v.useLayoutEffect;function s1(e){let t=v.useRef();return void 0===t.current&&(t.current=e()),t}function e_(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function gm(e){let t=NA(),n=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,n,n)}function H5(e,t,n,r=[]){let a=v.useRef(),o=U_();return mm((()=>{var i;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),c=r.map((e=>e.trim()));o.value(e,s,c),null==(i=t.current)||i.setAttribute(em,s),a.current=s})),a}var tee=()=>{let[e,t]=v.useState(),n=s1((()=>new Map));return mm((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function nee(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function _k({asChild:e,children:t},n){return e&&v.isValidElement(t)?v.cloneElement(nee(t),{ref:t.ref},n(t.props.children)):n(t)}var ree={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const aee=ak,G5=v.forwardRef((({className:e,...t},n)=>(v.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{e.forEach((e=>e&&(e.style.filter="none")))}}),[]),F.jsx(q1,{ref:n,"data-testid":"dialog_overlay",className:$e("fixed inset-0 z-100 bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));G5.displayName=q1.displayName;const oee=Yl("",{variants:{closeVariant:{none:"",insideCard:"absolute right-m top-m rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-slate-400",outsideCard:"fixed right-[30px] top-[30px] z-100 text-slate-400",mobileGallery:"fixed right-m top-[62px] text-white z-[110]"}},defaultVariants:{closeVariant:"outsideCard"}}),iee=Yl("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),see=v.forwardRef((({title:e,className:t,showClose:n=!0,closeVariant:r="outsideCard",closeSize:a="big",children:o,overlayClassName:i,childrenClassName:s,onBack:c,onCloseModal:l,...u},f)=>{const d=F.jsxs(ok,{className:$e(oee({closeVariant:r})),children:[F.jsx(J8,{onClick:l,fill:"currentColor",className:$e(iee({closeSize:a}))}),F.jsx("span",{className:"sr-only",children:"Close"})]});return F.jsxs(aee,{children:[F.jsx(G5,{className:i,onClick:l}),n&&"insideCard"!==r&&d,F.jsxs(W1,{ref:f,className:$e("fixed left-[50%] top-[50%] z-100 grid max-w-[600px] translate-x-[-50%] translate-y-[-50%] !overflow-visible rounded-sm bg-background shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] max-md:w-[calc(100vw-32px)] md:w-full [&>div]:min-w-0",t),...u,children:[F.jsx(K5,{className:"hidden",children:"DialogTitle"}),F.jsx(Q5,{className:"hidden",children:"DialogDescription"}),e&&F.jsx("h3",{className:"border-b border-slate-200 p-m text-center text-lg font-semibold text-slate-700",children:e}),F.jsx("div",{className:$e("p-m",s),children:o}),n&&"insideCard"===r&&d,c&&F.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:c,className:"absolute left-m top-m",children:F.jsx(Y8,{color:"var(--slate-400)",size:24})})]})]})}));see.displayName=W1.displayName;const K5=v.forwardRef((({className:e,...t},n)=>F.jsx(D_,{ref:n,className:$e("text-lg font-semibold leading-none tracking-tight",e),...t})));K5.displayName=D_.displayName;const Q5=v.forwardRef((({className:e,...t},n)=>F.jsx(N_,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));Q5.displayName=N_.displayName;const cee=v.forwardRef((({className:e,...t},n)=>F.jsx(Ti,{ref:n,className:$e("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));cee.displayName=Ti.displayName;const lee=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:F.jsx(Ti.Input,{ref:n,className:$e("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));lee.displayName=Ti.Input.displayName;const fee=v.forwardRef((({className:e,...t},n)=>F.jsx(Ti.List,{ref:n,className:$e("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));fee.displayName=Ti.List.displayName;const uee=v.forwardRef(((e,t)=>F.jsx(Ti.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));uee.displayName=Ti.Empty.displayName;const dee=v.forwardRef((({className:e,...t},n)=>F.jsx(Ti.Group,{ref:n,className:$e("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));dee.displayName=Ti.Group.displayName;const pee=v.forwardRef((({className:e,...t},n)=>F.jsx(Ti.Separator,{ref:n,className:$e("-mx-1 h-px bg-border",e),...t})));pee.displayName=Ti.Separator.displayName;const hee=v.forwardRef((({className:e,...t},n)=>F.jsx(Ti.Item,{ref:n,className:$e("relative flex max-w-[215px] cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));function mp(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function uz(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Y5(...e){return t=>{let n=!1;const r=e.map((e=>{const r=uz(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():uz(e[t],null)}}}}function Tm(...e){return v.useCallback(Y5(...e),e)}function mee(e,t){const n=v.createContext(t),r=e=>{const{children:t,...r}=e,a=v.useMemo((()=>r),Object.values(r));return F.jsx(n.Provider,{value:a,children:t})};return r.displayName=e+"Provider",[r,function(r){const a=v.useContext(n);if(a)return a;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function gee(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>v.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return v.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=v.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,c=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,l=v.useMemo((()=>s),Object.values(s));return F.jsx(c.Provider,{value:l,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const c=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,l=v.useContext(c);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},yee(r,...t)]}function yee(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return v.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}hee.displayName=Ti.Item.displayName;var Jb=null!=globalThis&&globalThis.document?v.useLayoutEffect:()=>{},_ee=Zb[" useId ".trim().toString()]||(()=>{}),vee=0;function TE(e){const[t,n]=v.useState(_ee());return Jb((()=>{e||n((e=>e??String(vee++)))}),[e]),e||(t?`radix-${t}`:"")}function ym(e){const t=v.useRef(e);return v.useEffect((()=>{t.current=e})),v.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function bee({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=wee({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=ym(n);return[i,v.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}function wee({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,a=v.useRef(r),o=ym(t);return v.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}function Z5(e){const t=kee(e),n=v.forwardRef(((e,n)=>{const{children:r,...a}=e,o=v.Children.toArray(r),i=o.find(See);if(i){const e=i.props.children,r=o.map((t=>t===i?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return F.jsx(t,{...a,ref:n,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return F.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function kee(e){const t=v.forwardRef(((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const e=Cee(n),a=Eee(r,n.props);return n.type!==v.Fragment&&(a.ref=t?Y5(t,e):e),v.cloneElement(n,a)}return v.Children.count(n)>1?v.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var xee=Symbol("radix.slottable");function See(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===xee}function Eee(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function Cee(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Ree=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Su=Ree.reduce(((e,t)=>{const n=Z5(`Primitive.${t}`),r=v.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),F.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function Aee(e,t){e&&Zl.flushSync((()=>e.dispatchEvent(t)))}function Tee(e,t=(null==globalThis?void 0:globalThis.document)){const n=ym(e);v.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var dz,Iee="DismissableLayer",TC="dismissableLayer.update",Pee="dismissableLayer.pointerDownOutside",$ee="dismissableLayer.focusOutside",X5=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),J5=v.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...c}=e,l=v.useContext(X5),[u,f]=v.useState(null),d=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=v.useState({}),h=Tm(t,(e=>f(e))),m=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,_=l.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,k=Mee((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));!w||n||(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),d),x=Dee((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),d);return Tee((e=>{b===l.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),d),v.useEffect((()=>{if(u)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(dz=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),pz(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(d.body.style.pointerEvents=dz)}}),[u,d,n,l]),v.useEffect((()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),pz())}),[u,l]),v.useEffect((()=>{const e=()=>p({});return document.addEventListener(TC,e),()=>document.removeEventListener(TC,e)}),[]),F.jsx(Su.div,{...c,ref:h,style:{pointerEvents:_?w?"auto":"none":void 0,...e.style},onFocusCapture:mp(e.onFocusCapture,x.onFocusCapture),onBlurCapture:mp(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:mp(e.onPointerDownCapture,k.onPointerDownCapture)})}));J5.displayName=Iee;var Oee="DismissableLayerBranch",zee=v.forwardRef(((e,t)=>{const n=v.useContext(X5),r=v.useRef(null),a=Tm(t,r);return v.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),F.jsx(Su.div,{...e,ref:a})}));function Mee(e,t=(null==globalThis?void 0:globalThis.document)){const n=ym(e),r=v.useRef(!1),a=v.useRef((()=>{}));return v.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){eL(Pee,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Dee(e,t=(null==globalThis?void 0:globalThis.document)){const n=ym(e),r=v.useRef(!1);return v.useEffect((()=>{const e=e=>{e.target&&!r.current&&eL($ee,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pz(){const e=new CustomEvent(TC);document.dispatchEvent(e)}function eL(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Aee(a,o):a.dispatchEvent(o)}zee.displayName=Oee;var IE="focusScope.autoFocusOnMount",PE="focusScope.autoFocusOnUnmount",hz={bubbles:!1,cancelable:!0},Nee="FocusScope",tL=v.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,c]=v.useState(null),l=ym(a),u=ym(o),f=v.useRef(null),d=Tm(t,(e=>c(e))),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:op(f.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||op(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&op(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),v.useEffect((()=>{if(s){gz.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(IE,hz);s.addEventListener(IE,l),s.dispatchEvent(t),t.defaultPrevented||(Lee(Vee(nL(s)),{select:!0}),document.activeElement===e&&op(s))}return()=>{s.removeEventListener(IE,l),setTimeout((()=>{const t=new CustomEvent(PE,hz);s.addEventListener(PE,u),s.dispatchEvent(t),t.defaultPrevented||op(e??document.body,{select:!0}),s.removeEventListener(PE,u),gz.remove(p)}),0)}}}),[s,l,u,p]);const h=v.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=jee(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&op(o,{select:!0})):(e.preventDefault(),n&&op(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,p.paused]);return F.jsx(Su.div,{tabIndex:-1,...i,ref:d,onKeyDown:h})}));function Lee(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(op(r,{select:t}),document.activeElement!==n)return}function jee(e){const t=nL(e);return[mz(t,e),mz(t.reverse(),e)]}function nL(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mz(e,t){for(const n of e)if(!Bee(n,{upTo:t}))return n}function Bee(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Fee(e){return e instanceof HTMLInputElement&&"select"in e}function op(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Fee(e)&&t&&e.select()}}tL.displayName=Nee;var gz=Uee();function Uee(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=yz(e,t),e.unshift(t)},remove(t){var n;e=yz(e,t),null==(n=e[0])||n.resume()}}}function yz(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Vee(e){return e.filter((e=>"A"!==e.tagName))}var qee="Portal",rL=v.forwardRef(((e,t)=>{var n;const{container:r,...a}=e,[o,i]=v.useState(!1);Jb((()=>i(!0)),[]);const s=r||o&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?c7.createPortal(F.jsx(Su.div,{...a,ref:t}),s):null}));function Wee(e,t){return v.useReducer(((e,n)=>t[e][n]??e),e)}rL.displayName=qee;var vk=e=>{const{present:t,children:n}=e,r=Hee(t),a="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),o=Tm(r.ref,Gee(a));return"function"==typeof n||r.isPresent?v.cloneElement(a,{ref:o}):null};function Hee(e){const[t,n]=v.useState(),r=v.useRef({}),a=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[s,c]=Wee(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect((()=>{const e=Xv(r.current);o.current="mounted"===s?e:"none"}),[s]),Jb((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=Xv(t);e?c("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,c]),Jb((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=Xv(r.current).includes(o.animationName);if(o.target===t&&i&&(c("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=Xv(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Xv(e){return(null==e?void 0:e.animationName)||"none"}function Gee(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}vk.displayName="Presence";var $E=0;function Kee(){v.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_z()),document.body.insertAdjacentElement("beforeend",e[1]??_z()),$E++,()=>{1===$E&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),$E--}}),[])}function _z(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var aL=h7(),OE=function(){},bk=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:OE,onWheelCapture:OE,onTouchMoveCapture:OE}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,y=e.as,g=void 0===y?"div":y,b=e.gapMode,_=cA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=d,k=p7([n,t]),x=Oo(Oo({},_),a);return v.createElement(v.Fragment,null,u&&v.createElement(w,{sideCar:aL,removeScrollBar:l,shards:f,noIsolation:p,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?v.cloneElement(v.Children.only(s),Oo(Oo({},x),{ref:k})):v.createElement(g,Oo({},x,{className:c,ref:k}),s))}));bk.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},bk.classNames={fullWidth:Ty,zeroRight:Ay};var IC=!1;if(typeof window<"u")try{var Jv=Object.defineProperty({},"passive",{get:function(){return IC=!0,!0}});window.addEventListener("test",Jv,Jv),window.removeEventListener("test",Jv,Jv)}catch{IC=!1}var Xg=!!IC&&{passive:!1},Qee=function(e){return"TEXTAREA"===e.tagName},oL=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!Qee(e)&&"visible"===n[t])},Yee=function(e){return oL(e,"overflowY")},Zee=function(e){return oL(e,"overflowX")},vz=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),iL(e,r)){var a=sL(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xee=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Jee=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},iL=function(e,t){return"v"===e?Yee(t):Zee(t)},sL=function(e,t){return"v"===e?Xee(t):Jee(t)},ete=function(e,t){return"h"===e&&"rtl"===t?-1:1},tte=function(e,t,n,r,a){var o=ete(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,c=t.contains(s),l=!1,u=i>0,f=0,d=0;do{var p=sL(e,s),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&iL(e,s)&&(f+=m,d+=h),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(Math.abs(f)<1||!a)||!u&&(Math.abs(d)<1||!a))&&(l=!0),l},eb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bz=function(e){return[e.deltaX,e.deltaY]},wz=function(e){return e&&"current"in e?e.current:e},nte=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rte=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ate=0,Jg=[];function ote(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),a=v.useState(ate++)[0],o=v.useState(lA)[0],i=v.useRef(e);v.useEffect((function(){i.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=d7([e.lockRef.current],(e.shards||[]).map(wz),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=eb(e),s=n.current,c="deltaX"in e?e.deltaX:s[0]-o[0],l="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=vz(f,u);if(!d)return!0;if(d?a=f:(a="v"===f?"h":"v",d=vz(f,u)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=a),!a)return!0;var p=r.current||a;return tte(p,t,e,"h"===p?c:l,!0)}),[]),c=v.useCallback((function(e){var n=e;if(Jg.length&&Jg[Jg.length-1]===o){var r="deltaY"in n?bz(n):eb(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&nte(e.delta,r)}))[0];if(a&&a.should)return void(n.cancelable&&n.preventDefault());if(!a){var c=(i.current.shards||[]).map(wz).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?s(n,c[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=v.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:ite(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=v.useCallback((function(e){n.current=eb(e),r.current=void 0}),[]),f=v.useCallback((function(t){l(t.type,bz(t),t.target,s(t,e.lockRef.current))}),[]),d=v.useCallback((function(t){l(t.type,eb(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return Jg.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Xg),document.addEventListener("touchmove",c,Xg),document.addEventListener("touchstart",u,Xg),function(){Jg=Jg.filter((function(e){return e!==o})),document.removeEventListener("wheel",c,Xg),document.removeEventListener("touchmove",c,Xg),document.removeEventListener("touchstart",u,Xg)}}),[]);var p=e.removeScrollBar,h=e.inert;return v.createElement(v.Fragment,null,h?v.createElement(o,{styles:rte(a)}):null,p?v.createElement(_7,{gapMode:e.gapMode}):null)}function ite(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ste=g7(aL,ote);var cL=v.forwardRef((function(e,t){return v.createElement(bk,Oo({},e,{ref:t,sideCar:ste}))}));cL.classNames=bk.classNames;var LA="Dialog",[lL,OWe]=gee(LA),[cte,Vc]=lL(LA),fL=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=v.useRef(null),c=v.useRef(null),[l=!1,u]=bee({prop:r,defaultProp:a,onChange:o});return F.jsx(cte,{scope:t,triggerRef:s,contentRef:c,contentId:TE(),titleId:TE(),descriptionId:TE(),open:l,onOpenChange:u,onOpenToggle:v.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};fL.displayName=LA;var uL="DialogTrigger",dL=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Vc(uL,n),o=Tm(t,a.triggerRef);return F.jsx(Su.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":FA(a.open),...r,ref:o,onClick:mp(e.onClick,a.onOpenToggle)})}));dL.displayName=uL;var jA="DialogPortal",[lte,pL]=lL(jA,{forceMount:void 0}),hL=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Vc(jA,t);return F.jsx(lte,{scope:t,forceMount:n,children:v.Children.map(r,(e=>F.jsx(vk,{present:n||o.open,children:F.jsx(rL,{asChild:!0,container:a,children:e})})))})};hL.displayName=jA;var ew="DialogOverlay",mL=v.forwardRef(((e,t)=>{const n=pL(ew,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Vc(ew,e.__scopeDialog);return o.modal?F.jsx(vk,{present:r||o.open,children:F.jsx(ute,{...a,ref:t})}):null}));mL.displayName=ew;var fte=Z5("DialogOverlay.RemoveScroll"),ute=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Vc(ew,n);return F.jsx(cL,{as:fte,allowPinchZoom:!0,shards:[a.contentRef],children:F.jsx(Su.div,{"data-state":FA(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),_m="DialogContent",gL=v.forwardRef(((e,t)=>{const n=pL(_m,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Vc(_m,e.__scopeDialog);return F.jsx(vk,{present:r||o.open,children:o.modal?F.jsx(dte,{...a,ref:t}):F.jsx(pte,{...a,ref:t})})}));gL.displayName=_m;var dte=v.forwardRef(((e,t)=>{const n=Vc(_m,e.__scopeDialog),r=v.useRef(null),a=Tm(t,n.contentRef,r);return v.useEffect((()=>{const e=r.current;if(e)return rk(e)}),[]),F.jsx(yL,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mp(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:mp(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:mp(e.onFocusOutside,(e=>e.preventDefault()))})})),pte=v.forwardRef(((e,t)=>{const n=Vc(_m,e.__scopeDialog),r=v.useRef(!1),a=v.useRef(!1);return F.jsx(yL,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),yL=v.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=Vc(_m,n),c=v.useRef(null),l=Tm(t,c);return Kee(),F.jsxs(F.Fragment,{children:[F.jsx(tL,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:F.jsx(J5,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":FA(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),F.jsxs(F.Fragment,{children:[F.jsx(hte,{titleId:s.titleId}),F.jsx(gte,{contentRef:c,descriptionId:s.descriptionId})]})]})})),BA="DialogTitle",_L=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Vc(BA,n);return F.jsx(Su.h2,{id:a.titleId,...r,ref:t})}));_L.displayName=BA;var vL="DialogDescription",bL=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Vc(vL,n);return F.jsx(Su.p,{id:a.descriptionId,...r,ref:t})}));bL.displayName=vL;var wL="DialogClose",kL=v.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=Vc(wL,n);return F.jsx(Su.button,{type:"button",...r,ref:t,onClick:mp(e.onClick,(()=>a.onOpenChange(!1)))})}));function FA(e){return e?"open":"closed"}kL.displayName=wL;var xL="DialogTitleWarning",[zWe,SL]=mee(xL,{contentName:_m,titleName:BA,docsSlug:"dialog"}),hte=({titleId:e})=>{const t=SL(xL),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},mte="DialogDescriptionWarning",gte=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${SL(mte).contentName}}.`;return v.useEffect((()=>{var r;const a=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},yte=fL,_te=dL,vte=hL,bte=mL,wte=gL,kte=_L,xte=bL,Ste=kL;function Ete(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const EL=ze.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),G1=()=>{const e=ze.useContext(EL);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};Ete("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}");const Cte=24,Rte=typeof window<"u"?v.useLayoutEffect:v.useEffect;function kz(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Ate(){return UA(/^Mac/)}function Tte(){return UA(/^iPhone/)}function xz(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Ite(){return UA(/^iPad/)||Ate()&&navigator.maxTouchPoints>1}function CL(){return Tte()||Ite()}function UA(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const zE=typeof document<"u"&&window.visualViewport;function Sz(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function RL(e){for(Sz(e)&&(e=e.parentElement);e&&!Sz(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Pte=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ME,tb=0;function $te(e={}){let{isDisabled:t}=e;Rte((()=>{if(!t)return tb++,1===tb&&CL()&&(ME=Ote()),()=>{tb--,0===tb&&(null==ME||ME())}}),[t])}function Ote(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,a=kz(zte(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let o=kz(ry(document,"touchstart",(n=>{e=RL(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),ry(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,a=e.scrollTop,o=e.scrollHeight-e.clientHeight;0!==o&&((a<=0&&r>t||a>=o&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),ry(document,"touchend",(e=>{let t=e.target;PC(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),ry(document,"focus",(e=>{let t=e.target;PC(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",zE&&(zE.height<window.innerHeight?requestAnimationFrame((()=>{Ez(t)})):zE.addEventListener("resize",(()=>Ez(t)),{once:!0}))})))}),!0),ry(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{a(),o(),window.scrollTo(n,r)}}function zte(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function ry(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ez(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=RL(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function PC(e){return e instanceof HTMLInputElement&&!Pte.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Mte(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Dte(...e){return t=>e.forEach((e=>Mte(e,t)))}function AL(...e){return v.useCallback(Dte(...e),e)}const TL=new WeakMap;function xa(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach((([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)})),!n&&TL.set(e,r)}function Nte(e,t){if(!(e&&e instanceof HTMLElement))return;let n=TL.get(e);n&&(e.style[t]=n[t])}const Sa=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function nb(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let a=r.match(/^matrix3d\((.+)\)$/);return a?parseFloat(a[1].split(", ")[Sa(t)?13:12]):(a=r.match(/^matrix\((.+)\)$/),a?parseFloat(a[1].split(", ")[Sa(t)?5:4]):null)}function Lte(e){return 8*(Math.log(e+1)-2)}function DE(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function jte(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const _r={DURATION:.5,EASE:[.32,.72,0,1]},IL=.4,Bte=.25,Fte=100,PL=8,Gh=16,$C=26,NE="vaul-dragging";function $L(e){const t=ze.useRef(e);return ze.useEffect((()=>{t.current=e})),ze.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function Ute({defaultProp:e,onChange:t}){const n=ze.useState(e),[r]=n,a=ze.useRef(r),o=$L(t);return ze.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}function OL({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=Ute({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=$L(n);return[i,ze.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}function Vte({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:a,fadeFromIndex:o,onSnapPointChange:i,direction:s="bottom",container:c,snapToSequentialPoint:l}){const[u,f]=OL({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[d,p]=ze.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);ze.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const h=ze.useMemo((()=>u===(null==n?void 0:n[n.length-1])||null),[n,u]),m=ze.useMemo((()=>null==n?void 0:n.findIndex((e=>e===u))),[n,u]),y=n&&n.length>0&&(o||0===o)&&!Number.isNaN(o)&&n[o]===u||!n,g=ze.useMemo((()=>{const e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var t;return null!=(t=null==n?void 0:n.map((t=>{const n="string"==typeof t;let r=0;if(n&&(r=parseInt(t,10)),Sa(s)){const a=n?r:d?t*e.height:0;return d?"bottom"===s?e.height-a:-e.height+a:a}const a=n?r:d?t*e.width:0;return d?"right"===s?e.width-a:-e.width+a:a})))?t:[]}),[n,d,c]),v=ze.useMemo((()=>null!==m?null==g?void 0:g[m]:null),[g,m]),b=ze.useCallback((e=>{var t;const c=null!=(t=null==g?void 0:g.findIndex((t=>t===e)))?t:null;i(c),xa(r.current,{transition:`transform ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,transform:Sa(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&c!==g.length-1&&c!==o&&c<o?xa(a.current,{transition:`opacity ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,opacity:"0"}):xa(a.current,{transition:`opacity ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,opacity:"1"}),f(null==n?void 0:n[Math.max(c,0)])}),[r.current,n,g,o,a,f]);return ze.useEffect((()=>{if(u||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===u)))?t:-1;g&&-1!==r&&"number"==typeof g[r]&&b(g[r])}}),[u,e,n,g,b]),{isLastSnapPoint:h,activeSnapPoint:u,shouldFade:y,getPercentageDragged:function(e,t){if(!n||"number"!=typeof m||!g||void 0===o)return null;const r=m===o-1;if(m>=o&&t)return 0;if(r&&!t)return 1;if(!y&&!r)return null;const a=r?m+1:m-1,i=r?g[a]-g[a-1]:g[a+1]-g[a],s=e/Math.abs(i);return r?1-s:s},setActiveSnapPoint:f,activeSnapPointIndex:m,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:i}){if(void 0===o)return;const c="bottom"===s||"right"===s?(v??0)-e:(v??0)+e,u=0===m,f=e>0;if(m===o-1&&xa(a.current,{transition:`opacity ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`}),!l&&r>2&&!f)return void(i?t():b(g[0]));if(!l&&r>2&&f&&g&&n)return void b(g[n.length-1]);const d=null==g?void 0:g.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-c)<Math.abs(e-c)?t:e)),p=Sa(s)?window.innerHeight:window.innerWidth;if(r>IL&&Math.abs(e)<.4*p){const e=f?1:-1;if(e>0&&h)return void b(g[n.length-1]);if(u&&e<0&&i&&t(),null===m)return;b(g[m+e])}else b(d)},onDrag:function({draggedDistance:e}){if(null===v)return;const t="bottom"===s||"right"===s?v-e:v+e;("bottom"===s||"right"===s)&&t<g[g.length-1]||("top"===s||"left"===s)&&t>g[g.length-1]||xa(r.current,{transform:Sa(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:g}}const qte=()=>()=>{};function Wte(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:a}=G1(),o=ze.useRef(null),i=v.useMemo((()=>document.body.style.backgroundColor),[]);function s(){return(window.innerWidth-26)/window.innerWidth}ze.useEffect((()=>{if(t&&n){o.current&&clearTimeout(o.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;jte(r&&!a?DE(document.body,{background:"black"}):qte,DE(t,{transformOrigin:Sa(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${_r.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_r.EASE.join(",")})`}));const n=DE(t,{borderRadius:"8px",overflow:"hidden",...Sa(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),o.current=window.setTimeout((()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")}),1e3*_r.DURATION)}}}),[t,n,i])}let ay=null;function Hte({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:a,noBodyStyles:o}){const[i,s]=ze.useState((()=>typeof window<"u"?window.location.href:"")),c=ze.useRef(0),l=ze.useCallback((()=>{if(xz()&&null===ay&&e&&!o){ay={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-c.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=-(c.current+e)+"px")}))),300)}}),[e]),u=ze.useCallback((()=>{if(xz()&&null!==ay&&!o){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,ay),window.requestAnimationFrame((()=>{a&&i!==window.location.href?s(window.location.href):window.scrollTo(t,e)})),ay=null}}),[i]);return ze.useEffect((()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),ze.useEffect((()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout((()=>{u()}),500)):u())}),[e,r,i,t,n,l,u]),{restorePositionSetting:u}}function zL({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:a,snapPoints:o,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=Bte,scrollLockTimeout:l=100,dismissible:u=!0,handleOnly:f=!1,fadeFromIndex:d=o&&o.length-1,activeSnapPoint:p,setActiveSnapPoint:h,fixed:m,modal:y=!0,onClose:g,nested:v,noBodyStyles:b,direction:_="bottom",defaultOpen:w=!1,disablePreventScroll:k=!0,snapToSequentialPoint:x=!1,preventScrollRestoration:S=!1,repositionInputs:E=!0,onAnimationEnd:A,container:z,autoFocus:C=!1}){var I,T;const[R=!1,P]=OL({defaultProp:w,prop:e,onChange:e=>{null==t||t(e),!e&&!v&&ce(),setTimeout((()=>{null==A||A(e)}),1e3*_r.DURATION),e&&!y&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[j,O]=ze.useState(!1),[N,M]=ze.useState(!1),[D,F]=ze.useState(!1),L=ze.useRef(null),V=ze.useRef(null),q=ze.useRef(null),B=ze.useRef(null),U=ze.useRef(null),$=ze.useRef(!1),W=ze.useRef(null),H=ze.useRef(0),G=ze.useRef(!1),K=ze.useRef(0),Q=ze.useRef(null),Y=ze.useRef((null==(I=Q.current)?void 0:I.getBoundingClientRect().height)||0),Z=ze.useRef((null==(T=Q.current)?void 0:T.getBoundingClientRect().width)||0),X=ze.useRef(0),J=ze.useCallback((e=>{o&&e===ae.length-1&&(V.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:ae,onDrag:oe,shouldFade:ie,getPercentageDragged:se}=Vte({snapPoints:o,activeSnapPointProp:p,setActiveSnapPointProp:h,drawerRef:Q,fadeFromIndex:d,overlayRef:L,onSnapPointChange:J,direction:_,container:z,snapToSequentialPoint:x});$te({isDisabled:!R||N||!y||D||!j||!E||!k});const{restorePositionSetting:ce}=Hte({isOpen:R,modal:y,nested:v,hasBeenOpened:j,preventScrollRestoration:S,noBodyStyles:b});function le(){return(window.innerWidth-26)/window.innerWidth}function ue(e,t){var n,r;let a=e;const o=null==(n=window.getSelection())?void 0:n.toString(),i=Q.current?nb(Q.current,_):null,s=new Date;if(a.hasAttribute("data-vaul-no-drag")||a.closest("[data-vaul-no-drag]"))return!1;if("right"===_||"left"===_)return!0;if(V.current&&s.getTime()-V.current.getTime()<500)return!1;if(null!==i&&("bottom"===_?i>0:i<0))return!0;if(o&&o.length>0)return!1;if(s.getTime()-(null==(r=U.current)?void 0:r.getTime())<l&&0===i||t)return U.current=s,!1;for(;a;){if(a.scrollHeight>a.clientHeight){if(0!==a.scrollTop)return U.current=new Date,!1;if("dialog"===a.getAttribute("role"))return!0}a=a.parentNode}return!0}function fe(e){!N||!Q.current||(Q.current.classList.remove(NE),$.current=!1,M(!1),B.current=new Date),null==g||g(),e||P(!1),setTimeout((()=>{o&&ne(o[0])}),1e3*_r.DURATION)}function de(){if(!Q.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=nb(Q.current,_);xa(Q.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`}),xa(L.current,{transition:`opacity ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,opacity:"1"}),i&&t&&t>0&&R&&xa(e,{borderRadius:"8px",overflow:"hidden",...Sa(_)?{transform:`scale(${le()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${le()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${_r.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_r.EASE.join(",")})`},!0)}return ze.useEffect((()=>{var e;function t(){if(!Q.current||!E)return;if(PC(document.activeElement)||G.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const a=Q.current.getBoundingClientRect().height||0,i=a>.8*n;X.current||(X.current=a);const s=Q.current.getBoundingClientRect().top;if(Math.abs(K.current-r)>60&&(G.current=!G.current),o&&o.length>0&&ae&&te){r+=ae[te]||0}if(K.current=r,a>t||G.current){const e=Q.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(i?s:26)),Q.current.style.height=m?e-Math.max(r,0)+"px":`${Math.max(n,t-s)}px`}else Q.current.style.height=`${X.current}px`;o&&o.length>0&&!G.current?Q.current.style.bottom="0px":Q.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}}),[te,o,ae]),ze.useEffect((()=>(R&&(xa(document.documentElement,{scrollBehavior:"auto"}),V.current=new Date),()=>{Nte(document.documentElement,"scrollBehavior")})),[R]),ze.createElement(yte,{defaultOpen:w,onOpenChange:e=>{!u&&!e||(e?O(!0):fe(!0),P(e))},open:R},ze.createElement(EL.Provider,{value:{activeSnapPoint:ee,snapPoints:o,setActiveSnapPoint:ne,drawerRef:Q,overlayRef:L,onOpenChange:t,onPress:function(e){var t,n;!u&&!o||Q.current&&!Q.current.contains(e.target)||(Y.current=(null==(t=Q.current)?void 0:t.getBoundingClientRect().height)||0,Z.current=(null==(n=Q.current)?void 0:n.getBoundingClientRect().width)||0,M(!0),q.current=new Date,CL()&&window.addEventListener("touchend",(()=>$.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),H.current=Sa(_)?e.pageY:e.pageX)},onRelease:function(e){if(!N||!Q.current)return;Q.current.classList.remove(NE),$.current=!1,M(!1),B.current=new Date;const t=nb(Q.current,_);if(!ue(e.target,!1)||!t||Number.isNaN(t)||null===q.current)return;const n=B.current.getTime()-q.current.getTime(),r=H.current-(Sa(_)?e.pageY:e.pageX),i=Math.abs(r)/n;if(i>.05&&(F(!0),setTimeout((()=>{F(!1)}),200)),o)return re({draggedDistance:r*("bottom"===_||"right"===_?1:-1),closeDrawer:fe,velocity:i,dismissible:u}),void(null==a||a(e,!0));if("bottom"===_||"right"===_?r>0:r<0)return de(),void(null==a||a(e,!0));if(i>IL)return fe(),void(null==a||a(e,!1));var s;const l=Math.min(null!=(s=Q.current.getBoundingClientRect().height)?s:0,window.innerHeight);var f;const d=Math.min(null!=(f=Q.current.getBoundingClientRect().width)?f:0,window.innerWidth),p="left"===_||"right"===_;if(Math.abs(t)>=(p?d:l)*c)return fe(),void(null==a||a(e,!1));null==a||a(e,!0),de()},onDrag:function(e){if(Q.current&&N){const t="bottom"===_||"right"===_?1:-1,n=(H.current-(Sa(_)?e.pageY:e.pageX))*t,a=n>0,s=o&&!u&&!a;if(s&&0===te)return;const c=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]");let f=c/("bottom"===_||"top"===_?Y.current:Z.current);const p=se(c,a);if(null!==p&&(f=p),s&&f>=1||!$.current&&!ue(e.target,a))return;if(Q.current.classList.add(NE),$.current=!0,xa(Q.current,{transition:"none"}),xa(L.current,{transition:"none"}),o&&oe({draggedDistance:n}),a&&!o){const e=Lte(n),r=Math.min(-1*e,0)*t;return void xa(Q.current,{transform:Sa(_)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}const h=1-f;if((ie||d&&te===d-1)&&(null==r||r(e,f),xa(L.current,{opacity:`${h}`,transition:"none"},!0)),l&&L.current&&i){const e=Math.min(le()+f*(1-le()),1),t=8-8*f,n=Math.max(0,14-14*f);xa(l,{borderRadius:`${t}px`,transform:Sa(_)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!o){const e=c*t;xa(Q.current,{transform:Sa(_)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:u,handleOnly:f,isOpen:R,isDragging:N,shouldFade:ie,closeDrawer:fe,onNestedDrag:function(e,t){if(t<0)return;const n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),a=16*t-16;xa(Q.current,{transform:Sa(_)?`scale(${r}) translate3d(0, ${a}px, 0)`:`scale(${r}) translate3d(${a}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;W.current&&window.clearTimeout(W.current),xa(Q.current,{transition:`transform ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&Q.current&&(W.current=setTimeout((()=>{const e=nb(Q.current,_);xa(Q.current,{transition:"none",transform:Sa(_)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=Sa(_)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,a=t?-16:0;t&&xa(Q.current,{transition:`transform ${_r.DURATION}s cubic-bezier(${_r.EASE.join(",")})`,transform:Sa(_)?`scale(${r}) translate3d(0, ${a}px, 0)`:`scale(${r}) translate3d(${a}px, 0, 0)`})},keyboardIsOpen:G,modal:y,snapPointsOffset:ae,direction:_,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:b,container:z,autoFocus:C}},n))}const ML=ze.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:a,shouldFade:o,isOpen:i,modal:s}=G1(),c=AL(t,n),l=r&&r.length>0;return s?ze.createElement(bte,{onMouseUp:a,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":i&&l?"true":"false","data-vaul-snap-points-overlay":i&&o?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),null)}));ML.displayName="Drawer.Overlay";const DL=ze.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},a){const{drawerRef:o,onPress:i,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,modal:f,isOpen:d,direction:p,snapPoints:h,container:m,handleOnly:y,autoFocus:g}=G1(),[v,b]=ze.useState(!1),_=AL(a,o),w=ze.useRef(null),k=ze.useRef(null),x=ze.useRef(!1),S=h&&h.length>0;Wte();function E(e){w.current=null,x.current=!1,s(e)}return ze.useEffect((()=>{S&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),ze.createElement(wte,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":v?"true":"false","data-vaul-snap-points":d&&S?"true":"false","data-vaul-custom-container":m?"true":"false",...r,ref:_,style:u&&u.length>0?{"--snap-point-height":`${u[0]}px`,...t}:t,onPointerDown:e=>{y||(null==r.onPointerDown||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},i(e))},onOpenAutoFocus:e=>{null==n||n(e),g||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),f&&!t.defaultPrevented?l.current&&(l.current=!1):t.preventDefault()},onFocusOutside:e=>{f||e.preventDefault()},onPointerMove:e=>{if(k.current=e,y||(null==r.onPointerMove||r.onPointerMove.call(r,e),!w.current))return;const t=e.pageY-w.current.y,n=e.pageX-w.current.x,a="touch"===e.pointerType?10:2;((e,t,n=0)=>{if(x.current)return!0;const r=Math.abs(e.y),a=Math.abs(e.x),o=a>r,i=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*i<0)&&a>=0&&a<=n)return o}else if(!(e.y*i<0)&&r>=0&&r<=n)return!o;return x.current=!0,!0})({x:n,y:t},p,a)?c(e):(Math.abs(n)>a||Math.abs(t)>a)&&(w.current=null)},onPointerUp:e=>{null==r.onPointerUp||r.onPointerUp.call(r,e),w.current=null,x.current=!1,s(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),E(k.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),E(k.current)}})}));DL.displayName="Drawer.Content";const Gte=250,Kte=120,NL=ze.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:a,isDragging:o,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:f,onPress:d,onDrag:p}=G1(),h=ze.useRef(null),m=ze.useRef(!1);function y(){window.clearTimeout(h.current),m.current=!1}return ze.createElement("div",{onClick:function(){m.current?y():window.setTimeout((()=>{!function(){if(o||e||m.current)return void y();if(y(),(!i||0===i.length)&&l)return void a();if(s===i[i.length-1]&&l)return void a();const t=i.findIndex((e=>e===s));if(-1===t)return;const n=i[t+1];c(n)}()}),120)},onPointerCancel:y,onPointerDown:e=>{u&&d(e),h.current=window.setTimeout((()=>{m.current=!0}),250)},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},ze.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function Qte({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:a,onNestedRelease:o}=G1();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return ze.createElement(zL,{nested:!0,onClose:()=>{a(!1)},onDrag:(t,n)=>{r(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&a(e)},onRelease:o,...n})}function Yte(e){const t=G1(),{container:n=t.container,...r}=e;return ze.createElement(vte,{container:n,...r})}NL.displayName="Drawer.Handle";const Op={Root:zL,NestedRoot:Qte,Content:DL,Overlay:ML,Trigger:_te,Portal:Yte,Handle:NL,Close:Ste,Title:kte,Description:xte},Zte=Op.Portal,LL=v.forwardRef((({className:e,...t},n)=>F.jsx(Op.Overlay,{ref:n,className:$e("fixed inset-0 z-50 bg-black/5",e),...t})));LL.displayName=Op.Overlay.displayName;const Xte=v.forwardRef((({className:e,children:t,direction:n="bottom",...r},a)=>F.jsxs(Zte,{children:[F.jsx(LL,{}),F.jsxs(Op.Content,{ref:a,className:$e("fixed z-50 border bg-background shadow-lg","bottom"===n&&"inset-x-0 bottom-0 mt-24 flex h-auto flex-col rounded-t-sm","top"===n&&"inset-x-0 top-0 mb-24 flex h-auto flex-col rounded-b-sm","left"===n&&"inset-y-0 left-0 flex h-full flex-col","right"===n&&"inset-y-0 right-0 flex h-full w-[346px] flex-col sm:w-[435px]",e),...r,children:["bottom"===n&&F.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));Xte.displayName="DrawerContent";const Jte=v.forwardRef((({className:e,...t},n)=>F.jsx(Op.Title,{ref:n,className:$e("text-lg font-semibold leading-none tracking-tight",e),...t})));Jte.displayName=Op.Title.displayName;const ene=v.forwardRef((({className:e,...t},n)=>F.jsx(Op.Description,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));function VA(e){const t=e+"CollectionProvider",[n,r]=ii(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e+"CollectionSlot",s=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=ze.useRef(null),o=ze.useRef(new Map).current;return ze.createElement(a,{scope:t,itemMap:o,collectionRef:r},n)},Slot:ze.forwardRef(((e,t)=>{const{scope:n,children:r}=e,a=yn(t,o(i,n).collectionRef);return ze.createElement(pm,{ref:a},r)})),ItemSlot:ze.forwardRef(((e,t)=>{const{scope:n,children:r,...a}=e,i=ze.useRef(null),l=yn(t,i),u=o(s,n);return ze.useEffect((()=>(u.itemMap.set(i,{ref:i,...a}),()=>{u.itemMap.delete(i)}))),ze.createElement(pm,{[c]:"",ref:l},r)}))},function(t){const n=o(e+"CollectionConsumer",t);return ze.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}ene.displayName=Op.Description.displayName;const tne=v.createContext(void 0);function qA(e){const t=v.useContext(tne);return e||t||"ltr"}const nne=["top","right","bottom","left"],kp=Math.min,ts=Math.max,tw=Math.round,rb=Math.floor,xp=e=>({x:e,y:e}),rne={left:"right",right:"left",bottom:"top",top:"bottom"},ane={start:"end",end:"start"};function OC(e,t,n){return ts(e,kp(t,n))}function vu(e,t){return"function"==typeof e?e(t):e}function bu(e){return e.split("-")[0]}function K1(e){return e.split("-")[1]}function WA(e){return"x"===e?"y":"x"}function HA(e){return"y"===e?"height":"width"}function Sp(e){return["top","bottom"].includes(bu(e))?"y":"x"}function GA(e){return WA(Sp(e))}function one(e,t,n){void 0===n&&(n=!1);const r=K1(e),a=GA(e),o=HA(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=nw(i)),[i,nw(i)]}function ine(e){const t=nw(e);return[zC(e),t,zC(t)]}function zC(e){return e.replace(/start|end/g,(e=>ane[e]))}function sne(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}function cne(e,t,n,r){const a=K1(e);let o=sne(bu(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(zC)))),o}function nw(e){return e.replace(/left|right|bottom|top/g,(e=>rne[e]))}function lne(e){return{top:0,right:0,bottom:0,left:0,...e}}function jL(e){return"number"!=typeof e?lne(e):{top:e,right:e,bottom:e,left:e}}function rw(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Cz(e,t,n){let{reference:r,floating:a}=e;const o=Sp(t),i=GA(t),s=HA(i),c=bu(t),l="y"===o,u=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,d=r[s]/2-a[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-a.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-a.width,y:f};break;default:p={x:r.x,y:r.y}}switch(K1(t)){case"start":p[i]-=d*(n&&l?-1:1);break;case"end":p[i]+=d*(n&&l?-1:1)}return p}const fne=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:f}=Cz(l,r,c),d=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:m}=s[n],{x:y,y:g,data:v,reset:b}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:p,rects:l,platform:i,elements:{reference:e,floating:t}});u=y??u,f=g??f,p={...p,[o]:{...p[o],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(l=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:f}=Cz(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:a,middlewareData:p}};async function t_(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=vu(t,e),h=jL(p),m=s[d?"floating"===f?"reference":"floating":f],y=rw(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},_=rw(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:c}):g);return{top:(y.top-_.top+h.top)/b.y,bottom:(_.bottom-y.bottom+h.bottom)/b.y,left:(y.left-_.left+h.left)/b.x,right:(_.right-y.right+h.right)/b.x}}const une=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=vu(e,t)||{};if(null==l)return{};const f=jL(u),d={x:n,y:r},p=GA(a),h=HA(p),m=await i.getDimensions(l),y="y"===p,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",_=o.reference[h]+o.reference[p]-d[p]-o.floating[h],w=d[p]-o.reference[p],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let x=k?k[b]:0;(!x||!await(null==i.isElement?void 0:i.isElement(k)))&&(x=s.floating[b]||o.floating[h]);const S=_/2-w/2,E=x/2-m[h]/2-1,A=kp(f[g],E),z=kp(f[v],E),C=A,I=x-m[h]-z,T=x/2-m[h]/2+S,R=OC(C,T,I),P=!c.arrow&&null!=K1(a)&&T!==R&&o.reference[h]/2-(T<C?A:z)-m[h]/2<0,j=P?T<C?T-C:T-I:0;return{[p]:d[p]+j,data:{[p]:R,centerOffset:T-R-j,...P&&{alignmentOffset:j}},reset:P}}}),dne=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=vu(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const g=bu(a),v=Sp(s),b=bu(s)===s,_=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=d||(b||!m?[nw(s)]:ine(s)),k="none"!==h;!d&&k&&w.push(...cne(s,m,h,_));const x=[s,...w],S=await t_(t,y),E=[];let A=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[g]),f){const e=one(a,i,_);E.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:a,overflows:E}],!E.every((e=>e<=0))){var z,C;const e=((null==(z=o.flip)?void 0:z.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(C=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(p){case"bestFit":{var I;const e=null==(I=A.filter((e=>{if(k){const t=Sp(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}};function Rz(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Az(e){return nne.some((t=>e[t]>=0))}const pne=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=vu(e,t);switch(r){case"referenceHidden":{const e=Rz(await t_(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Az(e)}}}case"escaped":{const e=Rz(await t_(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Az(e)}}}default:return{}}}}};async function hne(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=bu(n),s=K1(n),c="y"===Sp(n),l=["left","top"].includes(i)?-1:1,u=o&&c?-1:1,f=vu(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}const mne=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,c=await hne(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+c.x,y:o+c.y,data:{...c,placement:i}}}}},gne=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=vu(e,t),l={x:n,y:r},u=await t_(t,c),f=Sp(bu(a)),d=WA(f);let p=l[d],h=l[f];if(o){const e="y"===d?"bottom":"right";p=OC(p+u["y"===d?"top":"left"],p,p-u[e])}if(i){const e="y"===f?"bottom":"right";h=OC(h+u["y"===f?"top":"left"],h,h-u[e])}const m=s.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:o,[f]:i}}}}}},yne=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=vu(e,t),u={x:n,y:r},f=Sp(a),d=WA(f);let p=u[d],h=u[f];const m=vu(s,t),y="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+y.mainAxis,n=o.reference[d]+o.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,v;const e="y"===d?"width":"height",t=["top","left"].includes(bu(a)),n=o.reference[f]-o.floating[e]+(t&&(null==(g=i.offset)?void 0:g[f])||0)+(t?0:y.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[f])||0)-(t?y.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[d]:p,[f]:h}}}},_ne=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:c=()=>{},...l}=vu(e,t),u=await t_(t,l),f=bu(a),d=K1(a),p="y"===Sp(a),{width:h,height:m}=o.floating;let y,g;"top"===f||"bottom"===f?(y=f,g=d===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,y="end"===d?"top":"bottom");const v=m-u.top-u.bottom,b=h-u.left-u.right,_=kp(m-u[y],v),w=kp(h-u[g],b),k=!t.middlewareData.shift;let x=_,S=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(x=v),k&&!d){const e=ts(u.left,0),t=ts(u.right,0),n=ts(u.top,0),r=ts(u.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:ts(u.left,u.right)):x=m-2*(0!==n||0!==r?n+r:ts(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:x});const E=await i.getDimensions(s.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function wk(){return typeof window<"u"}function Ep(e){return BL(e)?(e.nodeName||"").toLowerCase():"#document"}function ns(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Eu(e){var t;return null==(t=(BL(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function BL(e){return!!wk()&&(e instanceof Node||e instanceof ns(e).Node)}function Vl(e){return!!wk()&&(e instanceof Element||e instanceof ns(e).Element)}function ql(e){return!!wk()&&(e instanceof HTMLElement||e instanceof ns(e).HTMLElement)}function Tz(e){return!(!wk()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ns(e).ShadowRoot)}function V_(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Vs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function vne(e){return["table","td","th"].includes(Ep(e))}function bne(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function KA(e){const t=QA(),n=Vl(e)?Vs(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function FL(e){let t=C1(e);for(;ql(t)&&!kk(t);){if(KA(t))return t;if(bne(t))return null;t=C1(t)}return null}function QA(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function kk(e){return["html","body","#document"].includes(Ep(e))}function Vs(e){return ns(e).getComputedStyle(e)}function xk(e){return Vl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function C1(e){if("html"===Ep(e))return e;const t=e.assignedSlot||e.parentNode||Tz(e)&&e.host||Eu(e);return Tz(t)?t.host:t}function UL(e){const t=C1(e);return kk(t)?e.ownerDocument?e.ownerDocument.body:e.body:ql(t)&&V_(t)?t:UL(t)}function n_(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=UL(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=ns(a);if(o){const e=wne(i);return t.concat(i,i.visualViewport||[],V_(a)?a:[],e&&n?n_(e):[])}return t.concat(a,n_(a,[],n))}function wne(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function VL(e){const t=Vs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=ql(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=tw(n)!==o||tw(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function YA(e){return Vl(e)?e:e.contextElement}function _1(e){const t=YA(e);if(!ql(t))return xp(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=VL(t);let i=(o?tw(n.width):n.width)/r,s=(o?tw(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const kne=xp(0);function qL(e){const t=ns(e);return QA()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:kne}function xne(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ns(e))&&t}function vm(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=YA(e);let i=xp(1);t&&(r?Vl(r)&&(i=_1(r)):i=_1(e));const s=xne(o,n,r)?qL(o):xp(0);let c=(a.left+s.x)/i.x,l=(a.top+s.y)/i.y,u=a.width/i.x,f=a.height/i.y;if(o){const e=ns(o),t=r&&Vl(r)?ns(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=_1(n),t=n.getBoundingClientRect(),r=Vs(n),a=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=a,l+=o,n=ns(n).frameElement}}return rw({width:u,height:f,x:c,y:l})}const Sne=[":popover-open",":modal"];function WL(e){let t=!1,n=0,r=0;if(Sne.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=FL(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function Ene(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=Eu(r),[i]=t?WL(t.floating):[!1];if(r===o||i)return n;let s={scrollLeft:0,scrollTop:0},c=xp(1);const l=xp(0),u=ql(r);if((u||!u&&"fixed"!==a)&&(("body"!==Ep(r)||V_(o))&&(s=xk(r)),ql(r))){const e=vm(r);c=_1(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+l.x,y:n.y*c.y-s.scrollTop*c.y+l.y}}function Cne(e){return Array.from(e.getClientRects())}function HL(e){return vm(Eu(e)).left+xk(e).scrollLeft}function Rne(e){const t=Eu(e),n=xk(e),r=e.ownerDocument.body,a=ts(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ts(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+HL(e);const s=-n.scrollTop;return"rtl"===Vs(r).direction&&(i+=ts(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}function Ane(e,t){const n=ns(e),r=Eu(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,c=0;if(a){o=a.width,i=a.height;const e=QA();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:s,y:c}}function Tne(e,t){const n=vm(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=ql(e)?_1(e):xp(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}function Iz(e,t,n){let r;if("viewport"===t)r=Ane(e,n);else if("document"===t)r=Rne(Eu(e));else if(Vl(t))r=Tne(t,n);else{const n=qL(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return rw(r)}function GL(e,t){const n=C1(e);return!(n===t||!Vl(n)||kk(n))&&("fixed"===Vs(n).position||GL(n,t))}function Ine(e,t){const n=t.get(e);if(n)return n;let r=n_(e,[],!1).filter((e=>Vl(e)&&"body"!==Ep(e))),a=null;const o="fixed"===Vs(e).position;let i=o?C1(e):e;for(;Vl(i)&&!kk(i);){const t=Vs(i),n=KA(i);!n&&"fixed"===t.position&&(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||V_(i)&&!n&&GL(e,i))?r=r.filter((e=>e!==i)):a=t,i=C1(i)}return t.set(e,r),r}function Pne(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?Ine(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=Iz(t,n,a);return e.top=ts(r.top,e.top),e.right=kp(r.right,e.right),e.bottom=kp(r.bottom,e.bottom),e.left=ts(r.left,e.left),e}),Iz(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function $ne(e){const{width:t,height:n}=VL(e);return{width:t,height:n}}function One(e,t,n,r){const a=ql(t),o=Eu(t),i="fixed"===n,s=vm(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=xp(0);if(a||!a&&!i)if(("body"!==Ep(t)||V_(o))&&(c=xk(t)),a){const e=vm(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=HL(o));let u=s.left+c.scrollLeft-l.x,f=s.top+c.scrollTop-l.y;const[d,p,h]=WL(r);return d&&(u+=p,f+=h,a&&(u+=t.clientLeft,f+=t.clientTop)),{x:u,y:f,width:s.width,height:s.height}}function Pz(e,t){return ql(e)&&"fixed"!==Vs(e).position?t?t(e):e.offsetParent:null}function KL(e,t){const n=ns(e);if(!ql(e))return n;let r=Pz(e,t);for(;r&&vne(r)&&"static"===Vs(r).position;)r=Pz(r,t);return r&&("html"===Ep(r)||"body"===Ep(r)&&"static"===Vs(r).position&&!KA(r))?n:r||FL(e)||n}const zne=async function(e){const t=this.getOffsetParent||KL,n=this.getDimensions;return{reference:One(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function Mne(e){return"rtl"===Vs(e).direction}const Dne={convertOffsetParentRelativeRectToViewportRelativeRect:Ene,getDocumentElement:Eu,getClippingRect:Pne,getOffsetParent:KL,getElementRects:zne,getClientRects:Cne,getDimensions:$ne,getScale:_1,isElement:Vl,isRTL:Mne};function Nne(e,t){let n,r=null;const a=Eu(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),o();const{left:l,top:u,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const p={rootMargin:-rb(u)+"px "+-rb(a.clientWidth-(l+f))+"px "+-rb(a.clientHeight-(u+d))+"px "+-rb(l)+"px",threshold:ts(0,kp(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:a.ownerDocument})}catch{r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}function Lne(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=YA(e),u=a||o?[...l?n_(l):[],...n_(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const f=l&&s?Nne(l,n):null;let d=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),l&&!c&&p.observe(l),p.observe(t));let h,m=c?vm(e):null;return c&&function t(){const r=vm(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const jne=gne,Bne=dne,Fne=_ne,Une=pne,$z=une,Vne=yne,qne=(e,t,n)=>{const r=new Map,a={platform:Dne,...n},o={...a.platform,_c:r};return fne(e,t,{...a,platform:o})};var zb=typeof document<"u"?v.useLayoutEffect:v.useEffect;function aw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!aw(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(!("_owner"===n&&e.$$typeof||aw(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function QL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Oz(e,t){const n=QL(e);return Math.round(t*n)/n}function LE(e){const t=v.useRef(e);return zb((()=>{t.current=e})),t}function Wne(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,f]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=v.useState(r);aw(d,r)||p(r);const[h,m]=v.useState(null),[y,g]=v.useState(null),b=v.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),_=v.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),w=o||h,k=i||y,x=v.useRef(null),S=v.useRef(null),E=v.useRef(u),A=null!=c,z=LE(c),C=LE(a),I=LE(l),T=v.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:d};C.current&&(e.platform=C.current),qne(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==I.current};R.current&&!aw(E.current,t)&&(E.current=t,Zl.flushSync((()=>{f(t)})))}))}),[d,t,n,C,I]);zb((()=>{!1===l&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[l]);const R=v.useRef(!1);zb((()=>(R.current=!0,()=>{R.current=!1})),[]),zb((()=>{if(w&&(x.current=w),k&&(S.current=k),w&&k){if(z.current)return z.current(w,k,T);T()}}),[w,k,T,z,A]);const P=v.useMemo((()=>({reference:x,floating:S,setReference:b,setFloating:_})),[b,_]),j=v.useMemo((()=>({reference:w,floating:k})),[w,k]),O=v.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=Oz(j.floating,u.x),r=Oz(j.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...QL(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,j.floating,u.x,u.y]);return v.useMemo((()=>({...u,update:T,refs:P,elements:j,floatingStyles:O})),[u,T,P,j,O])}const Hne=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?$z({element:n.current,padding:r}).fn(t):{}:n?$z({element:n,padding:r}).fn(t):{}}}),Gne=(e,t)=>({...mne(e),options:[e,t]}),Kne=(e,t)=>({...jne(e),options:[e,t]}),Qne=(e,t)=>({...Vne(e),options:[e,t]}),Yne=(e,t)=>({...Bne(e),options:[e,t]}),Zne=(e,t)=>({...Fne(e),options:[e,t]}),Xne=(e,t)=>({...Une(e),options:[e,t]}),Jne=(e,t)=>({...Hne(e),options:[e,t]}),YL="Popper",[ZL,Q1]=ii(YL),[ere,XL]=ZL(YL),tre=e=>{const{__scopePopper:t,children:n}=e,[r,a]=v.useState(null);return v.createElement(ere,{scope:t,anchor:r,onAnchorChange:a},n)},nre="PopperAnchor",rre=v.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=XL(nre,n),i=v.useRef(null),s=yn(t,i);return v.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:v.createElement(St.div,Le({},a,{ref:s}))})),JL="PopperContent",[are,MWe]=ZL(JL),ore=v.forwardRef(((e,t)=>{var n,r,a,o,i,s,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:d=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:y=!0,collisionBoundary:g=[],collisionPadding:b=0,sticky:_="partial",hideWhenDetached:w=!1,updatePositionStrategy:k="optimized",onPlaced:x,...S}=e,E=XL(JL,u),[A,z]=v.useState(null),C=yn(t,(e=>z(e))),[I,T]=v.useState(null),R=yk(I),P=null!==(n=null==R?void 0:R.width)&&void 0!==n?n:0,j=null!==(r=null==R?void 0:R.height)&&void 0!==r?r:0,O=f+("center"!==p?"-"+p:""),N="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},M=Array.isArray(g)?g:[g],D=M.length>0,F={padding:N,boundary:M.filter(ire),altBoundary:D},{refs:L,floatingStyles:V,placement:q,isPositioned:B,middlewareData:U}=Wne({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>Lne(...e,{animationFrame:"always"===k}),elements:{reference:E.anchor},middleware:[Gne({mainAxis:d+j,alignmentAxis:h}),y&&Kne({mainAxis:!0,crossAxis:!1,limiter:"partial"===_?Qne():void 0,...F}),y&&Yne({...F}),Zne({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),I&&Jne({element:I,padding:m}),sre({arrowWidth:P,arrowHeight:j}),w&&Xne({strategy:"referenceHidden",...F})]}),[$,W]=ej(q),H=Bc(x);Mo((()=>{B&&(null==H||H())}),[B,H]);const G=null===(a=U.arrow)||void 0===a?void 0:a.x,K=null===(o=U.arrow)||void 0===o?void 0:o.y,Q=0!==(null===(i=U.arrow)||void 0===i?void 0:i.centerOffset),[Y,Z]=v.useState();return Mo((()=>{A&&Z(window.getComputedStyle(A).zIndex)}),[A]),v.createElement("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:B?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(c=U.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},v.createElement(are,{scope:u,placedSide:$,onArrowChange:T,arrowX:G,arrowY:K,shouldHideArrow:Q},v.createElement(St.div,Le({"data-side":$,"data-align":W},S,{ref:C,style:{...S.style,animation:B?void 0:"none",opacity:null!==(l=U.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))}));function ire(e){return null!==e}const sre=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a,o,i;const{placement:s,rects:c,middlewareData:l}=t,u=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),f=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=ej(s),m={start:"0%",center:"50%",end:"100%"}[h],y=(null!==(r=null===(a=l.arrow)||void 0===a?void 0:a.x)&&void 0!==r?r:0)+f/2,g=(null!==(o=null===(i=l.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+d/2;let v="",b="";return"bottom"===p?(v=u?m:`${y}px`,b=-d+"px"):"top"===p?(v=u?m:`${y}px`,b=`${c.floating.height+d}px`):"right"===p?(v=-d+"px",b=u?m:`${g}px`):"left"===p&&(v=`${c.floating.width+d}px`,b=u?m:`${g}px`),{data:{x:v,y:b}}}});function ej(e){const[t,n="center"]=e.split("-");return[t,n]}const tj=tre,ZA=rre,XA=ore,jE="rovingFocusGroup.onEntryFocus",cre={bubbles:!1,cancelable:!0},JA="RovingFocusGroup",[MC,nj,lre]=VA(JA),[fre,Y1]=ii(JA,[lre]),[ure,dre]=fre(JA),pre=v.forwardRef(((e,t)=>v.createElement(MC.Provider,{scope:e.__scopeRovingFocusGroup},v.createElement(MC.Slot,{scope:e.__scopeRovingFocusGroup},v.createElement(hre,Le({},e,{ref:t})))))),hre=v.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,...u}=e,f=v.useRef(null),d=yn(t,f),p=qA(o),[h=null,m]=wp({prop:i,defaultProp:s,onChange:c}),[y,g]=v.useState(!1),b=Bc(l),_=nj(n),w=v.useRef(!1),[k,x]=v.useState(0);return v.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(jE,b),()=>e.removeEventListener(jE,b)}),[b]),v.createElement(ure,{scope:n,orientation:r,dir:p,loop:a,currentTabStopId:h,onItemFocus:v.useCallback((e=>m(e)),[m]),onItemShiftTab:v.useCallback((()=>g(!0)),[]),onFocusableItemAdd:v.useCallback((()=>x((e=>e+1))),[]),onFocusableItemRemove:v.useCallback((()=>x((e=>e-1))),[])},v.createElement(St.div,Le({tabIndex:y||0===k?-1:0,"data-orientation":r},u,{ref:d,style:{outline:"none",...e.style},onMouseDown:lt(e.onMouseDown,(()=>{w.current=!0})),onFocus:lt(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(jE,cre);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=_().filter((e=>e.focusable));rj([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:lt(e.onBlur,(()=>g(!1)))})))})),mre="RovingFocusGroupItem",gre=v.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,...i}=e,s=hp(),c=o||s,l=dre(mre,n),u=l.currentTabStopId===c,f=nj(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=l;return v.useEffect((()=>{if(r)return d(),()=>p()}),[r,d,p]),v.createElement(MC.ItemSlot,{scope:n,id:c,focusable:r,active:a},v.createElement(St.span,Le({tabIndex:u?0:-1,"data-orientation":l.orientation},i,{ref:t,onMouseDown:lt(e.onMouseDown,(e=>{r?l.onItemFocus(c):e.preventDefault()})),onFocus:lt(e.onFocus,(()=>l.onItemFocus(c))),onKeyDown:lt(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=vre(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let n=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=l.loop?bre(n,r+1):n.slice(r+1)}setTimeout((()=>rj(n)))}}))})))})),yre={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _re(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function vre(e,t,n){const r=_re(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return yre[r]}function rj(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function bre(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const eT=pre,tT=gre,DC=["Enter"," "],wre=["ArrowDown","PageUp","Home"],aj=["ArrowUp","PageDown","End"],kre=[...wre,...aj],xre={ltr:[...DC,"ArrowRight"],rtl:[...DC,"ArrowLeft"]},Sre={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Sk="Menu",[r_,Ere,Cre]=VA(Sk),[Im,oj]=ii(Sk,[Cre,Q1,Y1]),ij=Q1(),sj=Y1(),[DWe,Pm]=Im(Sk),[NWe,q_]=Im(Sk),Rre=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,a=ij(n);return v.createElement(ZA,Le({},a,r,{ref:t}))})),cj="MenuPortal",[Are,lj]=Im(cj,{forceMount:void 0}),Tre=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,o=Pm(cj,t);return v.createElement(Are,{scope:t,forceMount:n},v.createElement(Ws,{present:n||o.open},v.createElement(iA,{asChild:!0,container:a},r)))},zc="MenuContent",[Ire,nT]=Im(zc),Pre=v.forwardRef(((e,t)=>{const n=lj(zc,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=Pm(zc,e.__scopeMenu),i=q_(zc,e.__scopeMenu);return v.createElement(r_.Provider,{scope:e.__scopeMenu},v.createElement(Ws,{present:r||o.open},v.createElement(r_.Slot,{scope:e.__scopeMenu},i.modal?v.createElement($re,Le({},a,{ref:t})):v.createElement(Ore,Le({},a,{ref:t})))))})),$re=v.forwardRef(((e,t)=>{const n=Pm(zc,e.__scopeMenu),r=v.useRef(null),a=yn(t,r);return v.useEffect((()=>{const e=r.current;if(e)return rk(e)}),[]),v.createElement(rT,Le({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:lt(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Ore=v.forwardRef(((e,t)=>{const n=Pm(zc,e.__scopeMenu);return v.createElement(rT,Le({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),rT=v.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p,disableOutsideScroll:h,...m}=e,y=Pm(zc,n),g=q_(zc,n),b=ij(n),_=sj(n),w=Ere(n),[k,x]=v.useState(null),S=v.useRef(null),E=yn(t,S,y.onContentChange),A=v.useRef(0),z=v.useRef(""),C=v.useRef(0),I=v.useRef(null),T=v.useRef("right"),R=v.useRef(0),P=h?nk:v.Fragment,j=h?{as:pm,allowPinchZoom:!0}:void 0;v.useEffect((()=>()=>window.clearTimeout(A.current)),[]),sA();const O=v.useCallback((e=>{var t,n;return T.current===(null===(t=I.current)||void 0===t?void 0:t.side)&&Zre(e,null===(n=I.current)||void 0===n?void 0:n.area)}),[]);return v.createElement(Ire,{scope:n,searchRef:z,onItemEnter:v.useCallback((e=>{O(e)&&e.preventDefault()}),[O]),onItemLeave:v.useCallback((e=>{var t;O(e)||(null===(t=S.current)||void 0===t||t.focus(),x(null))}),[O]),onTriggerLeave:v.useCallback((e=>{O(e)&&e.preventDefault()}),[O]),pointerGraceTimerRef:C,onPointerGraceIntentChange:v.useCallback((e=>{I.current=e}),[])},v.createElement(P,j,v.createElement(oA,{asChild:!0,trapped:a,onMountAutoFocus:lt(o,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:i},v.createElement(ek,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p},v.createElement(eT,Le({asChild:!0},_,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:x,onEntryFocus:lt(c,(e=>{g.isUsingKeyboardRef.current||e.preventDefault()}))}),v.createElement(XA,Le({role:"menu","aria-orientation":"vertical","data-state":hj(y.open),"data-radix-menu-content":"",dir:g.dir},b,m,{ref:E,style:{outline:"none",...m.style},onKeyDown:lt(m.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=z.current+e,a=w().filter((e=>!e.disabled)),o=document.activeElement,i=null===(t=a.find((e=>e.ref.current===o)))||void 0===t?void 0:t.textValue,s=Qre(a.map((e=>e.textValue)),r,i),c=null===(n=a.find((e=>e.textValue===s)))||void 0===n?void 0:n.ref.current;(function e(t){z.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout((()=>e("")),1e3))})(r),c&&setTimeout((()=>c.focus()))})(e.key));const a=S.current;if(e.target!==a||!kre.includes(e.key))return;e.preventDefault();const o=w().filter((e=>!e.disabled)).map((e=>e.ref.current));aj.includes(e.key)&&o.reverse(),Gre(o)})),onBlur:lt(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),z.current="")})),onPointerMove:lt(e.onPointerMove,a_((e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";T.current=t,R.current=e.clientX}})))})))))))})),zre=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return v.createElement(St.div,Le({},r,{ref:t}))})),NC="MenuItem",zz="menu.itemSelect",aT=v.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,o=v.useRef(null),i=q_(NC,e.__scopeMenu),s=nT(NC,e.__scopeMenu),c=yn(t,o),l=v.useRef(!1);return v.createElement(fj,Le({},a,{ref:c,disabled:n,onClick:lt(e.onClick,(()=>{const e=o.current;if(!n&&e){const t=new CustomEvent(zz,{bubbles:!0,cancelable:!0});e.addEventListener(zz,(e=>null==r?void 0:r(e)),{once:!0}),l7(e,t),t.defaultPrevented?l.current=!1:i.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),l.current=!0},onPointerUp:lt(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:lt(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||DC.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),fj=v.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,i=nT(NC,n),s=sj(n),c=v.useRef(null),l=yn(t,c),[u,f]=v.useState(!1),[d,p]=v.useState("");return v.useEffect((()=>{const e=c.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[o.children]),v.createElement(r_.ItemSlot,{scope:n,disabled:r,textValue:a??d},v.createElement(tT,Le({asChild:!0},s,{focusable:!r}),v.createElement(St.div,Le({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:l,onPointerMove:lt(e.onPointerMove,a_((e=>{r?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:lt(e.onPointerLeave,a_((e=>i.onItemLeave(e)))),onFocus:lt(e.onFocus,(()=>f(!0))),onBlur:lt(e.onBlur,(()=>f(!1)))}))))})),Mre=v.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return v.createElement(dj,{scope:e.__scopeMenu,checked:n},v.createElement(aT,Le({role:"menuitemcheckbox","aria-checked":ow(n)?"mixed":n},a,{ref:t,"data-state":oT(n),onSelect:lt(a.onSelect,(()=>null==r?void 0:r(!!ow(n)||!n)),{checkForDefaultPrevented:!1})})))})),Dre="MenuRadioGroup",[LWe,Nre]=Im(Dre,{value:void 0,onValueChange:()=>{}}),Lre="MenuRadioItem",jre=v.forwardRef(((e,t)=>{const{value:n,...r}=e,a=Nre(Lre,e.__scopeMenu),o=n===a.value;return v.createElement(dj,{scope:e.__scopeMenu,checked:o},v.createElement(aT,Le({role:"menuitemradio","aria-checked":o},r,{ref:t,"data-state":oT(o),onSelect:lt(r.onSelect,(()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,n)}),{checkForDefaultPrevented:!1})})))})),uj="MenuItemIndicator",[dj,Bre]=Im(uj,{checked:!1}),Fre=v.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,o=Bre(uj,n);return v.createElement(Ws,{present:r||ow(o.checked)||!0===o.checked},v.createElement(St.span,Le({},a,{ref:t,"data-state":oT(o.checked)})))})),Ure=v.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return v.createElement(St.div,Le({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),Vre="MenuSub",[jWe,pj]=Im(Vre),ab="MenuSubTrigger",qre=v.forwardRef(((e,t)=>{const n=Pm(ab,e.__scopeMenu),r=q_(ab,e.__scopeMenu),a=pj(ab,e.__scopeMenu),o=nT(ab,e.__scopeMenu),i=v.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=o,l={__scopeMenu:e.__scopeMenu},u=v.useCallback((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return v.useEffect((()=>u),[u]),v.useEffect((()=>{const e=s.current;return()=>{window.clearTimeout(e),c(null)}}),[s,c]),v.createElement(Rre,Le({asChild:!0},l),v.createElement(fj,Le({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":hj(n.open)},e,{ref:rA(t,a.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:lt(e.onPointerMove,a_((t=>{o.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:lt(e.onPointerLeave,a_((e=>{var t;u();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var a;const t=null===(a=n.content)||void 0===a?void 0:a.dataset.side,i="right"===t,c=i?-5:5,l=r[i?"left":"right"],u=r[i?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+c,y:e.clientY},{x:l,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:l,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>o.onPointerGraceIntentChange(null)),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}}))),onKeyDown:lt(e.onKeyDown,(t=>{const a=""!==o.searchRef.current;var i;e.disabled||a&&" "===t.key||!xre[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})))})),Wre="MenuSubContent",Hre=v.forwardRef(((e,t)=>{const n=lj(zc,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=Pm(zc,e.__scopeMenu),i=q_(zc,e.__scopeMenu),s=pj(Wre,e.__scopeMenu),c=v.useRef(null),l=yn(t,c);return v.createElement(r_.Provider,{scope:e.__scopeMenu},v.createElement(Ws,{present:r||o.open},v.createElement(r_.Slot,{scope:e.__scopeMenu},v.createElement(rT,Le({id:s.contentId,"aria-labelledby":s.triggerId},a,{ref:l,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;i.isUsingKeyboardRef.current&&(null===(t=c.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:lt(e.onFocusOutside,(e=>{e.target!==s.trigger&&o.onOpenChange(!1)})),onEscapeKeyDown:lt(e.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:lt(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=Sre[i.dir].includes(e.key);var r;t&&n&&(o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function hj(e){return e?"open":"closed"}function ow(e){return"indeterminate"===e}function oT(e){return ow(e)?"indeterminate":e?"checked":"unchecked"}function Gre(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Kre(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function Qre(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=Kre(e,Math.max(a,0));1===r.length&&(o=o.filter((e=>e!==n)));const i=o.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function Yre(e,t){const{x:n,y:r}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const i=t[e].x,s=t[e].y,c=t[o].x,l=t[o].y;s>r!=l>r&&n<(c-i)*(r-s)/(l-s)+i&&(a=!a)}return a}function Zre(e,t){if(!t)return!1;return Yre({x:e.clientX,y:e.clientY},t)}function a_(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Xre=Tre,Jre=Pre,eae=zre,tae=aT,nae=Mre,rae=jre,aae=Fre,oae=Ure,iae=qre,sae=Hre,mj="DropdownMenu",[cae,BWe]=ii(mj,[oj]),Jl=oj(),[FWe,lae]=cae(mj),fae=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Jl(t);return v.createElement(Xre,Le({},r,n))},uae="DropdownMenuContent",dae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=lae(uae,n),o=Jl(n),i=v.useRef(!1);return v.createElement(Jre,Le({id:a.contentId,"aria-labelledby":a.triggerId},o,r,{ref:t,onCloseAutoFocus:lt(e.onCloseAutoFocus,(e=>{var t;i.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),i.current=!1,e.preventDefault()})),onInteractOutside:lt(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(i.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),pae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(eae,Le({},a,r,{ref:t}))})),hae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(tae,Le({},a,r,{ref:t}))})),mae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(nae,Le({},a,r,{ref:t}))})),gae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(rae,Le({},a,r,{ref:t}))})),yae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(aae,Le({},a,r,{ref:t}))})),_ae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(oae,Le({},a,r,{ref:t}))})),vae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(iae,Le({},a,r,{ref:t}))})),bae=v.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Jl(n);return v.createElement(sae,Le({},a,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),wae=fae,gj=dae,yj=pae,_j=hae,vj=mae,bj=gae,wj=yae,iT=_ae,kj=vae,xj=bae,kae=v.forwardRef((({className:e,inset:t,children:n,...r},a)=>F.jsxs(kj,{ref:a,className:$e("flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,F.jsx(Z8,{className:"ml-auto h-4 w-4"})]})));kae.displayName=kj.displayName;const xae=v.forwardRef((({className:e,...t},n)=>F.jsx(xj,{ref:n,className:$e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));xae.displayName=xj.displayName;const Sae=v.forwardRef((({className:e,sideOffset:t=4,...n},r)=>F.jsx(wae,{children:F.jsx(gj,{ref:r,sideOffset:t,className:$e("z-[101] min-w-[8rem] overflow-hidden rounded-md border bg-popover p-[8px] text-popover-foreground shadow-md data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})})));Sae.displayName=gj.displayName;const Eae=v.forwardRef((({className:e,inset:t,...n},r)=>F.jsx(_j,{ref:r,className:$e("relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n})));Eae.displayName=_j.displayName;const Cae=v.forwardRef((({className:e,children:t,checked:n,...r},a)=>F.jsxs(vj,{ref:a,className:$e("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[F.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:F.jsx(wj,{children:F.jsx(eA,{className:"h-4 w-4"})})}),t]})));Cae.displayName=vj.displayName;const Rae=v.forwardRef((({className:e,children:t,...n},r)=>F.jsxs(bj,{ref:r,className:$e("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[F.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:F.jsx(wj,{children:F.jsx(X8,{className:"h-2 w-2 fill-current"})})}),t]})));Rae.displayName=bj.displayName;const Aae=v.forwardRef((({className:e,inset:t,...n},r)=>F.jsx(yj,{ref:r,className:$e("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})));Aae.displayName=yj.displayName;const Tae=v.forwardRef((({className:e,...t},n)=>F.jsx(iT,{ref:n,className:$e("-mx-1 my-1 h-px bg-muted",e),...t})));Tae.displayName=iT.displayName;var W_=e=>"checkbox"===e.type,u1=e=>e instanceof Date,ti=e=>null==e;const Sj=e=>"object"==typeof e;var ua=e=>!ti(e)&&!Array.isArray(e)&&Sj(e)&&!u1(e),Iae=e=>ua(e)&&e.target?W_(e.target)?e.target.checked:e.target.value:e,Pae=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,$ae=(e,t)=>e.has(Pae(t)),Oae=e=>{const t=e.constructor&&e.constructor.prototype;return ua(t)&&t.hasOwnProperty("isPrototypeOf")},sT=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ns(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(sT&&(e instanceof Blob||e instanceof FileList)||!n&&!ua(e))return e;if(t=n?[]:{},n||Oae(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=Ns(e[n]));else t=e}return t}var H_=e=>Array.isArray(e)?e.filter(Boolean):[],Br=e=>void 0===e,dt=(e,t,n)=>{if(!t||!ua(e))return n;const r=H_(t.split(/[,[\].]+?/)).reduce(((e,t)=>ti(e)?e:e[t]),e);return Br(r)||r===e?Br(e[t])?n:e[t]:r},du=e=>"boolean"==typeof e;const Mz={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ic={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},nu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ej=ze.createContext(null),zae=()=>ze.useContext(Ej),Mae=e=>{const{children:t,...n}=e;return ze.createElement(Ej.Provider,{value:n},t)};var Dae=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const n in e)Object.defineProperty(a,n,{get:()=>{const a=n;return t._proxyFormState[a]!==Ic.all&&(t._proxyFormState[a]=!r||Ic.all),e[a]}});return a},Ls=e=>ua(e)&&!Object.keys(e).length,Nae=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return Ls(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===Ic.all))},BE=e=>Array.isArray(e)?e:[e];function Lae(e){const t=ze.useRef(e);t.current=e,ze.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var Nl=e=>"string"==typeof e,jae=(e,t,n,r,a)=>Nl(e)?(r&&t.watch.add(e),dt(n,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),dt(n,e)))):(r&&(t.watchAll=!0),n),cT=e=>/^\w*$/.test(e),Cj=e=>H_(e.replace(/["|']|\]/g,"").split(/\.|\[/)),or=(e,t,n)=>{let r=-1;const a=cT(t)?[t]:Cj(t),o=a.length,i=o-1;for(;++r<o;){const t=a[r];let o=n;if(r!==i){const n=e[t];o=ua(n)||Array.isArray(n)?n:isNaN(+a[r+1])?{}:[]}e[t]=o,e=e[t]}return e},Bae=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Dz=e=>({isOnSubmit:!e||e===Ic.onSubmit,isOnBlur:e===Ic.onBlur,isOnChange:e===Ic.onChange,isOnAll:e===Ic.all,isOnTouch:e===Ic.onTouched}),Nz=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const Py=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=dt(e,a);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!r)break;if(e.ref&&t(e.ref,e.name)&&!r)break;Py(o,t)}else ua(o)&&Py(o,t)}}};var Fae=(e,t,n)=>{const r=H_(dt(e,n));return or(r,"root",t[n]),or(e,n,r),e},lT=e=>"file"===e.type,pp=e=>"function"==typeof e,iw=e=>{if(!sT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Mb=e=>Nl(e),fT=e=>"radio"===e.type,sw=e=>e instanceof RegExp;const Lz={value:!1,isValid:!1},jz={value:!0,isValid:!0};var Rj=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Br(e[0].attributes.value)?Br(e[0].value)||""===e[0].value?jz:{value:e[0].value,isValid:!0}:jz:Lz}return Lz};const Bz={isValid:!1,value:null};var Aj=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Bz):Bz;function Fz(e,t,n="validate"){if(Mb(e)||Array.isArray(e)&&e.every(Mb)||du(e)&&!e)return{type:n,message:Mb(e)?e:"",ref:t}}var e1=e=>ua(e)&&!sw(e)?e:{value:e,message:""},Uz=async(e,t,n,r,a)=>{const{ref:o,refs:i,required:s,maxLength:c,minLength:l,min:u,max:f,pattern:d,validate:p,name:h,valueAsNumber:m,mount:y,disabled:g}=e._f,v=dt(t,h);if(!y||g)return{};const b=i?i[0]:o,_=e=>{r&&b.reportValidity&&(b.setCustomValidity(du(e)?"":e||""),b.reportValidity())},w={},k=fT(o),x=W_(o),S=k||x,E=(m||lT(o))&&Br(o.value)&&Br(v)||iw(o)&&""===o.value||""===v||Array.isArray(v)&&!v.length,A=Bae.bind(null,h,n,w),z=(e,t,n,r=nu.maxLength,a=nu.minLength)=>{const i=e?t:n;w[h]={type:e?r:a,message:i,ref:o,...A(e?r:a,i)}};if(a?!Array.isArray(v)||!v.length:s&&(!S&&(E||ti(v))||du(v)&&!v||x&&!Rj(i).isValid||k&&!Aj(i).isValid)){const{value:e,message:t}=Mb(s)?{value:!!s,message:s}:e1(s);if(e&&(w[h]={type:nu.required,message:t,ref:b,...A(nu.required,t)},!n))return _(t),w}if(!(E||ti(u)&&ti(f))){let e,t;const r=e1(f),a=e1(u);if(ti(v)||isNaN(v)){const n=o.valueAsDate||new Date(v),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==o.type,c="week"==o.type;Nl(r.value)&&v&&(e=s?i(v)>i(r.value):c?v>r.value:n>new Date(r.value)),Nl(a.value)&&v&&(t=s?i(v)<i(a.value):c?v<a.value:n<new Date(a.value))}else{const n=o.valueAsNumber||v&&+v;ti(r.value)||(e=n>r.value),ti(a.value)||(t=n<a.value)}if((e||t)&&(z(!!e,r.message,a.message,nu.max,nu.min),!n))return _(w[h].message),w}if((c||l)&&!E&&(Nl(v)||a&&Array.isArray(v))){const e=e1(c),t=e1(l),r=!ti(e.value)&&v.length>+e.value,a=!ti(t.value)&&v.length<+t.value;if((r||a)&&(z(r,e.message,t.message),!n))return _(w[h].message),w}if(d&&!E&&Nl(v)){const{value:e,message:t}=e1(d);if(sw(e)&&!v.match(e)&&(w[h]={type:nu.pattern,message:t,ref:o,...A(nu.pattern,t)},!n))return _(t),w}if(p)if(pp(p)){const e=Fz(await p(v,t),b);if(e&&(w[h]={...e,...A(nu.validate,e.message)},!n))return _(e.message),w}else if(ua(p)){let e={};for(const r in p){if(!Ls(e)&&!n)break;const a=Fz(await p[r](v,t),b,r);a&&(e={...a,...A(r,a.message)},_(a.message),n&&(w[h]=e))}if(!Ls(e)&&(w[h]={ref:b,...e},!n))return w}return _(!0),w};function Uae(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Br(e)?r++:e[t[r++]];return e}function Vae(e){for(const t in e)if(e.hasOwnProperty(t)&&!Br(e[t]))return!1;return!0}function Ua(e,t){const n=Array.isArray(t)?t:cT(t)?[t]:Cj(t),r=1===n.length?e:Uae(e,n),a=n.length-1,o=n[a];return r&&delete r[o],0!==a&&(ua(r)&&Ls(r)||Array.isArray(r)&&Vae(r))&&Ua(e,n.slice(0,-1)),e}var FE=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},cw=e=>ti(e)||!Sj(e);function nm(e,t){if(cw(e)||cw(t))return e===t;if(u1(e)&&u1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const n=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(u1(n)&&u1(e)||ua(n)&&ua(e)||Array.isArray(n)&&Array.isArray(e)?!nm(n,e):n!==e)return!1}}return!0}var Tj=e=>"select-multiple"===e.type,qae=e=>fT(e)||W_(e),UE=e=>iw(e)&&e.isConnected,Wae=e=>ua(e)&&Object.values(e).some((e=>e)),Ij=e=>{for(const t in e)if(pp(e[t]))return!0;return!1};function lw(e,t={}){const n=Array.isArray(e);if(ua(e)||n)for(const n in e)Array.isArray(e[n])||ua(e[n])&&!Ij(e[n])?(t[n]=Array.isArray(e[n])?[]:{},lw(e[n],t[n])):ti(e[n])||(t[n]=!0);return t}function Pj(e,t,n){const r=Array.isArray(e);if(ua(e)||r)for(const r in e)Array.isArray(e[r])||ua(e[r])&&!Ij(e[r])?Br(t)||cw(n[r])?n[r]=Array.isArray(e[r])?lw(e[r],[]):{...lw(e[r])}:Pj(e[r],ti(t)?{}:t[r],n[r]):n[r]=!nm(e[r],t[r]);return n}var ob=(e,t)=>Pj(e,t,lw(t)),$j=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Br(e)?e:t?""===e?NaN:e&&+e:n&&Nl(e)?new Date(e):r?r(e):e;function VE(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return lT(t)?t.files:fT(t)?Aj(e.refs).value:Tj(t)?[...t.selectedOptions].map((({value:e})=>e)):W_(t)?Rj(e.refs).value:$j(Br(t.value)?e.ref.value:t.value,e)}var Hae=(e,t,n,r)=>{const a={};for(const n of e){const e=dt(t,n);e&&or(a,n,e._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},oy=e=>Br(e)?e:sw(e)?e.source:ua(e)?sw(e.value)?e.value.source:e.value:e,Gae=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Vz(e,t,n){const r=dt(e,n);if(r||cT(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=dt(t,r),i=dt(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};a.pop()}return{name:n}}var Kae=(e,t,n,r,a)=>!a.isOnAll&&(!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:!(n?r.isOnChange:a.isOnChange)||e),Qae=(e,t)=>!H_(dt(e,t)).length&&Ua(e,t);const Yae={mode:Ic.onSubmit,reValidateMode:Ic.onChange,shouldFocusError:!0};function Zae(e={}){let t,n={...Yae,...e},r={submitCount:0,isDirty:!1,isLoading:pp(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},o=(ua(n.defaultValues)||ua(n.values))&&Ns(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:Ns(o),s={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:FE(),array:FE(),state:FE()},d=Dz(n.mode),p=Dz(n.reValidateMode),h=n.criteriaMode===Ic.all,m=async e=>{if(u.isValid||e){const e=n.resolver?Ls((await _()).errors):await w(a,!0);e!==r.isValid&&f.state.next({isValid:e})}},y=(e,t)=>{(u.isValidating||u.validatingFields)&&(t.forEach((t=>{or(r.validatingFields,t,e)})),r.isValidating=Wae(r.validatingFields),f.state.next({validatingFields:r.validatingFields,isValidating:r.isValidating}))},g=(e,t,n,r)=>{const c=dt(a,e);if(c){const a=dt(i,e,Br(n)?dt(o,e):n);Br(a)||r&&r.defaultChecked||t?or(i,e,t?a:VE(c._f)):S(e,a),s.mount&&m()}},v=(e,t,n,i,s)=>{let c=!1,l=!1;const d={name:e},p=!(!dt(a,e)||!dt(a,e)._f.disabled);if(!n||i){u.isDirty&&(l=r.isDirty,r.isDirty=d.isDirty=k(),c=l!==d.isDirty);const n=p||nm(dt(o,e),t);l=!(p||!dt(r.dirtyFields,e)),n||p?Ua(r.dirtyFields,e):or(r.dirtyFields,e,!0),d.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&l!==!n}if(n){const t=dt(r.touchedFields,e);t||(or(r.touchedFields,e,n),d.touchedFields=r.touchedFields,c=c||u.touchedFields&&t!==n)}return c&&s&&f.state.next(d),c?d:{}},b=(n,a,o,i)=>{const s=dt(r.errors,n),c=u.isValid&&du(a)&&r.isValid!==a;if(e.delayError&&o?(t=(e=>t=>{clearTimeout(l),l=setTimeout(e,t)})((()=>((e,t)=>{or(r.errors,e,t),f.state.next({errors:r.errors})})(n,o))),t(e.delayError)):(clearTimeout(l),t=null,o?or(r.errors,n,o):Ua(r.errors,n)),(o?!nm(s,o):s)||!Ls(i)||c){const e={...i,...c&&du(a)?{isValid:a}:{},errors:r.errors,name:n};r={...r,...e},f.state.next(e)}y(!1,Object.keys(r.validatingFields).filter((e=>e===n)))},_=async e=>n.resolver(i,n.context,Hae(e||c.mount,a,n.criteriaMode,n.shouldUseNativeValidation)),w=async(e,t,a={valid:!0})=>{for(const o in e){const s=e[o];if(s){const{_f:e,...o}=s;if(e){const o=c.array.has(e.name),l=await Uz(s,i,h,n.shouldUseNativeValidation&&!t,o);if(l[e.name]&&(a.valid=!1,t))break;!t&&(dt(l,e.name)?o?Fae(r.errors,l,e.name):or(r.errors,e.name,l[e.name]):Ua(r.errors,e.name))}o&&await w(o,t,a)}}return a.valid},k=(e,t)=>(e&&t&&or(i,e,t),!nm(T(),o)),x=(e,t,n)=>jae(e,c,{...s.mount?i:Br(t)?o:Nl(e)?{[e]:t}:t},n,t),S=(e,t,n={})=>{const r=dt(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&or(i,e,$j(t,n)),o=iw(n.ref)&&ti(t)?"":t,Tj(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?W_(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):lT(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||f.values.next({name:e,values:{...i}})))}(n.shouldDirty||n.shouldTouch)&&v(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&I(e)},E=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=dt(a,i);!c.array.has(e)&&cw(o)&&(!s||s._f)||u1(o)?S(i,o,n):E(i,o,n)}},A=(e,t,n={})=>{const l=dt(a,e),d=c.array.has(e),p=Ns(t);or(i,e,p),d?(f.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&f.state.next({name:e,dirtyFields:ob(o,i),isDirty:k(e,p)})):!l||l._f||ti(p)?S(e,p,n):E(e,p,n),Nz(e,c)&&f.state.next({...r}),f.values.next({name:s.mount?e:void 0,values:{...i}})},z=async e=>{const o=e.target;let s=o.name,l=!0;const g=dt(a,s),k=e=>{l=Number.isNaN(e)||e===dt(i,s,e)};if(g){let x,S;const E=o.type?VE(g._f):Iae(e),A=e.type===Mz.BLUR||e.type===Mz.FOCUS_OUT,z=!Gae(g._f)&&!n.resolver&&!dt(r.errors,s)&&!g._f.deps||Kae(A,dt(r.touchedFields,s),r.isSubmitted,p,d),C=Nz(s,c,A);or(i,s,E),A?(g._f.onBlur&&g._f.onBlur(e),t&&t(0)):g._f.onChange&&g._f.onChange(e);const T=v(s,E,A,!1),R=!Ls(T)||C;if(!A&&f.values.next({name:s,type:e.type,values:{...i}}),z)return u.isValid&&m(),R&&f.state.next({name:s,...C?{}:T});if(!A&&C&&f.state.next({...r}),y(!0,[s]),n.resolver){const{errors:e}=await _([s]);if(k(E),l){const t=Vz(r.errors,a,s),n=Vz(e,a,t.name||s);x=n.error,s=n.name,S=Ls(e)}}else x=(await Uz(g,i,h,n.shouldUseNativeValidation))[s],k(E),l&&(x?S=!1:u.isValid&&(S=await w(a,!0)));l&&(g._f.deps&&I(g._f.deps),b(s,S,x,T))}},C=(e,t)=>{if(dt(r.errors,t)&&e.focus)return e.focus(),1},I=async(e,t={})=>{let o,i;const s=BE(e);if(y(!0,s),n.resolver){const t=await(async e=>{const{errors:t}=await _(e);if(e)for(const n of e){const e=dt(t,n);e?or(r.errors,n,e):Ua(r.errors,n)}else r.errors=t;return t})(Br(e)?e:s);o=Ls(t),i=e?!s.some((e=>dt(t,e))):o}else e?(i=(await Promise.all(s.map((async e=>{const t=dt(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&m()):i=o=await w(a);return f.state.next({...!Nl(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!i&&Py(a,C,e?s:c.mount),i},T=e=>{const t={...o,...s.mount?i:{}};return Br(e)?t:Nl(e)?dt(t,e):e.map((e=>dt(t,e)))},R=(e,t)=>({invalid:!!dt((t||r).errors,e),isDirty:!!dt((t||r).dirtyFields,e),isTouched:!!dt((t||r).touchedFields,e),isValidating:!!dt((t||r).validatingFields,e),error:dt((t||r).errors,e)}),P=(e,t,n)=>{const o=(dt(a,e,{_f:{}})._f||{}).ref;or(r.errors,e,{...t,ref:o}),f.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},j=(e,t={})=>{for(const s of e?BE(e):c.mount)c.mount.delete(s),c.array.delete(s),t.keepValue||(Ua(a,s),Ua(i,s)),!t.keepError&&Ua(r.errors,s),!t.keepDirty&&Ua(r.dirtyFields,s),!t.keepTouched&&Ua(r.touchedFields,s),!t.keepIsValidating&&Ua(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&Ua(o,s);f.values.next({values:{...i}}),f.state.next({...r,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&m()},O=({disabled:e,name:t,field:n,fields:r,value:a})=>{if(du(e)){const o=e?void 0:Br(a)?VE(n?n._f:dt(r,t)._f):a;or(i,t,o),v(t,o,!1,!1,!0)}},N=(e,t={})=>{let r=dt(a,e);const i=du(t.disabled);return or(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),c.mount.add(e),r?O({field:r,disabled:t.disabled,name:e,value:t.value}):g(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:oy(t.min),max:oy(t.max),minLength:oy(t.minLength),maxLength:oy(t.maxLength),pattern:oy(t.pattern)}:{},name:e,onChange:z,onBlur:z,ref:i=>{if(i){N(e,t),r=dt(a,e);const n=Br(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=qae(n),c=r._f.refs||[];if(s?c.find((e=>e===n)):n===r._f.ref)return;or(a,e,{_f:{...r._f,...s?{refs:[...c.filter(UE),n,...Array.isArray(dt(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else r=dt(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!$ae(c.array,e)||!s.action)&&c.unMount.add(e)}}},M=()=>n.shouldFocusError&&Py(a,C,c.mount),D=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=Ns(i);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await _();r.errors=e,c=t}else await w(a);if(Ua(r.errors,"root"),Ls(r.errors)){f.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else t&&await t({...r.errors},o),M(),setTimeout(M);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ls(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},F=(t,n={})=>{const l=t?Ns(t):o,d=Ns(l),p=Ls(t),h=p?o:d;if(n.keepDefaultValues||(o=l),!n.keepValues){if(n.keepDirtyValues)for(const e of c.mount)dt(r.dirtyFields,e)?or(h,e,dt(i,e)):A(e,dt(h,e));else{if(sT&&Br(t))for(const e of c.mount){const t=dt(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(iw(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=e.shouldUnregister?n.keepDefaultValues?Ns(o):{}:Ns(h),f.array.next({values:{...h}}),f.values.next({values:{...h}})}c={mount:n.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!n.keepIsValid||!!n.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!p&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||nm(t,o))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:p?[]:n.keepDirtyValues?n.keepDefaultValues&&i?ob(o,i):r.dirtyFields:n.keepDefaultValues&&t?ob(o,t):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},L=(e,t)=>F(pp(e)?e(i):e,t);return{control:{register:N,unregister:j,getFieldState:R,handleSubmit:D,setError:P,_executeSchema:_,_getWatch:x,_getDirty:k,_updateValid:m,_removeUnmounted:()=>{for(const e of c.unMount){const t=dt(a,e);t&&(t._f.refs?t._f.refs.every((e=>!UE(e))):!UE(t._f.ref))&&j(e)}c.unMount=new Set},_updateFieldArray:(e,t=[],n,c,l=!0,d=!0)=>{if(c&&n){if(s.action=!0,d&&Array.isArray(dt(a,e))){const t=n(dt(a,e),c.argA,c.argB);l&&or(a,e,t)}if(d&&Array.isArray(dt(r.errors,e))){const t=n(dt(r.errors,e),c.argA,c.argB);l&&or(r.errors,e,t),Qae(r.errors,e)}if(u.touchedFields&&d&&Array.isArray(dt(r.touchedFields,e))){const t=n(dt(r.touchedFields,e),c.argA,c.argB);l&&or(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=ob(o,i)),f.state.next({name:e,isDirty:k(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else or(i,e,t)},_updateDisabledField:O,_getFieldArray:t=>H_(dt(s.mount?i:o,t,e.shouldUnregister?dt(o,t,[]):[])),_reset:F,_resetDefaultValues:()=>pp(n.defaultValues)&&n.defaultValues().then((e=>{L(e,n.resetOptions),f.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{du(e)&&(f.state.next({disabled:e}),Py(a,((t,n)=>{let r=e;const o=dt(a,n);o&&du(o._f.disabled)&&(r||(r=o._f.disabled)),t.disabled=r}),0,!1))},_subjects:f,_proxyFormState:u,_setErrors:e=>{r.errors=e,f.state.next({errors:r.errors,isValid:!1})},get _fields(){return a},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return c},set _names(e){c=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:I,register:N,handleSubmit:D,watch:(e,t)=>pp(e)?f.values.subscribe({next:n=>e(x(void 0,t),n)}):x(e,t,!0),setValue:A,getValues:T,reset:L,resetField:(e,t={})=>{dt(a,e)&&(Br(t.defaultValue)?A(e,Ns(dt(o,e))):(A(e,t.defaultValue),or(o,e,Ns(t.defaultValue))),t.keepTouched||Ua(r.touchedFields,e),t.keepDirty||(Ua(r.dirtyFields,e),r.isDirty=t.defaultValue?k(e,Ns(dt(o,e))):k()),t.keepError||(Ua(r.errors,e),u.isValid&&m()),f.state.next({...r}))},clearErrors:e=>{e&&BE(e).forEach((e=>Ua(r.errors,e))),f.state.next({errors:e?r.errors:{}})},unregister:j,setError:P,setFocus:(e,t={})=>{const n=dt(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:R}}function Xae(e={}){const t=ze.useRef(),n=ze.useRef(),[r,a]=ze.useState({isDirty:!1,isValidating:!1,isLoading:pp(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:pp(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Zae(e),formState:r});const o=t.current.control;return o._options=e,Lae({subject:o._subjects.state,next:e=>{Nae(e,o._proxyFormState,o._updateFormState)&&a({...o._formState})}}),ze.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),ze.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,r.isDirty]),ze.useEffect((()=>{e.values&&!nm(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),ze.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),ze.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),ze.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=Dae(r,o),t.current}function qz(e,[t,n]){return Math.min(n,Math.max(t,e))}const Oj=v.forwardRef(((e,t)=>v.createElement(St.span,Le({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Jae=Oj,eoe=[" ","Enter","ArrowUp","ArrowDown"],toe=[" ","Enter"],Ek="Select",[Ck,Rk,noe]=VA(Ek),[Z1,UWe]=ii(Ek,[noe,Q1]),uT=Q1(),[roe,$m]=Z1(Ek),[aoe,ooe]=Z1(Ek),ioe=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:d,required:p}=e,h=uT(t),[m,y]=v.useState(null),[g,b]=v.useState(null),[_,w]=v.useState(!1),k=qA(l),[x=!1,S]=wp({prop:r,defaultProp:a,onChange:o}),[E,A]=wp({prop:i,defaultProp:s,onChange:c}),z=v.useRef(null),C=!m||!!m.closest("form"),[I,T]=v.useState(new Set),R=Array.from(I).map((e=>e.props.value)).join(";");return v.createElement(tj,h,v.createElement(roe,{required:p,scope:t,trigger:m,onTriggerChange:y,valueNode:g,onValueNodeChange:b,valueNodeHasChildren:_,onValueNodeHasChildrenChange:w,contentId:hp(),value:E,onValueChange:A,open:x,onOpenChange:S,dir:k,triggerPointerDownPosRef:z,disabled:d},v.createElement(Ck.Provider,{scope:t},v.createElement(aoe,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback((e=>{T((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:v.useCallback((e=>{T((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),C?v.createElement(Lj,{key:R,"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:f,value:E,onChange:e=>A(e.target.value),disabled:d},void 0===E?v.createElement("option",{value:""}):null,Array.from(I)):null))},soe="SelectTrigger",coe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=uT(n),i=$m(soe,n),s=i.disabled||r,c=yn(t,i.onTriggerChange),l=Rk(n),[u,f,d]=jj((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=Bj(t,e,n);void 0!==r&&i.onValueChange(r.value)})),p=()=>{s||(i.onOpenChange(!0),d())};return v.createElement(ZA,Le({asChild:!0},o),v.createElement(St.button,Le({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Nj(i.value)?"":void 0},a,{ref:c,onClick:lt(a.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:lt(a.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:lt(a.onKeyDown,(e=>{const t=""!==u.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&f(e.key),(!t||" "!==e.key)&&eoe.includes(e.key)&&(p(),e.preventDefault())}))})))})),loe="SelectValue",foe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,c=$m(loe,n),{onValueNodeHasChildrenChange:l}=c,u=void 0!==o,f=yn(t,c.onValueNodeChange);return Mo((()=>{l(u)}),[l,u]),v.createElement(St.span,Le({},s,{ref:f,style:{pointerEvents:"none"}}),Nj(c.value)?v.createElement(v.Fragment,null,i):o)})),uoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return v.createElement(St.span,Le({"aria-hidden":!0},a,{ref:t}),r||"▼")})),doe=e=>v.createElement(iA,Le({asChild:!0},e)),R1="SelectContent",poe=v.forwardRef(((e,t)=>{const n=$m(R1,e.__scopeSelect),[r,a]=v.useState();if(Mo((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?Zl.createPortal(v.createElement(zj,{scope:e.__scopeSelect},v.createElement(Ck.Slot,{scope:e.__scopeSelect},v.createElement("div",null,e.children))),t):null}return v.createElement(hoe,Le({},e,{ref:t}))})),su=10,[zj,Om]=Z1(R1),hoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:y,...g}=e,b=$m(R1,n),[_,w]=v.useState(null),[k,x]=v.useState(null),S=yn(t,(e=>w(e))),[E,A]=v.useState(null),[z,C]=v.useState(null),I=Rk(n),[T,R]=v.useState(!1),P=v.useRef(!1);v.useEffect((()=>{if(_)return rk(_)}),[_]),sA();const j=v.useCallback((e=>{const[t,...n]=I().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement;for(const n of e)if(n===a||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),null==n||n.focus(),document.activeElement!==a))return}),[I,k]),O=v.useCallback((()=>j([E,_])),[j,E,_]);v.useEffect((()=>{T&&O()}),[T,O]);const{onOpenChange:N,triggerPointerDownPosRef:M}=b;v.useEffect((()=>{if(_){let e={x:0,y:0};const t=t=>{var n,r,a,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=M.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(a=null===(o=M.current)||void 0===o?void 0:o.y)&&void 0!==a?a:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():_.contains(n.target)||N(!1),document.removeEventListener("pointermove",t),M.current=null};return null!==M.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[_,N,M]),v.useEffect((()=>{const e=()=>N(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[N]);const[D,F]=jj((e=>{const t=I().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=Bj(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),L=v.useCallback(((e,t,n)=>{const r=!P.current&&!n;(void 0!==b.value&&b.value===t||r)&&(A(e),r&&(P.current=!0))}),[b.value]),V=v.useCallback((()=>null==_?void 0:_.focus()),[_]),q=v.useCallback(((e,t,n)=>{const r=!P.current&&!n;(void 0!==b.value&&b.value===t||r)&&C(e)}),[b.value]),B="popper"===r?Wz:moe,U=B===Wz?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:y}:{};return v.createElement(zj,{scope:n,content:_,viewport:k,onViewportChange:x,itemRefCallback:L,selectedItem:E,onItemLeave:V,itemTextRefCallback:q,focusSelectedItem:O,selectedItemText:z,position:r,isPositioned:T,searchRef:D},v.createElement(nk,{as:pm,allowPinchZoom:!0},v.createElement(oA,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:lt(a,(e=>{var t;null===(t=b.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},v.createElement(ek,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},v.createElement(B,Le({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault()},g,U,{onPlaced:()=>R(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:lt(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>j(t))),e.preventDefault()}}))}))))))})),moe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=$m(R1,n),i=Om(R1,n),[s,c]=v.useState(null),[l,u]=v.useState(null),f=yn(t,(e=>u(e))),d=Rk(n),p=v.useRef(!1),h=v.useRef(!0),{viewport:m,selectedItem:y,selectedItemText:g,focusSelectedItem:b}=i,_=v.useCallback((()=>{if(o.trigger&&o.valueNode&&s&&l&&m&&y&&g){const e=o.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=g.getBoundingClientRect();if("rtl"!==o.dir){const r=a.left-t.left,o=n.left-r,i=e.left-o,c=e.width+i,l=Math.max(c,t.width),u=window.innerWidth-su,f=qz(o,[su,u-l]);s.style.minWidth=c+"px",s.style.left=f+"px"}else{const r=t.right-a.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,c=e.width+i,l=Math.max(c,t.width),u=window.innerWidth-su,f=qz(o,[su,u-l]);s.style.minWidth=c+"px",s.style.right=f+"px"}const i=d(),c=window.innerHeight-2*su,u=m.scrollHeight,f=window.getComputedStyle(l),h=parseInt(f.borderTopWidth,10),v=parseInt(f.paddingTop,10),b=parseInt(f.borderBottomWidth,10),_=h+v+u+parseInt(f.paddingBottom,10)+b,w=Math.min(5*y.offsetHeight,_),k=window.getComputedStyle(m),x=parseInt(k.paddingTop,10),S=parseInt(k.paddingBottom,10),E=e.top+e.height/2-su,A=c-E,z=y.offsetHeight/2,C=h+v+(y.offsetTop+z),I=_-C;if(C<=E){const e=y===i[i.length-1].ref.current;s.style.bottom="0px";const t=l.clientHeight-m.offsetTop-m.offsetHeight,n=C+Math.max(A,z+(e?S:0)+t+b);s.style.height=n+"px"}else{const e=y===i[0].ref.current;s.style.top="0px";const t=Math.max(E,h+m.offsetTop+(e?x:0)+z)+I;s.style.height=t+"px",m.scrollTop=C-E+m.offsetTop}s.style.margin=`${su}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=c+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[d,o.trigger,o.valueNode,s,l,m,y,g,o.dir,r]);Mo((()=>_()),[_]);const[w,k]=v.useState();Mo((()=>{l&&k(window.getComputedStyle(l).zIndex)}),[l]);const x=v.useCallback((e=>{e&&!0===h.current&&(_(),null==b||b(),h.current=!1)}),[_,b]);return v.createElement(goe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:x},v.createElement("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},v.createElement(St.div,Le({},a,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}}))))})),Wz=v.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=su,...o}=e,i=uT(n);return v.createElement(XA,Le({},i,o,{ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[goe,dT]=Z1(R1,{}),Hz="SelectViewport",yoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=Om(Hz,n),o=dT(Hz,n),i=yn(t,a.onViewportChange),s=v.useRef(0);return v.createElement(v.Fragment,null,v.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),v.createElement(Ck.Slot,{scope:n},v.createElement(St.div,Le({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:lt(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*su,a=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),i=Math.max(a,o);if(i<r){const a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))})),_oe="SelectGroup",[voe,boe]=Z1(_oe),woe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=hp();return v.createElement(voe,{scope:n,id:a},v.createElement(St.div,Le({role:"group","aria-labelledby":a},r,{ref:t})))})),koe="SelectLabel",xoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=boe(koe,n);return v.createElement(St.div,Le({id:a.id},r,{ref:t}))})),LC="SelectItem",[Soe,Mj]=Z1(LC),Eoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=$m(LC,n),c=Om(LC,n),l=s.value===r,[u,f]=v.useState(o??""),[d,p]=v.useState(!1),h=yn(t,(e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,r,a)})),m=hp(),y=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.createElement(Soe,{scope:n,value:r,disabled:a,textId:m,isSelected:l,onItemTextChange:v.useCallback((e=>{f((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},v.createElement(Ck.ItemSlot,{scope:n,value:r,disabled:a,textValue:u},v.createElement(St.div,Le({role:"option","aria-labelledby":m,"data-highlighted":d?"":void 0,"aria-selected":l&&d,"data-state":l?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},i,{ref:h,onFocus:lt(i.onFocus,(()=>p(!0))),onBlur:lt(i.onBlur,(()=>p(!1))),onPointerUp:lt(i.onPointerUp,y),onPointerMove:lt(i.onPointerMove,(e=>{var t;a?null===(t=c.onItemLeave)||void 0===t||t.call(c):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:lt(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=c.onItemLeave)||void 0===t||t.call(c))})),onKeyDown:lt(i.onKeyDown,(e=>{var t;""!==(null===(t=c.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(toe.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))}))))})),ib="SelectItemText",Coe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=$m(ib,n),s=Om(ib,n),c=Mj(ib,n),l=ooe(ib,n),[u,f]=v.useState(null),d=yn(t,(e=>f(e)),c.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,c.value,c.disabled)})),p=null==u?void 0:u.textContent,h=v.useMemo((()=>v.createElement("option",{key:c.value,value:c.value,disabled:c.disabled},p)),[c.disabled,c.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:y}=l;return Mo((()=>(m(h),()=>y(h))),[m,y,h]),v.createElement(v.Fragment,null,v.createElement(St.span,Le({id:c.textId},o,{ref:d})),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Zl.createPortal(o.children,i.valueNode):null)})),Roe="SelectItemIndicator",Aoe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return Mj(Roe,n).isSelected?v.createElement(St.span,Le({"aria-hidden":!0},r,{ref:t})):null})),Gz="SelectScrollUpButton",Toe=v.forwardRef(((e,t)=>{const n=Om(Gz,e.__scopeSelect),r=dT(Gz,e.__scopeSelect),[a,o]=v.useState(!1),i=yn(t,r.onScrollButtonChange);return Mo((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?v.createElement(Dj,Le({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),Kz="SelectScrollDownButton",Ioe=v.forwardRef(((e,t)=>{const n=Om(Kz,e.__scopeSelect),r=dT(Kz,e.__scopeSelect),[a,o]=v.useState(!1),i=yn(t,r.onScrollButtonChange);return Mo((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?v.createElement(Dj,Le({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),Dj=v.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Om("SelectScrollButton",n),i=v.useRef(null),s=Rk(n),c=v.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return v.useEffect((()=>()=>c()),[c]),Mo((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[s]),v.createElement(St.div,Le({"aria-hidden":!0},a,{ref:t,style:{flexShrink:0,...a.style},onPointerDown:lt(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:lt(a.onPointerMove,(()=>{var e;null===(e=o.onItemLeave)||void 0===e||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:lt(a.onPointerLeave,(()=>{c()}))}))})),Poe=v.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return v.createElement(St.div,Le({"aria-hidden":!0},r,{ref:t}))}));function Nj(e){return""===e||void 0===e}const Lj=v.forwardRef(((e,t)=>{const{value:n,...r}=e,a=v.useRef(null),o=yn(t,a),i=gk(n);return v.useEffect((()=>{const e=a.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),v.createElement(Oj,{asChild:!0},v.createElement("select",Le({},r,{ref:o,defaultValue:n})))}));function jj(e){const t=Bc(e),n=v.useRef(""),r=v.useRef(0),a=v.useCallback((e=>{const a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(a)}),[t]),o=v.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return v.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,a,o]}function Bj(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=$oe(e,Math.max(a,0));1===r.length&&(o=o.filter((e=>e!==n)));const i=o.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function $oe(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}Lj.displayName="BubbleSelect";const Fj=ioe,Uj=coe,Vj=foe,Ooe=uoe,zoe=doe,qj=poe,Moe=yoe,Wj=woe,Hj=xoe,Gj=Eoe,Doe=Coe,Noe=Aoe,Kj=Toe,Qj=Ioe,Yj=Poe,Loe=Fj,pT=v.forwardRef((({...e},t)=>F.jsx(Loe,{ref:t,...e})));pT.displayName=Fj.displayName;const hT=v.forwardRef(((e,t)=>F.jsx(Wj,{ref:t,...e})));hT.displayName=Wj.displayName;const mT=v.forwardRef(((e,t)=>F.jsx(Vj,{ref:t,...e})));mT.displayName=Vj.displayName;const gT=v.forwardRef((({className:e,children:t,...n},r)=>F.jsxs(Uj,{ref:r,className:$e("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:text-left",e),...n,children:[t,F.jsx(Ooe,{asChild:!0,children:F.jsx(Q8,{className:"h-4 w-4 opacity-50"})})]})));gT.displayName=Uj.displayName;const Zj=v.forwardRef((({className:e,...t},n)=>F.jsx(Kj,{ref:n,className:$e("flex cursor-default items-center justify-center py-1",e),...t,children:F.jsx(yG,{className:"h-4 w-4"})})));Zj.displayName=Kj.displayName;const Xj=v.forwardRef((({className:e,...t},n)=>F.jsx(Qj,{ref:n,className:$e("flex cursor-default items-center justify-center py-1",e),...t,children:F.jsx(Q8,{className:"h-4 w-4"})})));Xj.displayName=Qj.displayName;const yT=v.forwardRef((({className:e,children:t,position:n="popper",...r},a)=>F.jsx(zoe,{children:F.jsxs(qj,{ref:a,className:$e("relative z-[150] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[F.jsx(Zj,{}),F.jsx(Moe,{className:$e("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),F.jsx(Xj,{})]})})));yT.displayName=qj.displayName;const Jj=v.forwardRef((({className:e,...t},n)=>F.jsx(Hj,{ref:n,className:$e("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})));Jj.displayName=Hj.displayName;const _T=v.forwardRef((({className:e,showCheck:t=!0,children:n,...r},a)=>F.jsxs(Gj,{ref:a,className:$e("relative flex w-full cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[t&&F.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:F.jsx(Noe,{children:F.jsx(eA,{className:"size-4"})})}),F.jsx(Doe,{children:n})]})));_T.displayName=Gj.displayName;const eB=v.forwardRef((({className:e,...t},n)=>F.jsx(Yj,{ref:n,className:$e("-mx-1 my-1 h-px bg-muted",e),...t})));eB.displayName=Yj.displayName;const joe=v.createContext({}),zp=()=>{const e=v.useContext(joe),t=v.useContext(tB),n=zae();e||console.error("useFormContext must be used within a FormProvider");const{getFieldState:r,formState:a}=n,o=r(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},tB=v.createContext({}),Boe=v.forwardRef((({className:e,...t},n)=>{const r=v.useId();return F.jsx(tB.Provider,{value:{id:r},children:F.jsx("div",{ref:n,className:$e("mt-[8px]",e),...t})})}));Boe.displayName="FormItem";const Foe=v.forwardRef((({className:e,isRequired:t,...n},r)=>{var a;const{formItemId:o}=zp();return F.jsx(xT,{ref:r,className:$e("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:t?`*${null==(a=n.children)?void 0:a.toString()}`:n.children})}));Foe.displayName="FormLabel";const Uoe=v.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:a,formMessageId:o}=zp();return F.jsx($p,{ref:t,id:r,"aria-describedby":n?`${a} ${o}`:`${a}`,"aria-invalid":!!n,...e})}));Uoe.displayName="FormControl";const Voe=v.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=zp();return F.jsx("p",{ref:n,id:r,className:$e("text-sm text-muted-foreground",e),...t})}));Voe.displayName="FormDescription";const qoe=v.forwardRef((({className:e,children:t,...n},r)=>{const{error:a,formMessageId:o}=zp(),i=a?String(null==a?void 0:a.message):t;return i?F.jsxs("p",{ref:r,id:o,className:$e("flex items-center gap-0.5 pt-1 text-sm font-medium text-destructive",e),...n,children:[F.jsx(BG,{size:16,className:"text-red-dark"})," ",i]}):null}));qoe.displayName="FormMessage";const Woe=v.forwardRef((({...e},t)=>{const{name:n}=zp();return F.jsx(pT,{ref:t,name:n,...e})}));Woe.displayName="FormSelect";const Hoe=v.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:a}=zp();return F.jsx(gT,{ref:r,id:a,className:e,...n,children:t})}));Hoe.displayName="FormSelectTrigger";const Goe=v.forwardRef(((e,t)=>F.jsx(yT,{ref:t,...e})));Goe.displayName="FormSelectContent";const Koe=v.forwardRef(((e,t)=>F.jsx(_T,{ref:t,...e})));Koe.displayName="FormSelectItem";const Qoe=v.forwardRef(((e,t)=>F.jsx(hT,{ref:t,...e})));Qoe.displayName="FormSelectGroup";const Yoe=v.forwardRef(((e,t)=>F.jsx(Jj,{ref:t,...e})));Yoe.displayName="FormSelectLabel";const Zoe=v.forwardRef(((e,t)=>F.jsx(eB,{ref:t,...e})));Zoe.displayName="FormSelectSeparator";const Xoe=v.forwardRef(((e,t)=>F.jsx(mT,{ref:t,...e})));function sm(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function nB(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>v.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return v.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=v.createContext(r),o=n.length;function i(t){const{scope:n,children:r,...i}=t,s=(null==n?void 0:n[e][o])||a,c=v.useMemo((()=>i),Object.values(i));return v.createElement(s.Provider,{value:c},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=(null==i?void 0:i[e][o])||a,c=v.useContext(s);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Joe(r,...t)]}function Joe(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return v.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Ak(e){const t=v.useRef(e);return v.useEffect((()=>{t.current=e})),v.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function eie(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function tie(...e){return t=>e.forEach((e=>eie(e,t)))}function nie(...e){return v.useCallback(tie(...e),e)}function zm(e){return e.split("-")[0]}function G_(e){return e.split("-")[1]}function X1(e){return["top","bottom"].includes(zm(e))?"x":"y"}function vT(e){return"y"===e?"height":"width"}function Qz(e,t,n){let{reference:r,floating:a}=e;const o=r.x+r.width/2-a.width/2,i=r.y+r.height/2-a.height/2,s=X1(t),c=vT(s),l=r[c]/2-a[c]/2,u="x"===s;let f;switch(zm(t)){case"top":f={x:o,y:r.y-a.height};break;case"bottom":f={x:o,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:i};break;case"left":f={x:r.x-a.width,y:i};break;default:f={x:r.x,y:r.y}}switch(G_(t)){case"start":f[s]-=l*(n&&u?-1:1);break;case"end":f[s]+=l*(n&&u?-1:1)}return f}Xoe.displayName="FormSelectValue";const rie=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:l,y:u}=Qz(c,r,s),f=r,d={},p=0;for(let n=0;n<o.length;n++){const{name:h,fn:m}=o[n],{x:y,y:g,data:v,reset:b}=await m({x:l,y:u,initialPlacement:r,placement:f,strategy:a,middlewareData:d,rects:c,platform:i,elements:{reference:e,floating:t}});l=y??l,u=g??u,d={...d,[h]:{...d[h],...v}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:l,y:u}=Qz(c,f,s))),n=-1)}return{x:l,y:u,placement:f,strategy:a,middlewareData:d}};function rB(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function fw(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function o_(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,h=rB(p),m=s[d?"floating"===f?"reference":"floating":f],y=fw(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g=fw(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...i.floating,x:r,y:a}:i.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),strategy:c}):i[f]);return{top:y.top-g.top+h.top,bottom:g.bottom-y.bottom+h.bottom,left:y.left-g.left+h.left,right:g.right-y.right+h.right}}const aie=Math.min,Xh=Math.max;function jC(e,t,n){return Xh(e,aie(t,n))}const Yz=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:a,y:o,placement:i,rects:s,platform:c}=t;if(null==n)return{};const l=rB(r),u={x:a,y:o},f=X1(i),d=G_(i),p=vT(f),h=await c.getDimensions(n),m="y"===f?"top":"left",y="y"===f?"bottom":"right",g=s.reference[p]+s.reference[f]-u[f]-s.floating[p],v=u[f]-s.reference[f],b=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let _=b?"y"===f?b.clientHeight||0:b.clientWidth||0:0;0===_&&(_=s.floating[p]);const w=g/2-v/2,k=l[m],x=_-h[p]-l[y],S=_/2-h[p]/2+w,E=jC(k,S,x),A=("start"===d?l[m]:l[y])>0&&S!==E&&s.reference[p]<=s.floating[p];return{[f]:u[f]-(A?S<k?k-S:x-S:0),data:{[f]:E,centerOffset:S-E}}}}),oie={left:"right",right:"left",bottom:"top",top:"bottom"};function uw(e){return e.replace(/left|right|bottom|top/g,(e=>oie[e]))}function iie(e,t,n){void 0===n&&(n=!1);const r=G_(e),a=X1(e),o=vT(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=uw(i)),{main:i,cross:uw(i)}}const sie={start:"end",end:"start"};function Zz(e){return e.replace(/start|end/g,(e=>sie[e]))}const aB=["top","right","bottom","left"];aB.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const cie=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:a,rects:o,initialPlacement:i,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...h}=e,m=zm(r),y=[i,...f||(m!==i&&p?function(e){const t=uw(e);return[Zz(e),t,Zz(t)]}(i):[uw(i)])],g=await o_(t,h),v=[];let b=(null==(n=a.flip)?void 0:n.overflows)||[];if(l&&v.push(g[m]),u){const{main:e,cross:t}=iie(r,o,await(null==s.isRTL?void 0:s.isRTL(c.floating)));v.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:v}],!v.every((e=>e<=0))){var _,w;const e=(null!=(_=null==(w=a.flip)?void 0:w.index)?_:0)+1,t=y[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var k;const e=null==(k=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0].placement;e&&(n=e);break}case"initialPlacement":n=i}if(r!==n)return{reset:{placement:n}}}return{}}}};function Xz(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jz(e){return aB.some((t=>e[t]>=0))}const lie=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=Xz(await o_(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:Jz(t)}}}case"escaped":{const t=Xz(await o_(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:Jz(t)}}}default:return{}}}}},fie=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=zm(n),s=G_(n),c="x"===X1(n),l=["left","top"].includes(i)?-1:1,u=o&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return{x:n+a.x,y:r+a.y,data:a}}}};function oB(e){return"x"===e?"y":"x"}const uie=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,l={x:n,y:r},u=await o_(t,c),f=X1(zm(a)),d=oB(f);let p=l[f],h=l[d];if(o){const e="y"===f?"bottom":"right";p=jC(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";h=jC(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},die=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=e,u={x:n,y:r},f=X1(a),d=oB(f);let p=u[f],h=u[d];const m="function"==typeof s?s({...o,placement:a}):s,y="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+y.mainAxis,n=o.reference[f]+o.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,v,b,_;const e="y"===f?"width":"height",t=["top","left"].includes(zm(a)),n=o.reference[d]-o.floating[e]+(t&&null!=(g=null==(v=i.offset)?void 0:v[d])?g:0)+(t?0:y.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:null!=(b=null==(_=i.offset)?void 0:_[d])?b:0)-(t?y.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},pie=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:a,elements:o}=t,{apply:i,...s}=e,c=await o_(t,s),l=zm(n),u=G_(n);let f,d;"top"===l||"bottom"===l?(f=l,d=u===(await(null==a.isRTL?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(d=l,f="end"===u?"top":"bottom");const p=Xh(c.left,0),h=Xh(c.right,0),m=Xh(c.top,0),y=Xh(c.bottom,0),g={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==y?m+y:Xh(c.top,c.bottom)):c[f]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==h?p+h:Xh(c.left,c.right)):c[d])},v=await a.getDimensions(o.floating);null==i||i({...t,...g});const b=await a.getDimensions(o.floating);return v.width!==b.width||v.height!==b.height?{reset:{rects:!0}}:{}}}};function iB(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Cu(e){if(null==e)return window;if(!iB(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function K_(e){return Cu(e).getComputedStyle(e)}function mu(e){return iB(e)?"":e?(e.nodeName||"").toLowerCase():""}function sB(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Wl(e){return e instanceof Cu(e).HTMLElement}function Cp(e){return e instanceof Cu(e).Element}function bT(e){return!(typeof ShadowRoot>"u")&&(e instanceof Cu(e).ShadowRoot||e instanceof ShadowRoot)}function Tk(e){const{overflow:t,overflowX:n,overflowY:r}=K_(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function hie(e){return["table","td","th"].includes(mu(e))}function eM(e){const t=/firefox/i.test(sB()),n=K_(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function cB(){return!/^((?!chrome|android).)*safari/i.test(sB())}const tM=Math.min,$y=Math.max,dw=Math.round;function gu(e,t,n){var r,a,o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,l=1;t&&Wl(e)&&(c=e.offsetWidth>0&&dw(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&dw(s.height)/e.offsetHeight||1);const u=Cp(e)?Cu(e):window,f=!cB()&&n,d=(s.left+(f&&null!=(r=null==(a=u.visualViewport)?void 0:a.offsetLeft)?r:0))/c,p=(s.top+(f&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetTop)?o:0))/l,h=s.width/c,m=s.height/l;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function gp(e){return(t=e,(t instanceof Cu(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Ik(e){return Cp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lB(e){return gu(gp(e)).left+Ik(e).scrollLeft}function mie(e,t,n){const r=Wl(t),a=gp(t),o=gu(e,r&&function(e){const t=gu(e);return dw(t.width)!==e.offsetWidth||dw(t.height)!==e.offsetHeight}(t),"fixed"===n);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==mu(t)||Tk(a))&&(i=Ik(t)),Wl(t)){const e=gu(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=lB(a));return{x:o.left+i.scrollLeft-s.x,y:o.top+i.scrollTop-s.y,width:o.width,height:o.height}}function fB(e){return"html"===mu(e)?e:e.assignedSlot||e.parentNode||(bT(e)?e.host:null)||gp(e)}function nM(e){return Wl(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function BC(e){const t=Cu(e);let n=nM(e);for(;n&&hie(n)&&"static"===getComputedStyle(n).position;)n=nM(n);return n&&("html"===mu(n)||"body"===mu(n)&&"static"===getComputedStyle(n).position&&!eM(n))?t:n||function(e){let t=fB(e);for(bT(t)&&(t=t.host);Wl(t)&&!["html","body"].includes(mu(t));){if(eM(t))return t;t=t.parentNode}return null}(e)||t}function rM(e){if(Wl(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=gu(e);return{width:t.width,height:t.height}}function uB(e){const t=fB(e);return["html","body","#document"].includes(mu(t))?e.ownerDocument.body:Wl(t)&&Tk(t)?t:uB(t)}function pw(e,t){var n;void 0===t&&(t=[]);const r=uB(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Cu(r),i=a?[o].concat(o.visualViewport||[],Tk(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(pw(i))}function aM(e,t,n){return"viewport"===t?fw(function(e,t){const n=Cu(e),r=gp(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,c=0;if(a){o=a.width,i=a.height;const e=cB();(e||!e&&"fixed"===t)&&(s=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:s,y:c}}(e,n)):Cp(t)?function(e,t){const n=gu(e,!1,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft;return{top:r,left:a,x:a,y:r,right:a+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):fw(function(e){var t;const n=gp(e),r=Ik(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=$y(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=$y(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let s=-r.scrollLeft+lB(e);const c=-r.scrollTop;return"rtl"===K_(a||n).direction&&(s+=$y(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:c}}(gp(e)))}function gie(e){const t=pw(e),n=["absolute","fixed"].includes(K_(e).position)&&Wl(e)?BC(e):e;return Cp(n)?t.filter((e=>Cp(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&bT(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==mu(e))):[]}const yie={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?gie(t):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=aM(t,n,a);return e.top=$y(r.top,e.top),e.right=tM(r.right,e.right),e.bottom=tM(r.bottom,e.bottom),e.left=$y(r.left,e.left),e}),aM(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=Wl(n),o=gp(n);if(n===o)return t;let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((a||!a&&"fixed"!==r)&&(("body"!==mu(n)||Tk(o))&&(i=Ik(n)),Wl(n))){const e=gu(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-i.scrollLeft+s.x,y:t.y-i.scrollTop+s.y}},isElement:Cp,getDimensions:rM,getOffsetParent:BC,getDocumentElement:gp,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:mie(t,BC(n),r),floating:{...rM(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===K_(e).direction};function _ie(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=!0,animationFrame:s=!1}=r,c=a&&!s,l=o&&!s,u=c||l?[...Cp(e)?pw(e):[],...pw(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));let f,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Cp(e)&&!s&&d.observe(e),d.observe(t)}let p=s?gu(e):null;return s&&function t(){const r=gu(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(f)}}const vie=(e,t,n)=>rie(e,t,{platform:yie,...n});var FC=typeof document<"u"?v.useLayoutEffect:v.useEffect;function UC(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!UC(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(!("_owner"===n&&e.$$typeof||UC(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function bie(e){const t=v.useRef(e);return FC((()=>{t.current=e})),t}function wie(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:a}=void 0===e?{}:e;const o=v.useRef(null),i=v.useRef(null),s=bie(a),c=v.useRef(null),[l,u]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[f,d]=v.useState(t);UC(null==f?void 0:f.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||d(t);const p=v.useCallback((()=>{!o.current||!i.current||vie(o.current,i.current,{middleware:f,placement:n,strategy:r}).then((e=>{h.current&&Zl.flushSync((()=>{u(e)}))}))}),[f,n,r]);FC((()=>{h.current&&p()}),[p]);const h=v.useRef(!1);FC((()=>(h.current=!0,()=>{h.current=!1})),[]);const m=v.useCallback((()=>{if("function"==typeof c.current&&(c.current(),c.current=null),o.current&&i.current)if(s.current){const e=s.current(o.current,i.current,p);c.current=e}else p()}),[p,s]),y=v.useCallback((e=>{o.current=e,m()}),[m]),g=v.useCallback((e=>{i.current=e,m()}),[m]),b=v.useMemo((()=>({reference:o,floating:i})),[]);return v.useMemo((()=>({...l,update:p,refs:b,reference:y,floating:g})),[l,p,b,y,g])}const kie=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn:e=>function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?Yz({element:t.current,padding:n}).fn(e):{}:t?Yz({element:t,padding:n}).fn(e):{}}};function xie(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Sie(...e){return t=>e.forEach((e=>xie(e,t)))}const dB=v.forwardRef(((e,t)=>{const{children:n,...r}=e,a=v.Children.toArray(n),o=a.find(Cie);if(o){const e=o.props.children,n=a.map((t=>t===o?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t));return v.createElement(VC,Le({},r,{ref:t}),v.isValidElement(e)?v.cloneElement(e,void 0,n):null)}return v.createElement(VC,Le({},r,{ref:t}),n)}));dB.displayName="Slot";const VC=v.forwardRef(((e,t)=>{const{children:n,...r}=e;return v.isValidElement(n)?v.cloneElement(n,{...Rie(r,n.props),ref:Sie(t,n.ref)}):v.Children.count(n)>1?v.Children.only(null):null}));VC.displayName="SlotClone";const Eie=({children:e})=>v.createElement(v.Fragment,null,e);function Cie(e){return v.isValidElement(e)&&e.type===Eie}function Rie(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}const Aie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],qC=Aie.reduce(((e,t)=>{const n=v.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?dB:t;return v.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),v.createElement(o,Le({},a,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Tie(e,t){e&&Zl.flushSync((()=>e.dispatchEvent(t)))}function Iie(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Pie(...e){return t=>e.forEach((e=>Iie(e,t)))}function $ie(...e){return v.useCallback(Pie(...e),e)}const rm=null!=globalThis&&globalThis.document?v.useLayoutEffect:()=>{};function Oie(e){const[t,n]=v.useState(void 0);return rm((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const pB="Popper",[wT,hB]=nB(pB),[VWe,zie]=wT(pB),hw="PopperContent",[Mie,qWe]=wT(hw),[Die,Nie]=wT(hw,{hasParent:!1,positionUpdateFns:new Set}),Lie=v.forwardRef(((e,t)=>{var n,r,a,o,i,s,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:d=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:y=[],collisionPadding:g=0,sticky:b="partial",hideWhenDetached:_=!1,avoidCollisions:w=!0,onPlaced:k,...x}=e,S=zie(hw,u),[E,A]=v.useState(null),z=$ie(t,(e=>A(e))),[C,I]=v.useState(null),T=Oie(C),R=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,P=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,j=f+("center"!==p?"-"+p:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},N=Array.isArray(y)?y:[y],M=N.length>0,D={padding:O,boundary:N.filter(Bie),altBoundary:M},{reference:F,floating:L,strategy:V,x:q,y:B,placement:U,middlewareData:$,update:W}=wie({strategy:"fixed",placement:j,whileElementsMounted:_ie,middleware:[Fie(),fie({mainAxis:d+P,alignmentAxis:h}),w?uie({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?die():void 0,...D}):void 0,C?kie({element:C,padding:m}):void 0,w?cie({...D}):void 0,pie({...D,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),Uie({arrowWidth:R,arrowHeight:P}),_?lie({strategy:"referenceHidden"}):void 0].filter(jie)});rm((()=>{F(S.anchor)}),[F,S.anchor]);const H=null!==q&&null!==B,[G,K]=mB(U),Q=Ak(k);rm((()=>{H&&(null==Q||Q())}),[H,Q]);const Y=null===(a=$.arrow)||void 0===a?void 0:a.x,Z=null===(o=$.arrow)||void 0===o?void 0:o.y,X=0!==(null===(i=$.arrow)||void 0===i?void 0:i.centerOffset),[J,ee]=v.useState();rm((()=>{E&&ee(window.getComputedStyle(E).zIndex)}),[E]);const{hasParent:te,positionUpdateFns:ne}=Nie(hw,u),re=!te;v.useLayoutEffect((()=>{if(!re)return ne.add(W),()=>{ne.delete(W)}}),[re,ne,W]),rm((()=>{re&&H&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,H,ne]);const ae={"data-side":G,"data-align":K,...x,ref:z,style:{...x.style,animation:H?void 0:"none",opacity:null!==(s=$.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return v.createElement("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:V,left:0,top:0,transform:H?`translate3d(${Math.round(q)}px, ${Math.round(B)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(c=$.transformOrigin)||void 0===c?void 0:c.x,null===(l=$.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},v.createElement(Mie,{scope:u,placedSide:G,onArrowChange:I,arrowX:Y,arrowY:Z,shouldHideArrow:X},re?v.createElement(Die,{scope:u,hasParent:!0,positionUpdateFns:ne},v.createElement(qC.div,ae)):v.createElement(qC.div,ae)))}));function jie(e){return void 0!==e}function Bie(e){return null!==e}const Fie=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:a}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${a}px`),{}}}),Uie=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a,o,i;const{placement:s,rects:c,middlewareData:l}=t,u=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),f=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=mB(s),m={start:"0%",center:"50%",end:"100%"}[h],y=(null!==(r=null===(a=l.arrow)||void 0===a?void 0:a.x)&&void 0!==r?r:0)+f/2,g=(null!==(o=null===(i=l.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+d/2;let v="",b="";return"bottom"===p?(v=u?m:`${y}px`,b=-d+"px"):"top"===p?(v=u?m:`${y}px`,b=`${c.floating.height+d}px`):"right"===p?(v=-d+"px",b=u?m:`${g}px`):"left"===p&&(v=`${c.floating.width+d}px`,b=u?m:`${g}px`),{data:{x:v,y:b}}}});function mB(e){const[t,n="center"]=e.split("-");return[t,n]}const Vie=Lie;function qie(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Wie(...e){return t=>e.forEach((e=>qie(e,t)))}function Hie(...e){return v.useCallback(Wie(...e),e)}function Gie(e,t){return v.useReducer(((e,n)=>t[e][n]??e),e)}const gB=e=>{const{present:t,children:n}=e,r=Kie(t),a="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),o=Hie(r.ref,a.ref);return"function"==typeof n||r.isPresent?v.cloneElement(a,{ref:o}):null};function Kie(e){const[t,n]=v.useState(),r=v.useRef({}),a=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[s,c]=Gie(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect((()=>{const e=sb(r.current);o.current="mounted"===s?e:"none"}),[s]),rm((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=sb(t);e?c("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,c]),rm((()=>{if(t){const e=e=>{const n=sb(r.current).includes(e.animationName);e.target===t&&n&&Zl.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(o.current=sb(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function sb(e){return(null==e?void 0:e.animationName)||"none"}function Qie(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Yie(...e){return t=>e.forEach((e=>Qie(e,t)))}function Zie(...e){return v.useCallback(Yie(...e),e)}function Xie(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ak(e);v.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}gB.displayName="Presence";const WC="dismissableLayer.update",Jie="dismissableLayer.pointerDownOutside",ese="dismissableLayer.focusOutside";let oM;const tse=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nse=v.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(tse),[f,d]=v.useState(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=v.useState({}),m=Zie(t,(e=>d(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(g),_=f?y.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,k=_>=b,x=rse((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));!k||n||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p),S=ase((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p);return Xie((e=>{_===u.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),v.useEffect((()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(oM=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),iM(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=oM)}}),[f,p,r,u]),v.useEffect((()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),iM())}),[f,u]),v.useEffect((()=>{const e=()=>h({});return document.addEventListener(WC,e),()=>document.removeEventListener(WC,e)}),[]),v.createElement(qC.div,Le({},l,{ref:m,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:sm(e.onFocusCapture,S.onFocusCapture),onBlurCapture:sm(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:sm(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function rse(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ak(e),r=v.useRef(!1),a=v.useRef((()=>{}));return v.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){yB(Jie,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ase(e,t=(null==globalThis?void 0:globalThis.document)){const n=Ak(e),r=v.useRef(!1);return v.useEffect((()=>{const e=e=>{e.target&&!r.current&&yB(ese,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function iM(){const e=new CustomEvent(WC);document.dispatchEvent(e)}function yB(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Tie(a,o):a.dispatchEvent(o)}let qE;const _B="HoverCard",[vB,WWe]=nB(_B,[hB]),ose=hB(),[HWe,bB]=vB(_B),ise="HoverCardPortal",[GWe,sse]=vB(ise,{forceMount:void 0}),HC="HoverCardContent",cse=v.forwardRef(((e,t)=>{const n=sse(HC,e.__scopeHoverCard),{forceMount:r=n.forceMount,...a}=e,o=bB(HC,e.__scopeHoverCard);return v.createElement(gB,{present:r||o.open},v.createElement(lse,Le({"data-state":o.open?"open":"closed"},a,{onPointerEnter:sm(e.onPointerEnter,sM(o.onOpen)),onPointerLeave:sm(e.onPointerLeave,sM(o.onClose)),ref:t})))})),lse=v.forwardRef(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,...s}=e,c=bB(HC,n),l=ose(n),u=v.useRef(null),f=nie(t,u),[d,p]=v.useState(!1);return v.useEffect((()=>{if(d){const e=document.body;return qE=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=qE,e.style.webkitUserSelect=qE}}}),[d]),v.useEffect((()=>{if(u.current){const e=()=>{p(!1),c.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(c.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}}),[c.isPointerDownOnContentRef,c.hasSelectionRef]),v.useEffect((()=>{u.current&&fse(u.current).forEach((e=>e.setAttribute("tabindex","-1")))})),v.createElement(nse,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:sm(o,(e=>{e.preventDefault()})),onDismiss:c.onDismiss},v.createElement(Vie,Le({},l,s,{onPointerDown:sm(s.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0})),ref:f,style:{...s.style,userSelect:d?"text":void 0,WebkitUserSelect:d?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function sM(e){return t=>"touch"===t.pointerType?void 0:e()}function fse(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const wB=cse,use=v.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},a)=>F.jsx(wB,{ref:a,align:t,sideOffset:n,className:$e("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));use.displayName=wB.displayName;const kT=v.forwardRef((({className:e,type:t,...n},r)=>{const{error:a}=zp();return F.jsx("input",{type:t,className:$e("flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-base placeholder:text-muted-foreground placeholder:text-slate-400 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",{"border-red-dark focus-visible:border-input focus-visible:ring-red-dark":!!a},e),ref:r,...n})}));kT.displayName="Input";const dse=v.forwardRef(((e,t)=>v.createElement(St.label,Le({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),kB=dse,pse=Yl("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),xT=v.forwardRef((({className:e,...t},n)=>F.jsx(kB,{ref:n,className:$e(pse(),e),...t})));xT.displayName=kB.displayName;const xB="Radio",[hse,SB]=ii(xB),[mse,gse]=hse(xB),yse=v.forwardRef(((e,t)=>{const{__scopeRadio:n,name:r,checked:a=!1,required:o,disabled:i,value:s="on",onCheck:c,...l}=e,[u,f]=v.useState(null),d=yn(t,(e=>f(e))),p=v.useRef(!1),h=!u||!!u.closest("form");return v.createElement(mse,{scope:n,checked:a,disabled:i},v.createElement(St.button,Le({type:"button",role:"radio","aria-checked":a,"data-state":EB(a),"data-disabled":i?"":void 0,disabled:i,value:s},l,{ref:d,onClick:lt(e.onClick,(e=>{a||null==c||c(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&v.createElement(bse,{control:u,bubbles:!p.current,name:r,value:s,checked:a,required:o,disabled:i,style:{transform:"translateX(-100%)"}}))})),_se="RadioIndicator",vse=v.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:r,...a}=e,o=gse(_se,n);return v.createElement(Ws,{present:r||o.checked},v.createElement(St.span,Le({"data-state":EB(o.checked),"data-disabled":o.disabled?"":void 0},a,{ref:t})))})),bse=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=gk(n),s=yk(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});a.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Le({type:"radio","aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function EB(e){return e?"checked":"unchecked"}const wse=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],CB="RadioGroup",[kse,KWe]=ii(CB,[Y1,SB]),RB=Y1(),AB=SB(),[xse,Sse]=kse(CB),Ese=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:a,value:o,required:i=!1,disabled:s=!1,orientation:c,dir:l,loop:u=!0,onValueChange:f,...d}=e,p=RB(n),h=qA(l),[m,y]=wp({prop:o,defaultProp:a,onChange:f});return v.createElement(xse,{scope:n,name:r,required:i,disabled:s,value:m,onValueChange:y},v.createElement(eT,Le({asChild:!0},p,{orientation:c,dir:h,loop:u}),v.createElement(St.div,Le({role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:h},d,{ref:t}))))})),Cse="RadioGroupItem",Rse=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...a}=e,o=Sse(Cse,n),i=o.disabled||r,s=RB(n),c=AB(n),l=v.useRef(null),u=yn(t,l),f=o.value===a.value,d=v.useRef(!1);return v.useEffect((()=>{const e=e=>{wse.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),v.createElement(tT,Le({asChild:!0},s,{focusable:!i,active:f}),v.createElement(yse,Le({disabled:i,required:o.required,checked:f},c,a,{name:o.name,ref:u,onCheck:()=>o.onValueChange(a.value),onKeyDown:lt((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:lt(a.onFocus,(()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),Ase=v.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,a=AB(n);return v.createElement(vse,Le({},a,r,{ref:t}))})),TB=Ese,IB=Rse,Tse=Ase,PB=v.forwardRef((({className:e,...t},n)=>F.jsx(TB,{className:$e("grid gap-2",e),...t,ref:n})));PB.displayName=TB.displayName;const $B=v.forwardRef((({className:e,...t},n)=>F.jsx(IB,{ref:n,className:$e("aspect-square h-4 w-4 rounded-full border-[1.67px] border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:F.jsx(Tse,{className:"flex items-center justify-center",children:F.jsx(X8,{className:"h-2.5 w-2.5 fill-current text-current"})})})));$B.displayName=IB.displayName;const Ise=P7,Pse=ak,OB=v.forwardRef((({className:e,...t},n)=>F.jsx(q1,{className:$e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));OB.displayName=q1.displayName;const $se=Yl("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),zB=v.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...a},o)=>F.jsxs(Pse,{children:[F.jsx(OB,{className:$e("bg-slate-900/70",n)}),F.jsxs(W1,{ref:o,className:$e($se({side:e}),t),...a,children:[r,F.jsxs(ok,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[F.jsx(J8,{className:"h-4 w-4"}),F.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));zB.displayName=W1.displayName;const MB=({className:e,...t})=>F.jsx("div",{className:$e("flex flex-col space-y-2 text-center sm:text-left",e),...t});MB.displayName="SheetHeader";const DB=v.forwardRef((({className:e,...t},n)=>F.jsx(D_,{ref:n,className:$e("text-lg font-semibold text-foreground",e),...t})));DB.displayName=D_.displayName;const NB=v.forwardRef((({className:e,...t},n)=>F.jsx(N_,{ref:n,className:$e("text-sm text-muted-foreground",e),...t})));NB.displayName=N_.displayName;const[Pk,QWe]=ii("Tooltip",[Q1]),ST=Q1(),Ose="TooltipProvider",zse=700,GC="tooltip.open",[Mse,ET]=Pk(Ose),LB=e=>{const{__scopeTooltip:t,delayDuration:n=zse,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,[i,s]=v.useState(!0),c=v.useRef(!1),l=v.useRef(0);return v.useEffect((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),v.createElement(Mse,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:v.useCallback((()=>{window.clearTimeout(l.current),s(!1)}),[]),onClose:v.useCallback((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:v.useCallback((e=>{c.current=e}),[]),disableHoverableContent:a},o)},CT="Tooltip",[Dse,$k]=Pk(CT),jB=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,c=ET(CT,e.__scopeTooltip),l=ST(t),[u,f]=v.useState(null),d=hp(),p=v.useRef(0),h=i??c.disableHoverableContent,m=s??c.delayDuration,y=v.useRef(!1),[g=!1,b]=wp({prop:r,defaultProp:a,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(GC))):c.onClose(),null==o||o(e)}}),_=v.useMemo((()=>g?y.current?"delayed-open":"instant-open":"closed"),[g]),w=v.useCallback((()=>{window.clearTimeout(p.current),y.current=!1,b(!0)}),[b]),k=v.useCallback((()=>{window.clearTimeout(p.current),b(!1)}),[b]),x=v.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{y.current=!0,b(!0)}),m)}),[m,b]);return v.useEffect((()=>()=>window.clearTimeout(p.current)),[]),v.createElement(tj,l,v.createElement(Dse,{scope:t,contentId:d,open:g,stateAttribute:_,trigger:u,onTriggerChange:f,onTriggerEnter:v.useCallback((()=>{c.isOpenDelayed?x():w()}),[c.isOpenDelayed,x,w]),onTriggerLeave:v.useCallback((()=>{h?k():window.clearTimeout(p.current)}),[k,h]),onOpen:w,onClose:k,disableHoverableContent:h},n))},cM="TooltipTrigger",BB=v.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=$k(cM,n),o=ET(cM,n),i=ST(n),s=yn(t,v.useRef(null),a.onTriggerChange),c=v.useRef(!1),l=v.useRef(!1),u=v.useCallback((()=>c.current=!1),[]);return v.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),v.createElement(ZA,Le({asChild:!0},i),v.createElement(St.button,Le({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},r,{ref:s,onPointerMove:lt(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),l.current=!0)})),onPointerLeave:lt(e.onPointerLeave,(()=>{a.onTriggerLeave(),l.current=!1})),onPointerDown:lt(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:lt(e.onFocus,(()=>{c.current||a.onOpen()})),onBlur:lt(e.onBlur,a.onClose),onClick:lt(e.onClick,a.onClose)})))})),Nse="TooltipPortal",[YWe,Lse]=Pk(Nse,{forceMount:void 0}),i_="TooltipContent",FB=v.forwardRef(((e,t)=>{const n=Lse(i_,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,i=$k(i_,e.__scopeTooltip);return v.createElement(Ws,{present:r||i.open},i.disableHoverableContent?v.createElement(UB,Le({side:a},o,{ref:t})):v.createElement(jse,Le({side:a},o,{ref:t})))})),jse=v.forwardRef(((e,t)=>{const n=$k(i_,e.__scopeTooltip),r=ET(i_,e.__scopeTooltip),a=v.useRef(null),o=yn(t,a),[i,s]=v.useState(null),{trigger:c,onClose:l}=n,u=a.current,{onPointerInTransitChange:f}=r,d=v.useCallback((()=>{s(null),f(!1)}),[f]),p=v.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},a=Wse([...Use(r,Fse(r,n.getBoundingClientRect())),...Vse(t.getBoundingClientRect())]);s(a),f(!0)}),[f]);return v.useEffect((()=>()=>d()),[d]),v.useEffect((()=>{if(c&&u){const e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[c,u,p,d]),v.useEffect((()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==u?void 0:u.contains(t)),a=!qse(n,i);r?d():a&&(d(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,u,i,l,d]),v.createElement(UB,Le({},e,{ref:o}))})),[Bse,ZWe]=Pk(CT,{isInside:!1}),UB=v.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=e,c=$k(i_,n),l=ST(n),{onClose:u}=c;return v.useEffect((()=>(document.addEventListener(GC,u),()=>document.removeEventListener(GC,u))),[u]),v.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,u]),v.createElement(ek,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u},v.createElement(XA,Le({"data-state":c.stateAttribute},l,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),v.createElement(aA,null,r),v.createElement(Bse,{scope:n,isInside:!0},v.createElement(Jae,{id:c.contentId,role:"tooltip"},a||r))))}));function Fse(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Use(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function Vse(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function qse(e,t){const{x:n,y:r}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const i=t[e].x,s=t[e].y,c=t[o].x,l=t[o].y;s>r!=l>r&&n<(c-i)*(r-s)/(l-s)+i&&(a=!a)}return a}function Wse(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),Hse(t)}function Hse(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Gse=LB,Kse=jB,Qse=BB,VB=FB,Yse=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},Zse={deviceType:Yse()},RT=Ca({name:"ui",initialState:Zse,reducers:{setDeviceType:(e,{payload:t})=>{e.deviceType=t}},selectors:{selectDeviceType:e=>e.deviceType,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});var WE,lM,HE,fM,GE,uM,KE,dM,QE,pM,YE,hM,ZE,mM,XE,gM,JE,yM,e4,_M,t4,vM,n4,bM,r4,wM,a4,kM,o4,xM,i4,SM,s4,EM,c4,CM,l4,RM,f4,AM,u4,TM,d4,IM,p4,PM,h4,$M,m4,OM,g4,zM,y4,MM,_4,DM,v4,NM,b4,LM,w4,jM,k4,BM,x4,FM,S4,UM,E4,VM,C4,qM,R4,WM,A4,HM,T4,GM,I4,KM,P4,QM;function qB(){if(lM)return WE;lM=1;var e=_5(),t=e&&new e;return WE=t}function WB(){if(fM)return HE;fM=1;var e=IA(),t=qB();return HE=t?function(e,n){return t.set(e,n),e}:e}function Ok(){if(uM)return GE;uM=1;var e=mk(),t=Uc();return GE=function(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var a=e(n.prototype),o=n.apply(a,r);return t(o)?o:a}},GE}function Xse(){if(dM)return KE;dM=1;var e=Ok(),t=si();return KE=function(n,r,a){var o=1&r,i=e(n);return function e(){return(this&&this!==t&&this instanceof e?i:n).apply(o?a:this,arguments)}},KE}function HB(){if(pM)return QE;pM=1;var e=Math.max;return QE=function(t,n,r,a){for(var o=-1,i=t.length,s=r.length,c=-1,l=n.length,u=e(i-s,0),f=Array(l+u),d=!a;++c<l;)f[c]=n[c];for(;++o<s;)(d||o<i)&&(f[r[o]]=t[o]);for(;u--;)f[c++]=t[o++];return f}}function GB(){if(hM)return YE;hM=1;var e=Math.max;return YE=function(t,n,r,a){for(var o=-1,i=t.length,s=-1,c=r.length,l=-1,u=n.length,f=e(i-c,0),d=Array(f+u),p=!a;++o<f;)d[o]=t[o];for(var h=o;++l<u;)d[h+l]=n[l];for(;++s<c;)(p||o<i)&&(d[h+r[s]]=t[o++]);return d}}function Jse(){if(mM)return ZE;return mM=1,ZE=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function AT(){if(gM)return XE;return gM=1,XE=function(){}}function TT(){if(yM)return JE;yM=1;var e=mk(),t=AT();function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}return n.prototype=e(t.prototype),n.prototype.constructor=n,JE=n}function KB(){if(_M)return e4;_M=1;var e=qB(),t=k5();return e4=e?function(t){return e.get(t)}:t}function ece(){if(vM)return t4;vM=1;return t4={}}function tce(){if(bM)return n4;bM=1;var e=ece(),t=Object.prototype.hasOwnProperty;return n4=function(n){for(var r=n.name+"",a=e[r],o=t.call(e,r)?a.length:0;o--;){var i=a[o],s=i.func;if(null==s||s==n)return i.name}return r}}function QB(){if(wM)return r4;wM=1;var e=mk(),t=AT();function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}return n.prototype=e(t.prototype),n.prototype.constructor=n,r4=n}function nce(){if(kM)return a4;kM=1;var e=TT(),t=QB(),n=hk();return a4=function(r){if(r instanceof e)return r.clone();var a=new t(r.__wrapped__,r.__chain__);return a.__actions__=n(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}}function rce(){if(xM)return o4;xM=1;var e=TT(),t=QB(),n=AT(),r=Ai(),a=os(),o=nce(),i=Object.prototype.hasOwnProperty;function s(n){if(a(n)&&!r(n)&&!(n instanceof e)){if(n instanceof t)return n;if(i.call(n,"__wrapped__"))return o(n)}return new t(n)}return s.prototype=n.prototype,s.prototype.constructor=s,o4=s}function ace(){if(SM)return i4;SM=1;var e=TT(),t=KB(),n=tce(),r=rce();return i4=function(a){var o=n(a),i=r[o];if("function"!=typeof i||!(o in e.prototype))return!1;if(a===i)return!0;var s=t(i);return!!s&&a===s[0]}}function YB(){if(EM)return s4;EM=1;var e=WB(),t=S5()(e);return s4=t}function oce(){if(CM)return c4;CM=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return c4=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function ice(){if(RM)return l4;RM=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;return l4=function(t,n){var r=n.length;if(!r)return t;var a=r-1;return n[a]=(r>1?"& ":"")+n[a],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}}function sce(){if(AM)return f4;AM=1;var e=OA(),t=$X(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return f4=function(r,a){return e(n,(function(e){var n="_."+e[0];a&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function ZB(){if(TM)return u4;TM=1;var e=oce(),t=ice(),n=E5(),r=sce();return u4=function(a,o,i){var s=o+"";return n(a,t(s,r(e(s),i)))}}function XB(){if(IM)return d4;IM=1;var e=ace(),t=YB(),n=ZB();return d4=function(r,a,o,i,s,c,l,u,f,d){var p=8&a;a|=p?32:64,4&(a&=~(p?64:32))||(a&=-4);var h=[r,a,s,p?c:void 0,p?l:void 0,p?void 0:c,p?void 0:l,u,f,d],m=o.apply(void 0,h);return e(r)&&t(m,h),m.placeholder=i,n(m,r,a)}}function JB(){if(PM)return p4;return PM=1,p4=function(e){return e.placeholder}}function cce(){if($M)return h4;$M=1;var e=hk(),t=EA(),n=Math.min;return h4=function(r,a){for(var o=r.length,i=n(a.length,o),s=e(r);i--;){var c=a[i];r[i]=t(c,o)?s[c]:void 0}return r}}function IT(){if(OM)return m4;OM=1;var e="__lodash_placeholder__";return m4=function(t,n){for(var r=-1,a=t.length,o=0,i=[];++r<a;){var s=t[r];(s===n||s===e)&&(t[r]=e,i[o++]=r)}return i}}function eF(){if(zM)return g4;zM=1;var e=HB(),t=GB(),n=Jse(),r=Ok(),a=XB(),o=JB(),i=cce(),s=IT(),c=si();return g4=function l(u,f,d,p,h,m,y,g,v,b){var _=128&f,w=1&f,k=2&f,x=24&f,S=512&f,E=k?void 0:r(u);return function A(){for(var z=arguments.length,C=Array(z),I=z;I--;)C[I]=arguments[I];if(x)var T=o(A),R=n(C,T);if(p&&(C=e(C,p,h,x)),m&&(C=t(C,m,y,x)),z-=R,x&&z<b){var P=s(C,T);return a(u,f,l,A.placeholder,d,C,P,g,v,b-z)}var j=w?d:this,O=k?j[u]:u;return z=C.length,g?C=i(C,g):S&&z>1&&C.reverse(),_&&v<z&&(C.length=v),this&&this!==c&&this instanceof A&&(O=E||r(O)),O.apply(j,C)}},g4}function lce(){if(MM)return y4;MM=1;var e=PA(),t=Ok(),n=eF(),r=XB(),a=JB(),o=IT(),i=si();return y4=function(s,c,l){var u=t(s);return function t(){for(var f=arguments.length,d=Array(f),p=f,h=a(t);p--;)d[p]=arguments[p];var m=f<3&&d[0]!==h&&d[f-1]!==h?[]:o(d,h);return(f-=m.length)<l?r(s,c,n,t.placeholder,void 0,d,m,void 0,void 0,l-f):e(this&&this!==i&&this instanceof t?u:s,this,d)}},y4}function fce(){if(DM)return _4;DM=1;var e=PA(),t=Ok(),n=si();return _4=function(r,a,o,i){var s=1&a,c=t(r);return function t(){for(var a=-1,l=arguments.length,u=-1,f=i.length,d=Array(f+l),p=this&&this!==n&&this instanceof t?c:r;++u<f;)d[u]=i[u];for(;l--;)d[u++]=arguments[++a];return e(p,s?o:this,d)}},_4}function uce(){if(NM)return v4;NM=1;var e=HB(),t=GB(),n=IT(),r="__lodash_placeholder__",a=128,o=Math.min;return v4=function(i,s){var c=i[1],l=s[1],u=c|l,f=u<131,d=l==a&&8==c||l==a&&256==c&&i[7].length<=s[8]||384==l&&s[7].length<=s[8]&&8==c;if(!f&&!d)return i;1&l&&(i[2]=s[2],u|=1&c?0:4);var p=s[3];if(p){var h=i[3];i[3]=h?e(h,p,s[4]):p,i[4]=h?n(i[3],r):s[4]}return(p=s[5])&&(h=i[5],i[5]=h?t(h,p,s[6]):p,i[6]=h?n(i[5],r):s[6]),(p=s[7])&&(i[7]=p),l&a&&(i[8]=null==i[8]?s[8]:o(i[8],s[8])),null==i[9]&&(i[9]=s[9]),i[0]=s[0],i[1]=u,i}}function PT(){if(LM)return b4;LM=1;var e=WB(),t=Xse(),n=lce(),r=eF(),a=fce(),o=KB(),i=uce(),s=YB(),c=ZB(),l=T5(),u=Math.max;return b4=function(f,d,p,h,m,y,g,v){var b=2&d;if(!b&&"function"!=typeof f)throw new TypeError("Expected a function");var _=h?h.length:0;if(_||(d&=-97,h=m=void 0),g=void 0===g?g:u(l(g),0),v=void 0===v?v:l(v),_-=m?m.length:0,64&d){var w=h,k=m;h=m=void 0}var x=b?void 0:o(f),S=[f,d,p,h,m,w,k,y,g,v];if(x&&i(S,x),f=S[0],d=S[1],p=S[2],h=S[3],m=S[4],!(v=S[9]=void 0===S[9]?b?0:f.length:u(S[9]-_,0))&&24&d&&(d&=-25),d&&1!=d)E=8==d||16==d?n(f,d,v):32!=d&&33!=d||m.length?r.apply(void 0,S):a(f,d,p,h);else var E=t(f,d,p);return c((x?e:s)(E,S),f,d)}}function dce(){if(jM)return w4;jM=1;var e=PT();return w4=function(t,n,r){return n=r?void 0:n,n=t&&null==n?t.length:n,e(t,128,void 0,void 0,void 0,void 0,n)}}function pce(){if(BM)return k4;BM=1;var e=O5();return k4=function(t){return e(t,4)}}function hce(){if(FM)return x4;FM=1;var e=PT();function t(n,r,a){var o=e(n,8,void 0,void 0,void 0,void 0,void 0,r=a?void 0:r);return o.placeholder=t.placeholder,o}return t.placeholder={},x4=t}function mce(){if(UM)return S4;UM=1;var e=xu(),t=os(),n=JX();return S4=function(r){if(!t(r))return!1;var a=e(r);return"[object Error]"==a||"[object DOMException]"==a||"string"==typeof r.message&&"string"==typeof r.name&&!n(r)}}function gce(){if(VM)return E4;VM=1;var e=F_(),t=os();return E4=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function yce(){if(qM)return C4;qM=1;var e=O5(),t=RX();return C4=function(n){return t("function"==typeof n?n:e(n,1))}}function _ce(){if(WM)return R4;WM=1;var e=PT(),t=bJ(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return R4=n}function vce(){if(HM)return A4;HM=1;var e=n5(),t=hk(),n=Ai(),r=j_(),a=t5(),o=B_(),i=r5();return A4=function(s){return n(s)?e(s,o):r(s)?[s]:t(a(i(s)))}}function bce(){return GM||(GM=1,T4={ary:dce(),assign:P5(),clone:pce(),curry:hce(),forEach:OA(),isArray:Ai(),isError:mce(),isFunction:sk(),isWeakMap:gce(),iteratee:yce(),keys:m5(),rearg:_ce(),toInteger:T5(),toPath:vce()}),T4}function tF(){if(KM)return I4;KM=1;var e=G8(),t=bce();return I4=function(n,r,a){return e(t,n,r,a)}}function wce(){if(QM)return P4;QM=1;var e=tF()("debounce",R5());return e.placeholder=JR(),P4=e}function kce(e,t,n=window){const r=v.useRef(t);v.useEffect((()=>{r.current=t}),[t]),v.useEffect((()=>{if(!n)return;const t=e=>r.current(e);return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}),[e,n])}wce();var YM,ZM,$4={exports:{}},O4={};
79
79
  /**
80
80
  * @license React
81
81
  * use-sync-external-store-with-selector.production.min.js
@@ -84,7 +84,7 @@ var EW=Object.defineProperty,CW=(e,t,n)=>t in e?EW(e,t,{enumerable:!0,configurab
84
84
  *
85
85
  * This source code is licensed under the MIT license found in the
86
86
  * LICENSE file in the root directory of this source tree.
87
- */function xce(){if(YM)return O4;YM=1;var e=Xw();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,a=e.useEffect,o=e.useMemo,i=e.useDebugValue;return O4.useSyncExternalStoreWithSelector=function(e,s,c,l,u){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=o((function(){function e(e){if(!a){if(a=!0,n=e,e=l(e),void 0!==u&&d.hasValue){var o=d.value;if(u(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var i=l(e);return void 0!==u&&u(o,i)?o:(n=e,r=i)}var n,r,a=!1,o=void 0===c?null:c;return[function(){return e(s())},null===o?void 0:function(){return e(o())}]}),[s,c,l,u]);var p=n(e,f[0],f[1]);return a((function(){d.hasValue=!0,d.value=p}),[p]),i(p),p},O4}function Sce(){return ZM||(ZM=1,$4.exports=xce()),$4.exports}var Ece=Sce(),Ll="default"in Zb?ze:Zb,XM=Symbol.for("react-redux-context"),JM=typeof globalThis<"u"?globalThis:{};function Cce(){if(!Ll.createContext)return{};const e=JM[XM]??(JM[XM]=new Map);let t=e.get(Ll.createContext);return t||(t=Ll.createContext(null),e.set(Ll.createContext,t)),t}var bm=Cce(),Rce=()=>{throw new Error("uSES not initialized!")};function $T(e=bm){return function(){return Ll.useContext(e)}}var nF=$T(),rF=Rce,Ace=e=>{rF=e},Tce=(e,t)=>e===t;function Ice(e=bm){const t=e===bm?nF:$T(e),n=(e,n={})=>{const{equalityFn:r=Tce,devModeChecks:a={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:i,getServerState:s,stabilityCheck:c,identityFunctionCheck:l}=t();Ll.useRef(!0);const u=Ll.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,a.stabilityCheck]),f=rF(i.addNestedSub,o.getState,s||o.getState,u,r);return Ll.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var qa=Ice();function Pce(e){e()}var $ce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function eD(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Oy(e,t){if(eD(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!eD(e[n[r]],t[n[r]]))return!1;return!0}function aF(e=bm){const t=e===bm?nF:$T(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}$ce?Ll.useLayoutEffect:Ll.useEffect;var oF=aF();function Oce(e=bm){const t=e===bm?oF:aF(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var zk=Oce(),zce=Pce;Ace(Ece.useSyncExternalStoreWithSelector);const Mce=()=>qa(RT.selectors.selectIsMobile);function tD({className:e,...t}){return F.jsx("div",{className:$e("animate-pulse rounded-md bg-muted",e),...t})}const Dce="sidebar_state",Nce=604800,Lce="14rem",jce="18rem",Bce="3rem",Fce="b",iF=v.createContext(null);function Mk(){const e=v.useContext(iF);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Uce=v.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...i},s)=>{const c=Mce(),[l,u]=v.useState(!1),[f,d]=v.useState(e),p=t??f,h=v.useCallback((e=>{const t="function"==typeof e?e(p):e;n?n(t):d(t),document.cookie=`${Dce}=${t}; path=/; max-age=604800`}),[n,p]),m=v.useCallback((()=>c?u((e=>!e)):h((e=>!e))),[c,h,u]);v.useEffect((()=>{const e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[m]);const y=p?"expanded":"collapsed",g=v.useMemo((()=>({state:y,open:p,setOpen:h,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:m})),[y,p,h,c,l,u,m]);return F.jsx(iF.Provider,{value:g,children:F.jsx(LB,{delayDuration:0,children:F.jsx("div",{style:{"--sidebar-width":Lce,"--sidebar-width-icon":Bce,...a},className:$e("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:o})})})}));Uce.displayName="SidebarProvider";const Vce=v.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:a,...o},i)=>{const{isMobile:s,state:c,openMobile:l,setOpenMobile:u}=Mk();return"none"===n?F.jsx("div",{className:$e("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...o,children:a}):s?F.jsx(Ise,{open:l,onOpenChange:u,children:F.jsxs(zB,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":jce},side:e,children:[F.jsxs(MB,{className:"sr-only",children:[F.jsx(DB,{children:"Sidebar"}),F.jsx(NB,{children:"Displays the mobile sidebar."})]}),F.jsx("div",{className:"flex h-full w-full flex-col",children:a})]})}):F.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":"collapsed"===c?n:"","data-variant":t,"data-side":e,children:[F.jsx("div",{className:$e("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),F.jsx("div",{className:$e("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...o,children:F.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})]})}));Vce.displayName="Sidebar";const qce=v.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:a,open:o}=Mk();return F.jsx(Jw,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:$e("size-6 text-slate-900",e),onClick:e=>{null==t||t(e),a()},...n,children:o?F.jsx($G,{size:16}):F.jsx(IG,{size:16})})}));qce.displayName="SidebarTrigger";const Wce=v.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=Mk();return F.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:$e("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}));Wce.displayName="SidebarRail";const Hce=v.forwardRef((({className:e,...t},n)=>F.jsx("main",{ref:n,className:$e("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t})));Hce.displayName="SidebarInset";const Gce=v.forwardRef((({className:e,...t},n)=>F.jsx(kT,{ref:n,"data-sidebar":"input",className:$e("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));Gce.displayName="SidebarInput";const Kce=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"header",className:$e("flex flex-col gap-2 p-2",e),...t})));Kce.displayName="SidebarHeader";const Qce=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"footer",className:$e("flex flex-col gap-2 p-2",e),...t})));Qce.displayName="SidebarFooter";const Yce=v.forwardRef((({className:e,...t},n)=>F.jsx(iT,{ref:n,"data-sidebar":"separator",className:$e("mx-2 w-auto bg-sidebar-border",e),...t})));Yce.displayName="SidebarSeparator";const Zce=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"content",className:$e("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));Zce.displayName="SidebarContent";const Xce=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"group",className:$e("relative flex w-full min-w-0 flex-col px-xxs pt-xs",e),...t})));Xce.displayName="SidebarGroup";const Jce=v.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const a=t?$p:"div";return F.jsx(a,{ref:r,"data-sidebar":"group-label",className:$e("flex h-s shrink-0 items-center rounded-md px-xxs py-xxs text-xs font-semibold text-slate-700 opacity-60 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-xl group-data-[collapsible=icon]:opacity-0",e),...n})}));Jce.displayName="SidebarGroupLabel";const ele=v.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const a=t?$p:"button";return F.jsx(a,{ref:r,"data-sidebar":"group-action",className:$e("absolute right-xs top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})}));ele.displayName="SidebarGroupAction";const tle=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"group-content",className:$e("w-full text-sm",e),...t})));tle.displayName="SidebarGroupContent";const nle=v.forwardRef((({className:e,...t},n)=>F.jsx("ul",{ref:n,"data-sidebar":"menu",className:$e("flex w-full min-w-0 flex-col p-xs font-semibold text-slate-700 [&_svg]:size-4",e),...t})));nle.displayName="SidebarMenu";const rle=v.forwardRef((({className:e,...t},n)=>F.jsx("li",{ref:n,"data-sidebar":"menu-item",className:$e("group/menu-item relative",e),...t})));rle.displayName="SidebarMenuItem";const ale=Yl("peer/menu-button flex w-full items-center gap-xxs overflow-hidden rounded-lg p-xxs text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:text-blue_100 hover:bg-white focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white data-[active=true]:font-medium data-[active=true]:text-blue_100 data-[state=open]:hover:bg-white data-[state=open]:hover:text-blue_100 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:text-blue_100 hover:bg-white",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-white hover:text-blue_100 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-s text-sm",sm:"h-m text-xs",lg:"h-l text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ole=v.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:a,className:o,...i},s)=>{const c=e?$p:"button",{isMobile:l,state:u}=Mk(),f=F.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:$e(ale({variant:n,size:r}),o),...i});return a?("string"==typeof a&&(a={children:a}),F.jsxs(jB,{children:[F.jsx(BB,{asChild:!0,children:f}),F.jsx(FB,{side:"right",align:"center",hidden:"collapsed"!==u||l,...a})]})):f}));ole.displayName="SidebarMenuButton";const ile=v.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},a)=>{const o=t?$p:"button";return F.jsx(o,{ref:a,"data-sidebar":"menu-action",className:$e("absolute right-xxxs top-xxs flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}));ile.displayName="SidebarMenuAction";const sle=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:$e("pointer-events-none absolute right-xxxs flex h-m min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",e),...t})));sle.displayName="SidebarMenuBadge";const cle=v.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const a=v.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return F.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:$e("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&F.jsx(tD,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),F.jsx(tD,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})}));cle.displayName="SidebarMenuSkeleton";const lle=v.forwardRef((({className:e,...t},n)=>F.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:$e("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));lle.displayName="SidebarMenuSub";const fle=v.forwardRef((({...e},t)=>F.jsx("li",{ref:t,...e})));fle.displayName="SidebarMenuSubItem";const ule=v.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...a},o)=>{const i=e?$p:"a";return F.jsx(i,{ref:o,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:$e("flex h-s min-w-0 -translate-x-px items-center gap-xxs overflow-hidden rounded-lg px-xxs text-sm text-slate-700 outline-none ring-sidebar-ring hover:bg-white hover:text-blue_100 focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-blue_100","data-[active=true]:bg-white data-[active=true]:text-blue_100","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...a})}));ule.displayName="SidebarMenuSubButton";const sF="Switch",[dle,XWe]=ii(sF),[ple,hle]=dle(sF),mle=v.forwardRef(((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:c="on",onCheckedChange:l,...u}=e,[f,d]=v.useState(null),p=yn(t,(e=>d(e))),h=v.useRef(!1),m=!f||!!f.closest("form"),[y=!1,g]=wp({prop:a,defaultProp:o,onChange:l});return v.createElement(ple,{scope:n,checked:y,disabled:s},v.createElement(St.button,Le({type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":cF(y),"data-disabled":s?"":void 0,disabled:s,value:c},u,{ref:p,onClick:lt(e.onClick,(e=>{g((e=>!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&v.createElement(_le,{control:f,bubbles:!h.current,name:r,value:c,checked:y,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),gle="SwitchThumb",yle=v.forwardRef(((e,t)=>{const{__scopeSwitch:n,...r}=e,a=hle(gle,n);return v.createElement(St.span,Le({"data-state":cF(a.checked),"data-disabled":a.disabled?"":void 0},r,{ref:t}))})),_le=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=gk(n),s=yk(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});a.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Le({type:"checkbox","aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function cF(e){return e?"checked":"unchecked"}const lF=mle,vle=yle,fF=v.forwardRef((({className:e,...t},n)=>F.jsx(lF,{className:$e("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:!bg-slate-100 data-[state=checked]:bg-slate-700 data-[state=unchecked]:bg-input md:h-[18px] md:w-8",e),...t,ref:n,children:F.jsx(vle,{className:$e("pointer-events-none block size-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 md:size-[14px] md:data-[state=checked]:translate-x-[14px]")})})));fF.displayName=lF.displayName;const uF="Tabs",[ble,JWe]=ii(uF,[Y1]),dF=Y1(),[eHe,OT]=ble(uF),wle="TabsList",kle=v.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,o=OT(wle,n),i=dF(n);return v.createElement(eT,Le({asChild:!0},i,{orientation:o.orientation,dir:o.dir,loop:r}),v.createElement(St.div,Le({role:"tablist","aria-orientation":o.orientation},a,{ref:t})))})),xle="TabsTrigger",Sle=v.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,i=OT(xle,n),s=dF(n),c=pF(i.baseId,r),l=hF(i.baseId,r),u=r===i.value;return v.createElement(tT,Le({asChild:!0},s,{focusable:!a,active:u}),v.createElement(St.button,Le({type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c},o,{ref:t,onMouseDown:lt(e.onMouseDown,(e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:lt(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:lt(e.onFocus,(()=>{const e="manual"!==i.activationMode;!u&&!a&&e&&i.onValueChange(r)}))})))})),Ele="TabsContent",Cle=v.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:o,...i}=e,s=OT(Ele,n),c=pF(s.baseId,r),l=hF(s.baseId,r),u=r===s.value,f=v.useRef(u);return v.useEffect((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),v.createElement(Ws,{present:a||u},(({present:n})=>v.createElement(St.div,Le({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:l,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),n&&o)))}));function pF(e,t){return`${e}-trigger-${t}`}function hF(e,t){return`${e}-content-${t}`}const mF=kle,gF=Sle,yF=Cle,Rle=v.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>F.jsx(mF,{ref:r,"data-testid":"tabsList",className:t?$e("inline-flex items-center justify-center gap-xxs border-b border-slate-200 p-none text-muted-foreground",e):e,...n})));Rle.displayName=mF.displayName;const Ale=v.forwardRef((({className:e,useDefaults:t=!0,children:n,...r},a)=>F.jsx(gF,{ref:a,className:t?$e("inline-flex items-center justify-center whitespace-nowrap p-xxs pb-[calc(theme(spacing.xxs)-2px)] pt-xxs text-basering-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring border-b-2 border-transparent font-semibold focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-slate-900","group relative before:absolute before:inset-xxxs before:rounded-lg before:bg-transparent before:transition-colors hover:before:bg-slate-50",e):e,...r,children:F.jsx("span",{className:"relative text-slate-500 group-hover:text-slate-900 group-data-[state=active]:text-slate-900",children:n})})));Ale.displayName=gF.displayName;const Tle=v.forwardRef((({className:e,...t},n)=>F.jsx(yF,{ref:n,className:$e("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));Tle.displayName=yF.displayName;const Ile=v.forwardRef((({className:e,...t},n)=>F.jsx("table",{ref:n,className:$e("w-full caption-bottom text-sm",e),...t})));Ile.displayName="Table";const Ple=v.forwardRef((({className:e,...t},n)=>F.jsx("thead",{ref:n,className:$e("[&_tr]:border-b",e),...t})));Ple.displayName="TableHeader";const $le=v.forwardRef((({className:e,...t},n)=>F.jsx("tbody",{ref:n,className:$e("[&_tr:last-child]:border-0",e),...t})));$le.displayName="TableBody";const Ole=v.forwardRef((({className:e,...t},n)=>F.jsx("tfoot",{ref:n,className:$e("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));Ole.displayName="TableFooter";const zle=v.forwardRef((({className:e,...t},n)=>F.jsx("tr",{ref:n,className:$e("border-b bg-background transition-colors hover:bg-gray-100 data-[state=selected]:bg-gray-200 dark:hover:bg-muted dark:data-[state=selected]:bg-muted",e),...t})));zle.displayName="TableRow";const Mle=v.forwardRef((({className:e,...t},n)=>F.jsx("th",{ref:n,className:$e("h-m bg-inherit px-xs py-xxs text-left align-middle font-normal text-muted-foreground","whitespace-nowrap border-slate-200 text-sm text-slate-500 [&:not(:last-child)]:border-r",e),...t})));Mle.displayName="TableHead";const Dle=v.forwardRef((({className:e,...t},n)=>F.jsx("td",{ref:n,className:$e("bg-inherit p-xs py-xxs align-middle","overflow-hidden truncate text-ellipsis border-slate-200 text-base text-slate-700 [&:not(:last-child)]:border-r",e),...t})));Dle.displayName="TableCell";const Nle=v.forwardRef((({className:e,...t},n)=>F.jsx("caption",{ref:n,className:$e("mt-s text-sm text-muted-foreground",e),...t})));Nle.displayName="TableCaption";const _F=v.forwardRef((({className:e,...t},n)=>{const{error:r}=zp();return F.jsx("textarea",{className:$e(`flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${!!r&&"border-rose-600 focus-visible:ring-rose-600"}`,e),ref:n,...t})}));_F.displayName="Textarea";const Lle=Gse,KC=Kse,QC=Qse,jle=Yl("z-50 overflow-hidden shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md border text-sm px-3 py-1.5",small:"rounded-md border px-[11px] py-[3px] text-base leading-[16px]"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-slate-900_90 text-slate-50"},defaultVariants:{size:"small",theme:"dark"}}}),mw=v.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,...a},o)=>F.jsx(VB,{ref:o,sideOffset:t,className:$e(jle({size:n,theme:r,className:e})),...a})));mw.displayName=VB.displayName;const Ble=({value:e,readonly:t,onChange:n})=>F.jsx(j5,{size:24,disabled:t,checked:JSON.parse(e),onCheckedChange:e=>n(String(e))}),Fle=({readonly:e,value:t,options:n,onChange:r})=>F.jsx(PB,{disabled:e,value:t,onValueChange:r,children:n.map((({id:e,title:t,value:n,description:r})=>F.jsxs("div",{className:"flex items-center space-x-2",children:[F.jsx($B,{value:n,id:e}),F.jsx(Lle,{children:F.jsxs(KC,{children:[F.jsx(QC,{asChild:!0,children:F.jsx(xT,{htmlFor:"r1",children:t})}),F.jsx(mw,{children:F.jsx("p",{children:r})})]})})]},e)))}),Ule=({options:e,value:t,readonly:n,onChange:r})=>F.jsxs(pT,{disabled:n,value:t,onValueChange:r,children:[F.jsx(gT,{className:"w-[180px]",children:F.jsx(mT,{})}),F.jsx(yT,{children:F.jsx(hT,{children:e.map((({id:e,title:t,value:n})=>F.jsx(_T,{value:n||"",children:t},e)))})})]}),Vle=({value:e,readonly:t,onChange:n})=>F.jsx(fF,{disabled:t,checked:e&&JSON.parse(e)||!1,onCheckedChange:e=>n(String(e))}),qle=({readonly:e,value:t,onChange:n})=>{const[r,a]=v.useState(t);v.useEffect((()=>{a(t)}),[t]);return F.jsx(kT,{disabled:e,type:"text",value:r,onChange:({target:e})=>{a(e.value),n(e.value)}})},Wle=({inputType:e,...t})=>{switch(e){case"text":return F.jsx(qle,{...t});case"check":return F.jsx(Ble,{...t});case"switch":return F.jsx(Vle,{...t});case"options":return t.options&&t.options.length>3?F.jsx(Ule,{...t}):F.jsx(Fle,{...t})}},Hle=({id:e,readonly:t,title:n,type:r,value:a,description:o,options:i,onChange:s})=>F.jsxs("div",{className:"mb-3 flex flex-row items-center justify-between rounded-lg border p-4",children:[F.jsxs("div",{className:"mr-2 space-y-0.5",children:[F.jsx("div",{className:"text-base",children:n}),F.jsx("div",{className:"text-muted-foreground text-sm",children:o})]}),F.jsx("div",{children:F.jsx(Wle,{inputType:r,options:i,readonly:t,value:a,onChange:t=>s({id:e,value:t})})})]}),tHe=({list:e,onChange:t})=>{const n=Xae();return F.jsx(Mae,{...n,children:e.map((({id:e,...n})=>F.jsx(Hle,{id:e,...n,onChange:t},e)))})},nHe=e=>{const t=[],n=(e,r="")=>Object.keys(e).flatMap((a=>{const o=r?`${r}.${a}`:a,i=e[a],s=void 0!==i.value;return s&&t.push({...e[a],id:o}),"object"!=typeof i||Array.isArray(i)||s?o:n(i,o)}));return n(e),t},rHe=({list:e,data:t={}})=>e.reduce(((e,n)=>{const r=n.id;return t&&hu.has(r,t)?e:hu.set(r,n.value)(e)}),{}),Gle={[bt.openaiConfigApiKey]:{title:"Openai config api key",type:"text",value:"",readonly:!1},[bt.mediacacheEnabled]:{title:"Media cache",type:"switch",value:"",readonly:!1},[bt.mediacacheSingleRun]:{title:"Mediacache single run",type:"switch",value:"",readonly:!1},[bt.uploadsPolicyVideoKeepOriginal]:{title:"Uploads policy video keep original",type:"switch",value:"",readonly:!1},[bt.uploadsPolicyImageKeepOriginal]:{title:"Uploads policy image keep original",type:"switch",value:"",readonly:!1},[bt.uploadsPolicyAudioKeepOriginal]:{title:"Uploads policy audio keep original",type:"switch",value:"",readonly:!1},[bt.uploadsProvider]:{title:"Upload provider",description:"",type:"text",value:"",readonly:!1},[bt.uploadsPolicyVideoMaxSize]:{title:"Upload video max size",description:"",type:"text",value:"",readonly:!0},[bt.mediacacheCheckInterval]:{title:"Media cache check interval",description:"",type:"text",value:"",readonly:!0},[bt.mediacacheLimitPerRun]:{title:"Media cache limit per run",description:"",type:"text",value:"",readonly:!0},[bt.registrationReasonToJoin]:{title:"Require Approval Reason on Sign Up",description:"",type:"switch",value:"",readonly:!1},[bt.registrationMode]:{title:"Registration Mode",description:"",type:"options",options:[{id:"open",title:"Open",value:"OPEN"},{id:"approval",title:"Approval",value:"APPROVAL"},{id:"approval",title:"Closed",value:"CLOSED"}],value:"",readonly:!1},[bt.registrationShowCaptcha]:{title:"Require Captcha on Sign Up",description:"",type:"switch",value:"",readonly:!1},[bt.captchaVerifyUrl]:{title:"Captcha - Verify Url",description:"",type:"text",value:"",readonly:!1},[bt.captchaSecretKey]:{title:"Captcha - Secret Key",description:"",type:"text",value:"",readonly:!1},[bt.captchaSiteKey]:{title:"Captcha - Site Key",description:"",type:"text",value:"",readonly:!1},[bt.confirmationCodeCodeExpirationMinutes]:{title:"Confirmation Code - Expiration Minutes",description:"It is life time of the code",type:"text",value:"",readonly:!1},[bt.confirmationCodeCounterExpirationMinutes]:{title:"Confirmation Code - Counter Expiration Minutes",description:"The time duration after which the counter for unsuccessful attempts will be reset, allowing user to request a new code",type:"text",value:"",readonly:!1},[bt.confirmationCodeLimitStoreAttempts]:{title:"Confirmation Code - Limit Store Attempts",description:"The maximum number of attempts a user is allowed to request a new code",type:"text",value:"",readonly:!1},[bt.confirmationCodeLimitCheckAttempts]:{title:"Confirmation Code - Limit Check Attempts",description:"The maximum number of attempts a user is allowed to verify a code",type:"text",value:"",readonly:!1}},zT=e=>"number"==typeof e&&!isNaN(e),zy=e=>"string"==typeof e,vF=e=>"function"==typeof e,Kle=e=>v.isValidElement(e)||zy(e)||vF(e)||zT(e),Dl=new Map;let YC=[];const nD=new Set,bF=()=>Dl.size>0;function Qle(e,t){var n;if(t)return!(null==(n=Dl.get(t))||!n.isToastActive(e));let r=!1;return Dl.forEach((t=>{t.isToastActive(e)&&(r=!0)})),r}function Yle(e,t){Kle(e)&&(bF()||YC.push({content:e,options:t}),Dl.forEach((n=>{n.buildToast(e,t)})))}function rD(e,t){Dl.forEach((n=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===n.id&&n.toggle(e,null==t?void 0:t.id):n.toggle(e,null==t?void 0:t.id)}))}let Zle=1;const wF=()=>""+Zle++;function Xle(e){return e&&(zy(e.toastId)||zT(e.toastId))?e.toastId:wF()}function My(e,t){return Yle(e,t),t.toastId}function gw(e,t){return{...t,type:t&&t.type||e,toastId:Xle(t)}}function cb(e){return(t,n)=>My(t,gw(e,n))}function Ft(e,t){return My(e,gw("default",t))}Ft.loading=(e,t)=>My(e,gw("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ft.promise=function(e,t,n){let r,{pending:a,error:o,success:i}=t;a&&(r=zy(a)?Ft.loading(a,n):Ft.loading(a.render,{...n,...a}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,a)=>{if(null==t)return void Ft.dismiss(r);const o={type:e,...s,...n,data:a},i=zy(t)?{render:t}:t;return r?Ft.update(r,{...o,...i}):Ft(i.render,{...o,...i}),a},l=vF(e)?e():e;return l.then((e=>c("success",i,e))).catch((e=>c("error",o,e))),l},Ft.success=cb("success"),Ft.info=cb("info"),Ft.error=cb("error"),Ft.warning=cb("warning"),Ft.warn=Ft.warning,Ft.dark=(e,t)=>My(e,gw("default",{theme:"dark",...t})),Ft.dismiss=function(e){!function(e){var t;if(bF()){if(null==e||zy(t=e)||zT(t))Dl.forEach((t=>{t.removeToast(e)}));else if(e&&("containerId"in e||"id"in e)){const t=Dl.get(e.containerId);t?t.removeToast(e.id):Dl.forEach((t=>{t.removeToast(e.id)}))}}else YC=YC.filter((t=>null!=e&&t.options.toastId!==e))}(e)},Ft.clearWaitingQueue=function(e){void 0===e&&(e={}),Dl.forEach((t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()}))},Ft.isActive=Qle,Ft.update=function(e,t){void 0===t&&(t={});const n=((e,t)=>{var n;let{containerId:r}=t;return null==(n=Dl.get(r||1))?void 0:n.toasts.get(e)})(e,t);if(n){const{props:r,content:a}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:wF()};o.toastId!==e&&(o.staleId=e);const i=o.render||a;delete o.render,My(i,o)}},Ft.done=e=>{Ft.update(e,{progress:1})},Ft.onChange=function(e){return nD.add(e),()=>{nD.delete(e)}},Ft.play=e=>rD(!0,e),Ft.pause=e=>rD(!1,e);const MT=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Dy="8.48.0",Do=globalThis;function Dk(e,t,n){const r=Do,a=r.__SENTRY__=r.__SENTRY__||{},o=a[Dy]=a[Dy]||{};return o[e]||(o[e]=t())}const Q_=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Jle="Sentry Logger ",aD=["debug","info","warn","error","log","assert","trace"],oD={};function DT(e){if(!("console"in Do))return e();const t=Do.console,n={},r=Object.keys(oD);r.forEach((e=>{const r=oD[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function efe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Q_?aD.forEach((n=>{t[n]=(...t)=>{e&&DT((()=>{Do.console[n](`${Jle}[${n}]:`,...t)}))}})):aD.forEach((e=>{t[e]=()=>{}})),t}const ri=Dk("logger",efe),z4="<anonymous>";function wu(e){try{return e&&"function"==typeof e&&e.name||z4}catch{return z4}}function iD(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch{return}}}const Db={},sD={};function kF(e,t){Db[e]=Db[e]||[],Db[e].push(t)}function xF(e,t){if(!sD[e]){sD[e]=!0;try{t()}catch(t){Q_&&ri.error(`Error while instrumenting ${e}`,t)}}}function ZC(e,t){const n=e&&Db[e];if(n)for(const r of n)try{r(t)}catch(t){Q_&&ri.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${wu(r)}\nError:`,t)}}function Y_(){return NT(Do),Do}function NT(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Dy,t[Dy]=t[Dy]||{}}const SF=Object.prototype.toString;function tfe(e){switch(SF.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Nk(e,Error)}}function LT(e,t){return SF.call(e)===`[object ${t}]`}function yw(e){return LT(e,"String")}function jT(e){return LT(e,"Object")}function nfe(e){return typeof Event<"u"&&Nk(e,Event)}function rfe(e){return typeof Element<"u"&&Nk(e,Element)}function afe(e){return LT(e,"RegExp")}function BT(e){return!(!e||!e.then||"function"!=typeof e.then)}function ofe(e){return jT(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Nk(e,t){try{return e instanceof t}catch{return!1}}function ife(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const EF=Do,sfe=80;function FT(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,a=[];let o=0,i=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(l=cfe(n,u),!("html"===l||o>1&&i+a.length*c+l.length>=f));)a.push(l),i+=l.length,n=n.parentNode;return a.reverse().join(s)}catch{return"<unknown>"}}function cfe(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(EF.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(a&&a.length)a.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&yw(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const o=["aria-label","type","name","title","alt"];for(const e of o){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function lfe(){try{return EF.document.location.href}catch{return""}}function M4(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function ffe(e,t,n=!1){return!!yw(e)&&(afe(t)?t.test(e):!!yw(t)&&(n?e===t:e.includes(t)))}function ufe(e,t=[],n=!1){return t.some((t=>ffe(e,t,n)))}function Bs(e,t,n){if(!(t in e))return;const r=e[t],a=n(r);"function"==typeof a&&CF(a,r);try{e[t]=a}catch{Q_&&ri.log(`Failed to replace method "${t}" in object`,e)}}function s_(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Q_&&ri.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function CF(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,s_(e,"__sentry_original__",t)}catch{}}function RF(e){return e.__sentry_original__}function dfe(e){if(tfe(e))return{message:e.message,name:e.name,stack:e.stack,...lD(e)};if(nfe(e)){const t={type:e.type,target:cD(e.target),currentTarget:cD(e.currentTarget),...lD(e)};return typeof CustomEvent<"u"&&Nk(e,CustomEvent)&&(t.detail=e.detail),t}return e}function cD(e){try{return rfe(e)?FT(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function lD(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Pc(e){return XC(e,new Map)}function XC(e,t){if(pfe(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))typeof e[n]<"u"&&(r[n]=XC(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(XC(e,t))})),r}return e}function pfe(e){if(!jT(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const AF=1e3;function Lk(){return Date.now()/AF}function hfe(){const{performance:e}=Do;if(!e||!e.now)return Lk;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/AF}const TF=hfe(),mfe=(()=>{const{performance:e}=Do;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=a<t,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+n-r):t;return o||s<t?a<=s?e.timeOrigin:i:r})();function yu(){const e=Do,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function gfe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function yfe(e,t,n){const r=e.exception=e.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{};o.value||(o.value=""),o.type||(o.type="Error")}function IF(e,t){const n=gfe(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}var cu;function fD(e){return new pu((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(cu||(cu={}));class pu{constructor(e){pu.prototype.__init.call(this),pu.prototype.__init2.call(this),pu.prototype.__init3.call(this),pu.prototype.__init4.call(this),this._state=cu.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new pu(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new pu(((t,n)=>{let r,a;return this.then((t=>{a=!1,r=t,e&&e()}),(t=>{a=!0,r=t,e&&e()})).then((()=>{a?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(cu.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(cu.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===cu.PENDING){if(BT(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===cu.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===cu.RESOLVED&&e[1](this._value),this._state===cu.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function _fe(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||TF(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:yu()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function uD(){return yu()}function JC(){return yu().substring(16)}function jk(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=jk(r[e],t[e],n-1));return r}const eR="_sentrySpan";function dD(e,t){t?s_(e,eR,t):delete e[eR]}function tR(e){return e[eR]}const vfe=100;class UT{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:uD(),spanId:JC()}}clone(){const e=new UT;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,dD(e,tR(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&_fe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof wm?[t.getScopeData(),t.getRequestSession()]:jT(t)?[e,e.requestSession]:[],{tags:a,extra:o,user:i,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,dD(this,void 0),this._attachments=[],this.setPropagationContext({traceId:uD()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Lk(),...e},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:tR(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=jk(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:JC(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:yu();if(!this._client)return ri.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:yu();if(!this._client)return ri.warn("No client configured on scope - will not capture message!"),r;const a=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:yu();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(ri.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const wm=UT;function bfe(){return Dk("defaultCurrentScope",(()=>new wm))}function wfe(){return Dk("defaultIsolationScope",(()=>new wm))}class kfe{constructor(e,t){let n,r;n=e||new wm,r=t||new wm,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return BT(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function A1(){const e=NT(Y_());return e.stack=e.stack||new kfe(bfe(),wfe())}function xfe(e){return A1().withScope(e)}function Sfe(e,t){const n=A1();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function pD(e){return A1().withScope((()=>e(A1().getIsolationScope())))}function Efe(){return{withIsolationScope:pD,withScope:xfe,withSetScope:Sfe,withSetIsolationScope:(e,t)=>pD(t),getCurrentScope:()=>A1().getScope(),getIsolationScope:()=>A1().getIsolationScope()}}function Bk(e){const t=NT(e);return t.acs?t.acs:Efe()}function J1(){return Bk(Y_()).getCurrentScope()}function Z_(){return Bk(Y_()).getIsolationScope()}function Cfe(){return Dk("globalScope",(()=>new wm))}function Rfe(...e){const t=Bk(Y_());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function ef(){return J1().getClient()}const Afe="_sentryMetrics";function Tfe(e){const t=e[Afe];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(Pc(r));return n}const PF="sentry.source",Ife="sentry.sample_rate",Pfe="sentry.op",$fe="sentry.origin",Ofe=0,zfe=1,Mfe="sentry-",Dfe=/^sentry-/;function Nfe(e){const t=Lfe(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(Dfe)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function Lfe(e){if(e&&(yw(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=hD(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):hD(e)}function hD(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const jfe=1;function Bfe(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Pc({parent_span_id:r?t:c_(e).parent_span_id,span_id:r?JC():t,trace_id:n})}function mD(e){return"number"==typeof e?gD(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?gD(e.getTime()):TF()}function gD(e){return e>9999999999?e/1e3:e}function c_(e){if(Ufe(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Ffe(e)){const{attributes:r,startTime:a,name:o,endTime:i,parentSpanId:s,status:c}=e;return Pc({span_id:t,trace_id:n,data:r,description:o,parent_span_id:s,start_timestamp:mD(a),timestamp:mD(i)||void 0,status:qfe(c),op:r[Pfe],origin:r[$fe],_metrics_summary:Tfe(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Ffe(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function Ufe(e){return"function"==typeof e.getSpanJSON}function Vfe(e){const{traceFlags:t}=e.spanContext();return 1===t}function qfe(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const Wfe="_sentryRootSpan";function VT(e){return e[Wfe]||e}function $F(){const e=Bk(Y_());return e.getActiveSpan?e.getActiveSpan():tR(J1())}function Hfe(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=ef(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const OF="production",Gfe="_frozenDsc";function Kfe(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},a=Pc({environment:n.environment||OF,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",a),a}function zF(e){const t=ef();if(!t)return{};const n=VT(e),r=n[Gfe];if(r)return r;const a=n.spanContext().traceState,o=a&&a.get("sentry.dsc"),i=o&&Nfe(o);if(i)return i;const s=Kfe(e.spanContext().traceId,t),c=c_(n),l=c.data||{},u=l[Ife];null!=u&&(s.sample_rate=`${u}`);const f=l[PF],d=c.description;return"url"!==f&&d&&(s.transaction=d),Hfe()&&(s.sampled=String(Vfe(n))),t.emit("createDsc",s,n),s}function yD(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;MT&&ri.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}function Qfe(e,t=!1){const{host:n,path:r,pass:a,port:o,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&a?`:${a}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Yfe(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}function lu(e,t=100,n=1/0){try{return nR("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function nR(e,t,n=1/0,r=1/0,a=Yfe()){const[o,i]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=Zfe(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return s.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return nR("",l.toJSON(),c-1,r,a)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const d=dfe(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(f>=r){u[e]="[MaxProperties ~]";break}const t=d[e];u[e]=nR(e,t,c-1,r,a),f++}return i(t),u}function Zfe(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(ife(t))return"[VueViewModel]";if(ofe(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${wu(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=Xfe(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Xfe(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Jfe(e,t=[]){return[e,t]}function eue(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function tue(e,t,n,r){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Qfe(r)},...a&&{trace:Pc({...a})}}}function rR(e,t,n,r=0){return new pu(((a,o)=>{const i=e[r];if(null===t||"function"!=typeof i)a(t);else{const s=i({...t},n);MT&&i.id&&null===s&&ri.log(`Event processor "${i.id}" dropped event`),BT(s)?s.then((t=>rR(e,t,n,r+1).then(a))).then(null,o):rR(e,s,n,r+1).then(a).then(null,o)}}))}let lb,_D,fb;function nue(e){const t=Do._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return fb&&n.length===_D||(_D=n.length,fb=n.reduce(((n,r)=>{lb||(lb={});const a=lb[r];if(a)n[a[0]]=a[1];else{const a=e(r);for(let e=a.length-1;e>=0;e--){const o=a[e],i=o&&o.filename,s=t[r];if(i&&s){n[i]=s,lb[r]=[i,s];break}}}return n}),{})),fb}function rue(e,t){const{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:o}=t;aue(e,t),r&&sue(e,r),cue(e,n),oue(e,a),iue(e,o)}function vD(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:f,propagationContext:d,transactionName:p,span:h}=t;ub(e,"extra",n),ub(e,"tags",r),ub(e,"user",a),ub(e,"contexts",o),e.sdkProcessingMetadata=jk(e.sdkProcessingMetadata,s,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}}function ub(e,t,n){e[t]=jk(e[t],n,1)}function aue(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,transactionName:s}=t,c=Pc(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Pc(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Pc(a);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=Pc(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),i&&(e.level=i),s&&"transaction"!==e.type&&(e.transaction=s)}function oue(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function iue(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function sue(e,t){e.contexts={trace:Bfe(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:zF(t),...e.sdkProcessingMetadata};const n=c_(VT(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function cue(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function lue(e,t,n,r,a,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||yu(),timestamp:t.timestamp||Lk()},l=n.integrations||e.integrations.map((e=>e.name));fue(c,e),pue(c,l),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&uue(c,e.stackParser);const u=mue(r,n.captureContext);n.mechanism&&IF(c,n.mechanism);const f=a?a.getEventProcessors():[],d=Cfe().getScopeData();if(o){vD(d,o.getScopeData())}if(u){vD(d,u.getScopeData())}const p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),rue(c,d);return rR([...f,...d.eventProcessors],c,n).then((e=>(e&&due(e),"number"==typeof i&&i>0?hue(e,i,s):e)))}function fue(e,t){const{environment:n,release:r,dist:a,maxValueLength:o=250}=t;e.environment=e.environment||n||OF,!e.release&&r&&(e.release=r),!e.dist&&a&&(e.dist=a),e.message&&(e.message=M4(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=M4(i.value,o));const s=e.request;s&&s.url&&(s.url=M4(s.url,o))}function uue(e,t){const n=nue(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function due(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch{}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}function pue(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function hue(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:lu(e.data,t,n)}})))},...e.user&&{user:lu(e.user,t,n)},...e.contexts&&{contexts:lu(e.contexts,t,n)},...e.extra&&{extra:lu(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=lu(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:lu(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=lu(e.contexts.flags,3,n)),r}function mue(e,t){if(!t)return e;const n=e?e.clone():new wm;return n.update(t),n}function qT(e,t){return J1().captureException(e,void 0)}function gue(e,t){const n={captureContext:t};return J1().captureMessage(e,void 0,n)}function yue(e,t){Z_().setContext(e,t)}function _ue(e,t){Z_().setExtra(e,t)}function vue(e){Z_().addEventProcessor(e)}const bue=6e4;function wue(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?bue:r-t}function kue(e,t){return e[t]||e.all||0}function xue(e,t,n=Date.now()){return kue(e,t)>n}function Sue(e,{statusCode:t,headers:n},r=Date.now()){const a={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),i=parseInt(t,10),s=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(a[e]=r+s):a[e]=r+s;else a.all=r+s}else i?a.all=r+wue(i,r):429===t&&(a.all=r+6e4);return a}function Eue(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return Rue(e,n)||Cue(e,r)}function Cue(e,t){return!!t&&bD(e)===bD(t)}function Rue(e,t){return!!t&&e.includes(t.host)}function bD(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const Aue=100;function Tue(e,t){const n=ef(),r=Z_();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=Aue}=n.getOptions();if(o<=0)return;const i={timestamp:Lk(),...e},s=a?DT((()=>a(i,t))):i;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function Iue(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Pue="Dedupe",$ue=()=>{let e;return{name:Pue,processEvent(t){if(t.type)return t;try{if(zue(t,e))return MT&&ri.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Oue=$ue;function zue(e,t){return!!t&&!(!Mue(e,t)&&!Due(e,t))}function Mue(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!DF(e,t)||!MF(e,t))}function Due(e,t){const n=wD(t),r=wD(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&DF(e,t)&&MF(e,t))}function MF(e,t){let n=iD(e),r=iD(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],a=n[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function DF(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function wD(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Nue(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Lue(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function jue(){return!Lue()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function kD(){return typeof window<"u"&&(!jue()||Bue())}function Bue(){const e=Do.process;return!!e&&"renderer"===e.type}const db=Do;function Fue(){const e=db.chrome,t=e&&e.app&&e.app.runtime,n="history"in db&&!!db.history.pushState&&!!db.history.replaceState;return!t&&n}function Uue(e,t){return e??t()}function Nb(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const _y=Do;function Vue(){setTimeout((()=>{}))}function T1(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(RF(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>T1(e,t)));return e.apply(this,r)}catch(e){throw Vue(),Rfe((r=>{r.addEventProcessor((e=>(t.mechanism&&(yfe(e),IF(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),qT(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}CF(n,e),s_(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const NF=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,que=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",X_=(e,t,n,r)=>{let a,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(a||0),(o||void 0===a)&&(a=t.value,t.delta=o,t.rating=que(t.value,n),e(t)))}},rn=Do,Wue=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,LF=(e=!0)=>{const t=rn.performance&&rn.performance.getEntriesByType&&rn.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},WT=()=>{const e=LF();return e&&e.activationStart||0},J_=(e,t)=>{const n=LF();let r="navigate";return n&&(rn.document&&rn.document.prerendering||WT()>0?r="prerender":rn.document&&rn.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Wue(),navigationType:r}},Mm=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},ev=e=>{const t=t=>{("pagehide"===t.type||rn.document&&"hidden"===rn.document.visibilityState)&&e(t)};rn.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Fk=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Ny=-1;const Hue=()=>"hidden"!==rn.document.visibilityState||rn.document.prerendering?1/0:0,_w=e=>{"hidden"===rn.document.visibilityState&&Ny>-1&&(Ny="visibilitychange"===e.type?e.timeStamp:0,Kue())},Gue=()=>{addEventListener("visibilitychange",_w,!0),addEventListener("prerenderingchange",_w,!0)},Kue=()=>{removeEventListener("visibilitychange",_w,!0),removeEventListener("prerenderingchange",_w,!0)},HT=()=>(rn.document&&Ny<0&&(Ny=Hue(),Gue()),{get firstHiddenTime(){return Ny}}),Uk=e=>{rn.document&&rn.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Que=[1800,3e3],Yue=(e,t={})=>{Uk((()=>{const n=HT(),r=J_("FCP");let a;const o=Mm("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-WT(),0),r.entries.push(e),a(!0)))}))}));o&&(a=X_(e,r,Que,t.reportAllChanges))}))},Zue=[.1,.25],Xue=(e,t={})=>{Yue(Fk((()=>{const n=J_("CLS",0);let r,a=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];a&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e])}})),a>n.value&&(n.value=a,n.entries=o,r())},s=Mm("layout-shift",i);s&&(r=X_(e,n,Zue,t.reportAllChanges),ev((()=>{i(s.takeRecords()),r(!0)})),setTimeout(r,0))})))},Jue=[100,300],ede=(e,t={})=>{Uk((()=>{const n=HT(),r=J_("FID");let a;const o=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),a(!0))},i=e=>{e.forEach(o)},s=Mm("first-input",i);a=X_(e,r,Jue,t.reportAllChanges),s&&ev(Fk((()=>{i(s.takeRecords()),s.disconnect()})))}))};let jF=0,D4=1/0,pb=0;const tde=e=>{e.forEach((e=>{e.interactionId&&(D4=Math.min(D4,e.interactionId),pb=Math.max(pb,e.interactionId),jF=pb?(pb-D4)/7+1:0)}))};let aR;const nde=()=>aR?jF:performance.interactionCount||0,rde=()=>{"interactionCount"in performance||aR||(aR=Mm("event",tde,{type:"event",buffered:!0,durationThreshold:0}))},fu=[],N4=new Map,ade=40;let ode=0;const ide=()=>nde()-ode,sde=()=>{const e=Math.min(fu.length-1,Math.floor(ide()/50));return fu[e]},L4=10,cde=[],lde=e=>{if(cde.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=fu[fu.length-1],n=N4.get(e.interactionId);if(n||fu.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};N4.set(t.id,t),fu.push(t)}fu.sort(((e,t)=>t.latency-e.latency)),fu.length>10&&fu.splice(10).forEach((e=>N4.delete(e.id)))}},BF=e=>{const t=rn.requestIdleCallback||rn.setTimeout;let n=-1;return e=Fk(e),rn.document&&"hidden"===rn.document.visibilityState?e():(n=t(e),ev(e)),n},fde=[200,500],ude=(e,t={})=>{"PerformanceEventTiming"in rn&&"interactionId"in PerformanceEventTiming.prototype&&Uk((()=>{rde();const n=J_("INP");let r;const a=e=>{BF((()=>{e.forEach(lde);const t=sde();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},o=Mm("event",a,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=X_(e,n,fde,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),ev((()=>{a(o.takeRecords()),r(!0)})))}))},dde=[2500,4e3],xD={},pde=(e,t={})=>{Uk((()=>{const n=HT(),r=J_("LCP");let a;const o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-WT(),0),r.entries=[e],a())}))},i=Mm("largest-contentful-paint",o);if(i){a=X_(e,r,dde,t.reportAllChanges);const n=Fk((()=>{xD[r.id]||(o(i.takeRecords()),i.disconnect(),xD[r.id]=!0,a(!0))}));["keydown","click"].forEach((e=>{rn.document&&addEventListener(e,(()=>BF(n)),{once:!0,capture:!0})})),ev(n)}}))},Ly={},vw={};let FF,UF,VF,qF;function hde(e,t=!1){return Vk("cls",e,vde,FF,t)}function mde(e,t=!1){return Vk("lcp",e,wde,VF,t)}function gde(e){return Vk("fid",e,bde,UF)}function yde(e){return Vk("inp",e,kde,qF)}function _de(e,t){return WF(e,t),vw[e]||(xde(e),vw[e]=!0),HF(e,t)}function tv(e,t){const n=Ly[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){NF&&ri.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${wu(r)}\nError:`,t)}}function vde(){return Xue((e=>{tv("cls",{metric:e}),FF=e}),{reportAllChanges:!0})}function bde(){return ede((e=>{tv("fid",{metric:e}),UF=e}))}function wde(){return pde((e=>{tv("lcp",{metric:e}),VF=e}),{reportAllChanges:!0})}function kde(){return ude((e=>{tv("inp",{metric:e}),qF=e}))}function Vk(e,t,n,r,a=!1){let o;return WF(e,t),vw[e]||(o=n(),vw[e]=!0),r&&t({metric:r}),HF(e,t,a?o:void 0)}function xde(e){const t={};"event"===e&&(t.durationThreshold=0),Mm(e,(t=>{tv(e,{entries:t})}),t)}function WF(e,t){Ly[e]=Ly[e]||[],Ly[e].push(t)}function HF(e,t,n){return()=>{n&&n();const r=Ly[e];if(!r)return;const a=r.indexOf(t);-1!==a&&r.splice(a,1)}}const Sde=1e3;let SD,oR,iR,hb;function Ede(e){kF("dom",e),xF("dom",Cde)}function Cde(){if(!rn.document)return;const e=ZC.bind(null,"dom"),t=ED(e,!0);rn.document.addEventListener("click",t,!1),rn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=rn[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Bs(r,"addEventListener",(function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=ED(e);o.handler=r,t.call(this,n,r,a)}o.refCount++}catch{}return t.call(this,n,r,a)}})),Bs(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},a=n[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}})))}))}function Rde(e){if(e.type!==oR)return!1;try{if(!e.target||e.target._sentryId!==iR)return!1}catch{}return!0}function Ade(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function ED(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Tde(n);if(Ade(n.type,r))return;s_(n,"_sentryCaptured",!0),r&&!r._sentryId&&s_(r,"_sentryId",yu());const a="keypress"===n.type?"input":n.type;Rde(n)||(e({event:n,name:a,global:t}),oR=n.type,iR=r?r._sentryId:void 0),clearTimeout(SD),SD=rn.setTimeout((()=>{iR=void 0,oR=void 0}),Sde)}}function Tde(e){try{return e.target}catch{return null}}function Ide(e){const t="history";kF(t,e),xF(t,Pde)}function Pde(){if(!Fue())return;const e=rn.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=hb,t=String(n);hb=t,ZC("history",{from:e,to:t})}return e.apply(this,t)}}rn.onpopstate=function(...t){const n=rn.location.href,r=hb;if(hb=n,ZC("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Bs(rn.history,"pushState",t),Bs(rn.history,"replaceState",t)}const j4={};function $de(e){const t=j4[e];if(t)return t;let n=rn[e];if(Nue(n))return j4[e]=n.bind(rn);const r=rn.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(t){NF&&ri.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(j4[e]=n.bind(rn))}function I1(...e){return $de("setTimeout")(...e)}const Ode="__sentry_xhr_v3__",zde=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Mde="BrowserApiErrors",Dde=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Mde,setupOnce(){t.setTimeout&&Bs(_y,"setTimeout",CD),t.setInterval&&Bs(_y,"setInterval",CD),t.requestAnimationFrame&&Bs(_y,"requestAnimationFrame",Lde),t.XMLHttpRequest&&"XMLHttpRequest"in _y&&Bs(XMLHttpRequest.prototype,"send",jde);const e=t.eventTarget;e&&(Array.isArray(e)?e:zde).forEach(Bde)}}},Nde=Dde;function CD(e){return function(...t){const n=t[0];return t[0]=T1(n,{mechanism:{data:{function:wu(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Lde(e){return function(t){return e.apply(this,[T1(t,{mechanism:{data:{function:"requestAnimationFrame",handler:wu(e)},handled:!1,type:"instrument"}})])}}function jde(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Bs(n,e,(function(t){const n={mechanism:{data:{function:e,handler:wu(t)},handled:!1,type:"instrument"}},r=RF(t);return r&&(n.mechanism.data.handler=wu(r)),T1(t,n)}))})),e.apply(this,t)}}function Bde(e){const t=_y[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Bs(n,"addEventListener",(function(t){return function(n,r,a){try{Fde(r)&&(r.handleEvent=T1(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:wu(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,T1(r,{mechanism:{data:{function:"addEventListener",handler:wu(r),target:e},handled:!1,type:"instrument"}}),a])}})),Bs(n,"removeEventListener",(function(e){return function(t,n,r){try{const a=n.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch{}return e.call(this,t,n,r)}})))}function Fde(e){return"function"==typeof e.handleEvent}const Xn=Do,GT="sentryReplaySession",Ude="replay_event",KT="Unable to send Replay",Vde=3e5,qde=9e5,Wde=5e3,Hde=5500,Gde=6e4,Kde=5e3,Qde=3,RD=15e4,mb=5e3,Yde=3e3,Zde=300,QT=2e7,Xde=4999,Jde=15e3,AD=36e5;function sR(e,t){return e??t()}function l_(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}var Ea;function epe(e){return e.nodeType===e.ELEMENT_NODE}function jy(e){const t=l_([e,"optionalAccess",e=>e.host]);return l_([t,"optionalAccess",e=>e.shadowRoot])===e}function By(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function tpe(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function npe(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function bw(e){try{const t=e.rules||e.cssRules;return t?tpe(Array.from(t,GF).join("")):null}catch{return null}}function rpe(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,a=r[n],o=r.getPropertyPriority(a);t+=`${a}:${r.getPropertyValue(a)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function GF(e){let t;if(ope(e))try{t=bw(e.styleSheet)||npe(e)}catch{}else if(ipe(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=rpe(e)),n&&(t=ape(t)),n||r)return t}return t||e.cssText}function ape(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function ope(e){return"styleSheet"in e}function ipe(e){return"selectorText"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Ea||(Ea={}));class KF{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return sR(l_([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function spe(){return new KF}function qk({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function f_({isMasked:e,element:t,value:n,maskInputFn:r}){let a=n||"";return e?(r&&(a=r(a,t)),"*".repeat(a.length)):a}function P1(e){return e.toLowerCase()}function cR(e){return e.toUpperCase()}const TD="__rrweb_original__";function cpe(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const a=t.getImageData,o=TD in a?a[TD]:a;if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0}function YT(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?P1(t):null}function ww(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function QF(e,t){let n;try{n=new URL(e,sR(t,(()=>window.location.href)))}catch{return null}return sR(l_([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const ID={};function YF(e){const t=ID[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return ID[e]=r.bind(window)}function lR(...e){return YF("setTimeout")(...e)}function ZF(...e){return YF("clearTimeout")(...e)}function XF(e){try{return e.contentDocument}catch{}}let lpe=1;const fpe=new RegExp("[^a-z0-9-_:]"),u_=-2;function ZT(){return lpe++}function upe(e){if(e instanceof HTMLFormElement)return"form";const t=P1(e.tagName);return fpe.test(t)?"div":t}function dpe(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let t1,PD;const ppe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,hpe=/^(?:[a-z+]+:)?\/\//i,mpe=/^www\..*/i,gpe=/^(data:)([^,]*),(.*)/i;function kw(e,t){return(e||"").replace(ppe,((e,n,r,a,o,i)=>{const s=r||o||i,c=n||a||"";if(!s)return e;if(hpe.test(s)||mpe.test(s))return`url(${c}${s}${c})`;if(gpe.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${dpe(t)+s}${c})`;const l=t.split("/"),u=s.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const ype=/^[^ \t\n\r\u000c]+/,_pe=/^[, \t\n\r\u000c]+/;function vpe(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const a=e.exec(t.substring(n));return a?(r=a[0],n+=r.length,r):""}const a=[];for(;r(_pe),!(n>=t.length);){let o=r(ype);if(","===o.slice(-1))o=d1(e,o.substring(0,o.length-1)),a.push(o);else{let r="";o=d1(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){a.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,a.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return a.join(", ")}const $D=new WeakMap;function d1(e,t){return t&&""!==t.trim()?Wk(e,t):t}function bpe(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function Wk(e,t){let n=$D.get(e);if(n||(n=e.createElement("a"),$D.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function JF(e,t,n,r,a,o){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?d1(e,r):"srcset"===n?vpe(e,r):"style"===n?kw(r,Wk(e)):"object"===t&&"data"===n?d1(e,r):"function"==typeof o?o(n,r,a):r)}function eU(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function wpe(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function kpe(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function am(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:am(e.parentNode,t,n,r+1)}function p1(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(kpe(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function $1(e,t,n,r,a,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,c=-1;if(o){if(c=am(i,p1(r,a)),c<0)return!0;s=am(i,p1(t,n),c>=0?c:1/0)}else{if(s=am(i,p1(t,n)),s<0)return!1;c=am(i,p1(r,a),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0)&&!!o}catch{}return!!o}function xpe(e,t,n){const r=e.contentWindow;if(!r)return;let a,o=!1;try{a=r.document.readyState}catch{return}if("complete"!==a){const r=lR((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{ZF(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return lR(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Spe(e,t,n){let r,a=!1;try{r=e.sheet}catch{return}if(r)return;const o=lR((()=>{a||(t(),a=!0)}),n);e.addEventListener("load",(()=>{ZF(o),a=!0,t()}))}function Epe(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,k=Cpe(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Ea.Document,childNodes:[],compatMode:e.compatMode}:{type:Ea.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ea.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return Ape(e,{doc:n,blockClass:a,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:k,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d});case e.TEXT_NODE:return Rpe(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:y,rootId:k});case e.CDATA_SECTION_NODE:return{type:Ea.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:Ea.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function Cpe(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function Rpe(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:a,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,f=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const p="STYLE"===f||void 0,h="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(p&&d){try{e.nextSibling||e.previousSibling||l_([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=bw(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=kw(d,Wk(t.doc))}h&&(d="SCRIPT_PLACEHOLDER");const y=$1(e,r,o,a,i,n);if(!p&&!h&&!m&&d&&y&&(d=s?s(d,e.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(c.textarea||y)&&(d=l?l(d,e.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===f&&d){d=f_({isMasked:$1(e,r,o,a,i,qk({type:null,tagName:f,maskInputOptions:c})),element:e,value:d,maskInputFn:l})}return{type:Ea.Text,textContent:d||"",isStyle:p,rootId:u}}function Ape(e,t){const{doc:n,blockClass:r,blockSelector:a,unblockSelector:o,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,w=wpe(e,r,a,o),k=upe(e);let x={};const S=e.attributes.length;for(let t=0;t<S;t++){const r=e.attributes[t];r.name&&!eU(k,r.name,r.value)&&(x[r.name]=JF(n,k,P1(r.name),r.value,e,c))}if("link"===k&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=bw(t)),r&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=kw(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=bw(e.sheet);t&&(x._cssText=kw(t,Wk(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=YT(t),r=ww(t,cR(k),n),a=t.checked;if("submit"!==n&&"button"!==n&&r){const e=$1(t,g,b,v,_,qk({type:n,tagName:cR(k),maskInputOptions:s}));x.value=f_({isMasked:e,element:t,value:r,maskInputFn:l})}a&&(x.checked=a)}if("option"===k&&(e.selected&&!s.select?x.selected=!0:delete x.selected),"canvas"===k&&d)if("2d"===e.__context)cpe(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(x.rr_dataURL=t)}if("img"===k&&f){t1||(t1=n.createElement("canvas"),PD=t1.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",a=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{t1.width=t.naturalWidth,t1.height=t.naturalHeight,PD.drawImage(t,0,0),x.rr_dataURL=t1.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(a?x.crossOrigin=a:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if(("audio"===k||"video"===k)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),w){const{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"===k&&!p(x.src)&&(!w&&!XF(e)&&(x.rr_src=x.src),delete x.src);try{customElements.get(k)&&(E=!0)}catch{}return{type:Ea.Element,tagName:k,attributes:x,childNodes:[],isSVG:bpe(e)||void 0,needBlock:w,rootId:m,isCustom:E}}function Zn(e){return null==e?"":e.toLowerCase()}function Tpe(e,t){if(t.comment&&e.type===Ea.Comment)return!0;if(e.type===Ea.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===QF(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Zn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Zn(e.attributes.name)||"icon"===Zn(e.attributes.rel)||"apple-touch-icon"===Zn(e.attributes.rel)||"shortcut icon"===Zn(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Zn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Zn(e.attributes.property).match(/^(og|twitter|fb):/)||Zn(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Zn(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Zn(e.attributes.name)||"googlebot"===Zn(e.attributes.name)||"bingbot"===Zn(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Zn(e.attributes.name)||"generator"===Zn(e.attributes.name)||"framework"===Zn(e.attributes.name)||"publisher"===Zn(e.attributes.name)||"progid"===Zn(e.attributes.name)||Zn(e.attributes.property).match(/^article:/)||Zn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Zn(e.attributes.name)||"yandex-verification"===Zn(e.attributes.name)||"csrf-token"===Zn(e.attributes.name)||"p:domain_verify"===Zn(e.attributes.name)||"verify-v1"===Zn(e.attributes.name)||"verification"===Zn(e.attributes.name)||"shopify-checkout-api-token"===Zn(e.attributes.name)))return!0}}return!1}function h1(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:z=()=>!1,newlyAddedElement:C=!1}=t;let{preserveWhiteSpace:I=!0}=t;const T=Epe(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:z,newlyAddedElement:C});if(!T)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):Tpe(T,v)||!I&&T.type===Ea.Text&&!T.isStyle&&!T.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ZT();const P=Object.assign(T,{id:R});if(r.add(e,P),-2===R)return null;k&&k(e);let j=!d;if(P.type===Ea.Element){j=j&&!P.needBlock,delete P.needBlock;const t=e.shadowRoot;t&&By(t)&&(P.isShadowHost=!0)}if((P.type===Ea.Document||P.type===Ea.Element)&&j){v.headWhitespace&&P.type===Ea.Element&&"head"===P.tagName&&(I=!1);const t={doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:z};for(const n of Array.from(e.childNodes)){const e=h1(n,t);e&&P.childNodes.push(e)}if(epe(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=h1(n,t);r&&(By(e.shadowRoot)&&(r.isShadow=!0),P.childNodes.push(r))}}return e.parentNode&&jy(e.parentNode)&&By(e.parentNode)&&(P.isShadow=!0),P.type===Ea.Element&&"iframe"===P.tagName&&xpe(e,(()=>{const t=XF(e);if(t&&x){const n=h1(t,{doc:t,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:z});n&&x(e,n)}}),S),P.type===Ea.Element&&"link"===P.tagName&&"string"==typeof P.attributes.rel&&("stylesheet"===P.attributes.rel||"preload"===P.attributes.rel&&"string"==typeof P.attributes.href&&"css"===QF(P.attributes.href))&&Spe(e,(()=>{if(E){const t=h1(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:z});t&&E(e,t)}}),A),P}function Ipe(e,t){const{mirror:n=new KF,blockClass:r="rr-block",blockSelector:a=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A=()=>!1}=t;return h1(e,{doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:i,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:d,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A,newlyAddedElement:!1})}function ip(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function ni(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const c1="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let OD={map:{},getId:()=>(console.error(c1),-1),getNode:()=>(console.error(c1),null),removeNodeFromMap(){console.error(c1)},has:()=>(console.error(c1),!1),reset(){console.error(c1)}};function d_(e,t,n={}){let r=null,a=0;return function(...o){const i=Date.now();!a&&!1===n.leading&&(a=i);const s=t-(i-a),c=this;s<=0||s>t?(r&&(Npe(r),r=null),a=i,e.apply(c,o)):!r&&!1!==n.trailing&&(r=Hk((()=>{a=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)}),s))}}function tU(e,t,n,r,a=window){const o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set(e){Hk((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>tU(e,t,o||{},!0)}function XT(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(OD=new Proxy(OD,{get:(e,t,n)=>("map"===t&&console.error(c1),Reflect.get(e,t,n))}));let xw=Date.now;function nU(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:ip([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||ip([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||ip([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:ip([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||ip([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||ip([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function rU(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function aU(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function oU(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function es(e,t,n,r,a){if(!e)return!1;const o=oU(e);if(!o)return!1;const i=p1(t,n);if(!a){const e=r&&o.matches(r);return i(o)&&!e}const s=am(o,i);let c=-1;return!(s<0)&&(r&&(c=am(o,p1(null,r))),s>-1&&c<0||s<c)}function Ppe(e,t){return-1!==t.getId(e)}function B4(e,t){return-2===t.getId(e)}function iU(e,t){if(jy(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||iU(e.parentNode,t))}function fR(e){return!!e.changedTouches}function $pe(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function sU(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function cU(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function uR(e){return!!ip([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(xw=()=>(new Date).getTime());class Ope{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return Uue(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function lU(e){let t=null;return ip([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function zpe(e){let t,n=e;for(;t=lU(n);)n=t;return n}function Mpe(e){const t=e.ownerDocument;if(!t)return!1;const n=zpe(e);return t.contains(n)}function fU(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Mpe(e))}const zD={};function JT(e){const t=zD[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return zD[e]=r.bind(window)}function Dpe(...e){return JT("requestAnimationFrame")(...e)}function Hk(...e){return JT("setTimeout")(...e)}function Npe(...e){return JT("clearTimeout")(...e)}var MD,DD,Gt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Gt||{}),zt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(zt||{}),ei=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ei||{}),ou=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ou||{});function eI(e){try{return e.contentDocument}catch{}}function Lpe(e){try{return e.contentWindow}catch{}}function jpe(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function ND(e){return"__ln"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(MD||(MD={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(DD||(DD={}));class Bpe{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=jpe([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&ND(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&ND(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const LD=(e,t)=>`${e}@${t}`;class Fpe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Bpe,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},a=a=>{if(!a.parentNode||!fU(a))return;const o=jy(a.parentNode)?this.mirror.getId(lU(a)):this.mirror.getId(a.parentNode),i=r(a);if(-1===o||-1===i)return n.addNode(a);const s=h1(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{sU(e,this.mirror)&&!es(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),cU(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),uR(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{es(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:i,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)jD(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||a(e);for(const e of this.addedSet)!BD(this.droppedSet,e)&&!jD(this.removes,e,this.mirror)||BD(this.movedSet,e)?a(e):this.droppedSet.add(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),a(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};!i.texts.length&&!i.attributes.length&&!i.removes.length&&!i.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!B4(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!es(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:$1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,oU(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=YT(t),a=t.tagName;r=ww(t,a,n);const o=qk({maskInputOptions:this.maskInputOptions,tagName:a,type:n});r=f_({isMasked:$1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(es(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(eI(t))return;n="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!eU(t.tagName,n)&&(a.attributes[n]=JF(this.doc,P1(t.tagName),P1(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?a.styleDiff[e]=""===o?r:[r,o]:a._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(es(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=jy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);es(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||B4(t,this.mirror)||!Ppe(t,this.mirror)||(this.addedSet.has(t)?(dR(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||iU(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[LD(n,r)]?dR(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!jy(e.target)||!By(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(B4(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[LD(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);es(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),uR(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function dR(e,t){e.delete(t),t.childNodes.forEach((t=>dR(e,t)))}function jD(e,t,n){return 0!==e.length&&Upe(e,t,n)}function Upe(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}function BD(e,t){return 0!==e.size&&uU(e,t)}function uU(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||uU(e,n))}let Fy;function Vpe(e){Fy=e}function qpe(){Fy=void 0}const pn=e=>Fy?(...t)=>{try{return e(...t)}catch(e){if(Fy&&!0===Fy(e))return()=>{};throw e}}:e;function Tc(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const m1=[];function nv(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function dU(e,t){const n=new Fpe;m1.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const a=Tc([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);a&&window[a]&&(r=window[a]);const o=new r(pn((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Wpe({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const a="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,s=[];const c=d_(pn((t=>{const n=Date.now()-i;e(s.map((e=>(e.timeOffset-=n,e))),t),s=[],i=null})),o),l=pn(d_(pn((e=>{const t=nv(e),{clientX:n,clientY:a}=fR(e)?e.changedTouches[0]:e;i||(i=xw()),s.push({x:n,y:a,id:r.getId(t),timeOffset:xw()-i}),c(typeof DragEvent<"u"&&e instanceof DragEvent?zt.Drag:e instanceof MouseEvent?zt.MouseMove:zt.TouchMove)})),a,{trailing:!1})),u=[ni("mousemove",l,n),ni("touchmove",l,n),ni("drag",l,n)];return pn((()=>{u.forEach((e=>e()))}))}function Hpe({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const s=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(ei).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((i=>{let s=P1(i);const u=(t=>i=>{const s=nv(i);if(es(s,r,a,o,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=ou.Mouse;break;case"touch":c=ou.Touch;break;case"pen":c=ou.Pen}c===ou.Touch?ei[t]===ei.MouseDown?u="TouchStart":ei[t]===ei.MouseUp&&(u="TouchEnd"):ou.Pen}else fR(i)&&(c=ou.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===ou.Touch||u.startsWith("Mouse")&&c===ou.Mouse)&&(c=null)):ei[t]===ei.Click&&(c=l,l=null);const f=fR(i)?i.changedTouches[0]:i;if(!f)return;const d=n.getId(s),{clientX:p,clientY:h}=f;pn(e)({type:ei[u],id:d,x:p,y:h,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(ei[i]){case ei.MouseDown:case ei.MouseUp:s=s.replace("mouse","pointer");break;case ei.TouchStart:case ei.TouchEnd:return}c.push(ni(s,u,t))})),pn((()=>{c.forEach((e=>e()))}))}function pU({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){return ni("scroll",pn(d_(pn((i=>{const s=nv(i);if(!s||es(s,r,a,o,!0))return;const c=n.getId(s);if(s===t&&t.defaultView){const n=nU(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})})),i.scroll||100)),t)}function Gpe({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ni("resize",pn(d_(pn((()=>{const t=rU(),a=aU();(n!==t||r!==a)&&(e({width:Number(a),height:Number(t)}),n=t,r=a)})),200)),t)}const Kpe=["INPUT","TEXTAREA","SELECT"],FD=new WeakMap;function Qpe({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,ignoreClass:i,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function y(e){let n=nv(e);const u=e.isTrusted,y=n&&cR(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||Kpe.indexOf(y)<0||es(n,r,a,o,!0))return;const v=n;if(v.classList.contains(i)||s&&v.matches(s))return;const b=YT(n);let _=ww(v,y,b),w=!1;const k=qk({maskInputOptions:c,tagName:y,type:b}),x=$1(n,d,h,p,m,k);("radio"===b||"checkbox"===b)&&(w=n.checked),_=f_({isMasked:x,element:n,value:_,maskInputFn:l}),g(n,f?{text:_,isChecked:w,userTriggered:u}:{text:_,isChecked:w});const S=n.name;"radio"===b&&S&&w&&t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach((e=>{if(e!==n){const t=f_({isMasked:x,element:e,value:ww(e,y,b),maskInputFn:l});g(e,f?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function g(t,r){const a=FD.get(t);if(!a||a.text!==r.text||a.isChecked!==r.isChecked){FD.set(t,r);const a=n.getId(t);pn(e)({...r,id:a})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>ni(e,pn(y),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...w.map((e=>tU(e[0],e[1],{set(){pn(y)({target:this,isTrusted:!1})}},!1,b)))),pn((()=>{v.forEach((e=>e()))}))}function Sw(e){return function(e,t){if(gb("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||gb("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||gb("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||gb("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function sp(e,t,n){let r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function Ype({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:pn(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=sp(a,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:s}]}),r.apply(a,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=sp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:i}]}),r.apply(a,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=sp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replace:i}),r.apply(a,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=sp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replaceSync:i}),r.apply(a,o)}))}));const c={};yb("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(yb("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),yb("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),yb("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,a])=>{l[r]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(l[r].insertRule,{apply:pn(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=sp(a.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Sw(a),s||0]}]}),r.apply(a,o)}))}),a.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=sp(a.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:[...Sw(a),i]}]}),r.apply(a,o)}))})})),pn((()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}function hU({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?Tc([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Tc([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=Tc([a,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Tc([a,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&a&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Tc([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Tc([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch{}return n}}),pn((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function Zpe({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:pn(((a,i,s)=>{const[c,l,u]=s;if(n.has(c))return o.apply(i,[c,l,u]);const{id:f,styleId:d}=sp(Tc([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(f&&-1!==f||d&&-1!==d)&&e({id:f,styleId:d,set:{property:c,value:l,priority:u},index:Sw(i.parentRule)}),a.apply(i,s)}))});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:pn(((a,o,s)=>{const[c]=s;if(n.has(c))return i.apply(o,[c]);const{id:l,styleId:u}=sp(Tc([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Sw(o.parentRule)}),a.apply(o,s)}))}),pn((()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=i}))}function Xpe({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:a,sampling:o,doc:i}){const s=pn((i=>d_(pn((o=>{const s=nv(o);if(!s||es(s,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:f}=s;e({type:i,id:a.getId(s),currentTime:c,volume:l,muted:u,playbackRate:f})})),o.media||500))),c=[ni("play",s(0),i),ni("pause",s(1),i),ni("seeked",s(2),i),ni("volumechange",s(3),i),ni("ratechange",s(4),i)];return pn((()=>{c.forEach((e=>e()))}))}function Jpe({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return a.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=XT(t.fonts,"add",(function(t){return function(n){return Hk(pn((()=>{const t=a.get(n);t&&(e(t),a.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),pn((()=>{r.forEach((e=>e()))}))}function ehe(e){const{doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,selectionCb:i}=e;let s=!0;const c=pn((()=>{const e=t.getSelection();if(!e||s&&Tc([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:s,startOffset:l,endContainer:u,endOffset:f}=i;es(s,r,a,o,!0)||es(u,r,a,o,!0)||c.push({start:n.getId(s),startOffset:l,end:n.getId(u),endOffset:f})}i({ranges:c})}));return c(),ni("selectionchange",c)}function the({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?XT(n.customElements,"define",(function(e){return function(n,r,a){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,a])}})):()=>{}}function nhe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=dU(e,e.doc));const a=Wpe(e),o=Hpe(e),i=pU(e),s=Gpe(e,{win:n}),c=Qpe(e),l=Xpe(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=Ype(e,{win:n}),f=hU(e,e.doc),d=Zpe(e,{win:n}),e.collectFonts&&(p=Jpe(e)));const h=ehe(e),m=the(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return pn((()=>{m1.forEach((e=>e.reset())),Tc([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),a(),o(),i(),s(),c(),l(),u(),f(),d(),p(),h(),m(),y.forEach((e=>e()))}))}function gb(e){return typeof window[e]<"u"}function yb(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class pR{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const a=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=a.get(t);return i||(i=this.generateIdFn(),a.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function UD(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}class rhe{constructor(){this.crossOriginIframeMirror=new pR(ZT),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ahe{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new pR(ZT),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new pR(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),UD([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=eI(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin||!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Gt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Gt.IncrementalSnapshot,data:{source:zt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Gt.Meta:case Gt.Load:case Gt.DomContentLoaded:return!1;case Gt.Plugin:return t;case Gt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Gt.IncrementalSnapshot:switch(t.data.source){case zt.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case zt.Drag:case zt.TouchMove:case zt.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case zt.ViewportResize:return!1;case zt.MediaInteraction:case zt.MouseInteraction:case zt.Scroll:case zt.CanvasMutation:case zt.Input:return this.replaceIds(t.data,e,["id"]),t;case zt.StyleSheetRule:case zt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case zt.Font:return t;case zt.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case zt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),UD([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const a of r)!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type!==Ea.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class ohe{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class ihe{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!By(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=dU({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(pU({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Hk((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(hU({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=eI(e),n=Lpe(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(XT(e.prototype,"attachShadow",(function(e){return function(r){const a=e.call(this,r);return this.shadowRoot&&fU(this)&&n.addShadowRoot(this.shadowRoot,t),a}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class VD{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class she{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ope,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:GF(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class che{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,Dpe((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Tr,Ew;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Nb([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Rc=spe();function _u(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:w=null,packFn:k,sampling:x={},dataURLOptions:S={},mousemoveWait:E,recordDOM:A=!0,recordCanvas:z=!1,recordCrossOriginIframes:C=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:T=!1,collectFonts:R=!1,inlineImages:P=!1,plugins:j,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:M,onMutation:D,getCanvasManager:F}=e;Vpe(M);const L=!C||window.parent===window;let V=!1;if(!L)try{window.parent.document&&(V=!1)}catch{V=!0}if(L&&!t)throw new Error("emit function is required");if(!L&&!V)return()=>{};void 0!==E&&void 0===x.mousemove&&(x.mousemove=E),Rc.reset();const q=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},B=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};$pe();let U,$=0;const W=e=>{for(const t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!V&&(e=k(e)),e};Tr=(e,a)=>{const o=e;if(o.timestamp=xw(),Nb([m1,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&o.type!==Gt.FullSnapshot&&!(o.type===Gt.IncrementalSnapshot&&o.data.source===zt.Mutation)&&m1.forEach((e=>e.unfreeze())),L)Nb([t,"optionalCall",e=>e(W(o),a)]);else if(V){const e={type:"rrweb",event:W(o),origin:window.location.origin,isCheckout:a};window.parent.postMessage(e,"*")}if(o.type===Gt.FullSnapshot)U=o,$=0;else if(o.type===Gt.IncrementalSnapshot){if(o.data.source===zt.Mutation&&o.data.isAttachIframe)return;$++;const e=r&&$>=r,t=n&&U&&o.timestamp-U.timestamp>n;(e||t)&&ee(!0)}};const H=e=>{Tr({type:Gt.IncrementalSnapshot,data:{source:zt.Mutation,...e}})},G=e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.Scroll,...e}}),K=e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.CanvasMutation,...e}}),Q=new she({mutationCb:H,adoptedStyleSheetCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new rhe:new ahe({mirror:Rc,mutationCb:H,stylesheetManager:Q,recordCrossOriginIframes:C,wrappedEmit:Tr});for(const e of j||[])e.getMirror&&e.getMirror({nodeMirror:Rc,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const Z=new che,X=fhe(F,{mirror:Rc,win:window,mutationCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.CanvasMutation,...e}}),recordCanvas:z,blockClass:a,blockSelector:o,unblockSelector:i,maxCanvasSize:w,sampling:x.canvas,dataURLOptions:S,errorHandler:M}),J="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ohe:new ihe({mutationCb:H,scrollCb:G,bypassOptions:{onMutation:D,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:q,dataURLOptions:S,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:z,inlineImages:P,sampling:x,slimDOMOptions:B,iframeManager:Y,stylesheetManager:Q,canvasManager:X,keepIframeSrcFn:O,processedNodeManager:Z},mirror:Rc}),ee=(e=!1)=>{if(!A)return;Tr({type:Gt.Meta,data:{href:window.location.href,width:aU(),height:rU()}},e),Q.reset(),J.init(),m1.forEach((e=>e.lock()));const t=Ipe(document,{mirror:Rc,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:q,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:B,dataURLOptions:S,recordCanvas:z,inlineImages:P,onSerialize:e=>{sU(e,Rc)&&Y.addIframe(e),cU(e,Rc)&&Q.trackLinkElement(e),uR(e)&&J.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&X.addWindow(e.contentWindow),J.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},keepIframeSrcFn:O});if(!t)return console.warn("Failed to snapshot the document");Tr({type:Gt.FullSnapshot,data:{node:t,initialOffset:nU(window)}}),m1.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,Rc.getId(document))};Ew=ee;try{const e=[],t=e=>pn(nhe)({onMutation:D,mutationCb:H,mousemoveCb:(e,t)=>Tr({type:Gt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.ViewportResize,...e}}),inputCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.Input,...e}}),mediaInteractionCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.MediaInteraction,...e}}),styleSheetRuleCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.StyleSheetRule,...e}}),styleDeclarationCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.Font,...e}}),selectionCb:e=>{Tr({type:Gt.IncrementalSnapshot,data:{source:zt.Selection,...e}})},customElementCb:e=>{Tr({type:Gt.IncrementalSnapshot,data:{source:zt.CustomElement,...e}})},blockClass:a,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,maskInputOptions:q,inlineStylesheet:h,sampling:x,recordDOM:A,recordCanvas:z,inlineImages:P,userTriggeredOnInput:T,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:O,blockSelector:o,unblockSelector:i,slimDOMOptions:B,dataURLOptions:S,mirror:Rc,iframeManager:Y,stylesheetManager:Q,shadowDomManager:J,processedNodeManager:Z,canvasManager:X,ignoreCSSAttributes:N,plugins:Nb([j,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Tr({type:Gt.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ni("DOMContentLoaded",(()=>{Tr({type:Gt.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),e.push(ni("load",(()=>{Tr({type:Gt.Load,data:{}}),"load"===I&&n()}),window))),()=>{e.forEach((e=>e())),Z.destroy(),Ew=void 0,qpe()}}catch(e){console.warn(e)}}function lhe(e){if(!Ew)throw new Error("please take full snapshot after start recording");Ew(e)}function fhe(e,t){try{return e?e(t):new VD}catch{return console.warn("Unable to initialize CanvasManager"),new VD}}_u.mirror=Rc,_u.takeFullSnapshot=lhe;const uhe=3,dhe=5;function tI(e){return e>9999999999?e:1e3*e}function F4(e){return e>9999999999?e/1e3:e}function rv(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Gt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:lu(t,10,1e3)}}),"console"===t.category))))}const phe="button,a";function mU(e){return e.closest(phe)||e}function gU(e){const t=yU(e);return t&&t instanceof Element?mU(t):t}function yU(e){return hhe(e)?e.target:e}function hhe(e){return"object"==typeof e&&!!e&&"target"in e}let cp;function mhe(e){return cp||(cp=[],ghe()),cp.push(e),()=>{const t=cp?cp.indexOf(e):-1;t>-1&&cp.splice(t,1)}}function ghe(){Bs(Xn,"open",(function(e){return function(...t){if(cp)try{cp.forEach((e=>e()))}catch{}return e.apply(Xn,t)}}))}const yhe=new Set([zt.Mutation,zt.StyleSheetRule,zt.StyleDeclaration,zt.AdoptedStyleSheet,zt.CanvasMutation,zt.Selection,zt.MediaInteraction]);function _he(e,t,n){e.handleClick(t,n)}class vhe{constructor(e,t,n=rv){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=mhe((()=>{this._lastMutation=qD()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(whe(t,this._ignoreSelector)||!khe(e))return;const n={timestamp:F4(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=F4(e)}registerScroll(e=Date.now()){this._lastScroll=F4(e)}registerClick(e){const t=mU(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=qD();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(a){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:Xn.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,a)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:Xn.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=I1((()=>this._checkClicks()),1e3)}}const bhe=["A","BUTTON","INPUT"];function whe(e,t){return!!(!bhe.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||"A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target"))||t&&e.matches(t))}function khe(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function qD(){return Date.now()/1e3}function xhe(e,t){try{if(!She(t))return;const{source:n}=t.data;if(yhe.has(n)&&e.registerMutation(t.timestamp),n===zt.Scroll&&e.registerScroll(t.timestamp),Ehe(t)){const{type:n,id:r}=t.data,a=_u.mirror.getNode(r);a instanceof HTMLElement&&n===ei.Click&&e.registerClick(a)}}catch{}}function She(e){return 3===e.type}function Ehe(e){return e.data.source===zt.MouseInteraction}function jl(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Cw;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Cw||(Cw={}));const Che=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Rhe(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Che.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const Ahe=e=>t=>{if(!e.isEnabled())return;const n=The(t);if(!n)return;const r="click"===t.name,a=r?t.event:void 0;r&&e.clickDetector&&a&&a.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&_he(e.clickDetector,n,gU(t.event)),rv(e,n)};function _U(e,t){const n=_u.mirror.getId(e),r=n&&_u.mirror.getNode(n),a=r&&_u.mirror.getMeta(r),o=a&&Phe(a)?a:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Cw.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Rhe(o.attributes)}}:{}}}function The(e){const{target:t,message:n}=Ihe(e);return jl({category:`ui.${e.name}`,..._U(t,n)})}function Ihe(e){const t="click"===e.name;let n,r=null;try{r=t?gU(e.event):yU(e.event),n=FT(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Phe(e){return e.type===Cw.Element}function $he(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=Ohe(t);n&&rv(e,n)}function Ohe(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o,target:i}=e;if(!i||zhe(i)||!o)return null;const s=t||r||a,c=1===o.length;if(!s&&c)return null;const l=FT(i,{maxStringLength:200})||"<unknown>";return jl({category:"ui.keyDown",message:l,data:{..._U(i,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o}})}function zhe(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const Mhe={resource:Bhe,paint:Lhe,navigation:jhe};function _b(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Dhe(e){return e.map(Nhe).filter(Boolean)}function Nhe(e){const t=Mhe[e.entryType];return t?t(e):null}function O1(e){return((mfe||Xn.performance.timeOrigin)+e)/1e3}function Lhe(e){const{duration:t,entryType:n,name:r,startTime:a}=e,o=O1(a);return{type:n,name:r,start:o,end:o+t,data:void 0}}function jhe(e){const{entryType:t,name:n,decodedBodySize:r,duration:a,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:f,redirectCount:d,startTime:p,transferSize:h,type:m}=e;return 0===a?null:{type:`${t}.${m}`,start:O1(p),end:O1(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:a,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:f,domComplete:o,redirectCount:d}}}function Bhe(e){const{entryType:t,initiatorType:n,name:r,responseEnd:a,startTime:o,decodedBodySize:i,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:O1(o),end:O1(a),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:s}}}function Fhe(e){const t=e.entries[e.entries.length-1];return Gk(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function Uhe(e){return void 0!==e.sources}function Vhe(e){const t=[],n=[];for(const r of e.entries)if(Uhe(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=_u.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Gk(e,"cumulative-layout-shift",n,t)}function qhe(e){const t=e.entries[e.entries.length-1];return Gk(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function Whe(e){const t=e.entries[e.entries.length-1];return Gk(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Gk(e,t,n,r){const a=e.value,o=e.rating,i=O1(a);return{type:"web-vital",name:t,start:i,end:i,data:{value:a,size:a,rating:o,nodeIds:n?n.map((e=>_u.mirror.getId(e))):void 0,attributions:r}}}function Hhe(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(_de(e,n))})),r.push(mde(_b(Fhe,e)),hde(_b(Vhe,e)),gde(_b(qhe,e)),yde(_b(Whe,e))),()=>{r.forEach((e=>e()))}}const At=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ghe='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function Khe(){const e=new Blob([Ghe]);return URL.createObjectURL(e)}const WD=["info","warn","error","log"],Lb="[Replay] ";function U4(e,t="info"){Tue({category:"console",data:{logger:"replay"},level:t,message:`${Lb}${e}`},{level:t})}function Qhe(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return At?(WD.forEach((e=>{n[e]=(...n)=>{ri[e](Lb,...n),t&&U4(n.join(""),Iue(e))}})),n.exception=(r,...a)=>{a.length&&n.error&&n.error(...a),ri.error(Lb,r),e?qT(r):t&&U4(r,"error")},n.infoTick=(...e)=>{ri.info(Lb,...e),t&&setTimeout((()=>U4(e[0])),0)}):WD.forEach((e=>{n[e]=()=>{}})),n}const Pt=Qhe();class nI extends Error{constructor(){super(`Event buffer exceeded maximum size of ${QT}.`)}}class vU{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>QT)throw new nI;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?tI(e):null}}class Yhe{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){At&&Pt.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,a)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return At&&Pt.error("Error in compression worker: ",i.response),void a(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Zhe{constructor(e){this._worker=new Yhe(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=tI(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>QT?Promise.reject(new nI):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{At&&Pt.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Xhe{constructor(e){this._fallback=new vU,this._compression=new Zhe(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(At&&Pt.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){At&&Pt.exception(e,"Failed to add events when switching buffers.")}}}function Jhe({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=eme(t);if(e)return e}return At&&Pt.info("Using simple buffer"),new vU}function eme(e){try{const t=e||tme();if(!t)return;At&&Pt.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Xhe(n)}catch(e){At&&Pt.exception(e,"Failed to create compression worker")}}function tme(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Khe():""}function rI(){try{return"sessionStorage"in Xn&&!!Xn.sessionStorage}catch{return!1}}function nme(e){rme(),e.session=void 0}function rme(){if(rI())try{Xn.sessionStorage.removeItem(GT)}catch{}}function bU(e){return void 0!==e&&Math.random()<e}function wU(e){const t=Date.now();return{id:e.id||yu(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function aI(e){if(rI())try{Xn.sessionStorage.setItem(GT,JSON.stringify(e))}catch{}}function ame(e,t){return bU(e)?"session":!!t&&"buffer"}function HD({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const a=wU({sampled:ame(e,t),previousSessionId:r});return n&&aI(a),a}function ome(){if(!rI())return null;try{const e=Xn.sessionStorage.getItem(GT);if(!e)return null;const t=JSON.parse(e);return At&&Pt.infoTick("Loading existing session"),wU(t)}catch{return null}}function hR(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function kU(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return hR(e.started,t,r)||hR(e.lastActivity,n,r)}function xU(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!kU(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function V4({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const a=r.stickySession&&ome();return a?xU(a,{sessionIdleExpire:e,maxReplayDuration:t})?(At&&Pt.infoTick("Session in sessionStorage is expired, creating new one..."),HD(r,{previousSessionId:a.id})):a:(At&&Pt.infoTick("Creating new session"),HD(r,{previousSessionId:n}))}function ime(e){return e.type===Gt.Custom}function oI(e,t,n){return!!EU(e,t)&&(SU(e,t,n),!0)}function sme(e,t,n){return EU(e,t)?SU(e,t,n):Promise.resolve(null)}async function SU(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const a="buffer"===e.recordingMode;try{n&&a&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=cme(t,e.getOptions().beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(t){const n=t&&t instanceof nI,o=n?"addEventSizeExceeded":"addEvent";if(n&&a)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o});const i=ef();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function EU(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=tI(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(At&&Pt.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function cme(e,t){try{if("function"==typeof t&&ime(e))return t(e)}catch(e){return At&&Pt.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function iI(e){return!e.type}function mR(e){return"transaction"===e.type}function lme(e){return"replay_event"===e.type}function GD(e){return"feedback"===e.type}function fme(e){return(t,n)=>{if(!e.isEnabled()||!iI(t)&&!mR(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(mR(t))return void ume(e,t);dme(e,t)}}}function ume(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function dme(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();"function"==typeof r&&!r(t)||I1((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function pme(e){return t=>{!e.isEnabled()||!iI(t)||hme(e,t)}}function hme(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){rv(e,jl({category:"replay.hydrate-error",data:{url:lfe()}}))}}function mme(e){const t=ef();t&&t.on("beforeAddBreadcrumb",(t=>gme(e,t)))}function gme(e,t){if(!e.isEnabled()||!CU(t))return;const n=yme(t);n&&rv(e,n)}function yme(e){return!CU(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?_me(e):jl(e)}function _me(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return jl(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>mb?(n=!0,`${e.slice(0,mb)}…`):e;if("object"==typeof e)try{const t=lu(e,7);return JSON.stringify(t).length>mb?(n=!0,`${JSON.stringify(t,null,2).slice(0,mb)}…`):t}catch{}return e}));return jl({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function CU(e){return!!e.category}function vme(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function RU(){const e=J1().getPropagationContext().dsc;e&&delete e.replay_id;const t=$F();if(t){delete zF(t).replay_id}}function bme(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Gt.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}function wme(e,t){return!("buffer"!==e.recordingMode||t.message===KT||!t.exception||t.type)&&bU(e.getOptions().errorSampleRate)}function kme(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:lme(t)?(delete t.breadcrumbs,t):iI(t)||mR(t)||GD(t)?e.checkAndHandleExpiredSession()?GD(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),bme(e,t),t):vme(t,n)&&!e.getOptions()._experiments.captureExceptions?(At&&Pt.log("Ignoring error from rrweb internals",t),null):((wme(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(RU(),t):t),{id:"Replay"})}function Kk(e,t){return t.map((({type:t,start:n,end:r,name:a,data:o})=>{const i=e.throttledAddEvent({type:Gt.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function xme(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Sme(e){return t=>{if(!e.isEnabled())return;const n=xme(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Kk(e,[n]),!1))))}}function Eme(e,t){return(!At||!e.getOptions()._experiments.traceInternals)&&Eue(t,ef())}function AU(e,t){e.isEnabled()&&null!==t&&(Eme(e,t.name)||e.addUpdate((()=>(Kk(e,[t]),!0))))}function Qk(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=$U(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function TU(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function IU(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[$U(e)];if(!e)return[void 0]}catch(t){return At&&Pt.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return At&&Pt.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Rw(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function PU(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:a,method:o,statusCode:i,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:a,data:Pc({method:o,statusCode:i,request:s,response:c})}}function p_(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function yp(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:a,warnings:o}=Cme(n);return r.body=a,o&&o.length>0&&(r._meta={warnings:o}),r}function gR(e,t){return Object.entries(e).reduce(((n,[r,a])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=a),n}),{})}function $U(e){return new URLSearchParams(e).toString()}function Cme(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>RD,n=Rme(e);if(t){const t=e.slice(0,RD);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Rme(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function Aw(e,t){return ufe(Ame(e),t)}function Ame(e,t=Xn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Xn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Tme(e,t,n){try{const r=PU("resource.fetch",await Pme(e,t,n));AU(n.replay,r)}catch(e){At&&Pt.exception(e,"Failed to capture fetch breadcrumb")}}function Ime(e,t){const{input:n,response:r}=t,a=Qk(n?OU(n):void 0),o=r?TU(r.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}async function Pme(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r}=t,{url:i,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,f=Aw(i,n.networkDetailAllowUrls)&&!Aw(i,n.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:o,url:i,method:s,statusCode:c,request:f?$me(n,t.input,l):p_(l),response:await Ome(f,n,t.response,u)}}function $me({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const a=n?Dme(n,t):{};if(!e)return yp(a,r,void 0);const o=OU(n),[i,s]=IU(o),c=yp(a,r,i);return s?Rw(c,s):c}async function Ome(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,a){if(!e&&void 0!==a)return p_(a);const o=r?zU(r.headers,n):{};if(!r||!t&&void 0!==a)return yp(o,a,void 0);const[i,s]=await Mme(r),c=zme(i,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:o});return s?Rw(c,s):c}function zme(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:a}){try{const o=e&&e.length&&void 0===n?Qk(e):n;return r?yp(a,o,t?e:void 0):p_(o)}catch(e){return At&&Pt.exception(e,"Failed to serialize response body"),yp(a,n,void 0)}}async function Mme(e){const t=Nme(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await Lme(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(At&&Pt.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(At&&Pt.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function OU(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function zU(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Dme(e,t){return 1===e.length&&"string"!=typeof e[0]?KD(e[0],t):2===e.length?KD(e[1],t):{}}function KD(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?zU(n,t):Array.isArray(n)?{}:gR(n,t):{}}function Nme(e){try{return e.clone()}catch(e){At&&Pt.exception(e,"Failed to clone response body")}}function Lme(e){return new Promise(((t,n)=>{const r=I1((()=>n(new Error("Timeout while trying to read response body"))),500);jme(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function jme(e){return await e.text()}async function Bme(e,t,n){try{const r=PU("resource.xhr",Ume(e,t,n));AU(n.replay,r)}catch(e){At&&Pt.exception(e,"Failed to capture xhr breadcrumb")}}function Fme(e,t){const{xhr:n,input:r}=t;if(!n)return;const a=Qk(r),o=n.getResponseHeader("content-length")?TU(n.getResponseHeader("content-length")):Hme(n.response,n.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}function Ume(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r,input:i,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:f,response_body_size:d}=e.data;if(!c)return null;if(!s||!Aw(c,n.networkDetailAllowUrls)||Aw(c,n.networkDetailDenyUrls)){return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:p_(f),response:p_(d)}}const p=s[Ode],h=p?gR(p.request_headers,n.networkRequestHeaders):{},m=gR(Vme(s),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?IU(i):[void 0],[v,b]=n.networkCaptureBodies?qme(s):[void 0],_=yp(h,f,y),w=yp(m,d,v);return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:g?Rw(_,g):_,response:b?Rw(w,b):w}}function Vme(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}function qme(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Wme(e.response,e.responseType)}catch(e){t.push(e)}return At&&Pt.warn("Failed to get xhr response body",...t),[void 0]}function Wme(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return At&&Pt.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return At&&Pt.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Hme(e,t){try{return Qk("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function Gme(e){const t=ef();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>Kme(s,e,t)))}catch{}}function Kme(e,t,n){if(t.data)try{Qme(t)&&Zme(n)&&(Fme(t,n),Bme(t,n,e)),Yme(t)&&Xme(n)&&(Ime(t,n),Tme(t,n,e))}catch(e){At&&Pt.exception(e,"Error when enriching network breadcrumb")}}function Qme(e){return"xhr"===e.category}function Yme(e){return"fetch"===e.category}function Zme(e){return e&&e.xhr}function Xme(e){return e&&e.response}function Jme(e){const t=ef();Ede(Ahe(e)),Ide(Sme(e)),mme(e),Gme(e);vue(kme(e)),t&&(t.on("beforeSendEvent",pme(e)),t.on("afterSendEvent",fme(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}async function ege(e){try{return Promise.all(Kk(e,[tge(Xn.performance.memory)]))}catch{return[]}}function tge(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function nge(e,t,n){let r,a,o;const i=n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){void 0!==a&&clearTimeout(a),void 0!==o&&clearTimeout(o),a=o=void 0}function l(){return a&&clearTimeout(a),a=I1(s,t),i&&void 0===o&&(o=I1(s,i)),r}return l.cancel=c,l.flush=function(){return void 0!==a||void 0!==o?s():r},l}function rge(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(At&&Pt.warn("Received replay event after session expired."));const a=r||!t;t=!0,e.clickDetector&&xhe(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!oI(e,n,a))return!0;if(!a)return!1;const t=e.session;if(oge(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(At&&Pt.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&aI(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function age(e){const t=e.getOptions();return{type:Gt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function oge(e,t){!t||!e.session||0!==e.session.segmentId||oI(e,age(e),!1)}function ige(e,t,n,r){return Jfe(tue(e,eue(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function sge({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function cge({client:e,scope:t,replayId:n,event:r}){const a={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,a);const o=await lue(e.getOptions(),r,a,t,e,Z_());if(!o)return null;o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:s,version:c}=i&&i.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:c||"0.0.0"},o}async function lge({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:a,session:o}){const i=sge({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,f=ef(),d=J1(),p=f&&f.getTransport(),h=f&&f.getDsn();if(!(f&&p&&h&&o.sampled))return fD({});const m={type:Ude,replay_start_timestamp:u/1e3,timestamp:a/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:o.sampled},y=await cge({scope:d,client:f,replayId:t,event:m});if(!y)return f.recordDroppedEvent("event_processor","replay",m),At&&Pt.info("An event processor returned `null`, will not send event."),fD({});delete y.sdkProcessingMetadata;const g=ige(y,i,h,f.getOptions().tunnel);let v;try{v=await p.send(g)}catch(e){const t=new Error(KT);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new MU(v.statusCode);const b=Sue({},v);if(xue(b,"replay"))throw new sI(b);return v}class MU extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class sI extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function DU(e,t={count:0,interval:Kde}){const{recordingData:n,onError:r}=e;if(n.length)try{return await lge(e),!0}catch(n){if(n instanceof MU||n instanceof sI)throw n;if(yue("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${KT} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{I1((async()=>{try{await DU(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const NU="__THROTTLED",fge="__SKIPPED";function uge(e,t,n){const r=new Map;let a=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=a;return a=!0,e?fge:NU}a=!1;const s=r.get(i)||0;return r.set(i,s+1),e(...o)}}class lp{constructor({options:e,recordingOptions:t}){lp.prototype.__init.call(this),lp.prototype.__init2.call(this),lp.prototype.__init3.call(this),lp.prototype.__init4.call(this),lp.prototype.__init5.call(this),lp.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Vde,sessionIdleExpire:qde},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=nge((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=uge(((e,t)=>sme(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),a=n?{threshold:Math.min(Yde,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(a&&(this.clickDetector=new vhe(this,a)),At){const t=e._experiments;Pt.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){At&&Pt.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session)return void(At&&Pt.exception(new Error("Unable to initialize and create session")));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",At&&Pt.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(At&&Pt.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(At&&Pt.info("Buffering is in progress, call `flush()` to save the replay"));At&&Pt.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=V4({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(At&&Pt.info("Buffering is in progress, call `flush()` to save the replay"));At&&Pt.infoTick("Starting replay in buffer mode");const e=V4({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=_u({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:Gde}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:rge(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{At&&Pt.info("Stopping Replay"+(t?` triggered by ${t}`:"")),RU(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,nme(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),At&&Pt.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),At&&Pt.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();At&&Pt.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();!e||!n||"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&hR(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Xn.location.pathname}${Xn.location.hash}${Xn.location.search}`,t=`${Xn.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===NU){const e=jl({category:"replay.throttled"});this.addUpdate((()=>!oI(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||$F(),t=e&&VT(e),n=(t&&c_(t).data||{})[PF];if(t&&n&&["route","custom"].includes(n))return c_(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Jhe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=V4({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!xU(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Xn.document.addEventListener("visibilitychange",this._handleVisibilityChange),Xn.addEventListener("blur",this._handleWindowBlur),Xn.addEventListener("focus",this._handleWindowFocus),Xn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Jme(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=Hhe(this)}_removeListeners(){try{Xn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Xn.removeEventListener("blur",this._handleWindowBlur),Xn.removeEventListener("focus",this._handleWindowFocus),Xn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Xn.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=jl({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=jl({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{$he(this,e)}}_doChangeToBackgroundTasks(e){!this.session||kU(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):At&&Pt.info("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Gt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=Dhe(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(Kk(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await ege(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await DU({replayId:e,recordingData:a,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=ef();if(t){const n=e instanceof sI?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else At&&Pt.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(At&&Pt.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,a=n>this._options.maxReplayDuration+5e3;if(r||a)return At&&Pt.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&At&&Pt.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&aI(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=jl({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function iy(e,t){return[...e,...t].join(",")}function dge({mask:e,unmask:t,block:n,unblock:r,ignore:a}){return{maskTextSelector:iy(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:iy(t,[]),blockSelector:iy(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:iy(r,[]),ignoreSelector:iy(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function pge({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:a,value:o}){return!r||a.unmaskTextSelector&&e.matches(a.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const QD='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',hge=["content-length","content-type","accept"];let YD=!1;const mge=e=>new Yk(e);class Yk{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=Wde,flushMaxDelay:t=Hde,minReplayDuration:n=Xde,maxReplayDuration:r=AD,stickySession:a=!0,useCompression:o=!0,workerUrl:i,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:f=750,mutationLimit:d=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder"],unmask:k=[],block:x=[],unblock:S=[],ignore:E=[],maskFn:A,beforeAddRecordingEvent:z,beforeErrorSampling:C,onError:I}={}){this.name=Yk.id;const T=dge({mask:_,unmask:k,block:x,unblock:S,ignore:E});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(e,t,n)=>pge({maskAttributes:w,maskAllText:c,privacyOptions:T,key:e,value:t,el:n}),...T,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,Jde),maxReplayDuration:Math.min(r,AD),stickySession:a,useCompression:o,workerUrl:i,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:f,mutationLimit:d,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:ZD(v),networkResponseHeaders:ZD(b),beforeAddRecordingEvent:z,beforeErrorSampling:C,onError:I,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${QD}`:QD),this._isInitialized&&kD())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return YD}set _isInitialized(e){YD=e}afterAllSetup(e){!kD()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=gge(this._initialOptions,e);this._replay=new lp({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function gge(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Pc(e)},a=yD(n.replaysSessionSampleRate),o=yD(n.replaysOnErrorSampleRate);return null==a&&null==o&&DT((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=a&&(r.sessionSampleRate=a),null!=o&&(r.errorSampleRate=o),r}function ZD(e){return[...hge,...e.map((e=>e.toLowerCase()))]}Yk.__initStatic();const LU=()=>"object"!=typeof window;var yge={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/settings/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/settings/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.14.0/bin",TURBO_HASH:"c842ef5034645afc",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_package_name:"@wellesley/settings",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.141",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/settings"};LU()||(window.build=yge.BUILD_NUMBER),mge(),Nde(),Oue();const XD={data:null,isError:!1,isPending:!1,isSuccess:!1},fa=Ca({name:"user",initialState:XD,reducers:{reset:e=>{Object.assign(e,XD)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}}),_ge=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return _ue("exceptionMessage",t),void qT(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}gue(t)},JD=["debug","info","warn","error"],vge=(e,t)=>{const n=JD.indexOf(e);return JD.indexOf(t)>=n},vb=(e,t,n,...r)=>{vge(t,e)&&console.log(`[${e}] ${n}`,...r)},bge=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),wge=(e=!LU()&&bge()||"warn")=>{let t=e;return{debug:(e,...n)=>vb("debug",t,e,...n),info:(e,...n)=>vb("info",t,e,...n),warn:(e,...n)=>vb("warn",t,e,...n),error:(e,...n)=>(_ge(e,...n),vb("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},z1=wge();var kge={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/settings/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/settings/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.14.0/bin",TURBO_HASH:"c842ef5034645afc",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_package_name:"@wellesley/settings",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.141",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/settings"},jU=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(jU||{});function xge(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function Sge(e){return new RegExp("(^|:)//").test(e)}var Ege=e=>e.replace(/\/$/,""),Cge=e=>e.replace(/^\//,"");function Rge(e,t){if(!e)return t;if(!t)return e;if(Sge(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=Ege(e)}${n}${t=Cge(t)}`}var eN=e=>[].concat(...e);function Age(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function Tge(){return typeof document>"u"||"hidden"!==document.visibilityState}var tN=Ul;function BU(e,t){if(e===t||!(tN(e)&&tN(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let a=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const r of n)o[r]=BU(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var nN=(...e)=>fetch(...e),Ige=e=>e.status>=200&&e.status<=299,Pge=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function rN(e){if(!Ul(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function $ge({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=nN,paramsSerializer:r,isJsonContentType:a=Pge,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===nN&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:m,extra:y,endpoint:g,forced:v,type:b}=p;let _,{url:w,headers:k=new Headers(u.headers),params:x,responseHandler:S=c??"json",validateStatus:E=l??Ige,timeout:A=s,...z}="string"==typeof d?{url:d}:d,C={...u,signal:h,...z};k=new Headers(rN(k)),C.headers=await t(k,{getState:m,extra:y,endpoint:g,forced:v,type:b})||k;const I=e=>"object"==typeof e&&(Ul(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!C.headers.has("content-type")&&I(C.body)&&C.headers.set("content-type",o),I(C.body)&&a(C.headers)&&(C.body=JSON.stringify(C.body,i)),x){const e=~w.indexOf("?")?"&":"?";w+=e+(r?r(x):new URLSearchParams(rN(x)))}w=Rge(e,w);const T=new Request(w,C);_={request:new Request(w,C)};let R,P=!1,j=A&&setTimeout((()=>{P=!0,p.abort()}),A);try{R=await n(T)}catch(e){return{error:{status:P?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:_}}finally{j&&clearTimeout(j)}const O=R.clone();_.response=O;let N,M="";try{let e;if(await Promise.all([f(R,S).then((e=>N=e),(t=>e=t)),O.text().then((e=>M=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:M,error:String(e)},meta:_}}return E(R,N)?{data:N,meta:_}:{error:{status:R.status,data:N},meta:_}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var aN=class{constructor(e,t=void 0){this.value=e,this.meta=t}},cI=Ir("__rtkq/focused"),FU=Ir("__rtkq/unfocused"),lI=Ir("__rtkq/online"),UU=Ir("__rtkq/offline");function VU(e){return"query"===e.type}function Oge(e){return"mutation"===e.type}function fI(e,t,n,r,a,o){return zge(e)?e(t,n,r,a).map(yR).map(o):Array.isArray(e)?e.map(yR).map(o):[]}function zge(e){return"function"==typeof e}function yR(e){return"string"==typeof e?{type:e}:e}function oN(e){return null!=e}function v1(e){let t=0;for(const n in e)t++;return t}function Mge(e,t){return e.catch(t)}var h_=Symbol("forceQueryFn"),_R=e=>"function"==typeof e[h_];function Dge({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:c,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,a){const i=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[h_]:p,...h}={})=>(m,y)=>{var g;const v=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:v,[h_]:p}),_=r.endpoints[n].select(c),w=m(b),k=_(y()),{requestId:x,abort:S}=w,E=k.requestId!==x,A=null==(g=o.get(m))?void 0:g[v],z=()=>_(y()),C=Object.assign(p?w.then(z):E&&!A?Promise.resolve(k):Promise.all([A,w]).then(z),{arg:c,requestId:x,subscriptionOptions:d,queryCacheKey:v,abort:S,async unwrap(){const e=await C;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(c,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(s({queryCacheKey:v,requestId:x}))},updateSubscriptionOptions(e){C.subscriptionOptions=e,m(l({endpointName:n,requestId:x,queryCacheKey:v,options:e}))}});if(!A&&!E&&!p){const e=o.get(m)||{};e[v]=C,o.set(m,e),C.then((()=>{delete e[v],v1(e)||o.delete(m)}))}return C};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:a}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:a}),u=o(l),{requestId:f,abort:d,unwrap:p}=u,h=Mge(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:a}))}}),y=i.get(o)||{};return i.set(o,y),y[f]=m,m.then((()=>{delete y[f],v1(y)||i.delete(o)})),a&&(y[a]=m,m.then((()=>{y[a]===m&&(delete y[a],v1(y)||i.delete(o))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=a.endpointDefinitions[t],c=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=o.get(r))?void 0:i[c]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(oN)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(oN)}}}function iN(e){return e}function Nge({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o}){const i=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:c,getState:l,extra:u})=>{const f=n[e.endpointName];try{let n,o=iN;const d={signal:r,abort:a,dispatch:c,getState:l,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[h_]:void 0;if(p?n=p():f.query?(n=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):n=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&kge.NODE_ENV,n.error)throw new aN(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[f1]:!0})}catch(t){let n=t;if(n instanceof aN){let t=iN;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[f1]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,a,o;const i=null==(a=null==(r=n[e])?void 0:r.queries)?void 0:a[t.queryCacheKey],s=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,c=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}const c=u9(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[f1]:!0}),condition(t,{getState:r}){var a,o,i;const c=r(),l=null==(o=null==(a=c[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,f=t.originalArgs,d=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!_R(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||VU(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=u9(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[f1]:!0})});function u(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:c,mutationThunk:l,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,c=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(o());if(i)r(c());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let c,l={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(jc(s.data)){const[e,t,r]=M8(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(s.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[h_]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(c,l)=>{const u=n[e],f=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(l()),p=fI(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:Cy(YR(e),u(t)),matchFulfilled:Cy(bp(e),u(t)),matchRejected:Cy(S1(e),u(t))}}}}function qU(e,t,n,r){return fI(n[e.meta.arg.endpointName][t],bp(e)?e.payload:void 0,Zw(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function bb(e,t,n){const r=e[t];r&&n(r)}function m_(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function sN(e,t,n){const r=e[m_(t)];r&&n(r)}var sy={};function Lge({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=Ir(`${e}/resetApiState`),u=Ca({name:`${e}/queries`,initialState:sy,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Z0()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){bb(e,t,(e=>{e.data=i9(e.data,n.concat())}))},prepare:Z0()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=_R(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),bb(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{bb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!_R(t.arg))return;const{merge:a}=r[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:s}=t;let c=z_(e.data,(e=>a(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=c}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?BU(Lc(e.data)?OW(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{bb(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),f=Ca({name:`${e}/mutations`,initialState:sy,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=m_(t);n in e&&delete e[n]},prepare:Z0()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[m_(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&sN(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&sN(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),d=Ca({name:`${e}/invalidation`,initialState:sy,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);o.includes(a)||o.push(a)}},prepare:Z0()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(vp(bp(t),Zw(t)),((e,t)=>{const n=qU(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=Ca({name:`${e}/subscriptions`,initialState:sy,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=Ca({name:`${e}/internalSubscriptions`,initialState:sy,reducers:{subscriptionsUpdated:{reducer:(e,t)=>i9(e,t.payload),prepare:Z0()}}}),m=Ca({name:`${e}/config`,initialState:{online:Age(),focused:Tge(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(lI,(e=>{e.online=!0})).addCase(UU,(e=>{e.online=!1})).addCase(cI,(e=>{e.focused=!0})).addCase(FU,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=HR({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>y(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var om=Symbol.for("RTKQ/skipToken"),WU={status:"uninitialized"},cN=z_(WU,(()=>{})),lN=z_(WU,(()=>{}));function jge({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>cN,a=e=>lN;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===om?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??cN},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?m_(e)??om:e,n(t===om?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??lN},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(yR)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:eN(Object.values(t)))??[];for(const e of n)a.add(e)}return eN(Array.from(a.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...xge(e.status)}}function i(e){return e[t]}}var n1=WeakMap?new WeakMap:void 0,fN=({endpointName:e,queryArgs:t})=>{let n="";const r=null==n1?void 0:n1.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Ul(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Ul(t)&&(null==n1||n1.set(t,e)),n=e}return`${e}(${n})`};function Bge(...e){return function(t){const n=Ky((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=fN;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:fN({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Qw(),extractRehydrationInfo:n,hasRehydrationInfo:Ky((e=>null!=n(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Ha(39))}else{a.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function Fge(e){for(let t in e)return!1;return!0}var Uge=2147482.647,Vge=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!Fge(t)}const s={};function c(e,t,r,o){const c=n.endpointDefinitions[t],l=(null==c?void 0:c.keepUnusedDataFor)??o.keepUnusedDataFor;if(l===1/0)return;const u=Math.max(0,Math.min(l,Uge));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(r,a,i)=>{var l;if(o.match(r)){const t=a.getState()[e],{queryCacheKey:n}=r.payload;c(n,null==(l=t.queries[n])?void 0:l.endpointName,a,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=a.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))c(e,null==n?void 0:n.endpointName,a,t.config)}}},qge=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:c})=>{const{removeQueryResult:l}=o.internalActions,u=vp(bp(r),Zw(r)),f=vp(bp(r,a),S1(r,a));let d=[];function p(n,r){const a=r.getState(),i=a[e];if(d.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===v1(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(qU(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(fI(e.payload,void 0,void 0,void 0,void 0,i),t)}},Wge=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const o={};function i({queryCacheKey:t},n){const s=n.getState()[e],c=s.queries[t],u=a.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=l(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&n.dispatch(r(c,t)),i({queryCacheKey:t},n)}),f)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=l(s);if(!Number.isFinite(u))return void c(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},n)}function c(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))c(e)}()}},Hge=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const s=n.getState()[e],c=s.queries,l=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=c[e],a=l[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===v1(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{cI.match(e)&&i(t,"refetchOnFocus"),lI.match(e)&&i(t,"refetchOnReconnect")}},uN=new Error("Promise never resolved before cacheEntryRemoved."),Gge=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=_C(r),s=_C(a),c=bp(r,a),l={};function u(t,r,a,o,i){const s=n.endpointDefinitions[t],c=null==s?void 0:s.onCacheEntryAdded;if(!c)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw uN}))]);d.catch((()=>{})),l[a]=u;const p=e.endpoints[t].select("query"===s.type?r:a),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},y=c(r,m);Promise.resolve(y).catch((e=>{if(e!==uN)throw e}))}return(n,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?m_(t.payload):""}(n);if(r.pending.match(n)){const e=f[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(a.pending.match(n))o.getState()[t].mutations[d]&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(c(n)){const e=l[d];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[d];e&&(delete l[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},Kge=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=YR(n,r),o=S1(n,r),i=bp(n,r),s={};return(n,r)=>{var c,l;if(a(n)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=n.meta,c=t.endpointDefinitions[o],l=null==c?void 0:c.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===c.type?i:a),f=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:f,updateCachedData:"query"===c.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};l(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(c=s[e])||c.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},Qge=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},Yge=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,l={getSubscriptions:c,getSubscriptionCount:e=>v1(c()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=c();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(c,u)=>{if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return a=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,l];const f=((n,r)=>{var a,o,c;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(a=null==n?void 0:n[e])&&a[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=n[o=e.queryCacheKey]??(n[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){const e=n[c=t.queryCacheKey]??(n[c]={});e[a]=t.subscriptionOptions??e[a]??{},l=!0}}return l})(n.currentSubscriptions,c);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=M8(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null}),500));const i="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function Zge(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:Ir(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[Qge,Vge,qge,Wge,Gge,Kge];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=Yge(u),p=Hge(u);return e=>c=>{if(!A8(c))return e(c);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const l={...n,next:e},u=n.getState(),[h,m]=d(c,l,u);let y;if(y=h?e(c):m,n.getState()[t]&&(p(c,l,u),s(c)||a.hasRehydrationInfo(c)))for(let e of f)e(c,l,u);return y}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function tp(e,...t){return Object.assign(e,...t)}var dN=Symbol(),Xge=({createSelector:e=go}={})=>({name:dN,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){UW();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:lI,onOffline:UU,onFocus:cI,onFocusLost:FU},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:b}=Nge({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:_,actions:w}=Lge({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});tp(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:w.resetApiState}),tp(t.internalActions,w);const{middleware:k,actions:x}=Zge({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});tp(t.util,x),tp(t,{reducer:_,middleware:k});const{buildQuerySelector:S,buildMutationSelector:E,selectInvalidatedBy:A,selectCachedArgsForQuery:z}=jge({serializeQueryArgs:o,reducerPath:a,createSelector:e});tp(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:z});const{buildInitiateQuery:C,buildInitiateMutation:I,getRunningMutationThunk:T,getRunningMutationsThunk:R,getRunningQueriesThunk:P,getRunningQueryThunk:j}=Dge({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return tp(t.util,{getRunningMutationThunk:T,getRunningMutationsThunk:R,getRunningQueryThunk:j,getRunningQueriesThunk:P}),{name:dN,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),VU(n)?tp(a.endpoints[e],{name:e,select:S(e,n),initiate:C(e,n)},b(p,e)):Oge(n)&&tp(a.endpoints[e],{name:e,select:E(),initiate:I(e)},b(h,e))}}}});function Jge(e){return"query"===e.type}function e1e(e){return"mutation"===e.type}function wb(e,...t){return Object.assign(e,...t)}function q4(e){return e.replace(e[0],e[0].toUpperCase())}var r1=WeakMap?new WeakMap:void 0,t1e=({endpointName:e,queryArgs:t})=>{let n="";const r=null==r1?void 0:r1.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Ul(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Ul(t)&&(null==r1||r1.set(t,e)),n=e}return`${e}(${n})`},W4=Symbol();function pN(e,t,n,r){const a=v.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=v.useRef(a);return v.useEffect((()=>{o.current.serialized!==a.serialized&&(o.current=a)}),[a]),o.current.serialized===a.serialized?o.current.queryArgs:e}function H4(e){const t=v.useRef(e);return v.useEffect((()=>{Oy(t.current,e)||(t.current=e)}),[e]),Oy(t.current,e)?t.current:e}var n1e=typeof window<"u"&&window.document&&window.document.createElement?v.useLayoutEffect:v.useEffect,r1e=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:jU.pending}:e;function a1e({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:a},unstable__sideEffectsInRender:o,createSelector:i},serializeQueryArgs:s,context:c}){const l=o?e=>e():v.useEffect;return{buildQueryHooks:function(o){const f=(t,{refetchOnReconnect:r,refetchOnFocus:a,refetchOnMountOrArgChange:i,skip:s=!1,pollingInterval:u=0,skipPollingIfUnfocused:f=!1}={})=>{const{initiate:d}=e.endpoints[o],p=n(),h=v.useRef();if(!h.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const m=pN(s?om:t,t1e,c.endpointDefinitions[o],o),y=H4({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:u,skipPollingIfUnfocused:f}),g=v.useRef(!1),b=v.useRef();let{queryCacheKey:_,requestId:w}=b.current||{},k=!1;_&&w&&(k=h.current.isRequestSubscribed(_,w));const x=!k&&g.current;return l((()=>{g.current=k})),l((()=>{x&&(b.current=void 0)}),[x]),l((()=>{var e;const t=b.current;if(m===om)return null==t||t.unsubscribe(),void(b.current=void 0);const n=null==(e=b.current)?void 0:e.subscriptionOptions;if(t&&t.arg===m)y!==n&&t.updateSubscriptionOptions(y);else{null==t||t.unsubscribe();const e=p(d(m,{subscriptionOptions:y,forceRefetch:i}));b.current=e}}),[p,d,i,m,y,x]),v.useEffect((()=>()=>{var e;null==(e=b.current)||e.unsubscribe(),b.current=void 0}),[]),v.useMemo((()=>({refetch:()=>{var e;if(!b.current)throw new Error(Ha(38));return null==(e=b.current)?void 0:e.refetch()}})),[])},d=({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:c}=e.endpoints[o],u=n(),[f,d]=v.useState(W4),p=v.useRef(),h=H4({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i,skipPollingIfUnfocused:s});l((()=>{var e,t;const n=null==(e=p.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=p.current)||t.updateSubscriptionOptions(h))}),[h]);const m=v.useRef(h);l((()=>{m.current=h}),[h]);const y=v.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=u(c(e,{subscriptionOptions:m.current,forceRefetch:!n})),d(e)})),r}),[u,c]);return v.useEffect((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),v.useEffect((()=>{f!==W4&&!p.current&&y(f,!0)}),[f,y]),v.useMemo((()=>[y,f]),[y,f])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:f}=e.endpoints[o],d=pN(n?om:t,s,c.endpointDefinitions[o],o),p=v.useRef(),h=v.useMemo((()=>i([f(d),(e,t)=>t,e=>d],u,{memoizeOptions:{resultEqualityCheck:Oy}})),[f,d]),m=v.useMemo((()=>l?i([h],l,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,l]),y=r((e=>m(e,p.current)),Oy),g=a(),b=h(g.getState(),p.current);return n1e((()=>{p.current=b}),[b]),y};return{useQueryState:p,useQuerySubscription:f,useLazyQuerySubscription:d,useLazyQuery(e){const[t,n]=d(e),r=p(n,{...e,skip:n===W4}),a=v.useMemo((()=>({lastArg:n})),[n]);return v.useMemo((()=>[t,r,a]),[t,r,a])},useQuery(e,t){const n=f(e,t),r=p(e,{selectFromResult:e===om||null!=t&&t.skip?void 0:r1e,...t}),{data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}=r;return v.useDebugValue({data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}),v.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(a){return({selectFromResult:o,fixedCacheKey:s}={})=>{const{select:c,initiate:l}=e.endpoints[a],u=n(),[f,d]=v.useState();v.useEffect((()=>()=>{null!=f&&f.arg.fixedCacheKey||null==f||f.reset()}),[f]);const p=v.useCallback((function(e){const t=u(l(e,{fixedCacheKey:s}));return d(t),t}),[u,l,s]),{requestId:h}=f||{},m=v.useMemo((()=>c({fixedCacheKey:s,requestId:null==f?void 0:f.requestId})),[s,f,c]),y=v.useMemo((()=>o?i([m],o):m),[o,m]),g=r(y,Oy),b=null==s?null==f?void 0:f.arg.originalArgs:void 0,_=v.useCallback((()=>{t((()=>{f&&d(void 0),s&&u(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:s}))}))}),[u,s,f,h]),{endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:z}=g;v.useDebugValue({endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:z});const C=v.useMemo((()=>({...g,originalArgs:b,reset:_})),[g,b,_]);return v.useMemo((()=>[p,C]),[p,C])}},usePrefetch:function(t,r){const a=n(),o=H4(r);return v.useCallback(((n,r)=>a(e.util.prefetch(t,n,{...o,...r}))),[t,a,o])}};function u(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=c.endpointDefinitions[e];s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const a=void 0!==r,o=e.isLoading,i=!a&&o,l=e.isSuccess||o&&a;return{...e,data:r,currentData:e.data,isFetching:o,isLoading:i,isSuccess:l}}}var o1e=Symbol(),i1e=({batch:e=zce,hooks:t={useDispatch:zk,useSelector:qa,useStore:oF},createSelector:n=go,unstable__sideEffectsInRender:r=!1,...a}={})=>({name:o1e,init(a,{serializeQueryArgs:o},i){const s=a,{buildQueryHooks:c,buildMutationHook:l,usePrefetch:u}=a1e({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:i});return wb(s,{usePrefetch:u}),wb(i,{batch:e}),{injectEndpoint(e,t){if(Jge(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=c(e);wb(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),a[`use${q4(e)}Query`]=t,a[`useLazy${q4(e)}Query`]=n}else if(e1e(t)){const t=l(e);wb(s.endpoints[e],{useMutation:t}),a[`use${q4(e)}Mutation`]=t}}}}}),s1e=Bge(Xge(),i1e());const uI="auth_token",HU=()=>localStorage.getItem(uI)||void 0,c1e=e=>localStorage.setItem(uI,e),l1e=()=>localStorage.removeItem(uI),f1e=()=>!!HU(),km={getToken:HU,setToken:c1e,removeToken:l1e,hasToken:f1e},u1e="remote-ready",GU=Ir("reselectUser"),dI=Ir("requestLogin"),KU=Ir("requestLogout"),d1e="host-store-connect",QU=Ir("remoteLogin"),pI=Ir("remoteLogout"),hN=Ir("requestMicroFrontendFetch"),p1e=Ir("sendMicroFrontendFetchResponse"),h1e=e=>{km.removeToken(),e(pI())},m1e=e=>async(t,n,r)=>{const a=await e(t,n,r);return a.error&&[401].includes(a.error.status)&&h1e(n.dispatch),a},g1e=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},y1e=5,_1e=e=>t=>!!e&&t.includes(e.status),mN=e=>new Promise((t=>setTimeout(t,1e3*e))),v1e=e=>async(t,n,r)=>{const a=(null==r?void 0:r.maxRetries)??5;await g1e((()=>n.getState().network.isOnline));let o=0;const i=async()=>{var s,c,l,u;const f=await e(t,n,r),d=f.error;if(o>=a)return f;o>0&&await mN(Math.pow(2,o)),o++;const p=_1e(d);switch(!0){case"mutation"===n.type:return f;case!navigator.onLine:case p([408,404]):case d&&"FETCH_ERROR"===(null==d?void 0:d.status):case d&&d.status>=500:return await i();case 429===(null==(s=null==f?void 0:f.error)?void 0:s.status):{const e=null==(u=null==(l=null==(c=f.meta)?void 0:c.response)?void 0:l.headers)?void 0:u.get("Retry-After");return await mN(+(e||"0")),await i()}default:return f}};return await i()};var Tw=(e=>(e.SERVER_RULES="serverRules",e.EVENT_ATTENDEES="eventAttendees",e))(Tw||{});const Zk="staticState",jb={path:"",baseUrl:"",search:""},b1e=e=>{if(!e)return jb;try{return JSON.parse(decodeURIComponent(e))||jb}catch(e){return z1.error("Error parsing static state",e),jb}},YU=()=>new URLSearchParams(window.location.search).get(Zk),w1e=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:a,search:o}=window.location;return`${Zk}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||a,search:n||o}))}`},k1e=()=>{const e=YU();return e&&localStorage.setItem(Zk,e),ZU()},ZU=()=>{try{const e=localStorage.getItem(Zk)||YU();return b1e(e)}catch(e){return z1.error("Error parsing static state",e),jb}},XU={create:w1e,init:k1e,get:ZU},x1e=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return z1.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},S1e=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const a=x1e(e);t.postMessage(a,"*")}catch(e){z1.error("Failed to process or send message:",e)}},E1e=({onMessage:e,whitelist:t})=>{const n=n=>{const r=n.origin!==window.location.origin,a=n.data&&"object"==typeof n.data&&"type"in n.data,o=t.some((({type:e})=>e===n.data.type||"*"===e));r&&a&&o&&e(n.data)};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},C1e=async e=>{const t={};return e.headers.forEach(((e,n)=>{t[n]=e})),{url:e.url,method:e.method,headers:t,body:e.body?await e.text():null,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},R1e=e=>{const{status:t,statusText:n,headers:r,body:a}=e;return new Response(a,{status:t,statusText:n,headers:r})},A1e=async e=>{const t=crypto.randomUUID();return S1e({action:hN({id:t,options:await C1e(e)}),windowElement:window.parent,whitelist:[hN]}),new Promise((e=>{const t=E1e({onMessage:({payload:{response:n}})=>{t(),e(R1e(n))},whitelist:[p1e]})}))},T1e=()=>{try{return window.self!==window.top}catch{return!0}},I1e=()=>e=>T1e()?A1e(e):fetch(e),P1e=XU.get().baseUrl,$1e=P1e||"",O1e=$ge({fetchFn:I1e(),baseUrl:$1e,responseHandler:e=>{const t=e.headers.get("content-type");return(null==t?void 0:t.startsWith("application/json"))?e.json():e.text()},prepareHeaders:e=>{const t=km.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),z1e=m1e(v1e(O1e)),M1e=s1e({tagTypes:["Secure","Post","Follow","Like","Settings","Rbac_Config","Admin_Apps","Admin_Users","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Group_Apps","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks",...Object.values(Tw)],reducerPath:"openapi",baseQuery:z1e,endpoints:()=>({})}),lr=M1e.injectEndpoints({endpoints:e=>({postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticate:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate",method:"POST",body:e.authRequest,params:{htmlContent:e.htmlContent}})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),postApiV1AccountsReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName,htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AccountsById:e.query({query:e=>({url:`/api/v1/accounts/${e.id}`,params:{htmlContent:e.htmlContent}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,email:e.email,group:e.group,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRole:e.mutation({query:e=>({url:"/api/v1/admin/change/role",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),getApiV1AdminDomainBlockList:e.query({query:e=>({url:"/api/v1/admin/domain-block/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsGroupByGroupId:e.query({query:e=>({url:`/api/v1/apps/group/${e.groupId}`})}),deleteApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"DELETE"})}),putApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"PUT"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.appDataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.appDataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),postApiV1Categories:e.mutation({query:e=>({url:"/api/v1/categories",method:"POST",body:e.categoryCreate})}),getApiV1CategoriesNameByCategoryName:e.query({query:e=>({url:`/api/v1/categories/name/${e.categoryName}`})}),putApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1CategoriesByCategoryId:e.query({query:e=>({url:`/api/v1/categories/${e.categoryId}`})}),deleteApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{shortcode:e.shortcode}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{shortcode:e.shortcode,category:e.category}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{shortcode:e.shortcode}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",body:e.body,params:{shortcode:e.shortcode,visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{limit:e.limit,offset:e.offset,organizerId:e.organizerId,ownerId:e.ownerId,username:e.username}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdLeave:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/leave`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),putApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"PUT",body:e.createForum})}),getApiV1ForumsByForumId:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}`})}),deleteApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"DELETE"})}),getApiV1ForumsByForumIdCategories:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdPosts:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/posts`,params:{forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1ForumsByForumIdTags:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdTagsSearch:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsAccount:e.query({query:e=>({url:"/api/v1/groups/account",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),postApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST"})}),putApiV1GroupsByGroupIdMedia:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/media`,method:"PUT",body:e.groupMediaUpdate})}),putApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"PUT",body:e.groupMemberUpdate})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{bookmarkedOnly:e.bookmarkedOnly,forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,ownerType:e.ownerType,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsBookmarks:e.query({query:()=>({url:"/api/v1/posts/bookmarks"})}),getApiV1PostsFollowing:e.query({query:e=>({url:"/api/v1/posts/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsPublic:e.query({query:e=>({url:"/api/v1/posts/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,ownerType:e.ownerType,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{scope:e.scope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{scope:e.scope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE"})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST"})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST"})}),getApiV1TagsFollowed:e.query({query:()=>({url:"/api/v1/tags/followed"})}),getApiV1TagsTrending:e.query({query:()=>({url:"/api/v1/tags/trending"})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST"})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:()=>({url:"/api/v1/trends/tags"})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{account_id:e.accountId,email:e.email,htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersCheck:e.query({query:e=>({url:"/api/v1/users/check",params:{username:e.username}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInvite:e.mutation({query:e=>({url:"/api/v1/users/invite",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),postApiV1UsersInviteAccept:e.mutation({query:e=>({url:"/api/v1/users/invite/accept",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),getApiV1UsersInviteInviteeEntities:e.query({query:e=>({url:"/api/v1/users/invite/invitee/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeEntitiesByInviterUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/entities/${e.inviterUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInviters:e.query({query:e=>({url:"/api/v1/users/invite/invitee/inviters",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInvitersByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/inviters/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterEntities:e.query({query:e=>({url:"/api/v1/users/invite/inviter/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInvitees:e.query({query:e=>({url:"/api/v1/users/invite/inviter/invitees",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInviteesByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/inviter/invitees/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInviteReject:e.mutation({query:e=>({url:"/api/v1/users/invite/reject",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),postApiV1UsersInviteUndo:e.mutation({query:e=>({url:"/api/v1/users/invite/undo",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{allowDeleted:e.allowDeleted,full:e.full,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})})}),overrideExisting:!1}),{usePostApiV1AccountsAddReasonMutation:aHe,usePostApiV1AccountsAuthenticateMutation:oHe,usePostApiV1AccountsAuthenticateEmailMutation:iHe,usePostApiV1AccountsAuthenticatePhoneMutation:sHe,usePutApiV1AccountsChangeNameMutation:cHe,usePostApiV1AccountsCheckCaptchaMutation:lHe,usePostApiV1AccountsConfirmEmailMutation:fHe,usePostApiV1AccountsConfirmPhoneMutation:uHe,useDeleteApiV1AccountsDeleteMutation:dHe,usePostApiV1AccountsEmailChangeConfirmMutation:pHe,usePostApiV1AccountsEmailChangeRequestMutation:hHe,usePutApiV1AccountsEmailChangeResendCodeMutation:mHe,usePostApiV1AccountsFinishCreatingMutation:gHe,usePutApiV1AccountsGetTokenByHashMutation:yHe,usePostApiV1AccountsLoginsAddEmailPasswordMutation:_He,usePostApiV1AccountsLoginsAddEmailPasswordConfirmMutation:vHe,usePutApiV1AccountsLoginsAddEmailPasswordResendCodeMutation:bHe,usePostApiV1AccountsLoginsAddPhoneMutation:wHe,useDeleteApiV1AccountsLoginsRemoveEmailPasswordMutation:kHe,useDeleteApiV1AccountsLoginsRemovePhoneMutation:xHe,usePostApiV1AccountsPasswordChangeConfirmMutation:SHe,usePostApiV1AccountsPasswordChangeRequestMutation:EHe,usePutApiV1AccountsPasswordChangeResendCodeMutation:CHe,usePostApiV1AccountsPasswordRecoverMutation:RHe,usePostApiV1AccountsPasswordRecoverChangeMutation:AHe,usePostApiV1AccountsPasswordRecoverCheckCodeMutation:THe,usePostApiV1AccountsPhoneChangeConfirmAuthMutation:IHe,usePostApiV1AccountsPhoneChangeConfirmNewPhoneMutation:PHe,usePostApiV1AccountsPhoneChangeNewPhoneMutation:$He,usePutApiV1AccountsPhoneChangeRequestMutation:OHe,usePutApiV1AccountsPhoneChangeResendCodeAuthMutation:zHe,usePutApiV1AccountsPhoneChangeResendCodeNewPhoneMutation:MHe,useGetApiV1AccountsProfileQuery:DHe,usePostApiV1AccountsReselectUserMutation:NHe,usePutApiV1AccountsResendCodeByHashMutation:LHe,usePutApiV1AccountsResendEmailByHashMutation:jHe,usePostApiV1AccountsSignupMutation:BHe,usePostApiV1AccountsSignupPhoneMutation:FHe,usePostApiV1AccountsUserReselectUserMutation:UHe,useGetApiV1AccountsByIdQuery:VHe,useGetApiV1AddressesSuggestQuery:qHe,useGetApiV1AdminAccountByAccountIdQuery:WHe,useGetApiV1AdminAuditLogQuery:HHe,usePutApiV1AdminChangeEmailMutation:GHe,usePutApiV1AdminChangePasswordMutation:KHe,usePutApiV1AdminChangeRoleMutation:QHe,usePostApiV1AdminClearApErrorsMutation:YHe,usePostApiV1AdminCreateAccountMutation:ZHe,useDeleteApiV1AdminDeleteMutation:XHe,useGetApiV1AdminDomainAllowQuery:JHe,usePostApiV1AdminDomainAllowMutation:eGe,useDeleteApiV1AdminDomainAllowByDomainMutation:tGe,usePutApiV1AdminDomainBlockMutation:nGe,useGetApiV1AdminDomainBlockQuery:rGe,usePostApiV1AdminDomainBlockMutation:aGe,useGetApiV1AdminDomainBlockListQuery:oGe,useDeleteApiV1AdminDomainBlockByDomainMutation:iGe,useGetApiV1AdminFederationQuery:sGe,useGetApiV1AdminFederationByDomainQuery:cGe,usePostApiV1AdminFeedClearUserFeedMutation:lGe,usePostApiV1AdminFeedRegenerateUserFeedMutation:fGe,usePostApiV1AdminPostsDeleteMutation:uGe,useDeleteApiV1AdminPurgeMutation:dGe,usePostApiV1AdminRegenerateKeysMutation:pGe,usePostApiV1AdminRegenerateKeysAllMutation:hGe,usePostApiV1AdminReportsDeletePostsMutation:mGe,useGetApiV1AdminReportsListQuery:gGe,useGetApiV1AdminReportsByReportIdQuery:yGe,usePostApiV1AdminReportsByReportIdAddNoteMutation:_Ge,usePostApiV1AdminReportsByReportIdAssignToSelfMutation:vGe,useDeleteApiV1AdminReportsByReportIdDeleteMutation:bGe,usePostApiV1AdminReportsByReportIdRemoveNoteMutation:wGe,usePostApiV1AdminReportsByReportIdReopenMutation:kGe,usePostApiV1AdminReportsByReportIdResolveMutation:xGe,usePostApiV1AdminReportsByReportIdUnassignMutation:SGe,usePostApiV1AdminRestartApDeliveryMutation:EGe,useGetApiV1AdminSearchQuery:CGe,usePutApiV1AdminSignupRequestsApproveByHashMutation:RGe,useDeleteApiV1AdminSignupRequestsDeleteByHashMutation:AGe,useGetApiV1AdminSignupRequestsListQuery:TGe,usePutApiV1AdminSignupRequestsRejectByHashMutation:IGe,useGetApiV1AdminUploadsSearchQuery:PGe,useGetApiV1AdminUploadsStorageByUserIdQuery:$Ge,usePostApiV1AdminUserChangeStateMutation:OGe,useGetApiV1AdminUserByUserIdQuery:zGe,usePostApiV1AppsMutation:MGe,useGetApiV1AppsQuery:DGe,useGetApiV1AppsEnabledQuery:NGe,useGetApiV1AppsGroupByGroupIdQuery:LGe,useDeleteApiV1AppsGroupByGroupIdAndAppIdMutation:jGe,usePutApiV1AppsGroupByGroupIdAndAppIdMutation:BGe,useGetApiV1AppsInstalledQuery:FGe,useGetApiV1AppsUserQuery:UGe,useDeleteApiV1AppsUserByAppIdMutation:VGe,usePutApiV1AppsUserByAppIdMutation:qGe,usePutApiV1AppsByAppIdMutation:WGe,useGetApiV1AppsByAppIdQuery:HGe,useDeleteApiV1AppsByAppIdMutation:GGe,useGetApiV1AppsByAppIdDataQuery:KGe,usePostApiV1AppsByAppIdDataMutation:QGe,usePutApiV1AppsByAppIdDataAndIdMutation:YGe,useDeleteApiV1AppsByAppIdDataAndIdMutation:ZGe,usePutApiV1AppsByAppIdDefaultMutation:XGe,usePutApiV1AppsByAppIdDisableMutation:JGe,usePutApiV1AppsByAppIdEnableMutation:eKe,useGetApiV1AppsByAppIdStatsQuery:tKe,usePutApiV1AppsByAppIdUserDefaultMutation:nKe,useDeleteApiV1AppsByAppIdUserDefaultMutation:rKe,useGetApiV1BlockQuery:aKe,useGetApiV1BlockByQuery:oKe,useDeleteApiV1BlockByUserIdMutation:iKe,usePostApiV1BlockByUserIdMutation:sKe,usePostApiV1CategoriesMutation:cKe,useGetApiV1CategoriesNameByCategoryNameQuery:lKe,usePutApiV1CategoriesByCategoryIdMutation:fKe,useGetApiV1CategoriesByCategoryIdQuery:uKe,useDeleteApiV1CategoriesByCategoryIdMutation:dKe,useGetApiV1CustomEmojisQuery:pKe,useDeleteApiV1CustomEmojisMutation:hKe,usePostApiV1CustomEmojisMutation:mKe,useGetApiV1CustomEmojisExportQuery:gKe,usePostApiV1CustomEmojisImportMutation:yKe,useGetApiV1CustomEmojisSearchQuery:_Ke,usePostApiV1CustomEmojisUploadMutation:vKe,useGetApiV1EventsQuery:bKe,usePostApiV1EventsMutation:wKe,useGetApiV1EventsFollowingQuery:kKe,useGetApiV1EventsMyQuery:xKe,usePutApiV1EventsByEventIdMutation:SKe,useGetApiV1EventsByEventIdQuery:EKe,useDeleteApiV1EventsByEventIdMutation:CKe,usePostApiV1EventsByEventIdAcceptMutation:RKe,useGetApiV1EventsByEventIdAttendeesQuery:AKe,useDeleteApiV1EventsByEventIdAttendeesAndUserIdMutation:TKe,usePostApiV1EventsByEventIdAttendeesAndUserIdMutation:IKe,usePostApiV1EventsByEventIdCancelMutation:PKe,usePostApiV1EventsByEventIdInterestedMutation:$Ke,usePostApiV1EventsByEventIdJoinMutation:OKe,useDeleteApiV1EventsByEventIdLeaveMutation:zKe,usePostApiV1EventsByEventIdMaybeMutation:MKe,useGetApiV1EventsByEventIdMutualQuery:DKe,usePostApiV1EventsByEventIdRejectMutation:NKe,usePostApiV1FaspClearMutation:LKe,useGetApiV1FaspDebugV0CallbackCallbacksQuery:jKe,useDeleteApiV1FaspDebugV0CallbackCallbacksByIdMutation:BKe,usePostApiV1FaspRegistrationMutation:FKe,usePostApiV1FaspByProviderIdCapabilitiesMutation:UKe,usePostApiV1FaspByProviderIdDebugCallMutation:VKe,useGetApiV1FaspByProviderIdRegistrationFinishQuery:qKe,usePostApiV1FaspByProviderIdRegistrationFinishMutation:WKe,usePostApiV1FaspByProviderIdRequestBackfillMutation:HKe,usePutApiV1ForumsByForumIdMutation:GKe,useGetApiV1ForumsByForumIdQuery:KKe,useDeleteApiV1ForumsByForumIdMutation:QKe,useGetApiV1ForumsByForumIdCategoriesQuery:YKe,useGetApiV1ForumsByForumIdPostsQuery:ZKe,useGetApiV1ForumsByForumIdTagsQuery:XKe,useGetApiV1ForumsByForumIdTagsSearchQuery:JKe,useGetApiV1GeoQuery:eQe,useGetApiV1GroupsQuery:tQe,usePostApiV1GroupsMutation:nQe,useGetApiV1GroupsAccountQuery:rQe,useGetApiV1GroupsMemberByUserIdQuery:aQe,useGetApiV1GroupsMemberByUserIdGroupsQuery:oQe,useGetApiV1GroupsNameByGroupnameQuery:iQe,useGetApiV1GroupsSearchQuery:sQe,usePutApiV1GroupsByGroupIdMutation:cQe,useGetApiV1GroupsByGroupIdQuery:lQe,useDeleteApiV1GroupsByGroupIdMutation:fQe,useGetApiV1GroupsByGroupIdForumQuery:uQe,usePostApiV1GroupsByGroupIdForumMutation:dQe,usePostApiV1GroupsByGroupIdJoinMutation:pQe,usePutApiV1GroupsByGroupIdMediaMutation:hQe,usePutApiV1GroupsByGroupIdMembersMutation:mQe,useGetApiV1GroupsByGroupIdMembersQuery:gQe,usePostApiV1GroupsByGroupIdMembersMutation:yQe,useDeleteApiV1GroupsByGroupIdMembersAndMemberIdMutation:_Qe,useGetApiV1GroupsByGroupIdUsersQuery:vQe,useGetApiV1ImportQuery:bQe,usePostApiV1ImportMutation:wQe,usePostApiV1ImportStartByIdMutation:kQe,useGetApiV1ImportByIdQuery:xQe,useGetApiV1InstanceQuery:SQe,useGetApiV1InstanceCountriesQuery:EQe,useGetApiV1InstanceDomainsQuery:CQe,useGetApiV1InstanceExtendedDescriptionQuery:RQe,useGetApiV1InstanceSupportedLanguagesQuery:AQe,useGetApiV1InstanceTimezonesQuery:TQe,useGetApiV1JobsListJobsQuery:IQe,useGetApiV1JobsListStatsQuery:PQe,useGetApiV1JobsListStatsAllQuery:$Qe,useGetApiV1JobsListsQuery:OQe,useGetApiV1JobsStatsQuery:zQe,useGetApiV1JobsStatsPerDayQuery:MQe,useGetApiV1LinksQuery:DQe,useGetApiV1ListsQuery:NQe,usePostApiV1ListsMutation:LQe,usePutApiV1ListsByListIdMutation:jQe,useGetApiV1ListsByListIdQuery:BQe,useDeleteApiV1ListsByListIdMutation:FQe,useGetApiV1ListsByListIdUsersQuery:UQe,useDeleteApiV1ListsByListIdUsersAndUserIdMutation:VQe,usePostApiV1ListsByListIdUsersAndUserIdMutation:qQe,useGetApiV1MuteQuery:WQe,useDeleteApiV1MuteByUserIdMutation:HQe,usePostApiV1MuteByUserIdMutation:GQe,usePutApiV1NotesMutation:KQe,useGetApiV1NotesQuery:QQe,useDeleteApiV1NotesByUserIdMutation:YQe,useGetApiV1NotificationsQuery:ZQe,useGetApiV1NotificationsCountQuery:XQe,usePostApiV1NotificationsMarkAllMutation:JQe,useGetApiV1NotificationsByIdQuery:eYe,usePostApiV1NotificationsByIdMarkMutation:tYe,usePostApiV1PollsByPollIdRefreshMutation:nYe,usePostApiV1PollsByPollIdVoteMutation:rYe,useGetApiV1PostsQuery:aYe,usePostApiV1PostsMutation:oYe,useGetApiV1PostsBookmarksQuery:iYe,useGetApiV1PostsFollowingQuery:sYe,useGetApiV1PostsLikedQuery:cYe,useGetApiV1PostsMentionedQuery:lYe,useGetApiV1PostsMyQuery:fYe,useGetApiV1PostsPinsQuery:uYe,useDeleteApiV1PostsPinsByPostIdMutation:dYe,usePostApiV1PostsPinsByPostIdMutation:pYe,useGetApiV1PostsPublicQuery:hYe,useGetApiV1PostsRepliesQuery:mYe,useGetApiV1PostsSubscribeQuery:gYe,usePutApiV1PostsByPostIdMutation:yYe,useGetApiV1PostsByPostIdQuery:_Ye,useDeleteApiV1PostsByPostIdMutation:vYe,useDeleteApiV1PostsByPostIdBookmarkMutation:bYe,usePostApiV1PostsByPostIdBookmarkMutation:wYe,useGetApiV1PostsByPostIdCommentsQuery:kYe,usePostApiV1PostsByPostIdCommentsMutation:xYe,usePutApiV1PostsByPostIdCommentsAndCommentIdMutation:SYe,useDeleteApiV1PostsByPostIdCommentsAndCommentIdMutation:EYe,usePostApiV1PostsByPostIdDetachMutation:CYe,useGetApiV1PostsByPostIdEditsQuery:RYe,useGetApiV1PostsByPostIdLikesQuery:AYe,useDeleteApiV1PostsByPostIdLikesMutation:TYe,usePostApiV1PostsByPostIdLikesMutation:IYe,usePostApiV1PostsByPostIdRefreshCardMutation:PYe,useDeleteApiV1PostsByPostIdRepostMutation:$Ye,usePostApiV1PostsByPostIdRepostMutation:OYe,useGetApiV1PostsByPostIdRepostsQuery:zYe,usePostApiV1PostsByPostIdSubscribeMutation:MYe,useDeleteApiV1PostsByPostIdSubscribeMutation:DYe,usePostApiV1PostsByPostIdTranslateMutation:NYe,useGetApiV1RbacQuery:LYe,useGetApiV1RbacActorsByActorIdPermissionsQuery:jYe,useGetApiV1RbacActorsByActorIdRolesQuery:BYe,usePutApiV1RbacRolesByRoleIdMutation:FYe,useGetApiV1RbacScopesByScopeRolesQuery:UYe,usePostApiV1RbacScopesByScopeRolesMutation:VYe,useDeleteApiV1RbacScopesByScopeRolesAndRoleNameMutation:qYe,useGetApiV1RbacByResourceQuery:WYe,usePostApiV1ReportsMutation:HYe,usePutApiV1RulesMutation:GYe,useGetApiV1RulesQuery:KYe,usePostApiV1RulesMutation:QYe,usePostApiV1RulesReorderMutation:YYe,useDeleteApiV1RulesByIdMutation:ZYe,useGetApiV1SearchQuery:D1e,useDeleteApiV1SessionsAllMutation:XYe,useGetApiV1SessionsListQuery:JYe,usePutApiV1SessionsRevokeAllMutation:eZe,usePutApiV1SessionsRevokeBySessionKeyMutation:tZe,useDeleteApiV1SessionsBySessionKeyMutation:nZe,usePutApiV1SettingsMutation:rZe,useGetApiV1SettingsQuery:aZe,useDeleteApiV1SettingsMutation:oZe,usePutApiV1SettingsUserMutation:iZe,useGetApiV1SettingsUserQuery:sZe,useDeleteApiV1SettingsUserMutation:cZe,useGetApiV1TagsFeaturedQuery:lZe,useDeleteApiV1TagsFeaturedByNameMutation:fZe,usePostApiV1TagsFeaturedByNameMutation:uZe,usePostApiV1TagsFollowByNameMutation:dZe,useGetApiV1TagsFollowedQuery:pZe,useGetApiV1TagsTrendingQuery:hZe,usePostApiV1TagsUnfollowByNameMutation:mZe,useGetApiV1TagsByNameQuery:gZe,usePostApiV1TranslateTextMutation:yZe,useGetApiV1TrendsLinksQuery:_Ze,useGetApiV1TrendsPostsQuery:vZe,useGetApiV1TrendsTagsQuery:bZe,usePostApiV1UploadsMutation:wZe,usePostApiV1UploadsBatchMutation:kZe,usePostApiV1UploadsListMutation:xZe,useGetApiV1UploadsSearchQuery:SZe,useGetApiV1UploadsUsagesQuery:EZe,useGetApiV1UploadsByIdQuery:CZe,useDeleteApiV1UploadsByIdMutation:RZe,usePostApiV1UploadsByIdMetaMutation:AZe,usePutApiV1UploadsByIdMetaMutation:TZe,usePostApiV1UploadsByIdTagsMutation:IZe,usePutApiV1UploadsByIdTagsMutation:PZe,usePostApiV1UploadsByIdThumbnailMutation:$Ze,useGetApiV1UserAliasQuery:OZe,useDeleteApiV1UserAliasMutation:zZe,usePostApiV1UserAliasMutation:MZe,useGetApiV1UserDomainBlockQuery:DZe,useDeleteApiV1UserDomainBlockByDomainMutation:NZe,usePostApiV1UserDomainBlockByDomainMutation:LZe,useDeleteApiV1UsersMutation:jZe,usePostApiV1UsersMutation:BZe,useGetApiV1UsersQuery:FZe,useGetApiV1UsersCheckQuery:UZe,useGetApiV1UsersConnectionsQuery:VZe,usePostApiV1UsersFollowByUsernameMutation:qZe,usePostApiV1UsersFollowByUsernameAcceptMutation:WZe,usePostApiV1UsersFollowByUsernamePendMutation:HZe,usePostApiV1UsersFollowByUsernameRejectMutation:GZe,usePostApiV1UsersFollowByUsernameUndoMutation:KZe,useGetApiV1UsersFolloweesQuery:QZe,useGetApiV1UsersFollowersQuery:YZe,usePostApiV1UsersInviteMutation:ZZe,usePostApiV1UsersInviteAcceptMutation:XZe,useGetApiV1UsersInviteInviteeEntitiesQuery:JZe,useGetApiV1UsersInviteInviteeEntitiesByInviterUserQuery:eXe,useGetApiV1UsersInviteInviteeInvitersQuery:tXe,useGetApiV1UsersInviteInviteeInvitersByEntityUserQuery:nXe,useGetApiV1UsersInviteInviterEntitiesQuery:rXe,useGetApiV1UsersInviteInviterInviteesQuery:aXe,useGetApiV1UsersInviteInviterInviteesByEntityUserQuery:oXe,usePostApiV1UsersInviteRejectMutation:iXe,usePostApiV1UsersInviteUndoMutation:sXe,useGetApiV1UsersRelationshipsQuery:cXe,useGetApiV1UsersRemoteByUserNameFullFollowersQuery:lXe,useGetApiV1UsersRemoteByUserNameFullFollowingQuery:fXe,useGetApiV1UsersRenameHistoryQuery:uXe,usePutApiV1UsersByUserIdMutation:dXe,useGetApiV1UsersByUserIdQuery:pXe,useGetApiV1UsersByUserIdFollowersQuery:hXe,useGetApiV1UsersByUserIdFollowingQuery:mXe,usePutApiV1UsersByUserIdMediaMutation:gXe}=lr,gN={400:{title:"",description:"You have no permission ..."},401:{title:"Unauthorized",description:"Your access is restricted. Please ensure you have the correct login details"},404:{title:"Oh no, bad luck!",description:"Looks like the page you were looking for has been removed. Just in case, please make sure to check your spelling."},user404:{title:"We could not find the user you were looking for",description:"Check the username and try one more time",links:[{text:"To the Wellsley account",link:"/account"},{text:"To account settings",link:"/account/settings"}]},page404:{title:"We could not find the page you were looking for",description:"Check the address and try one more time"},post404:{title:"We could not find the post you were looking for",description:"Check the address and try one more time"},403:{title:"",description:"Your session has been expired. Please re-login again."},440:{title:"",description:"You have reached maximum allowed number of concurrent sessions."},460:{title:"",description:"Please re-login again."},498:{title:"Expired",description:"The link was expired or invalid. Please try again."},500:{title:"Oops, something went wrong!",description:'We are already on it. Please try again later or contact us at <a href="mailto:support@wave.video">support@wave.video</a>'}},G4=e=>gN[e]||gN[500],Bl=e=>{var t,n;if(!e)return G4(500).description;if(hu.isString(e))return e;if("data"in e&&hu.isString(e.data))return e.data;if("data"in e&&null!=(t=e.data)&&t.errorCode)return null==(n=e.data)?void 0:n.message;if("isUnhandledError"in e&&!e.isUnhandledError){const{status:t,data:n}=null==e?void 0:e.error;return(hu.isString(n)?n:null==n?void 0:n.message)||G4(t||500).description}return"message"in e&&e.message?e.message:"error"in e?e.error:"status"in e?G4(e.status).description:void 0},jt=async(e,t,n)=>{try{return await e,t&&Ft.success(t),e}catch(e){null==n||n(),Ft.error(Bl(e))}};
87
+ */function xce(){if(YM)return O4;YM=1;var e=Xw();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,a=e.useEffect,o=e.useMemo,i=e.useDebugValue;return O4.useSyncExternalStoreWithSelector=function(e,s,c,l,u){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=o((function(){function e(e){if(!a){if(a=!0,n=e,e=l(e),void 0!==u&&d.hasValue){var o=d.value;if(u(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var i=l(e);return void 0!==u&&u(o,i)?o:(n=e,r=i)}var n,r,a=!1,o=void 0===c?null:c;return[function(){return e(s())},null===o?void 0:function(){return e(o())}]}),[s,c,l,u]);var p=n(e,f[0],f[1]);return a((function(){d.hasValue=!0,d.value=p}),[p]),i(p),p},O4}function Sce(){return ZM||(ZM=1,$4.exports=xce()),$4.exports}var Ece=Sce(),Ll="default"in Zb?ze:Zb,XM=Symbol.for("react-redux-context"),JM=typeof globalThis<"u"?globalThis:{};function Cce(){if(!Ll.createContext)return{};const e=JM[XM]??(JM[XM]=new Map);let t=e.get(Ll.createContext);return t||(t=Ll.createContext(null),e.set(Ll.createContext,t)),t}var bm=Cce(),Rce=()=>{throw new Error("uSES not initialized!")};function $T(e=bm){return function(){return Ll.useContext(e)}}var nF=$T(),rF=Rce,Ace=e=>{rF=e},Tce=(e,t)=>e===t;function Ice(e=bm){const t=e===bm?nF:$T(e),n=(e,n={})=>{const{equalityFn:r=Tce,devModeChecks:a={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:i,getServerState:s,stabilityCheck:c,identityFunctionCheck:l}=t();Ll.useRef(!0);const u=Ll.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,a.stabilityCheck]),f=rF(i.addNestedSub,o.getState,s||o.getState,u,r);return Ll.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var qa=Ice();function Pce(e){e()}var $ce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function eD(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Oy(e,t){if(eD(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!eD(e[n[r]],t[n[r]]))return!1;return!0}function aF(e=bm){const t=e===bm?nF:$T(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}$ce?Ll.useLayoutEffect:Ll.useEffect;var oF=aF();function Oce(e=bm){const t=e===bm?oF:aF(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var zk=Oce(),zce=Pce;Ace(Ece.useSyncExternalStoreWithSelector);const Mce=()=>qa(RT.selectors.selectIsMobile);function tD({className:e,...t}){return F.jsx("div",{className:$e("animate-pulse rounded-md bg-muted",e),...t})}const Dce="sidebar_state",Nce=604800,Lce="14rem",jce="18rem",Bce="3rem",Fce="b",iF=v.createContext(null);function Mk(){const e=v.useContext(iF);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Uce=v.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...i},s)=>{const c=Mce(),[l,u]=v.useState(!1),[f,d]=v.useState(e),p=t??f,h=v.useCallback((e=>{const t="function"==typeof e?e(p):e;n?n(t):d(t),document.cookie=`${Dce}=${t}; path=/; max-age=604800`}),[n,p]),m=v.useCallback((()=>c?u((e=>!e)):h((e=>!e))),[c,h,u]);v.useEffect((()=>{const e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[m]);const y=p?"expanded":"collapsed",g=v.useMemo((()=>({state:y,open:p,setOpen:h,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:m})),[y,p,h,c,l,u,m]);return F.jsx(iF.Provider,{value:g,children:F.jsx(LB,{delayDuration:0,children:F.jsx("div",{style:{"--sidebar-width":Lce,"--sidebar-width-icon":Bce,...a},className:$e("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:o})})})}));Uce.displayName="SidebarProvider";const Vce=v.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:a,...o},i)=>{const{isMobile:s,state:c,openMobile:l,setOpenMobile:u}=Mk();return"none"===n?F.jsx("div",{className:$e("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...o,children:a}):s?F.jsx(Ise,{open:l,onOpenChange:u,children:F.jsxs(zB,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":jce},side:e,children:[F.jsxs(MB,{className:"sr-only",children:[F.jsx(DB,{children:"Sidebar"}),F.jsx(NB,{children:"Displays the mobile sidebar."})]}),F.jsx("div",{className:"flex h-full w-full flex-col",children:a})]})}):F.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":"collapsed"===c?n:"","data-variant":t,"data-side":e,children:[F.jsx("div",{className:$e("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),F.jsx("div",{className:$e("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...o,children:F.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-sm group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})]})}));Vce.displayName="Sidebar";const qce=v.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:a,open:o}=Mk();return F.jsx(Jw,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:$e("size-6 text-slate-900",e),onClick:e=>{null==t||t(e),a()},...n,children:o?F.jsx($G,{size:16}):F.jsx(IG,{size:16})})}));qce.displayName="SidebarTrigger";const Wce=v.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=Mk();return F.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:$e("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}));Wce.displayName="SidebarRail";const Hce=v.forwardRef((({className:e,...t},n)=>F.jsx("main",{ref:n,className:$e("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-m md:peer-data-[variant=inset]:shadow",e),...t})));Hce.displayName="SidebarInset";const Gce=v.forwardRef((({className:e,...t},n)=>F.jsx(kT,{ref:n,"data-sidebar":"input",className:$e("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));Gce.displayName="SidebarInput";const Kce=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"header",className:$e("flex flex-col gap-2 p-2",e),...t})));Kce.displayName="SidebarHeader";const Qce=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"footer",className:$e("flex flex-col gap-2 p-2",e),...t})));Qce.displayName="SidebarFooter";const Yce=v.forwardRef((({className:e,...t},n)=>F.jsx(iT,{ref:n,"data-sidebar":"separator",className:$e("mx-2 w-auto bg-sidebar-border",e),...t})));Yce.displayName="SidebarSeparator";const Zce=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"content",className:$e("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));Zce.displayName="SidebarContent";const Xce=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"group",className:$e("relative flex w-full min-w-0 flex-col px-xxs pt-xs",e),...t})));Xce.displayName="SidebarGroup";const Jce=v.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const a=t?$p:"div";return F.jsx(a,{ref:r,"data-sidebar":"group-label",className:$e("flex h-s shrink-0 items-center rounded-md px-xxs py-xxs text-xs font-semibold text-slate-700 opacity-60 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-xl group-data-[collapsible=icon]:opacity-0",e),...n})}));Jce.displayName="SidebarGroupLabel";const ele=v.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const a=t?$p:"button";return F.jsx(a,{ref:r,"data-sidebar":"group-action",className:$e("absolute right-xs top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})}));ele.displayName="SidebarGroupAction";const tle=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"group-content",className:$e("w-full text-sm",e),...t})));tle.displayName="SidebarGroupContent";const nle=v.forwardRef((({className:e,...t},n)=>F.jsx("ul",{ref:n,"data-sidebar":"menu",className:$e("flex w-full min-w-0 flex-col p-xs font-semibold text-slate-700 [&_svg]:size-4",e),...t})));nle.displayName="SidebarMenu";const rle=v.forwardRef((({className:e,...t},n)=>F.jsx("li",{ref:n,"data-sidebar":"menu-item",className:$e("group/menu-item relative",e),...t})));rle.displayName="SidebarMenuItem";const ale=Yl("peer/menu-button flex w-full items-center gap-xxs overflow-hidden rounded-sm p-xxs text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:text-blue_100 hover:bg-white focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white data-[active=true]:font-medium data-[active=true]:text-blue_100 data-[state=open]:hover:bg-white data-[state=open]:hover:text-blue_100 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:text-blue_100 hover:bg-white",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-white hover:text-blue_100 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-s text-sm",sm:"h-m text-xs",lg:"h-l text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ole=v.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:a,className:o,...i},s)=>{const c=e?$p:"button",{isMobile:l,state:u}=Mk(),f=F.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:$e(ale({variant:n,size:r}),o),...i});return a?("string"==typeof a&&(a={children:a}),F.jsxs(jB,{children:[F.jsx(BB,{asChild:!0,children:f}),F.jsx(FB,{side:"right",align:"center",hidden:"collapsed"!==u||l,...a})]})):f}));ole.displayName="SidebarMenuButton";const ile=v.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},a)=>{const o=t?$p:"button";return F.jsx(o,{ref:a,"data-sidebar":"menu-action",className:$e("absolute right-xxxs top-xxs flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}));ile.displayName="SidebarMenuAction";const sle=v.forwardRef((({className:e,...t},n)=>F.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:$e("pointer-events-none absolute right-xxxs flex h-m min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",e),...t})));sle.displayName="SidebarMenuBadge";const cle=v.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const a=v.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return F.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:$e("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&F.jsx(tD,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),F.jsx(tD,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})}));cle.displayName="SidebarMenuSkeleton";const lle=v.forwardRef((({className:e,...t},n)=>F.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:$e("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));lle.displayName="SidebarMenuSub";const fle=v.forwardRef((({...e},t)=>F.jsx("li",{ref:t,...e})));fle.displayName="SidebarMenuSubItem";const ule=v.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...a},o)=>{const i=e?$p:"a";return F.jsx(i,{ref:o,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:$e("flex h-s min-w-0 -translate-x-px items-center gap-xxs overflow-hidden rounded-sm px-xxs text-sm text-slate-700 outline-none ring-sidebar-ring hover:bg-white hover:text-blue_100 focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-blue_100","data-[active=true]:bg-white data-[active=true]:text-blue_100","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...a})}));ule.displayName="SidebarMenuSubButton";const sF="Switch",[dle,XWe]=ii(sF),[ple,hle]=dle(sF),mle=v.forwardRef(((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:c="on",onCheckedChange:l,...u}=e,[f,d]=v.useState(null),p=yn(t,(e=>d(e))),h=v.useRef(!1),m=!f||!!f.closest("form"),[y=!1,g]=wp({prop:a,defaultProp:o,onChange:l});return v.createElement(ple,{scope:n,checked:y,disabled:s},v.createElement(St.button,Le({type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":cF(y),"data-disabled":s?"":void 0,disabled:s,value:c},u,{ref:p,onClick:lt(e.onClick,(e=>{g((e=>!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&v.createElement(_le,{control:f,bubbles:!h.current,name:r,value:c,checked:y,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),gle="SwitchThumb",yle=v.forwardRef(((e,t)=>{const{__scopeSwitch:n,...r}=e,a=hle(gle,n);return v.createElement(St.span,Le({"data-state":cF(a.checked),"data-disabled":a.disabled?"":void 0},r,{ref:t}))})),_le=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,o=v.useRef(null),i=gk(n),s=yk(t);return v.useEffect((()=>{const e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});a.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),v.createElement("input",Le({type:"checkbox","aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function cF(e){return e?"checked":"unchecked"}const lF=mle,vle=yle,fF=v.forwardRef((({className:e,...t},n)=>F.jsx(lF,{className:$e("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:!bg-slate-100 data-[state=checked]:bg-slate-700 data-[state=unchecked]:bg-input md:h-[18px] md:w-8",e),...t,ref:n,children:F.jsx(vle,{className:$e("pointer-events-none block size-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 md:size-[14px] md:data-[state=checked]:translate-x-[14px]")})})));fF.displayName=lF.displayName;const uF="Tabs",[ble,JWe]=ii(uF,[Y1]),dF=Y1(),[eHe,OT]=ble(uF),wle="TabsList",kle=v.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,o=OT(wle,n),i=dF(n);return v.createElement(eT,Le({asChild:!0},i,{orientation:o.orientation,dir:o.dir,loop:r}),v.createElement(St.div,Le({role:"tablist","aria-orientation":o.orientation},a,{ref:t})))})),xle="TabsTrigger",Sle=v.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,i=OT(xle,n),s=dF(n),c=pF(i.baseId,r),l=hF(i.baseId,r),u=r===i.value;return v.createElement(tT,Le({asChild:!0},s,{focusable:!a,active:u}),v.createElement(St.button,Le({type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c},o,{ref:t,onMouseDown:lt(e.onMouseDown,(e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:lt(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:lt(e.onFocus,(()=>{const e="manual"!==i.activationMode;!u&&!a&&e&&i.onValueChange(r)}))})))})),Ele="TabsContent",Cle=v.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:o,...i}=e,s=OT(Ele,n),c=pF(s.baseId,r),l=hF(s.baseId,r),u=r===s.value,f=v.useRef(u);return v.useEffect((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),v.createElement(Ws,{present:a||u},(({present:n})=>v.createElement(St.div,Le({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:l,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),n&&o)))}));function pF(e,t){return`${e}-trigger-${t}`}function hF(e,t){return`${e}-content-${t}`}const mF=kle,gF=Sle,yF=Cle,Rle=v.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>F.jsx(mF,{ref:r,"data-testid":"tabsList",className:t?$e("inline-flex items-center justify-center gap-xxs border-b border-slate-200 p-none text-muted-foreground",e):e,...n})));Rle.displayName=mF.displayName;const Ale=v.forwardRef((({className:e,useDefaults:t=!0,children:n,...r},a)=>F.jsx(gF,{ref:a,className:t?$e("inline-flex items-center justify-center whitespace-nowrap p-xxs pb-[calc(theme(spacing.xxs)-2px)] pt-xxs text-basering-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring border-b-2 border-transparent font-semibold focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-slate-900","group relative before:absolute before:inset-xxxs before:rounded-sm before:bg-transparent before:transition-colors hover:before:bg-slate-50",e):e,...r,children:F.jsx("span",{className:"relative text-slate-500 group-hover:text-slate-900 group-data-[state=active]:text-slate-900",children:n})})));Ale.displayName=gF.displayName;const Tle=v.forwardRef((({className:e,...t},n)=>F.jsx(yF,{ref:n,className:$e("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));Tle.displayName=yF.displayName;const Ile=v.forwardRef((({className:e,...t},n)=>F.jsx("table",{ref:n,className:$e("w-full caption-bottom text-sm",e),...t})));Ile.displayName="Table";const Ple=v.forwardRef((({className:e,...t},n)=>F.jsx("thead",{ref:n,className:$e("[&_tr]:border-b",e),...t})));Ple.displayName="TableHeader";const $le=v.forwardRef((({className:e,...t},n)=>F.jsx("tbody",{ref:n,className:$e("[&_tr:last-child]:border-0",e),...t})));$le.displayName="TableBody";const Ole=v.forwardRef((({className:e,...t},n)=>F.jsx("tfoot",{ref:n,className:$e("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));Ole.displayName="TableFooter";const zle=v.forwardRef((({className:e,...t},n)=>F.jsx("tr",{ref:n,className:$e("border-b bg-background transition-colors hover:bg-gray-100 data-[state=selected]:bg-gray-200 dark:hover:bg-muted dark:data-[state=selected]:bg-muted",e),...t})));zle.displayName="TableRow";const Mle=v.forwardRef((({className:e,...t},n)=>F.jsx("th",{ref:n,className:$e("h-m bg-inherit px-xs py-xxs text-left align-middle font-normal text-muted-foreground","whitespace-nowrap border-slate-200 text-sm text-slate-500 [&:not(:last-child)]:border-r",e),...t})));Mle.displayName="TableHead";const Dle=v.forwardRef((({className:e,...t},n)=>F.jsx("td",{ref:n,className:$e("bg-inherit p-xs py-xxs align-middle","overflow-hidden truncate text-ellipsis border-slate-200 text-base text-slate-700 [&:not(:last-child)]:border-r",e),...t})));Dle.displayName="TableCell";const Nle=v.forwardRef((({className:e,...t},n)=>F.jsx("caption",{ref:n,className:$e("mt-s text-sm text-muted-foreground",e),...t})));Nle.displayName="TableCaption";const _F=v.forwardRef((({className:e,...t},n)=>{const{error:r}=zp();return F.jsx("textarea",{className:$e(`flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${!!r&&"border-rose-600 focus-visible:ring-rose-600"}`,e),ref:n,...t})}));_F.displayName="Textarea";const Lle=Gse,KC=Kse,QC=Qse,jle=Yl("z-50 overflow-hidden shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md border text-sm px-3 py-1.5",small:"rounded-md border px-[11px] py-[3px] text-base leading-[16px]"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-slate-900_90 text-slate-50"},defaultVariants:{size:"small",theme:"dark"}}}),mw=v.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,...a},o)=>F.jsx(VB,{ref:o,sideOffset:t,className:$e(jle({size:n,theme:r,className:e})),...a})));mw.displayName=VB.displayName;const Ble=({value:e,readonly:t,onChange:n})=>F.jsx(j5,{size:24,disabled:t,checked:JSON.parse(e),onCheckedChange:e=>n(String(e))}),Fle=({readonly:e,value:t,options:n,onChange:r})=>F.jsx(PB,{disabled:e,value:t,onValueChange:r,children:n.map((({id:e,title:t,value:n,description:r})=>F.jsxs("div",{className:"flex items-center space-x-2",children:[F.jsx($B,{value:n,id:e}),F.jsx(Lle,{children:F.jsxs(KC,{children:[F.jsx(QC,{asChild:!0,children:F.jsx(xT,{htmlFor:"r1",children:t})}),F.jsx(mw,{children:F.jsx("p",{children:r})})]})})]},e)))}),Ule=({options:e,value:t,readonly:n,onChange:r})=>F.jsxs(pT,{disabled:n,value:t,onValueChange:r,children:[F.jsx(gT,{className:"w-[180px]",children:F.jsx(mT,{})}),F.jsx(yT,{children:F.jsx(hT,{children:e.map((({id:e,title:t,value:n})=>F.jsx(_T,{value:n||"",children:t},e)))})})]}),Vle=({value:e,readonly:t,onChange:n})=>F.jsx(fF,{disabled:t,checked:e&&JSON.parse(e)||!1,onCheckedChange:e=>n(String(e))}),qle=({readonly:e,value:t,onChange:n})=>{const[r,a]=v.useState(t);v.useEffect((()=>{a(t)}),[t]);return F.jsx(kT,{disabled:e,type:"text",value:r,onChange:({target:e})=>{a(e.value),n(e.value)}})},Wle=({inputType:e,...t})=>{switch(e){case"text":return F.jsx(qle,{...t});case"check":return F.jsx(Ble,{...t});case"switch":return F.jsx(Vle,{...t});case"options":return t.options&&t.options.length>3?F.jsx(Ule,{...t}):F.jsx(Fle,{...t})}},Hle=({id:e,readonly:t,title:n,type:r,value:a,description:o,options:i,onChange:s})=>F.jsxs("div",{className:"mb-3 flex flex-row items-center justify-between rounded-sm border p-4",children:[F.jsxs("div",{className:"mr-2 space-y-0.5",children:[F.jsx("div",{className:"text-base",children:n}),F.jsx("div",{className:"text-muted-foreground text-sm",children:o})]}),F.jsx("div",{children:F.jsx(Wle,{inputType:r,options:i,readonly:t,value:a,onChange:t=>s({id:e,value:t})})})]}),tHe=({list:e,onChange:t})=>{const n=Xae();return F.jsx(Mae,{...n,children:e.map((({id:e,...n})=>F.jsx(Hle,{id:e,...n,onChange:t},e)))})},nHe=e=>{const t=[],n=(e,r="")=>Object.keys(e).flatMap((a=>{const o=r?`${r}.${a}`:a,i=e[a],s=void 0!==i.value;return s&&t.push({...e[a],id:o}),"object"!=typeof i||Array.isArray(i)||s?o:n(i,o)}));return n(e),t},rHe=({list:e,data:t={}})=>e.reduce(((e,n)=>{const r=n.id;return t&&hu.has(r,t)?e:hu.set(r,n.value)(e)}),{}),Gle={[bt.openaiConfigApiKey]:{title:"Openai config api key",type:"text",value:"",readonly:!1},[bt.mediacacheEnabled]:{title:"Media cache",type:"switch",value:"",readonly:!1},[bt.mediacacheSingleRun]:{title:"Mediacache single run",type:"switch",value:"",readonly:!1},[bt.uploadsPolicyVideoKeepOriginal]:{title:"Uploads policy video keep original",type:"switch",value:"",readonly:!1},[bt.uploadsPolicyImageKeepOriginal]:{title:"Uploads policy image keep original",type:"switch",value:"",readonly:!1},[bt.uploadsPolicyAudioKeepOriginal]:{title:"Uploads policy audio keep original",type:"switch",value:"",readonly:!1},[bt.uploadsProvider]:{title:"Upload provider",description:"",type:"text",value:"",readonly:!1},[bt.uploadsPolicyVideoMaxSize]:{title:"Upload video max size",description:"",type:"text",value:"",readonly:!0},[bt.mediacacheCheckInterval]:{title:"Media cache check interval",description:"",type:"text",value:"",readonly:!0},[bt.mediacacheLimitPerRun]:{title:"Media cache limit per run",description:"",type:"text",value:"",readonly:!0},[bt.registrationReasonToJoin]:{title:"Require Approval Reason on Sign Up",description:"",type:"switch",value:"",readonly:!1},[bt.registrationMode]:{title:"Registration Mode",description:"",type:"options",options:[{id:"open",title:"Open",value:"OPEN"},{id:"approval",title:"Approval",value:"APPROVAL"},{id:"approval",title:"Closed",value:"CLOSED"}],value:"",readonly:!1},[bt.registrationShowCaptcha]:{title:"Require Captcha on Sign Up",description:"",type:"switch",value:"",readonly:!1},[bt.captchaVerifyUrl]:{title:"Captcha - Verify Url",description:"",type:"text",value:"",readonly:!1},[bt.captchaSecretKey]:{title:"Captcha - Secret Key",description:"",type:"text",value:"",readonly:!1},[bt.captchaSiteKey]:{title:"Captcha - Site Key",description:"",type:"text",value:"",readonly:!1},[bt.confirmationCodeCodeExpirationMinutes]:{title:"Confirmation Code - Expiration Minutes",description:"It is life time of the code",type:"text",value:"",readonly:!1},[bt.confirmationCodeCounterExpirationMinutes]:{title:"Confirmation Code - Counter Expiration Minutes",description:"The time duration after which the counter for unsuccessful attempts will be reset, allowing user to request a new code",type:"text",value:"",readonly:!1},[bt.confirmationCodeLimitStoreAttempts]:{title:"Confirmation Code - Limit Store Attempts",description:"The maximum number of attempts a user is allowed to request a new code",type:"text",value:"",readonly:!1},[bt.confirmationCodeLimitCheckAttempts]:{title:"Confirmation Code - Limit Check Attempts",description:"The maximum number of attempts a user is allowed to verify a code",type:"text",value:"",readonly:!1}},zT=e=>"number"==typeof e&&!isNaN(e),zy=e=>"string"==typeof e,vF=e=>"function"==typeof e,Kle=e=>v.isValidElement(e)||zy(e)||vF(e)||zT(e),Dl=new Map;let YC=[];const nD=new Set,bF=()=>Dl.size>0;function Qle(e,t){var n;if(t)return!(null==(n=Dl.get(t))||!n.isToastActive(e));let r=!1;return Dl.forEach((t=>{t.isToastActive(e)&&(r=!0)})),r}function Yle(e,t){Kle(e)&&(bF()||YC.push({content:e,options:t}),Dl.forEach((n=>{n.buildToast(e,t)})))}function rD(e,t){Dl.forEach((n=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===n.id&&n.toggle(e,null==t?void 0:t.id):n.toggle(e,null==t?void 0:t.id)}))}let Zle=1;const wF=()=>""+Zle++;function Xle(e){return e&&(zy(e.toastId)||zT(e.toastId))?e.toastId:wF()}function My(e,t){return Yle(e,t),t.toastId}function gw(e,t){return{...t,type:t&&t.type||e,toastId:Xle(t)}}function cb(e){return(t,n)=>My(t,gw(e,n))}function Ft(e,t){return My(e,gw("default",t))}Ft.loading=(e,t)=>My(e,gw("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ft.promise=function(e,t,n){let r,{pending:a,error:o,success:i}=t;a&&(r=zy(a)?Ft.loading(a,n):Ft.loading(a.render,{...n,...a}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,a)=>{if(null==t)return void Ft.dismiss(r);const o={type:e,...s,...n,data:a},i=zy(t)?{render:t}:t;return r?Ft.update(r,{...o,...i}):Ft(i.render,{...o,...i}),a},l=vF(e)?e():e;return l.then((e=>c("success",i,e))).catch((e=>c("error",o,e))),l},Ft.success=cb("success"),Ft.info=cb("info"),Ft.error=cb("error"),Ft.warning=cb("warning"),Ft.warn=Ft.warning,Ft.dark=(e,t)=>My(e,gw("default",{theme:"dark",...t})),Ft.dismiss=function(e){!function(e){var t;if(bF()){if(null==e||zy(t=e)||zT(t))Dl.forEach((t=>{t.removeToast(e)}));else if(e&&("containerId"in e||"id"in e)){const t=Dl.get(e.containerId);t?t.removeToast(e.id):Dl.forEach((t=>{t.removeToast(e.id)}))}}else YC=YC.filter((t=>null!=e&&t.options.toastId!==e))}(e)},Ft.clearWaitingQueue=function(e){void 0===e&&(e={}),Dl.forEach((t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()}))},Ft.isActive=Qle,Ft.update=function(e,t){void 0===t&&(t={});const n=((e,t)=>{var n;let{containerId:r}=t;return null==(n=Dl.get(r||1))?void 0:n.toasts.get(e)})(e,t);if(n){const{props:r,content:a}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:wF()};o.toastId!==e&&(o.staleId=e);const i=o.render||a;delete o.render,My(i,o)}},Ft.done=e=>{Ft.update(e,{progress:1})},Ft.onChange=function(e){return nD.add(e),()=>{nD.delete(e)}},Ft.play=e=>rD(!0,e),Ft.pause=e=>rD(!1,e);const MT=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Dy="8.48.0",Do=globalThis;function Dk(e,t,n){const r=Do,a=r.__SENTRY__=r.__SENTRY__||{},o=a[Dy]=a[Dy]||{};return o[e]||(o[e]=t())}const Q_=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Jle="Sentry Logger ",aD=["debug","info","warn","error","log","assert","trace"],oD={};function DT(e){if(!("console"in Do))return e();const t=Do.console,n={},r=Object.keys(oD);r.forEach((e=>{const r=oD[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function efe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Q_?aD.forEach((n=>{t[n]=(...t)=>{e&&DT((()=>{Do.console[n](`${Jle}[${n}]:`,...t)}))}})):aD.forEach((e=>{t[e]=()=>{}})),t}const ri=Dk("logger",efe),z4="<anonymous>";function wu(e){try{return e&&"function"==typeof e&&e.name||z4}catch{return z4}}function iD(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch{return}}}const Db={},sD={};function kF(e,t){Db[e]=Db[e]||[],Db[e].push(t)}function xF(e,t){if(!sD[e]){sD[e]=!0;try{t()}catch(t){Q_&&ri.error(`Error while instrumenting ${e}`,t)}}}function ZC(e,t){const n=e&&Db[e];if(n)for(const r of n)try{r(t)}catch(t){Q_&&ri.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${wu(r)}\nError:`,t)}}function Y_(){return NT(Do),Do}function NT(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Dy,t[Dy]=t[Dy]||{}}const SF=Object.prototype.toString;function tfe(e){switch(SF.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Nk(e,Error)}}function LT(e,t){return SF.call(e)===`[object ${t}]`}function yw(e){return LT(e,"String")}function jT(e){return LT(e,"Object")}function nfe(e){return typeof Event<"u"&&Nk(e,Event)}function rfe(e){return typeof Element<"u"&&Nk(e,Element)}function afe(e){return LT(e,"RegExp")}function BT(e){return!(!e||!e.then||"function"!=typeof e.then)}function ofe(e){return jT(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Nk(e,t){try{return e instanceof t}catch{return!1}}function ife(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const EF=Do,sfe=80;function FT(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,a=[];let o=0,i=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(l=cfe(n,u),!("html"===l||o>1&&i+a.length*c+l.length>=f));)a.push(l),i+=l.length,n=n.parentNode;return a.reverse().join(s)}catch{return"<unknown>"}}function cfe(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(EF.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(a&&a.length)a.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&yw(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const o=["aria-label","type","name","title","alt"];for(const e of o){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function lfe(){try{return EF.document.location.href}catch{return""}}function M4(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function ffe(e,t,n=!1){return!!yw(e)&&(afe(t)?t.test(e):!!yw(t)&&(n?e===t:e.includes(t)))}function ufe(e,t=[],n=!1){return t.some((t=>ffe(e,t,n)))}function Bs(e,t,n){if(!(t in e))return;const r=e[t],a=n(r);"function"==typeof a&&CF(a,r);try{e[t]=a}catch{Q_&&ri.log(`Failed to replace method "${t}" in object`,e)}}function s_(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Q_&&ri.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function CF(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,s_(e,"__sentry_original__",t)}catch{}}function RF(e){return e.__sentry_original__}function dfe(e){if(tfe(e))return{message:e.message,name:e.name,stack:e.stack,...lD(e)};if(nfe(e)){const t={type:e.type,target:cD(e.target),currentTarget:cD(e.currentTarget),...lD(e)};return typeof CustomEvent<"u"&&Nk(e,CustomEvent)&&(t.detail=e.detail),t}return e}function cD(e){try{return rfe(e)?FT(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function lD(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Pc(e){return XC(e,new Map)}function XC(e,t){if(pfe(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))typeof e[n]<"u"&&(r[n]=XC(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(XC(e,t))})),r}return e}function pfe(e){if(!jT(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const AF=1e3;function Lk(){return Date.now()/AF}function hfe(){const{performance:e}=Do;if(!e||!e.now)return Lk;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/AF}const TF=hfe(),mfe=(()=>{const{performance:e}=Do;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=a<t,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+n-r):t;return o||s<t?a<=s?e.timeOrigin:i:r})();function yu(){const e=Do,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function gfe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function yfe(e,t,n){const r=e.exception=e.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{};o.value||(o.value=""),o.type||(o.type="Error")}function IF(e,t){const n=gfe(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}var cu;function fD(e){return new pu((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(cu||(cu={}));class pu{constructor(e){pu.prototype.__init.call(this),pu.prototype.__init2.call(this),pu.prototype.__init3.call(this),pu.prototype.__init4.call(this),this._state=cu.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new pu(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new pu(((t,n)=>{let r,a;return this.then((t=>{a=!1,r=t,e&&e()}),(t=>{a=!0,r=t,e&&e()})).then((()=>{a?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(cu.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(cu.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===cu.PENDING){if(BT(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===cu.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===cu.RESOLVED&&e[1](this._value),this._state===cu.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function _fe(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||TF(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:yu()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function uD(){return yu()}function JC(){return yu().substring(16)}function jk(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=jk(r[e],t[e],n-1));return r}const eR="_sentrySpan";function dD(e,t){t?s_(e,eR,t):delete e[eR]}function tR(e){return e[eR]}const vfe=100;class UT{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:uD(),spanId:JC()}}clone(){const e=new UT;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,dD(e,tR(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&_fe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof wm?[t.getScopeData(),t.getRequestSession()]:jT(t)?[e,e.requestSession]:[],{tags:a,extra:o,user:i,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,dD(this,void 0),this._attachments=[],this.setPropagationContext({traceId:uD()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Lk(),...e},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:tR(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=jk(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:JC(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:yu();if(!this._client)return ri.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:yu();if(!this._client)return ri.warn("No client configured on scope - will not capture message!"),r;const a=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:yu();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(ri.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const wm=UT;function bfe(){return Dk("defaultCurrentScope",(()=>new wm))}function wfe(){return Dk("defaultIsolationScope",(()=>new wm))}class kfe{constructor(e,t){let n,r;n=e||new wm,r=t||new wm,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return BT(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function A1(){const e=NT(Y_());return e.stack=e.stack||new kfe(bfe(),wfe())}function xfe(e){return A1().withScope(e)}function Sfe(e,t){const n=A1();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function pD(e){return A1().withScope((()=>e(A1().getIsolationScope())))}function Efe(){return{withIsolationScope:pD,withScope:xfe,withSetScope:Sfe,withSetIsolationScope:(e,t)=>pD(t),getCurrentScope:()=>A1().getScope(),getIsolationScope:()=>A1().getIsolationScope()}}function Bk(e){const t=NT(e);return t.acs?t.acs:Efe()}function J1(){return Bk(Y_()).getCurrentScope()}function Z_(){return Bk(Y_()).getIsolationScope()}function Cfe(){return Dk("globalScope",(()=>new wm))}function Rfe(...e){const t=Bk(Y_());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function ef(){return J1().getClient()}const Afe="_sentryMetrics";function Tfe(e){const t=e[Afe];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(Pc(r));return n}const PF="sentry.source",Ife="sentry.sample_rate",Pfe="sentry.op",$fe="sentry.origin",Ofe=0,zfe=1,Mfe="sentry-",Dfe=/^sentry-/;function Nfe(e){const t=Lfe(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(Dfe)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function Lfe(e){if(e&&(yw(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=hD(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):hD(e)}function hD(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const jfe=1;function Bfe(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Pc({parent_span_id:r?t:c_(e).parent_span_id,span_id:r?JC():t,trace_id:n})}function mD(e){return"number"==typeof e?gD(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?gD(e.getTime()):TF()}function gD(e){return e>9999999999?e/1e3:e}function c_(e){if(Ufe(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Ffe(e)){const{attributes:r,startTime:a,name:o,endTime:i,parentSpanId:s,status:c}=e;return Pc({span_id:t,trace_id:n,data:r,description:o,parent_span_id:s,start_timestamp:mD(a),timestamp:mD(i)||void 0,status:qfe(c),op:r[Pfe],origin:r[$fe],_metrics_summary:Tfe(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Ffe(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function Ufe(e){return"function"==typeof e.getSpanJSON}function Vfe(e){const{traceFlags:t}=e.spanContext();return 1===t}function qfe(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const Wfe="_sentryRootSpan";function VT(e){return e[Wfe]||e}function $F(){const e=Bk(Y_());return e.getActiveSpan?e.getActiveSpan():tR(J1())}function Hfe(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=ef(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const OF="production",Gfe="_frozenDsc";function Kfe(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},a=Pc({environment:n.environment||OF,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",a),a}function zF(e){const t=ef();if(!t)return{};const n=VT(e),r=n[Gfe];if(r)return r;const a=n.spanContext().traceState,o=a&&a.get("sentry.dsc"),i=o&&Nfe(o);if(i)return i;const s=Kfe(e.spanContext().traceId,t),c=c_(n),l=c.data||{},u=l[Ife];null!=u&&(s.sample_rate=`${u}`);const f=l[PF],d=c.description;return"url"!==f&&d&&(s.transaction=d),Hfe()&&(s.sampled=String(Vfe(n))),t.emit("createDsc",s,n),s}function yD(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;MT&&ri.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}function Qfe(e,t=!1){const{host:n,path:r,pass:a,port:o,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&a?`:${a}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Yfe(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}function lu(e,t=100,n=1/0){try{return nR("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function nR(e,t,n=1/0,r=1/0,a=Yfe()){const[o,i]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=Zfe(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return s.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return nR("",l.toJSON(),c-1,r,a)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const d=dfe(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(f>=r){u[e]="[MaxProperties ~]";break}const t=d[e];u[e]=nR(e,t,c-1,r,a),f++}return i(t),u}function Zfe(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(ife(t))return"[VueViewModel]";if(ofe(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${wu(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=Xfe(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Xfe(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Jfe(e,t=[]){return[e,t]}function eue(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function tue(e,t,n,r){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Qfe(r)},...a&&{trace:Pc({...a})}}}function rR(e,t,n,r=0){return new pu(((a,o)=>{const i=e[r];if(null===t||"function"!=typeof i)a(t);else{const s=i({...t},n);MT&&i.id&&null===s&&ri.log(`Event processor "${i.id}" dropped event`),BT(s)?s.then((t=>rR(e,t,n,r+1).then(a))).then(null,o):rR(e,s,n,r+1).then(a).then(null,o)}}))}let lb,_D,fb;function nue(e){const t=Do._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return fb&&n.length===_D||(_D=n.length,fb=n.reduce(((n,r)=>{lb||(lb={});const a=lb[r];if(a)n[a[0]]=a[1];else{const a=e(r);for(let e=a.length-1;e>=0;e--){const o=a[e],i=o&&o.filename,s=t[r];if(i&&s){n[i]=s,lb[r]=[i,s];break}}}return n}),{})),fb}function rue(e,t){const{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:o}=t;aue(e,t),r&&sue(e,r),cue(e,n),oue(e,a),iue(e,o)}function vD(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:f,propagationContext:d,transactionName:p,span:h}=t;ub(e,"extra",n),ub(e,"tags",r),ub(e,"user",a),ub(e,"contexts",o),e.sdkProcessingMetadata=jk(e.sdkProcessingMetadata,s,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}}function ub(e,t,n){e[t]=jk(e[t],n,1)}function aue(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,transactionName:s}=t,c=Pc(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Pc(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Pc(a);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=Pc(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),i&&(e.level=i),s&&"transaction"!==e.type&&(e.transaction=s)}function oue(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function iue(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function sue(e,t){e.contexts={trace:Bfe(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:zF(t),...e.sdkProcessingMetadata};const n=c_(VT(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function cue(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function lue(e,t,n,r,a,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||yu(),timestamp:t.timestamp||Lk()},l=n.integrations||e.integrations.map((e=>e.name));fue(c,e),pue(c,l),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&uue(c,e.stackParser);const u=mue(r,n.captureContext);n.mechanism&&IF(c,n.mechanism);const f=a?a.getEventProcessors():[],d=Cfe().getScopeData();if(o){vD(d,o.getScopeData())}if(u){vD(d,u.getScopeData())}const p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),rue(c,d);return rR([...f,...d.eventProcessors],c,n).then((e=>(e&&due(e),"number"==typeof i&&i>0?hue(e,i,s):e)))}function fue(e,t){const{environment:n,release:r,dist:a,maxValueLength:o=250}=t;e.environment=e.environment||n||OF,!e.release&&r&&(e.release=r),!e.dist&&a&&(e.dist=a),e.message&&(e.message=M4(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=M4(i.value,o));const s=e.request;s&&s.url&&(s.url=M4(s.url,o))}function uue(e,t){const n=nue(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function due(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch{}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}function pue(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function hue(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:lu(e.data,t,n)}})))},...e.user&&{user:lu(e.user,t,n)},...e.contexts&&{contexts:lu(e.contexts,t,n)},...e.extra&&{extra:lu(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=lu(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:lu(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=lu(e.contexts.flags,3,n)),r}function mue(e,t){if(!t)return e;const n=e?e.clone():new wm;return n.update(t),n}function qT(e,t){return J1().captureException(e,void 0)}function gue(e,t){const n={captureContext:t};return J1().captureMessage(e,void 0,n)}function yue(e,t){Z_().setContext(e,t)}function _ue(e,t){Z_().setExtra(e,t)}function vue(e){Z_().addEventProcessor(e)}const bue=6e4;function wue(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?bue:r-t}function kue(e,t){return e[t]||e.all||0}function xue(e,t,n=Date.now()){return kue(e,t)>n}function Sue(e,{statusCode:t,headers:n},r=Date.now()){const a={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),i=parseInt(t,10),s=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(a[e]=r+s):a[e]=r+s;else a.all=r+s}else i?a.all=r+wue(i,r):429===t&&(a.all=r+6e4);return a}function Eue(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return Rue(e,n)||Cue(e,r)}function Cue(e,t){return!!t&&bD(e)===bD(t)}function Rue(e,t){return!!t&&e.includes(t.host)}function bD(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const Aue=100;function Tue(e,t){const n=ef(),r=Z_();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=Aue}=n.getOptions();if(o<=0)return;const i={timestamp:Lk(),...e},s=a?DT((()=>a(i,t))):i;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function Iue(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Pue="Dedupe",$ue=()=>{let e;return{name:Pue,processEvent(t){if(t.type)return t;try{if(zue(t,e))return MT&&ri.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Oue=$ue;function zue(e,t){return!!t&&!(!Mue(e,t)&&!Due(e,t))}function Mue(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!DF(e,t)||!MF(e,t))}function Due(e,t){const n=wD(t),r=wD(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&DF(e,t)&&MF(e,t))}function MF(e,t){let n=iD(e),r=iD(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],a=n[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function DF(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function wD(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Nue(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Lue(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function jue(){return!Lue()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function kD(){return typeof window<"u"&&(!jue()||Bue())}function Bue(){const e=Do.process;return!!e&&"renderer"===e.type}const db=Do;function Fue(){const e=db.chrome,t=e&&e.app&&e.app.runtime,n="history"in db&&!!db.history.pushState&&!!db.history.replaceState;return!t&&n}function Uue(e,t){return e??t()}function Nb(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const _y=Do;function Vue(){setTimeout((()=>{}))}function T1(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(RF(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>T1(e,t)));return e.apply(this,r)}catch(e){throw Vue(),Rfe((r=>{r.addEventProcessor((e=>(t.mechanism&&(yfe(e),IF(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),qT(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}CF(n,e),s_(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const NF=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,que=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",X_=(e,t,n,r)=>{let a,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(a||0),(o||void 0===a)&&(a=t.value,t.delta=o,t.rating=que(t.value,n),e(t)))}},rn=Do,Wue=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,LF=(e=!0)=>{const t=rn.performance&&rn.performance.getEntriesByType&&rn.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},WT=()=>{const e=LF();return e&&e.activationStart||0},J_=(e,t)=>{const n=LF();let r="navigate";return n&&(rn.document&&rn.document.prerendering||WT()>0?r="prerender":rn.document&&rn.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Wue(),navigationType:r}},Mm=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},ev=e=>{const t=t=>{("pagehide"===t.type||rn.document&&"hidden"===rn.document.visibilityState)&&e(t)};rn.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Fk=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Ny=-1;const Hue=()=>"hidden"!==rn.document.visibilityState||rn.document.prerendering?1/0:0,_w=e=>{"hidden"===rn.document.visibilityState&&Ny>-1&&(Ny="visibilitychange"===e.type?e.timeStamp:0,Kue())},Gue=()=>{addEventListener("visibilitychange",_w,!0),addEventListener("prerenderingchange",_w,!0)},Kue=()=>{removeEventListener("visibilitychange",_w,!0),removeEventListener("prerenderingchange",_w,!0)},HT=()=>(rn.document&&Ny<0&&(Ny=Hue(),Gue()),{get firstHiddenTime(){return Ny}}),Uk=e=>{rn.document&&rn.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Que=[1800,3e3],Yue=(e,t={})=>{Uk((()=>{const n=HT(),r=J_("FCP");let a;const o=Mm("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-WT(),0),r.entries.push(e),a(!0)))}))}));o&&(a=X_(e,r,Que,t.reportAllChanges))}))},Zue=[.1,.25],Xue=(e,t={})=>{Yue(Fk((()=>{const n=J_("CLS",0);let r,a=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];a&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e])}})),a>n.value&&(n.value=a,n.entries=o,r())},s=Mm("layout-shift",i);s&&(r=X_(e,n,Zue,t.reportAllChanges),ev((()=>{i(s.takeRecords()),r(!0)})),setTimeout(r,0))})))},Jue=[100,300],ede=(e,t={})=>{Uk((()=>{const n=HT(),r=J_("FID");let a;const o=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),a(!0))},i=e=>{e.forEach(o)},s=Mm("first-input",i);a=X_(e,r,Jue,t.reportAllChanges),s&&ev(Fk((()=>{i(s.takeRecords()),s.disconnect()})))}))};let jF=0,D4=1/0,pb=0;const tde=e=>{e.forEach((e=>{e.interactionId&&(D4=Math.min(D4,e.interactionId),pb=Math.max(pb,e.interactionId),jF=pb?(pb-D4)/7+1:0)}))};let aR;const nde=()=>aR?jF:performance.interactionCount||0,rde=()=>{"interactionCount"in performance||aR||(aR=Mm("event",tde,{type:"event",buffered:!0,durationThreshold:0}))},fu=[],N4=new Map,ade=40;let ode=0;const ide=()=>nde()-ode,sde=()=>{const e=Math.min(fu.length-1,Math.floor(ide()/50));return fu[e]},L4=10,cde=[],lde=e=>{if(cde.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=fu[fu.length-1],n=N4.get(e.interactionId);if(n||fu.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};N4.set(t.id,t),fu.push(t)}fu.sort(((e,t)=>t.latency-e.latency)),fu.length>10&&fu.splice(10).forEach((e=>N4.delete(e.id)))}},BF=e=>{const t=rn.requestIdleCallback||rn.setTimeout;let n=-1;return e=Fk(e),rn.document&&"hidden"===rn.document.visibilityState?e():(n=t(e),ev(e)),n},fde=[200,500],ude=(e,t={})=>{"PerformanceEventTiming"in rn&&"interactionId"in PerformanceEventTiming.prototype&&Uk((()=>{rde();const n=J_("INP");let r;const a=e=>{BF((()=>{e.forEach(lde);const t=sde();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},o=Mm("event",a,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=X_(e,n,fde,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),ev((()=>{a(o.takeRecords()),r(!0)})))}))},dde=[2500,4e3],xD={},pde=(e,t={})=>{Uk((()=>{const n=HT(),r=J_("LCP");let a;const o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-WT(),0),r.entries=[e],a())}))},i=Mm("largest-contentful-paint",o);if(i){a=X_(e,r,dde,t.reportAllChanges);const n=Fk((()=>{xD[r.id]||(o(i.takeRecords()),i.disconnect(),xD[r.id]=!0,a(!0))}));["keydown","click"].forEach((e=>{rn.document&&addEventListener(e,(()=>BF(n)),{once:!0,capture:!0})})),ev(n)}}))},Ly={},vw={};let FF,UF,VF,qF;function hde(e,t=!1){return Vk("cls",e,vde,FF,t)}function mde(e,t=!1){return Vk("lcp",e,wde,VF,t)}function gde(e){return Vk("fid",e,bde,UF)}function yde(e){return Vk("inp",e,kde,qF)}function _de(e,t){return WF(e,t),vw[e]||(xde(e),vw[e]=!0),HF(e,t)}function tv(e,t){const n=Ly[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){NF&&ri.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${wu(r)}\nError:`,t)}}function vde(){return Xue((e=>{tv("cls",{metric:e}),FF=e}),{reportAllChanges:!0})}function bde(){return ede((e=>{tv("fid",{metric:e}),UF=e}))}function wde(){return pde((e=>{tv("lcp",{metric:e}),VF=e}),{reportAllChanges:!0})}function kde(){return ude((e=>{tv("inp",{metric:e}),qF=e}))}function Vk(e,t,n,r,a=!1){let o;return WF(e,t),vw[e]||(o=n(),vw[e]=!0),r&&t({metric:r}),HF(e,t,a?o:void 0)}function xde(e){const t={};"event"===e&&(t.durationThreshold=0),Mm(e,(t=>{tv(e,{entries:t})}),t)}function WF(e,t){Ly[e]=Ly[e]||[],Ly[e].push(t)}function HF(e,t,n){return()=>{n&&n();const r=Ly[e];if(!r)return;const a=r.indexOf(t);-1!==a&&r.splice(a,1)}}const Sde=1e3;let SD,oR,iR,hb;function Ede(e){kF("dom",e),xF("dom",Cde)}function Cde(){if(!rn.document)return;const e=ZC.bind(null,"dom"),t=ED(e,!0);rn.document.addEventListener("click",t,!1),rn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=rn[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Bs(r,"addEventListener",(function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=ED(e);o.handler=r,t.call(this,n,r,a)}o.refCount++}catch{}return t.call(this,n,r,a)}})),Bs(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},a=n[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}})))}))}function Rde(e){if(e.type!==oR)return!1;try{if(!e.target||e.target._sentryId!==iR)return!1}catch{}return!0}function Ade(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function ED(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Tde(n);if(Ade(n.type,r))return;s_(n,"_sentryCaptured",!0),r&&!r._sentryId&&s_(r,"_sentryId",yu());const a="keypress"===n.type?"input":n.type;Rde(n)||(e({event:n,name:a,global:t}),oR=n.type,iR=r?r._sentryId:void 0),clearTimeout(SD),SD=rn.setTimeout((()=>{iR=void 0,oR=void 0}),Sde)}}function Tde(e){try{return e.target}catch{return null}}function Ide(e){const t="history";kF(t,e),xF(t,Pde)}function Pde(){if(!Fue())return;const e=rn.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=hb,t=String(n);hb=t,ZC("history",{from:e,to:t})}return e.apply(this,t)}}rn.onpopstate=function(...t){const n=rn.location.href,r=hb;if(hb=n,ZC("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Bs(rn.history,"pushState",t),Bs(rn.history,"replaceState",t)}const j4={};function $de(e){const t=j4[e];if(t)return t;let n=rn[e];if(Nue(n))return j4[e]=n.bind(rn);const r=rn.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(t){NF&&ri.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(j4[e]=n.bind(rn))}function I1(...e){return $de("setTimeout")(...e)}const Ode="__sentry_xhr_v3__",zde=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Mde="BrowserApiErrors",Dde=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Mde,setupOnce(){t.setTimeout&&Bs(_y,"setTimeout",CD),t.setInterval&&Bs(_y,"setInterval",CD),t.requestAnimationFrame&&Bs(_y,"requestAnimationFrame",Lde),t.XMLHttpRequest&&"XMLHttpRequest"in _y&&Bs(XMLHttpRequest.prototype,"send",jde);const e=t.eventTarget;e&&(Array.isArray(e)?e:zde).forEach(Bde)}}},Nde=Dde;function CD(e){return function(...t){const n=t[0];return t[0]=T1(n,{mechanism:{data:{function:wu(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Lde(e){return function(t){return e.apply(this,[T1(t,{mechanism:{data:{function:"requestAnimationFrame",handler:wu(e)},handled:!1,type:"instrument"}})])}}function jde(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Bs(n,e,(function(t){const n={mechanism:{data:{function:e,handler:wu(t)},handled:!1,type:"instrument"}},r=RF(t);return r&&(n.mechanism.data.handler=wu(r)),T1(t,n)}))})),e.apply(this,t)}}function Bde(e){const t=_y[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Bs(n,"addEventListener",(function(t){return function(n,r,a){try{Fde(r)&&(r.handleEvent=T1(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:wu(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,T1(r,{mechanism:{data:{function:"addEventListener",handler:wu(r),target:e},handled:!1,type:"instrument"}}),a])}})),Bs(n,"removeEventListener",(function(e){return function(t,n,r){try{const a=n.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch{}return e.call(this,t,n,r)}})))}function Fde(e){return"function"==typeof e.handleEvent}const Xn=Do,GT="sentryReplaySession",Ude="replay_event",KT="Unable to send Replay",Vde=3e5,qde=9e5,Wde=5e3,Hde=5500,Gde=6e4,Kde=5e3,Qde=3,RD=15e4,mb=5e3,Yde=3e3,Zde=300,QT=2e7,Xde=4999,Jde=15e3,AD=36e5;function sR(e,t){return e??t()}function l_(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}var Ea;function epe(e){return e.nodeType===e.ELEMENT_NODE}function jy(e){const t=l_([e,"optionalAccess",e=>e.host]);return l_([t,"optionalAccess",e=>e.shadowRoot])===e}function By(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function tpe(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function npe(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function bw(e){try{const t=e.rules||e.cssRules;return t?tpe(Array.from(t,GF).join("")):null}catch{return null}}function rpe(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,a=r[n],o=r.getPropertyPriority(a);t+=`${a}:${r.getPropertyValue(a)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function GF(e){let t;if(ope(e))try{t=bw(e.styleSheet)||npe(e)}catch{}else if(ipe(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=rpe(e)),n&&(t=ape(t)),n||r)return t}return t||e.cssText}function ape(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function ope(e){return"styleSheet"in e}function ipe(e){return"selectorText"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Ea||(Ea={}));class KF{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return sR(l_([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function spe(){return new KF}function qk({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function f_({isMasked:e,element:t,value:n,maskInputFn:r}){let a=n||"";return e?(r&&(a=r(a,t)),"*".repeat(a.length)):a}function P1(e){return e.toLowerCase()}function cR(e){return e.toUpperCase()}const TD="__rrweb_original__";function cpe(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const a=t.getImageData,o=TD in a?a[TD]:a;if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0}function YT(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?P1(t):null}function ww(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function QF(e,t){let n;try{n=new URL(e,sR(t,(()=>window.location.href)))}catch{return null}return sR(l_([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const ID={};function YF(e){const t=ID[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return ID[e]=r.bind(window)}function lR(...e){return YF("setTimeout")(...e)}function ZF(...e){return YF("clearTimeout")(...e)}function XF(e){try{return e.contentDocument}catch{}}let lpe=1;const fpe=new RegExp("[^a-z0-9-_:]"),u_=-2;function ZT(){return lpe++}function upe(e){if(e instanceof HTMLFormElement)return"form";const t=P1(e.tagName);return fpe.test(t)?"div":t}function dpe(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let t1,PD;const ppe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,hpe=/^(?:[a-z+]+:)?\/\//i,mpe=/^www\..*/i,gpe=/^(data:)([^,]*),(.*)/i;function kw(e,t){return(e||"").replace(ppe,((e,n,r,a,o,i)=>{const s=r||o||i,c=n||a||"";if(!s)return e;if(hpe.test(s)||mpe.test(s))return`url(${c}${s}${c})`;if(gpe.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${dpe(t)+s}${c})`;const l=t.split("/"),u=s.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const ype=/^[^ \t\n\r\u000c]+/,_pe=/^[, \t\n\r\u000c]+/;function vpe(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const a=e.exec(t.substring(n));return a?(r=a[0],n+=r.length,r):""}const a=[];for(;r(_pe),!(n>=t.length);){let o=r(ype);if(","===o.slice(-1))o=d1(e,o.substring(0,o.length-1)),a.push(o);else{let r="";o=d1(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){a.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,a.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return a.join(", ")}const $D=new WeakMap;function d1(e,t){return t&&""!==t.trim()?Wk(e,t):t}function bpe(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function Wk(e,t){let n=$D.get(e);if(n||(n=e.createElement("a"),$D.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function JF(e,t,n,r,a,o){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?d1(e,r):"srcset"===n?vpe(e,r):"style"===n?kw(r,Wk(e)):"object"===t&&"data"===n?d1(e,r):"function"==typeof o?o(n,r,a):r)}function eU(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function wpe(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function kpe(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function am(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:am(e.parentNode,t,n,r+1)}function p1(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(kpe(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function $1(e,t,n,r,a,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,c=-1;if(o){if(c=am(i,p1(r,a)),c<0)return!0;s=am(i,p1(t,n),c>=0?c:1/0)}else{if(s=am(i,p1(t,n)),s<0)return!1;c=am(i,p1(r,a),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0)&&!!o}catch{}return!!o}function xpe(e,t,n){const r=e.contentWindow;if(!r)return;let a,o=!1;try{a=r.document.readyState}catch{return}if("complete"!==a){const r=lR((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{ZF(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return lR(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Spe(e,t,n){let r,a=!1;try{r=e.sheet}catch{return}if(r)return;const o=lR((()=>{a||(t(),a=!0)}),n);e.addEventListener("load",(()=>{ZF(o),a=!0,t()}))}function Epe(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,k=Cpe(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Ea.Document,childNodes:[],compatMode:e.compatMode}:{type:Ea.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ea.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return Ape(e,{doc:n,blockClass:a,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:k,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d});case e.TEXT_NODE:return Rpe(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:y,rootId:k});case e.CDATA_SECTION_NODE:return{type:Ea.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:Ea.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function Cpe(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function Rpe(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:a,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,f=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const p="STYLE"===f||void 0,h="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(p&&d){try{e.nextSibling||e.previousSibling||l_([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=bw(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=kw(d,Wk(t.doc))}h&&(d="SCRIPT_PLACEHOLDER");const y=$1(e,r,o,a,i,n);if(!p&&!h&&!m&&d&&y&&(d=s?s(d,e.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(c.textarea||y)&&(d=l?l(d,e.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===f&&d){d=f_({isMasked:$1(e,r,o,a,i,qk({type:null,tagName:f,maskInputOptions:c})),element:e,value:d,maskInputFn:l})}return{type:Ea.Text,textContent:d||"",isStyle:p,rootId:u}}function Ape(e,t){const{doc:n,blockClass:r,blockSelector:a,unblockSelector:o,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,w=wpe(e,r,a,o),k=upe(e);let x={};const S=e.attributes.length;for(let t=0;t<S;t++){const r=e.attributes[t];r.name&&!eU(k,r.name,r.value)&&(x[r.name]=JF(n,k,P1(r.name),r.value,e,c))}if("link"===k&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=bw(t)),r&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=kw(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=bw(e.sheet);t&&(x._cssText=kw(t,Wk(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=YT(t),r=ww(t,cR(k),n),a=t.checked;if("submit"!==n&&"button"!==n&&r){const e=$1(t,g,b,v,_,qk({type:n,tagName:cR(k),maskInputOptions:s}));x.value=f_({isMasked:e,element:t,value:r,maskInputFn:l})}a&&(x.checked=a)}if("option"===k&&(e.selected&&!s.select?x.selected=!0:delete x.selected),"canvas"===k&&d)if("2d"===e.__context)cpe(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(x.rr_dataURL=t)}if("img"===k&&f){t1||(t1=n.createElement("canvas"),PD=t1.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",a=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{t1.width=t.naturalWidth,t1.height=t.naturalHeight,PD.drawImage(t,0,0),x.rr_dataURL=t1.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(a?x.crossOrigin=a:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if(("audio"===k||"video"===k)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),w){const{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"===k&&!p(x.src)&&(!w&&!XF(e)&&(x.rr_src=x.src),delete x.src);try{customElements.get(k)&&(E=!0)}catch{}return{type:Ea.Element,tagName:k,attributes:x,childNodes:[],isSVG:bpe(e)||void 0,needBlock:w,rootId:m,isCustom:E}}function Zn(e){return null==e?"":e.toLowerCase()}function Tpe(e,t){if(t.comment&&e.type===Ea.Comment)return!0;if(e.type===Ea.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===QF(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Zn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Zn(e.attributes.name)||"icon"===Zn(e.attributes.rel)||"apple-touch-icon"===Zn(e.attributes.rel)||"shortcut icon"===Zn(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Zn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Zn(e.attributes.property).match(/^(og|twitter|fb):/)||Zn(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Zn(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Zn(e.attributes.name)||"googlebot"===Zn(e.attributes.name)||"bingbot"===Zn(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Zn(e.attributes.name)||"generator"===Zn(e.attributes.name)||"framework"===Zn(e.attributes.name)||"publisher"===Zn(e.attributes.name)||"progid"===Zn(e.attributes.name)||Zn(e.attributes.property).match(/^article:/)||Zn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Zn(e.attributes.name)||"yandex-verification"===Zn(e.attributes.name)||"csrf-token"===Zn(e.attributes.name)||"p:domain_verify"===Zn(e.attributes.name)||"verify-v1"===Zn(e.attributes.name)||"verification"===Zn(e.attributes.name)||"shopify-checkout-api-token"===Zn(e.attributes.name)))return!0}}return!1}function h1(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:z=()=>!1,newlyAddedElement:C=!1}=t;let{preserveWhiteSpace:I=!0}=t;const T=Epe(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:z,newlyAddedElement:C});if(!T)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):Tpe(T,v)||!I&&T.type===Ea.Text&&!T.isStyle&&!T.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ZT();const P=Object.assign(T,{id:R});if(r.add(e,P),-2===R)return null;k&&k(e);let j=!d;if(P.type===Ea.Element){j=j&&!P.needBlock,delete P.needBlock;const t=e.shadowRoot;t&&By(t)&&(P.isShadowHost=!0)}if((P.type===Ea.Document||P.type===Ea.Element)&&j){v.headWhitespace&&P.type===Ea.Element&&"head"===P.tagName&&(I=!1);const t={doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:z};for(const n of Array.from(e.childNodes)){const e=h1(n,t);e&&P.childNodes.push(e)}if(epe(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=h1(n,t);r&&(By(e.shadowRoot)&&(r.isShadow=!0),P.childNodes.push(r))}}return e.parentNode&&jy(e.parentNode)&&By(e.parentNode)&&(P.isShadow=!0),P.type===Ea.Element&&"iframe"===P.tagName&&xpe(e,(()=>{const t=XF(e);if(t&&x){const n=h1(t,{doc:t,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:z});n&&x(e,n)}}),S),P.type===Ea.Element&&"link"===P.tagName&&"string"==typeof P.attributes.rel&&("stylesheet"===P.attributes.rel||"preload"===P.attributes.rel&&"string"==typeof P.attributes.href&&"css"===QF(P.attributes.href))&&Spe(e,(()=>{if(E){const t=h1(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:z});t&&E(e,t)}}),A),P}function Ipe(e,t){const{mirror:n=new KF,blockClass:r="rr-block",blockSelector:a=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A=()=>!1}=t;return h1(e,{doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:i,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:d,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A,newlyAddedElement:!1})}function ip(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function ni(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const c1="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let OD={map:{},getId:()=>(console.error(c1),-1),getNode:()=>(console.error(c1),null),removeNodeFromMap(){console.error(c1)},has:()=>(console.error(c1),!1),reset(){console.error(c1)}};function d_(e,t,n={}){let r=null,a=0;return function(...o){const i=Date.now();!a&&!1===n.leading&&(a=i);const s=t-(i-a),c=this;s<=0||s>t?(r&&(Npe(r),r=null),a=i,e.apply(c,o)):!r&&!1!==n.trailing&&(r=Hk((()=>{a=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)}),s))}}function tU(e,t,n,r,a=window){const o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set(e){Hk((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>tU(e,t,o||{},!0)}function XT(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(OD=new Proxy(OD,{get:(e,t,n)=>("map"===t&&console.error(c1),Reflect.get(e,t,n))}));let xw=Date.now;function nU(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:ip([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||ip([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||ip([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:ip([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||ip([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||ip([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function rU(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function aU(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function oU(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function es(e,t,n,r,a){if(!e)return!1;const o=oU(e);if(!o)return!1;const i=p1(t,n);if(!a){const e=r&&o.matches(r);return i(o)&&!e}const s=am(o,i);let c=-1;return!(s<0)&&(r&&(c=am(o,p1(null,r))),s>-1&&c<0||s<c)}function Ppe(e,t){return-1!==t.getId(e)}function B4(e,t){return-2===t.getId(e)}function iU(e,t){if(jy(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||iU(e.parentNode,t))}function fR(e){return!!e.changedTouches}function $pe(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function sU(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function cU(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function uR(e){return!!ip([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(xw=()=>(new Date).getTime());class Ope{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return Uue(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function lU(e){let t=null;return ip([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function zpe(e){let t,n=e;for(;t=lU(n);)n=t;return n}function Mpe(e){const t=e.ownerDocument;if(!t)return!1;const n=zpe(e);return t.contains(n)}function fU(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Mpe(e))}const zD={};function JT(e){const t=zD[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return zD[e]=r.bind(window)}function Dpe(...e){return JT("requestAnimationFrame")(...e)}function Hk(...e){return JT("setTimeout")(...e)}function Npe(...e){return JT("clearTimeout")(...e)}var MD,DD,Gt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Gt||{}),zt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(zt||{}),ei=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ei||{}),ou=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ou||{});function eI(e){try{return e.contentDocument}catch{}}function Lpe(e){try{return e.contentWindow}catch{}}function jpe(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function ND(e){return"__ln"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(MD||(MD={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(DD||(DD={}));class Bpe{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=jpe([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&ND(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&ND(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const LD=(e,t)=>`${e}@${t}`;class Fpe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Bpe,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},a=a=>{if(!a.parentNode||!fU(a))return;const o=jy(a.parentNode)?this.mirror.getId(lU(a)):this.mirror.getId(a.parentNode),i=r(a);if(-1===o||-1===i)return n.addNode(a);const s=h1(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{sU(e,this.mirror)&&!es(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),cU(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),uR(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{es(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:i,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)jD(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||a(e);for(const e of this.addedSet)!BD(this.droppedSet,e)&&!jD(this.removes,e,this.mirror)||BD(this.movedSet,e)?a(e):this.droppedSet.add(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),a(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};!i.texts.length&&!i.attributes.length&&!i.removes.length&&!i.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!B4(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!es(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:$1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,oU(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=YT(t),a=t.tagName;r=ww(t,a,n);const o=qk({maskInputOptions:this.maskInputOptions,tagName:a,type:n});r=f_({isMasked:$1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(es(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(eI(t))return;n="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!eU(t.tagName,n)&&(a.attributes[n]=JF(this.doc,P1(t.tagName),P1(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?a.styleDiff[e]=""===o?r:[r,o]:a._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(es(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=jy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);es(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||B4(t,this.mirror)||!Ppe(t,this.mirror)||(this.addedSet.has(t)?(dR(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||iU(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[LD(n,r)]?dR(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!jy(e.target)||!By(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(B4(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[LD(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);es(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),uR(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function dR(e,t){e.delete(t),t.childNodes.forEach((t=>dR(e,t)))}function jD(e,t,n){return 0!==e.length&&Upe(e,t,n)}function Upe(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}function BD(e,t){return 0!==e.size&&uU(e,t)}function uU(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||uU(e,n))}let Fy;function Vpe(e){Fy=e}function qpe(){Fy=void 0}const pn=e=>Fy?(...t)=>{try{return e(...t)}catch(e){if(Fy&&!0===Fy(e))return()=>{};throw e}}:e;function Tc(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const m1=[];function nv(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function dU(e,t){const n=new Fpe;m1.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const a=Tc([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);a&&window[a]&&(r=window[a]);const o=new r(pn((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Wpe({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const a="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,s=[];const c=d_(pn((t=>{const n=Date.now()-i;e(s.map((e=>(e.timeOffset-=n,e))),t),s=[],i=null})),o),l=pn(d_(pn((e=>{const t=nv(e),{clientX:n,clientY:a}=fR(e)?e.changedTouches[0]:e;i||(i=xw()),s.push({x:n,y:a,id:r.getId(t),timeOffset:xw()-i}),c(typeof DragEvent<"u"&&e instanceof DragEvent?zt.Drag:e instanceof MouseEvent?zt.MouseMove:zt.TouchMove)})),a,{trailing:!1})),u=[ni("mousemove",l,n),ni("touchmove",l,n),ni("drag",l,n)];return pn((()=>{u.forEach((e=>e()))}))}function Hpe({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const s=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(ei).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((i=>{let s=P1(i);const u=(t=>i=>{const s=nv(i);if(es(s,r,a,o,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=ou.Mouse;break;case"touch":c=ou.Touch;break;case"pen":c=ou.Pen}c===ou.Touch?ei[t]===ei.MouseDown?u="TouchStart":ei[t]===ei.MouseUp&&(u="TouchEnd"):ou.Pen}else fR(i)&&(c=ou.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===ou.Touch||u.startsWith("Mouse")&&c===ou.Mouse)&&(c=null)):ei[t]===ei.Click&&(c=l,l=null);const f=fR(i)?i.changedTouches[0]:i;if(!f)return;const d=n.getId(s),{clientX:p,clientY:h}=f;pn(e)({type:ei[u],id:d,x:p,y:h,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(ei[i]){case ei.MouseDown:case ei.MouseUp:s=s.replace("mouse","pointer");break;case ei.TouchStart:case ei.TouchEnd:return}c.push(ni(s,u,t))})),pn((()=>{c.forEach((e=>e()))}))}function pU({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){return ni("scroll",pn(d_(pn((i=>{const s=nv(i);if(!s||es(s,r,a,o,!0))return;const c=n.getId(s);if(s===t&&t.defaultView){const n=nU(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})})),i.scroll||100)),t)}function Gpe({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ni("resize",pn(d_(pn((()=>{const t=rU(),a=aU();(n!==t||r!==a)&&(e({width:Number(a),height:Number(t)}),n=t,r=a)})),200)),t)}const Kpe=["INPUT","TEXTAREA","SELECT"],FD=new WeakMap;function Qpe({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,ignoreClass:i,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function y(e){let n=nv(e);const u=e.isTrusted,y=n&&cR(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||Kpe.indexOf(y)<0||es(n,r,a,o,!0))return;const v=n;if(v.classList.contains(i)||s&&v.matches(s))return;const b=YT(n);let _=ww(v,y,b),w=!1;const k=qk({maskInputOptions:c,tagName:y,type:b}),x=$1(n,d,h,p,m,k);("radio"===b||"checkbox"===b)&&(w=n.checked),_=f_({isMasked:x,element:n,value:_,maskInputFn:l}),g(n,f?{text:_,isChecked:w,userTriggered:u}:{text:_,isChecked:w});const S=n.name;"radio"===b&&S&&w&&t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach((e=>{if(e!==n){const t=f_({isMasked:x,element:e,value:ww(e,y,b),maskInputFn:l});g(e,f?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function g(t,r){const a=FD.get(t);if(!a||a.text!==r.text||a.isChecked!==r.isChecked){FD.set(t,r);const a=n.getId(t);pn(e)({...r,id:a})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>ni(e,pn(y),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...w.map((e=>tU(e[0],e[1],{set(){pn(y)({target:this,isTrusted:!1})}},!1,b)))),pn((()=>{v.forEach((e=>e()))}))}function Sw(e){return function(e,t){if(gb("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||gb("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||gb("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||gb("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function sp(e,t,n){let r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function Ype({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:pn(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=sp(a,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:s}]}),r.apply(a,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=sp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:i}]}),r.apply(a,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=sp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replace:i}),r.apply(a,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=sp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replaceSync:i}),r.apply(a,o)}))}));const c={};yb("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(yb("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),yb("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),yb("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,a])=>{l[r]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(l[r].insertRule,{apply:pn(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=sp(a.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Sw(a),s||0]}]}),r.apply(a,o)}))}),a.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=sp(a.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:[...Sw(a),i]}]}),r.apply(a,o)}))})})),pn((()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}function hU({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?Tc([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Tc([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=Tc([a,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Tc([a,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&a&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Tc([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Tc([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch{}return n}}),pn((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function Zpe({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:pn(((a,i,s)=>{const[c,l,u]=s;if(n.has(c))return o.apply(i,[c,l,u]);const{id:f,styleId:d}=sp(Tc([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(f&&-1!==f||d&&-1!==d)&&e({id:f,styleId:d,set:{property:c,value:l,priority:u},index:Sw(i.parentRule)}),a.apply(i,s)}))});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:pn(((a,o,s)=>{const[c]=s;if(n.has(c))return i.apply(o,[c]);const{id:l,styleId:u}=sp(Tc([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Sw(o.parentRule)}),a.apply(o,s)}))}),pn((()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=i}))}function Xpe({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:a,sampling:o,doc:i}){const s=pn((i=>d_(pn((o=>{const s=nv(o);if(!s||es(s,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:f}=s;e({type:i,id:a.getId(s),currentTime:c,volume:l,muted:u,playbackRate:f})})),o.media||500))),c=[ni("play",s(0),i),ni("pause",s(1),i),ni("seeked",s(2),i),ni("volumechange",s(3),i),ni("ratechange",s(4),i)];return pn((()=>{c.forEach((e=>e()))}))}function Jpe({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return a.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=XT(t.fonts,"add",(function(t){return function(n){return Hk(pn((()=>{const t=a.get(n);t&&(e(t),a.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),pn((()=>{r.forEach((e=>e()))}))}function ehe(e){const{doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,selectionCb:i}=e;let s=!0;const c=pn((()=>{const e=t.getSelection();if(!e||s&&Tc([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:s,startOffset:l,endContainer:u,endOffset:f}=i;es(s,r,a,o,!0)||es(u,r,a,o,!0)||c.push({start:n.getId(s),startOffset:l,end:n.getId(u),endOffset:f})}i({ranges:c})}));return c(),ni("selectionchange",c)}function the({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?XT(n.customElements,"define",(function(e){return function(n,r,a){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,a])}})):()=>{}}function nhe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=dU(e,e.doc));const a=Wpe(e),o=Hpe(e),i=pU(e),s=Gpe(e,{win:n}),c=Qpe(e),l=Xpe(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=Ype(e,{win:n}),f=hU(e,e.doc),d=Zpe(e,{win:n}),e.collectFonts&&(p=Jpe(e)));const h=ehe(e),m=the(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return pn((()=>{m1.forEach((e=>e.reset())),Tc([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),a(),o(),i(),s(),c(),l(),u(),f(),d(),p(),h(),m(),y.forEach((e=>e()))}))}function gb(e){return typeof window[e]<"u"}function yb(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class pR{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const a=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=a.get(t);return i||(i=this.generateIdFn(),a.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function UD(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}class rhe{constructor(){this.crossOriginIframeMirror=new pR(ZT),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ahe{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new pR(ZT),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new pR(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),UD([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=eI(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin||!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Gt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Gt.IncrementalSnapshot,data:{source:zt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Gt.Meta:case Gt.Load:case Gt.DomContentLoaded:return!1;case Gt.Plugin:return t;case Gt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Gt.IncrementalSnapshot:switch(t.data.source){case zt.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case zt.Drag:case zt.TouchMove:case zt.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case zt.ViewportResize:return!1;case zt.MediaInteraction:case zt.MouseInteraction:case zt.Scroll:case zt.CanvasMutation:case zt.Input:return this.replaceIds(t.data,e,["id"]),t;case zt.StyleSheetRule:case zt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case zt.Font:return t;case zt.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case zt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),UD([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const a of r)!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type!==Ea.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class ohe{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class ihe{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!By(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=dU({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(pU({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Hk((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(hU({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=eI(e),n=Lpe(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(XT(e.prototype,"attachShadow",(function(e){return function(r){const a=e.call(this,r);return this.shadowRoot&&fU(this)&&n.addShadowRoot(this.shadowRoot,t),a}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class VD{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class she{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ope,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:GF(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class che{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,Dpe((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Tr,Ew;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Nb([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Rc=spe();function _u(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:w=null,packFn:k,sampling:x={},dataURLOptions:S={},mousemoveWait:E,recordDOM:A=!0,recordCanvas:z=!1,recordCrossOriginIframes:C=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:T=!1,collectFonts:R=!1,inlineImages:P=!1,plugins:j,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:M,onMutation:D,getCanvasManager:F}=e;Vpe(M);const L=!C||window.parent===window;let V=!1;if(!L)try{window.parent.document&&(V=!1)}catch{V=!0}if(L&&!t)throw new Error("emit function is required");if(!L&&!V)return()=>{};void 0!==E&&void 0===x.mousemove&&(x.mousemove=E),Rc.reset();const q=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},B=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};$pe();let U,$=0;const W=e=>{for(const t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!V&&(e=k(e)),e};Tr=(e,a)=>{const o=e;if(o.timestamp=xw(),Nb([m1,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&o.type!==Gt.FullSnapshot&&!(o.type===Gt.IncrementalSnapshot&&o.data.source===zt.Mutation)&&m1.forEach((e=>e.unfreeze())),L)Nb([t,"optionalCall",e=>e(W(o),a)]);else if(V){const e={type:"rrweb",event:W(o),origin:window.location.origin,isCheckout:a};window.parent.postMessage(e,"*")}if(o.type===Gt.FullSnapshot)U=o,$=0;else if(o.type===Gt.IncrementalSnapshot){if(o.data.source===zt.Mutation&&o.data.isAttachIframe)return;$++;const e=r&&$>=r,t=n&&U&&o.timestamp-U.timestamp>n;(e||t)&&ee(!0)}};const H=e=>{Tr({type:Gt.IncrementalSnapshot,data:{source:zt.Mutation,...e}})},G=e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.Scroll,...e}}),K=e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.CanvasMutation,...e}}),Q=new she({mutationCb:H,adoptedStyleSheetCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new rhe:new ahe({mirror:Rc,mutationCb:H,stylesheetManager:Q,recordCrossOriginIframes:C,wrappedEmit:Tr});for(const e of j||[])e.getMirror&&e.getMirror({nodeMirror:Rc,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const Z=new che,X=fhe(F,{mirror:Rc,win:window,mutationCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.CanvasMutation,...e}}),recordCanvas:z,blockClass:a,blockSelector:o,unblockSelector:i,maxCanvasSize:w,sampling:x.canvas,dataURLOptions:S,errorHandler:M}),J="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ohe:new ihe({mutationCb:H,scrollCb:G,bypassOptions:{onMutation:D,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:q,dataURLOptions:S,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:z,inlineImages:P,sampling:x,slimDOMOptions:B,iframeManager:Y,stylesheetManager:Q,canvasManager:X,keepIframeSrcFn:O,processedNodeManager:Z},mirror:Rc}),ee=(e=!1)=>{if(!A)return;Tr({type:Gt.Meta,data:{href:window.location.href,width:aU(),height:rU()}},e),Q.reset(),J.init(),m1.forEach((e=>e.lock()));const t=Ipe(document,{mirror:Rc,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:q,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:B,dataURLOptions:S,recordCanvas:z,inlineImages:P,onSerialize:e=>{sU(e,Rc)&&Y.addIframe(e),cU(e,Rc)&&Q.trackLinkElement(e),uR(e)&&J.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&X.addWindow(e.contentWindow),J.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},keepIframeSrcFn:O});if(!t)return console.warn("Failed to snapshot the document");Tr({type:Gt.FullSnapshot,data:{node:t,initialOffset:nU(window)}}),m1.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,Rc.getId(document))};Ew=ee;try{const e=[],t=e=>pn(nhe)({onMutation:D,mutationCb:H,mousemoveCb:(e,t)=>Tr({type:Gt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.ViewportResize,...e}}),inputCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.Input,...e}}),mediaInteractionCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.MediaInteraction,...e}}),styleSheetRuleCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.StyleSheetRule,...e}}),styleDeclarationCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>Tr({type:Gt.IncrementalSnapshot,data:{source:zt.Font,...e}}),selectionCb:e=>{Tr({type:Gt.IncrementalSnapshot,data:{source:zt.Selection,...e}})},customElementCb:e=>{Tr({type:Gt.IncrementalSnapshot,data:{source:zt.CustomElement,...e}})},blockClass:a,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,maskInputOptions:q,inlineStylesheet:h,sampling:x,recordDOM:A,recordCanvas:z,inlineImages:P,userTriggeredOnInput:T,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:O,blockSelector:o,unblockSelector:i,slimDOMOptions:B,dataURLOptions:S,mirror:Rc,iframeManager:Y,stylesheetManager:Q,shadowDomManager:J,processedNodeManager:Z,canvasManager:X,ignoreCSSAttributes:N,plugins:Nb([j,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Tr({type:Gt.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ni("DOMContentLoaded",(()=>{Tr({type:Gt.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),e.push(ni("load",(()=>{Tr({type:Gt.Load,data:{}}),"load"===I&&n()}),window))),()=>{e.forEach((e=>e())),Z.destroy(),Ew=void 0,qpe()}}catch(e){console.warn(e)}}function lhe(e){if(!Ew)throw new Error("please take full snapshot after start recording");Ew(e)}function fhe(e,t){try{return e?e(t):new VD}catch{return console.warn("Unable to initialize CanvasManager"),new VD}}_u.mirror=Rc,_u.takeFullSnapshot=lhe;const uhe=3,dhe=5;function tI(e){return e>9999999999?e:1e3*e}function F4(e){return e>9999999999?e/1e3:e}function rv(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Gt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:lu(t,10,1e3)}}),"console"===t.category))))}const phe="button,a";function mU(e){return e.closest(phe)||e}function gU(e){const t=yU(e);return t&&t instanceof Element?mU(t):t}function yU(e){return hhe(e)?e.target:e}function hhe(e){return"object"==typeof e&&!!e&&"target"in e}let cp;function mhe(e){return cp||(cp=[],ghe()),cp.push(e),()=>{const t=cp?cp.indexOf(e):-1;t>-1&&cp.splice(t,1)}}function ghe(){Bs(Xn,"open",(function(e){return function(...t){if(cp)try{cp.forEach((e=>e()))}catch{}return e.apply(Xn,t)}}))}const yhe=new Set([zt.Mutation,zt.StyleSheetRule,zt.StyleDeclaration,zt.AdoptedStyleSheet,zt.CanvasMutation,zt.Selection,zt.MediaInteraction]);function _he(e,t,n){e.handleClick(t,n)}class vhe{constructor(e,t,n=rv){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=mhe((()=>{this._lastMutation=qD()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(whe(t,this._ignoreSelector)||!khe(e))return;const n={timestamp:F4(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=F4(e)}registerScroll(e=Date.now()){this._lastScroll=F4(e)}registerClick(e){const t=mU(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=qD();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(a){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:Xn.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,a)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:Xn.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=I1((()=>this._checkClicks()),1e3)}}const bhe=["A","BUTTON","INPUT"];function whe(e,t){return!!(!bhe.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||"A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target"))||t&&e.matches(t))}function khe(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function qD(){return Date.now()/1e3}function xhe(e,t){try{if(!She(t))return;const{source:n}=t.data;if(yhe.has(n)&&e.registerMutation(t.timestamp),n===zt.Scroll&&e.registerScroll(t.timestamp),Ehe(t)){const{type:n,id:r}=t.data,a=_u.mirror.getNode(r);a instanceof HTMLElement&&n===ei.Click&&e.registerClick(a)}}catch{}}function She(e){return 3===e.type}function Ehe(e){return e.data.source===zt.MouseInteraction}function jl(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Cw;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Cw||(Cw={}));const Che=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Rhe(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Che.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const Ahe=e=>t=>{if(!e.isEnabled())return;const n=The(t);if(!n)return;const r="click"===t.name,a=r?t.event:void 0;r&&e.clickDetector&&a&&a.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&_he(e.clickDetector,n,gU(t.event)),rv(e,n)};function _U(e,t){const n=_u.mirror.getId(e),r=n&&_u.mirror.getNode(n),a=r&&_u.mirror.getMeta(r),o=a&&Phe(a)?a:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Cw.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Rhe(o.attributes)}}:{}}}function The(e){const{target:t,message:n}=Ihe(e);return jl({category:`ui.${e.name}`,..._U(t,n)})}function Ihe(e){const t="click"===e.name;let n,r=null;try{r=t?gU(e.event):yU(e.event),n=FT(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Phe(e){return e.type===Cw.Element}function $he(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=Ohe(t);n&&rv(e,n)}function Ohe(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o,target:i}=e;if(!i||zhe(i)||!o)return null;const s=t||r||a,c=1===o.length;if(!s&&c)return null;const l=FT(i,{maxStringLength:200})||"<unknown>";return jl({category:"ui.keyDown",message:l,data:{..._U(i,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o}})}function zhe(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const Mhe={resource:Bhe,paint:Lhe,navigation:jhe};function _b(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Dhe(e){return e.map(Nhe).filter(Boolean)}function Nhe(e){const t=Mhe[e.entryType];return t?t(e):null}function O1(e){return((mfe||Xn.performance.timeOrigin)+e)/1e3}function Lhe(e){const{duration:t,entryType:n,name:r,startTime:a}=e,o=O1(a);return{type:n,name:r,start:o,end:o+t,data:void 0}}function jhe(e){const{entryType:t,name:n,decodedBodySize:r,duration:a,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:f,redirectCount:d,startTime:p,transferSize:h,type:m}=e;return 0===a?null:{type:`${t}.${m}`,start:O1(p),end:O1(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:a,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:f,domComplete:o,redirectCount:d}}}function Bhe(e){const{entryType:t,initiatorType:n,name:r,responseEnd:a,startTime:o,decodedBodySize:i,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:O1(o),end:O1(a),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:s}}}function Fhe(e){const t=e.entries[e.entries.length-1];return Gk(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function Uhe(e){return void 0!==e.sources}function Vhe(e){const t=[],n=[];for(const r of e.entries)if(Uhe(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=_u.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Gk(e,"cumulative-layout-shift",n,t)}function qhe(e){const t=e.entries[e.entries.length-1];return Gk(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function Whe(e){const t=e.entries[e.entries.length-1];return Gk(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Gk(e,t,n,r){const a=e.value,o=e.rating,i=O1(a);return{type:"web-vital",name:t,start:i,end:i,data:{value:a,size:a,rating:o,nodeIds:n?n.map((e=>_u.mirror.getId(e))):void 0,attributions:r}}}function Hhe(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(_de(e,n))})),r.push(mde(_b(Fhe,e)),hde(_b(Vhe,e)),gde(_b(qhe,e)),yde(_b(Whe,e))),()=>{r.forEach((e=>e()))}}const At=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ghe='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function Khe(){const e=new Blob([Ghe]);return URL.createObjectURL(e)}const WD=["info","warn","error","log"],Lb="[Replay] ";function U4(e,t="info"){Tue({category:"console",data:{logger:"replay"},level:t,message:`${Lb}${e}`},{level:t})}function Qhe(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return At?(WD.forEach((e=>{n[e]=(...n)=>{ri[e](Lb,...n),t&&U4(n.join(""),Iue(e))}})),n.exception=(r,...a)=>{a.length&&n.error&&n.error(...a),ri.error(Lb,r),e?qT(r):t&&U4(r,"error")},n.infoTick=(...e)=>{ri.info(Lb,...e),t&&setTimeout((()=>U4(e[0])),0)}):WD.forEach((e=>{n[e]=()=>{}})),n}const Pt=Qhe();class nI extends Error{constructor(){super(`Event buffer exceeded maximum size of ${QT}.`)}}class vU{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>QT)throw new nI;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?tI(e):null}}class Yhe{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){At&&Pt.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,a)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return At&&Pt.error("Error in compression worker: ",i.response),void a(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Zhe{constructor(e){this._worker=new Yhe(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=tI(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>QT?Promise.reject(new nI):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{At&&Pt.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Xhe{constructor(e){this._fallback=new vU,this._compression=new Zhe(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(At&&Pt.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){At&&Pt.exception(e,"Failed to add events when switching buffers.")}}}function Jhe({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=eme(t);if(e)return e}return At&&Pt.info("Using simple buffer"),new vU}function eme(e){try{const t=e||tme();if(!t)return;At&&Pt.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Xhe(n)}catch(e){At&&Pt.exception(e,"Failed to create compression worker")}}function tme(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Khe():""}function rI(){try{return"sessionStorage"in Xn&&!!Xn.sessionStorage}catch{return!1}}function nme(e){rme(),e.session=void 0}function rme(){if(rI())try{Xn.sessionStorage.removeItem(GT)}catch{}}function bU(e){return void 0!==e&&Math.random()<e}function wU(e){const t=Date.now();return{id:e.id||yu(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function aI(e){if(rI())try{Xn.sessionStorage.setItem(GT,JSON.stringify(e))}catch{}}function ame(e,t){return bU(e)?"session":!!t&&"buffer"}function HD({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const a=wU({sampled:ame(e,t),previousSessionId:r});return n&&aI(a),a}function ome(){if(!rI())return null;try{const e=Xn.sessionStorage.getItem(GT);if(!e)return null;const t=JSON.parse(e);return At&&Pt.infoTick("Loading existing session"),wU(t)}catch{return null}}function hR(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function kU(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return hR(e.started,t,r)||hR(e.lastActivity,n,r)}function xU(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!kU(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function V4({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const a=r.stickySession&&ome();return a?xU(a,{sessionIdleExpire:e,maxReplayDuration:t})?(At&&Pt.infoTick("Session in sessionStorage is expired, creating new one..."),HD(r,{previousSessionId:a.id})):a:(At&&Pt.infoTick("Creating new session"),HD(r,{previousSessionId:n}))}function ime(e){return e.type===Gt.Custom}function oI(e,t,n){return!!EU(e,t)&&(SU(e,t,n),!0)}function sme(e,t,n){return EU(e,t)?SU(e,t,n):Promise.resolve(null)}async function SU(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const a="buffer"===e.recordingMode;try{n&&a&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=cme(t,e.getOptions().beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(t){const n=t&&t instanceof nI,o=n?"addEventSizeExceeded":"addEvent";if(n&&a)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o});const i=ef();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function EU(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=tI(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(At&&Pt.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function cme(e,t){try{if("function"==typeof t&&ime(e))return t(e)}catch(e){return At&&Pt.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function iI(e){return!e.type}function mR(e){return"transaction"===e.type}function lme(e){return"replay_event"===e.type}function GD(e){return"feedback"===e.type}function fme(e){return(t,n)=>{if(!e.isEnabled()||!iI(t)&&!mR(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(mR(t))return void ume(e,t);dme(e,t)}}}function ume(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function dme(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();"function"==typeof r&&!r(t)||I1((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function pme(e){return t=>{!e.isEnabled()||!iI(t)||hme(e,t)}}function hme(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){rv(e,jl({category:"replay.hydrate-error",data:{url:lfe()}}))}}function mme(e){const t=ef();t&&t.on("beforeAddBreadcrumb",(t=>gme(e,t)))}function gme(e,t){if(!e.isEnabled()||!CU(t))return;const n=yme(t);n&&rv(e,n)}function yme(e){return!CU(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?_me(e):jl(e)}function _me(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return jl(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>mb?(n=!0,`${e.slice(0,mb)}…`):e;if("object"==typeof e)try{const t=lu(e,7);return JSON.stringify(t).length>mb?(n=!0,`${JSON.stringify(t,null,2).slice(0,mb)}…`):t}catch{}return e}));return jl({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function CU(e){return!!e.category}function vme(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function RU(){const e=J1().getPropagationContext().dsc;e&&delete e.replay_id;const t=$F();if(t){delete zF(t).replay_id}}function bme(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Gt.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}function wme(e,t){return!("buffer"!==e.recordingMode||t.message===KT||!t.exception||t.type)&&bU(e.getOptions().errorSampleRate)}function kme(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:lme(t)?(delete t.breadcrumbs,t):iI(t)||mR(t)||GD(t)?e.checkAndHandleExpiredSession()?GD(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),bme(e,t),t):vme(t,n)&&!e.getOptions()._experiments.captureExceptions?(At&&Pt.log("Ignoring error from rrweb internals",t),null):((wme(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(RU(),t):t),{id:"Replay"})}function Kk(e,t){return t.map((({type:t,start:n,end:r,name:a,data:o})=>{const i=e.throttledAddEvent({type:Gt.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function xme(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Sme(e){return t=>{if(!e.isEnabled())return;const n=xme(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Kk(e,[n]),!1))))}}function Eme(e,t){return(!At||!e.getOptions()._experiments.traceInternals)&&Eue(t,ef())}function AU(e,t){e.isEnabled()&&null!==t&&(Eme(e,t.name)||e.addUpdate((()=>(Kk(e,[t]),!0))))}function Qk(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=$U(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function TU(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function IU(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[$U(e)];if(!e)return[void 0]}catch(t){return At&&Pt.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return At&&Pt.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Rw(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function PU(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:a,method:o,statusCode:i,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:a,data:Pc({method:o,statusCode:i,request:s,response:c})}}function p_(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function yp(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:a,warnings:o}=Cme(n);return r.body=a,o&&o.length>0&&(r._meta={warnings:o}),r}function gR(e,t){return Object.entries(e).reduce(((n,[r,a])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=a),n}),{})}function $U(e){return new URLSearchParams(e).toString()}function Cme(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>RD,n=Rme(e);if(t){const t=e.slice(0,RD);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Rme(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function Aw(e,t){return ufe(Ame(e),t)}function Ame(e,t=Xn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Xn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Tme(e,t,n){try{const r=PU("resource.fetch",await Pme(e,t,n));AU(n.replay,r)}catch(e){At&&Pt.exception(e,"Failed to capture fetch breadcrumb")}}function Ime(e,t){const{input:n,response:r}=t,a=Qk(n?OU(n):void 0),o=r?TU(r.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}async function Pme(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r}=t,{url:i,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,f=Aw(i,n.networkDetailAllowUrls)&&!Aw(i,n.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:o,url:i,method:s,statusCode:c,request:f?$me(n,t.input,l):p_(l),response:await Ome(f,n,t.response,u)}}function $me({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const a=n?Dme(n,t):{};if(!e)return yp(a,r,void 0);const o=OU(n),[i,s]=IU(o),c=yp(a,r,i);return s?Rw(c,s):c}async function Ome(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,a){if(!e&&void 0!==a)return p_(a);const o=r?zU(r.headers,n):{};if(!r||!t&&void 0!==a)return yp(o,a,void 0);const[i,s]=await Mme(r),c=zme(i,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:o});return s?Rw(c,s):c}function zme(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:a}){try{const o=e&&e.length&&void 0===n?Qk(e):n;return r?yp(a,o,t?e:void 0):p_(o)}catch(e){return At&&Pt.exception(e,"Failed to serialize response body"),yp(a,n,void 0)}}async function Mme(e){const t=Nme(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await Lme(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(At&&Pt.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(At&&Pt.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function OU(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function zU(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Dme(e,t){return 1===e.length&&"string"!=typeof e[0]?KD(e[0],t):2===e.length?KD(e[1],t):{}}function KD(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?zU(n,t):Array.isArray(n)?{}:gR(n,t):{}}function Nme(e){try{return e.clone()}catch(e){At&&Pt.exception(e,"Failed to clone response body")}}function Lme(e){return new Promise(((t,n)=>{const r=I1((()=>n(new Error("Timeout while trying to read response body"))),500);jme(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function jme(e){return await e.text()}async function Bme(e,t,n){try{const r=PU("resource.xhr",Ume(e,t,n));AU(n.replay,r)}catch(e){At&&Pt.exception(e,"Failed to capture xhr breadcrumb")}}function Fme(e,t){const{xhr:n,input:r}=t;if(!n)return;const a=Qk(r),o=n.getResponseHeader("content-length")?TU(n.getResponseHeader("content-length")):Hme(n.response,n.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}function Ume(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r,input:i,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:f,response_body_size:d}=e.data;if(!c)return null;if(!s||!Aw(c,n.networkDetailAllowUrls)||Aw(c,n.networkDetailDenyUrls)){return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:p_(f),response:p_(d)}}const p=s[Ode],h=p?gR(p.request_headers,n.networkRequestHeaders):{},m=gR(Vme(s),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?IU(i):[void 0],[v,b]=n.networkCaptureBodies?qme(s):[void 0],_=yp(h,f,y),w=yp(m,d,v);return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:g?Rw(_,g):_,response:b?Rw(w,b):w}}function Vme(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}function qme(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Wme(e.response,e.responseType)}catch(e){t.push(e)}return At&&Pt.warn("Failed to get xhr response body",...t),[void 0]}function Wme(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return At&&Pt.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return At&&Pt.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Hme(e,t){try{return Qk("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function Gme(e){const t=ef();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>Kme(s,e,t)))}catch{}}function Kme(e,t,n){if(t.data)try{Qme(t)&&Zme(n)&&(Fme(t,n),Bme(t,n,e)),Yme(t)&&Xme(n)&&(Ime(t,n),Tme(t,n,e))}catch(e){At&&Pt.exception(e,"Error when enriching network breadcrumb")}}function Qme(e){return"xhr"===e.category}function Yme(e){return"fetch"===e.category}function Zme(e){return e&&e.xhr}function Xme(e){return e&&e.response}function Jme(e){const t=ef();Ede(Ahe(e)),Ide(Sme(e)),mme(e),Gme(e);vue(kme(e)),t&&(t.on("beforeSendEvent",pme(e)),t.on("afterSendEvent",fme(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}async function ege(e){try{return Promise.all(Kk(e,[tge(Xn.performance.memory)]))}catch{return[]}}function tge(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function nge(e,t,n){let r,a,o;const i=n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){void 0!==a&&clearTimeout(a),void 0!==o&&clearTimeout(o),a=o=void 0}function l(){return a&&clearTimeout(a),a=I1(s,t),i&&void 0===o&&(o=I1(s,i)),r}return l.cancel=c,l.flush=function(){return void 0!==a||void 0!==o?s():r},l}function rge(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(At&&Pt.warn("Received replay event after session expired."));const a=r||!t;t=!0,e.clickDetector&&xhe(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!oI(e,n,a))return!0;if(!a)return!1;const t=e.session;if(oge(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(At&&Pt.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&aI(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function age(e){const t=e.getOptions();return{type:Gt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function oge(e,t){!t||!e.session||0!==e.session.segmentId||oI(e,age(e),!1)}function ige(e,t,n,r){return Jfe(tue(e,eue(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function sge({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function cge({client:e,scope:t,replayId:n,event:r}){const a={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,a);const o=await lue(e.getOptions(),r,a,t,e,Z_());if(!o)return null;o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:s,version:c}=i&&i.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:c||"0.0.0"},o}async function lge({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:a,session:o}){const i=sge({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,f=ef(),d=J1(),p=f&&f.getTransport(),h=f&&f.getDsn();if(!(f&&p&&h&&o.sampled))return fD({});const m={type:Ude,replay_start_timestamp:u/1e3,timestamp:a/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:o.sampled},y=await cge({scope:d,client:f,replayId:t,event:m});if(!y)return f.recordDroppedEvent("event_processor","replay",m),At&&Pt.info("An event processor returned `null`, will not send event."),fD({});delete y.sdkProcessingMetadata;const g=ige(y,i,h,f.getOptions().tunnel);let v;try{v=await p.send(g)}catch(e){const t=new Error(KT);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new MU(v.statusCode);const b=Sue({},v);if(xue(b,"replay"))throw new sI(b);return v}class MU extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class sI extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function DU(e,t={count:0,interval:Kde}){const{recordingData:n,onError:r}=e;if(n.length)try{return await lge(e),!0}catch(n){if(n instanceof MU||n instanceof sI)throw n;if(yue("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${KT} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{I1((async()=>{try{await DU(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const NU="__THROTTLED",fge="__SKIPPED";function uge(e,t,n){const r=new Map;let a=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=a;return a=!0,e?fge:NU}a=!1;const s=r.get(i)||0;return r.set(i,s+1),e(...o)}}class lp{constructor({options:e,recordingOptions:t}){lp.prototype.__init.call(this),lp.prototype.__init2.call(this),lp.prototype.__init3.call(this),lp.prototype.__init4.call(this),lp.prototype.__init5.call(this),lp.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Vde,sessionIdleExpire:qde},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=nge((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=uge(((e,t)=>sme(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),a=n?{threshold:Math.min(Yde,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(a&&(this.clickDetector=new vhe(this,a)),At){const t=e._experiments;Pt.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){At&&Pt.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session)return void(At&&Pt.exception(new Error("Unable to initialize and create session")));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",At&&Pt.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(At&&Pt.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(At&&Pt.info("Buffering is in progress, call `flush()` to save the replay"));At&&Pt.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=V4({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(At&&Pt.info("Buffering is in progress, call `flush()` to save the replay"));At&&Pt.infoTick("Starting replay in buffer mode");const e=V4({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=_u({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:Gde}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:rge(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{At&&Pt.info("Stopping Replay"+(t?` triggered by ${t}`:"")),RU(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,nme(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),At&&Pt.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),At&&Pt.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();At&&Pt.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();!e||!n||"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&hR(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Xn.location.pathname}${Xn.location.hash}${Xn.location.search}`,t=`${Xn.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===NU){const e=jl({category:"replay.throttled"});this.addUpdate((()=>!oI(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||$F(),t=e&&VT(e),n=(t&&c_(t).data||{})[PF];if(t&&n&&["route","custom"].includes(n))return c_(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Jhe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=V4({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!xU(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Xn.document.addEventListener("visibilitychange",this._handleVisibilityChange),Xn.addEventListener("blur",this._handleWindowBlur),Xn.addEventListener("focus",this._handleWindowFocus),Xn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Jme(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=Hhe(this)}_removeListeners(){try{Xn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Xn.removeEventListener("blur",this._handleWindowBlur),Xn.removeEventListener("focus",this._handleWindowFocus),Xn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Xn.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=jl({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=jl({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{$he(this,e)}}_doChangeToBackgroundTasks(e){!this.session||kU(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):At&&Pt.info("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Gt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=Dhe(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(Kk(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await ege(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await DU({replayId:e,recordingData:a,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=ef();if(t){const n=e instanceof sI?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else At&&Pt.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(At&&Pt.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,a=n>this._options.maxReplayDuration+5e3;if(r||a)return At&&Pt.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&At&&Pt.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&aI(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=jl({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function iy(e,t){return[...e,...t].join(",")}function dge({mask:e,unmask:t,block:n,unblock:r,ignore:a}){return{maskTextSelector:iy(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:iy(t,[]),blockSelector:iy(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:iy(r,[]),ignoreSelector:iy(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function pge({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:a,value:o}){return!r||a.unmaskTextSelector&&e.matches(a.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const QD='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',hge=["content-length","content-type","accept"];let YD=!1;const mge=e=>new Yk(e);class Yk{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=Wde,flushMaxDelay:t=Hde,minReplayDuration:n=Xde,maxReplayDuration:r=AD,stickySession:a=!0,useCompression:o=!0,workerUrl:i,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:f=750,mutationLimit:d=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder"],unmask:k=[],block:x=[],unblock:S=[],ignore:E=[],maskFn:A,beforeAddRecordingEvent:z,beforeErrorSampling:C,onError:I}={}){this.name=Yk.id;const T=dge({mask:_,unmask:k,block:x,unblock:S,ignore:E});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(e,t,n)=>pge({maskAttributes:w,maskAllText:c,privacyOptions:T,key:e,value:t,el:n}),...T,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,Jde),maxReplayDuration:Math.min(r,AD),stickySession:a,useCompression:o,workerUrl:i,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:f,mutationLimit:d,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:ZD(v),networkResponseHeaders:ZD(b),beforeAddRecordingEvent:z,beforeErrorSampling:C,onError:I,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${QD}`:QD),this._isInitialized&&kD())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return YD}set _isInitialized(e){YD=e}afterAllSetup(e){!kD()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=gge(this._initialOptions,e);this._replay=new lp({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function gge(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Pc(e)},a=yD(n.replaysSessionSampleRate),o=yD(n.replaysOnErrorSampleRate);return null==a&&null==o&&DT((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=a&&(r.sessionSampleRate=a),null!=o&&(r.errorSampleRate=o),r}function ZD(e){return[...hge,...e.map((e=>e.toLowerCase()))]}Yk.__initStatic();const LU=()=>"object"!=typeof window;var yge={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/settings/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/settings/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.14.0/bin",TURBO_HASH:"ef0c1e62b4142a53",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_package_name:"@wellesley/settings",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.142",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/settings"};LU()||(window.build=yge.BUILD_NUMBER),mge(),Nde(),Oue();const XD={data:null,isError:!1,isPending:!1,isSuccess:!1},fa=Ca({name:"user",initialState:XD,reducers:{reset:e=>{Object.assign(e,XD)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}}),_ge=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return _ue("exceptionMessage",t),void qT(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}gue(t)},JD=["debug","info","warn","error"],vge=(e,t)=>{const n=JD.indexOf(e);return JD.indexOf(t)>=n},vb=(e,t,n,...r)=>{vge(t,e)&&console.log(`[${e}] ${n}`,...r)},bge=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),wge=(e=!LU()&&bge()||"warn")=>{let t=e;return{debug:(e,...n)=>vb("debug",t,e,...n),info:(e,...n)=>vb("info",t,e,...n),warn:(e,...n)=>vb("warn",t,e,...n),error:(e,...n)=>(_ge(e,...n),vb("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},z1=wge();var kge={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/settings/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/settings/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.14.0/bin",TURBO_HASH:"ef0c1e62b4142a53",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_package_name:"@wellesley/settings",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.142",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/settings"},jU=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(jU||{});function xge(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function Sge(e){return new RegExp("(^|:)//").test(e)}var Ege=e=>e.replace(/\/$/,""),Cge=e=>e.replace(/^\//,"");function Rge(e,t){if(!e)return t;if(!t)return e;if(Sge(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=Ege(e)}${n}${t=Cge(t)}`}var eN=e=>[].concat(...e);function Age(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function Tge(){return typeof document>"u"||"hidden"!==document.visibilityState}var tN=Ul;function BU(e,t){if(e===t||!(tN(e)&&tN(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let a=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const r of n)o[r]=BU(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var nN=(...e)=>fetch(...e),Ige=e=>e.status>=200&&e.status<=299,Pge=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function rN(e){if(!Ul(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function $ge({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=nN,paramsSerializer:r,isJsonContentType:a=Pge,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===nN&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:m,extra:y,endpoint:g,forced:v,type:b}=p;let _,{url:w,headers:k=new Headers(u.headers),params:x,responseHandler:S=c??"json",validateStatus:E=l??Ige,timeout:A=s,...z}="string"==typeof d?{url:d}:d,C={...u,signal:h,...z};k=new Headers(rN(k)),C.headers=await t(k,{getState:m,extra:y,endpoint:g,forced:v,type:b})||k;const I=e=>"object"==typeof e&&(Ul(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!C.headers.has("content-type")&&I(C.body)&&C.headers.set("content-type",o),I(C.body)&&a(C.headers)&&(C.body=JSON.stringify(C.body,i)),x){const e=~w.indexOf("?")?"&":"?";w+=e+(r?r(x):new URLSearchParams(rN(x)))}w=Rge(e,w);const T=new Request(w,C);_={request:new Request(w,C)};let R,P=!1,j=A&&setTimeout((()=>{P=!0,p.abort()}),A);try{R=await n(T)}catch(e){return{error:{status:P?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:_}}finally{j&&clearTimeout(j)}const O=R.clone();_.response=O;let N,M="";try{let e;if(await Promise.all([f(R,S).then((e=>N=e),(t=>e=t)),O.text().then((e=>M=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:M,error:String(e)},meta:_}}return E(R,N)?{data:N,meta:_}:{error:{status:R.status,data:N},meta:_}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var aN=class{constructor(e,t=void 0){this.value=e,this.meta=t}},cI=Ir("__rtkq/focused"),FU=Ir("__rtkq/unfocused"),lI=Ir("__rtkq/online"),UU=Ir("__rtkq/offline");function VU(e){return"query"===e.type}function Oge(e){return"mutation"===e.type}function fI(e,t,n,r,a,o){return zge(e)?e(t,n,r,a).map(yR).map(o):Array.isArray(e)?e.map(yR).map(o):[]}function zge(e){return"function"==typeof e}function yR(e){return"string"==typeof e?{type:e}:e}function oN(e){return null!=e}function v1(e){let t=0;for(const n in e)t++;return t}function Mge(e,t){return e.catch(t)}var h_=Symbol("forceQueryFn"),_R=e=>"function"==typeof e[h_];function Dge({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:c,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,a){const i=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[h_]:p,...h}={})=>(m,y)=>{var g;const v=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:v,[h_]:p}),_=r.endpoints[n].select(c),w=m(b),k=_(y()),{requestId:x,abort:S}=w,E=k.requestId!==x,A=null==(g=o.get(m))?void 0:g[v],z=()=>_(y()),C=Object.assign(p?w.then(z):E&&!A?Promise.resolve(k):Promise.all([A,w]).then(z),{arg:c,requestId:x,subscriptionOptions:d,queryCacheKey:v,abort:S,async unwrap(){const e=await C;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(c,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(s({queryCacheKey:v,requestId:x}))},updateSubscriptionOptions(e){C.subscriptionOptions=e,m(l({endpointName:n,requestId:x,queryCacheKey:v,options:e}))}});if(!A&&!E&&!p){const e=o.get(m)||{};e[v]=C,o.set(m,e),C.then((()=>{delete e[v],v1(e)||o.delete(m)}))}return C};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:a}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:a}),u=o(l),{requestId:f,abort:d,unwrap:p}=u,h=Mge(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:a}))}}),y=i.get(o)||{};return i.set(o,y),y[f]=m,m.then((()=>{delete y[f],v1(y)||i.delete(o)})),a&&(y[a]=m,m.then((()=>{y[a]===m&&(delete y[a],v1(y)||i.delete(o))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=a.endpointDefinitions[t],c=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=o.get(r))?void 0:i[c]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(oN)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(oN)}}}function iN(e){return e}function Nge({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o}){const i=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:c,getState:l,extra:u})=>{const f=n[e.endpointName];try{let n,o=iN;const d={signal:r,abort:a,dispatch:c,getState:l,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[h_]:void 0;if(p?n=p():f.query?(n=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):n=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&kge.NODE_ENV,n.error)throw new aN(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[f1]:!0})}catch(t){let n=t;if(n instanceof aN){let t=iN;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[f1]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,a,o;const i=null==(a=null==(r=n[e])?void 0:r.queries)?void 0:a[t.queryCacheKey],s=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,c=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}const c=u9(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[f1]:!0}),condition(t,{getState:r}){var a,o,i;const c=r(),l=null==(o=null==(a=c[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,f=t.originalArgs,d=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!_R(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||VU(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=u9(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[f1]:!0})});function u(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:c,mutationThunk:l,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,c=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(o());if(i)r(c());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let c,l={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(jc(s.data)){const[e,t,r]=M8(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(s.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[h_]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(c,l)=>{const u=n[e],f=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(l()),p=fI(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:Cy(YR(e),u(t)),matchFulfilled:Cy(bp(e),u(t)),matchRejected:Cy(S1(e),u(t))}}}}function qU(e,t,n,r){return fI(n[e.meta.arg.endpointName][t],bp(e)?e.payload:void 0,Zw(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function bb(e,t,n){const r=e[t];r&&n(r)}function m_(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function sN(e,t,n){const r=e[m_(t)];r&&n(r)}var sy={};function Lge({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=Ir(`${e}/resetApiState`),u=Ca({name:`${e}/queries`,initialState:sy,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Z0()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){bb(e,t,(e=>{e.data=i9(e.data,n.concat())}))},prepare:Z0()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=_R(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),bb(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{bb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!_R(t.arg))return;const{merge:a}=r[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:s}=t;let c=z_(e.data,(e=>a(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=c}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?BU(Lc(e.data)?OW(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{bb(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),f=Ca({name:`${e}/mutations`,initialState:sy,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=m_(t);n in e&&delete e[n]},prepare:Z0()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[m_(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&sN(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&sN(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),d=Ca({name:`${e}/invalidation`,initialState:sy,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);o.includes(a)||o.push(a)}},prepare:Z0()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(vp(bp(t),Zw(t)),((e,t)=>{const n=qU(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=Ca({name:`${e}/subscriptions`,initialState:sy,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=Ca({name:`${e}/internalSubscriptions`,initialState:sy,reducers:{subscriptionsUpdated:{reducer:(e,t)=>i9(e,t.payload),prepare:Z0()}}}),m=Ca({name:`${e}/config`,initialState:{online:Age(),focused:Tge(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(lI,(e=>{e.online=!0})).addCase(UU,(e=>{e.online=!1})).addCase(cI,(e=>{e.focused=!0})).addCase(FU,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=HR({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>y(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var om=Symbol.for("RTKQ/skipToken"),WU={status:"uninitialized"},cN=z_(WU,(()=>{})),lN=z_(WU,(()=>{}));function jge({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>cN,a=e=>lN;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===om?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??cN},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?m_(e)??om:e,n(t===om?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??lN},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(yR)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:eN(Object.values(t)))??[];for(const e of n)a.add(e)}return eN(Array.from(a.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...xge(e.status)}}function i(e){return e[t]}}var n1=WeakMap?new WeakMap:void 0,fN=({endpointName:e,queryArgs:t})=>{let n="";const r=null==n1?void 0:n1.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Ul(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Ul(t)&&(null==n1||n1.set(t,e)),n=e}return`${e}(${n})`};function Bge(...e){return function(t){const n=Ky((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=fN;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:fN({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Qw(),extractRehydrationInfo:n,hasRehydrationInfo:Ky((e=>null!=n(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Ha(39))}else{a.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function Fge(e){for(let t in e)return!1;return!0}var Uge=2147482.647,Vge=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!Fge(t)}const s={};function c(e,t,r,o){const c=n.endpointDefinitions[t],l=(null==c?void 0:c.keepUnusedDataFor)??o.keepUnusedDataFor;if(l===1/0)return;const u=Math.max(0,Math.min(l,Uge));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(r,a,i)=>{var l;if(o.match(r)){const t=a.getState()[e],{queryCacheKey:n}=r.payload;c(n,null==(l=t.queries[n])?void 0:l.endpointName,a,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=a.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))c(e,null==n?void 0:n.endpointName,a,t.config)}}},qge=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:c})=>{const{removeQueryResult:l}=o.internalActions,u=vp(bp(r),Zw(r)),f=vp(bp(r,a),S1(r,a));let d=[];function p(n,r){const a=r.getState(),i=a[e];if(d.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===v1(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(qU(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(fI(e.payload,void 0,void 0,void 0,void 0,i),t)}},Wge=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const o={};function i({queryCacheKey:t},n){const s=n.getState()[e],c=s.queries[t],u=a.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=l(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&n.dispatch(r(c,t)),i({queryCacheKey:t},n)}),f)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=l(s);if(!Number.isFinite(u))return void c(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},n)}function c(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))c(e)}()}},Hge=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const s=n.getState()[e],c=s.queries,l=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=c[e],a=l[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===v1(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{cI.match(e)&&i(t,"refetchOnFocus"),lI.match(e)&&i(t,"refetchOnReconnect")}},uN=new Error("Promise never resolved before cacheEntryRemoved."),Gge=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=_C(r),s=_C(a),c=bp(r,a),l={};function u(t,r,a,o,i){const s=n.endpointDefinitions[t],c=null==s?void 0:s.onCacheEntryAdded;if(!c)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw uN}))]);d.catch((()=>{})),l[a]=u;const p=e.endpoints[t].select("query"===s.type?r:a),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},y=c(r,m);Promise.resolve(y).catch((e=>{if(e!==uN)throw e}))}return(n,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?m_(t.payload):""}(n);if(r.pending.match(n)){const e=f[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(a.pending.match(n))o.getState()[t].mutations[d]&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(c(n)){const e=l[d];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[d];e&&(delete l[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},Kge=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=YR(n,r),o=S1(n,r),i=bp(n,r),s={};return(n,r)=>{var c,l;if(a(n)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=n.meta,c=t.endpointDefinitions[o],l=null==c?void 0:c.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===c.type?i:a),f=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:f,updateCachedData:"query"===c.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};l(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(c=s[e])||c.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},Qge=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},Yge=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,l={getSubscriptions:c,getSubscriptionCount:e=>v1(c()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=c();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(c,u)=>{if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return a=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,l];const f=((n,r)=>{var a,o,c;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(a=null==n?void 0:n[e])&&a[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=n[o=e.queryCacheKey]??(n[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){const e=n[c=t.queryCacheKey]??(n[c]={});e[a]=t.subscriptionOptions??e[a]??{},l=!0}}return l})(n.currentSubscriptions,c);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=M8(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null}),500));const i="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function Zge(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:Ir(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[Qge,Vge,qge,Wge,Gge,Kge];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=Yge(u),p=Hge(u);return e=>c=>{if(!A8(c))return e(c);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const l={...n,next:e},u=n.getState(),[h,m]=d(c,l,u);let y;if(y=h?e(c):m,n.getState()[t]&&(p(c,l,u),s(c)||a.hasRehydrationInfo(c)))for(let e of f)e(c,l,u);return y}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function tp(e,...t){return Object.assign(e,...t)}var dN=Symbol(),Xge=({createSelector:e=go}={})=>({name:dN,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){UW();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:lI,onOffline:UU,onFocus:cI,onFocusLost:FU},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:b}=Nge({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:_,actions:w}=Lge({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});tp(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:w.resetApiState}),tp(t.internalActions,w);const{middleware:k,actions:x}=Zge({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});tp(t.util,x),tp(t,{reducer:_,middleware:k});const{buildQuerySelector:S,buildMutationSelector:E,selectInvalidatedBy:A,selectCachedArgsForQuery:z}=jge({serializeQueryArgs:o,reducerPath:a,createSelector:e});tp(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:z});const{buildInitiateQuery:C,buildInitiateMutation:I,getRunningMutationThunk:T,getRunningMutationsThunk:R,getRunningQueriesThunk:P,getRunningQueryThunk:j}=Dge({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return tp(t.util,{getRunningMutationThunk:T,getRunningMutationsThunk:R,getRunningQueryThunk:j,getRunningQueriesThunk:P}),{name:dN,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),VU(n)?tp(a.endpoints[e],{name:e,select:S(e,n),initiate:C(e,n)},b(p,e)):Oge(n)&&tp(a.endpoints[e],{name:e,select:E(),initiate:I(e)},b(h,e))}}}});function Jge(e){return"query"===e.type}function e1e(e){return"mutation"===e.type}function wb(e,...t){return Object.assign(e,...t)}function q4(e){return e.replace(e[0],e[0].toUpperCase())}var r1=WeakMap?new WeakMap:void 0,t1e=({endpointName:e,queryArgs:t})=>{let n="";const r=null==r1?void 0:r1.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Ul(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Ul(t)&&(null==r1||r1.set(t,e)),n=e}return`${e}(${n})`},W4=Symbol();function pN(e,t,n,r){const a=v.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=v.useRef(a);return v.useEffect((()=>{o.current.serialized!==a.serialized&&(o.current=a)}),[a]),o.current.serialized===a.serialized?o.current.queryArgs:e}function H4(e){const t=v.useRef(e);return v.useEffect((()=>{Oy(t.current,e)||(t.current=e)}),[e]),Oy(t.current,e)?t.current:e}var n1e=typeof window<"u"&&window.document&&window.document.createElement?v.useLayoutEffect:v.useEffect,r1e=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:jU.pending}:e;function a1e({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:a},unstable__sideEffectsInRender:o,createSelector:i},serializeQueryArgs:s,context:c}){const l=o?e=>e():v.useEffect;return{buildQueryHooks:function(o){const f=(t,{refetchOnReconnect:r,refetchOnFocus:a,refetchOnMountOrArgChange:i,skip:s=!1,pollingInterval:u=0,skipPollingIfUnfocused:f=!1}={})=>{const{initiate:d}=e.endpoints[o],p=n(),h=v.useRef();if(!h.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const m=pN(s?om:t,t1e,c.endpointDefinitions[o],o),y=H4({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:u,skipPollingIfUnfocused:f}),g=v.useRef(!1),b=v.useRef();let{queryCacheKey:_,requestId:w}=b.current||{},k=!1;_&&w&&(k=h.current.isRequestSubscribed(_,w));const x=!k&&g.current;return l((()=>{g.current=k})),l((()=>{x&&(b.current=void 0)}),[x]),l((()=>{var e;const t=b.current;if(m===om)return null==t||t.unsubscribe(),void(b.current=void 0);const n=null==(e=b.current)?void 0:e.subscriptionOptions;if(t&&t.arg===m)y!==n&&t.updateSubscriptionOptions(y);else{null==t||t.unsubscribe();const e=p(d(m,{subscriptionOptions:y,forceRefetch:i}));b.current=e}}),[p,d,i,m,y,x]),v.useEffect((()=>()=>{var e;null==(e=b.current)||e.unsubscribe(),b.current=void 0}),[]),v.useMemo((()=>({refetch:()=>{var e;if(!b.current)throw new Error(Ha(38));return null==(e=b.current)?void 0:e.refetch()}})),[])},d=({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:c}=e.endpoints[o],u=n(),[f,d]=v.useState(W4),p=v.useRef(),h=H4({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i,skipPollingIfUnfocused:s});l((()=>{var e,t;const n=null==(e=p.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=p.current)||t.updateSubscriptionOptions(h))}),[h]);const m=v.useRef(h);l((()=>{m.current=h}),[h]);const y=v.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=u(c(e,{subscriptionOptions:m.current,forceRefetch:!n})),d(e)})),r}),[u,c]);return v.useEffect((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),v.useEffect((()=>{f!==W4&&!p.current&&y(f,!0)}),[f,y]),v.useMemo((()=>[y,f]),[y,f])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:f}=e.endpoints[o],d=pN(n?om:t,s,c.endpointDefinitions[o],o),p=v.useRef(),h=v.useMemo((()=>i([f(d),(e,t)=>t,e=>d],u,{memoizeOptions:{resultEqualityCheck:Oy}})),[f,d]),m=v.useMemo((()=>l?i([h],l,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,l]),y=r((e=>m(e,p.current)),Oy),g=a(),b=h(g.getState(),p.current);return n1e((()=>{p.current=b}),[b]),y};return{useQueryState:p,useQuerySubscription:f,useLazyQuerySubscription:d,useLazyQuery(e){const[t,n]=d(e),r=p(n,{...e,skip:n===W4}),a=v.useMemo((()=>({lastArg:n})),[n]);return v.useMemo((()=>[t,r,a]),[t,r,a])},useQuery(e,t){const n=f(e,t),r=p(e,{selectFromResult:e===om||null!=t&&t.skip?void 0:r1e,...t}),{data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}=r;return v.useDebugValue({data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}),v.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(a){return({selectFromResult:o,fixedCacheKey:s}={})=>{const{select:c,initiate:l}=e.endpoints[a],u=n(),[f,d]=v.useState();v.useEffect((()=>()=>{null!=f&&f.arg.fixedCacheKey||null==f||f.reset()}),[f]);const p=v.useCallback((function(e){const t=u(l(e,{fixedCacheKey:s}));return d(t),t}),[u,l,s]),{requestId:h}=f||{},m=v.useMemo((()=>c({fixedCacheKey:s,requestId:null==f?void 0:f.requestId})),[s,f,c]),y=v.useMemo((()=>o?i([m],o):m),[o,m]),g=r(y,Oy),b=null==s?null==f?void 0:f.arg.originalArgs:void 0,_=v.useCallback((()=>{t((()=>{f&&d(void 0),s&&u(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:s}))}))}),[u,s,f,h]),{endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:z}=g;v.useDebugValue({endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:z});const C=v.useMemo((()=>({...g,originalArgs:b,reset:_})),[g,b,_]);return v.useMemo((()=>[p,C]),[p,C])}},usePrefetch:function(t,r){const a=n(),o=H4(r);return v.useCallback(((n,r)=>a(e.util.prefetch(t,n,{...o,...r}))),[t,a,o])}};function u(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=c.endpointDefinitions[e];s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const a=void 0!==r,o=e.isLoading,i=!a&&o,l=e.isSuccess||o&&a;return{...e,data:r,currentData:e.data,isFetching:o,isLoading:i,isSuccess:l}}}var o1e=Symbol(),i1e=({batch:e=zce,hooks:t={useDispatch:zk,useSelector:qa,useStore:oF},createSelector:n=go,unstable__sideEffectsInRender:r=!1,...a}={})=>({name:o1e,init(a,{serializeQueryArgs:o},i){const s=a,{buildQueryHooks:c,buildMutationHook:l,usePrefetch:u}=a1e({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:i});return wb(s,{usePrefetch:u}),wb(i,{batch:e}),{injectEndpoint(e,t){if(Jge(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=c(e);wb(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),a[`use${q4(e)}Query`]=t,a[`useLazy${q4(e)}Query`]=n}else if(e1e(t)){const t=l(e);wb(s.endpoints[e],{useMutation:t}),a[`use${q4(e)}Mutation`]=t}}}}}),s1e=Bge(Xge(),i1e());const uI="auth_token",HU=()=>localStorage.getItem(uI)||void 0,c1e=e=>localStorage.setItem(uI,e),l1e=()=>localStorage.removeItem(uI),f1e=()=>!!HU(),km={getToken:HU,setToken:c1e,removeToken:l1e,hasToken:f1e},u1e="remote-ready",GU=Ir("reselectUser"),dI=Ir("requestLogin"),KU=Ir("requestLogout"),d1e="host-store-connect",QU=Ir("remoteLogin"),pI=Ir("remoteLogout"),hN=Ir("requestMicroFrontendFetch"),p1e=Ir("sendMicroFrontendFetchResponse"),h1e=e=>{km.removeToken(),e(pI())},m1e=e=>async(t,n,r)=>{const a=await e(t,n,r);return a.error&&[401].includes(a.error.status)&&h1e(n.dispatch),a},g1e=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},y1e=5,_1e=e=>t=>!!e&&t.includes(e.status),mN=e=>new Promise((t=>setTimeout(t,1e3*e))),v1e=e=>async(t,n,r)=>{const a=(null==r?void 0:r.maxRetries)??5;await g1e((()=>n.getState().network.isOnline));let o=0;const i=async()=>{var s,c,l,u;const f=await e(t,n,r),d=f.error;if(o>=a)return f;o>0&&await mN(Math.pow(2,o)),o++;const p=_1e(d);switch(!0){case"mutation"===n.type:return f;case!navigator.onLine:case p([408,404]):case d&&"FETCH_ERROR"===(null==d?void 0:d.status):case d&&d.status>=500:return await i();case 429===(null==(s=null==f?void 0:f.error)?void 0:s.status):{const e=null==(u=null==(l=null==(c=f.meta)?void 0:c.response)?void 0:l.headers)?void 0:u.get("Retry-After");return await mN(+(e||"0")),await i()}default:return f}};return await i()};var Tw=(e=>(e.SERVER_RULES="serverRules",e.EVENT_ATTENDEES="eventAttendees",e))(Tw||{});const Zk="staticState",jb={path:"",baseUrl:"",search:""},b1e=e=>{if(!e)return jb;try{return JSON.parse(decodeURIComponent(e))||jb}catch(e){return z1.error("Error parsing static state",e),jb}},YU=()=>new URLSearchParams(window.location.search).get(Zk),w1e=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:a,search:o}=window.location;return`${Zk}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||a,search:n||o}))}`},k1e=()=>{const e=YU();return e&&localStorage.setItem(Zk,e),ZU()},ZU=()=>{try{const e=localStorage.getItem(Zk)||YU();return b1e(e)}catch(e){return z1.error("Error parsing static state",e),jb}},XU={create:w1e,init:k1e,get:ZU},x1e=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return z1.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},S1e=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const a=x1e(e);t.postMessage(a,"*")}catch(e){z1.error("Failed to process or send message:",e)}},E1e=({onMessage:e,whitelist:t})=>{const n=n=>{const r=n.origin!==window.location.origin,a=n.data&&"object"==typeof n.data&&"type"in n.data,o=t.some((({type:e})=>e===n.data.type||"*"===e));r&&a&&o&&e(n.data)};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},C1e=async e=>{const t={};return e.headers.forEach(((e,n)=>{t[n]=e})),{url:e.url,method:e.method,headers:t,body:e.body?await e.text():null,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},R1e=e=>{const{status:t,statusText:n,headers:r,body:a}=e;return new Response(a,{status:t,statusText:n,headers:r})},A1e=async e=>{const t=crypto.randomUUID();return S1e({action:hN({id:t,options:await C1e(e)}),windowElement:window.parent,whitelist:[hN]}),new Promise((e=>{const t=E1e({onMessage:({payload:{response:n}})=>{t(),e(R1e(n))},whitelist:[p1e]})}))},T1e=()=>{try{return window.self!==window.top}catch{return!0}},I1e=()=>e=>T1e()?A1e(e):fetch(e),P1e=XU.get().baseUrl,$1e=P1e||"",O1e=$ge({fetchFn:I1e(),baseUrl:$1e,responseHandler:e=>{const t=e.headers.get("content-type");return(null==t?void 0:t.startsWith("application/json"))?e.json():e.text()},prepareHeaders:e=>{const t=km.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),z1e=m1e(v1e(O1e)),M1e=s1e({tagTypes:["Secure","Post","Follow","Like","Settings","Rbac_Config","Admin_Apps","Admin_Users","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Group_Apps","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks",...Object.values(Tw)],reducerPath:"openapi",baseQuery:z1e,endpoints:()=>({})}),lr=M1e.injectEndpoints({endpoints:e=>({postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticate:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate",method:"POST",body:e.authRequest,params:{htmlContent:e.htmlContent}})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),postApiV1AccountsReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName,htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AccountsById:e.query({query:e=>({url:`/api/v1/accounts/${e.id}`,params:{htmlContent:e.htmlContent}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,email:e.email,group:e.group,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRole:e.mutation({query:e=>({url:"/api/v1/admin/change/role",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),getApiV1AdminDomainBlockList:e.query({query:e=>({url:"/api/v1/admin/domain-block/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsGroupByGroupId:e.query({query:e=>({url:`/api/v1/apps/group/${e.groupId}`})}),deleteApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"DELETE"})}),putApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"PUT"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.appDataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.appDataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),postApiV1Categories:e.mutation({query:e=>({url:"/api/v1/categories",method:"POST",body:e.categoryCreate})}),getApiV1CategoriesNameByCategoryName:e.query({query:e=>({url:`/api/v1/categories/name/${e.categoryName}`})}),putApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1CategoriesByCategoryId:e.query({query:e=>({url:`/api/v1/categories/${e.categoryId}`})}),deleteApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{shortcode:e.shortcode}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{shortcode:e.shortcode,category:e.category}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{shortcode:e.shortcode}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",body:e.body,params:{shortcode:e.shortcode,visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{limit:e.limit,offset:e.offset,organizerId:e.organizerId,ownerId:e.ownerId,username:e.username}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdLeave:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/leave`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),putApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"PUT",body:e.createForum})}),getApiV1ForumsByForumId:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}`})}),deleteApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"DELETE"})}),getApiV1ForumsByForumIdCategories:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdPosts:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/posts`,params:{forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1ForumsByForumIdTags:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdTagsSearch:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsAccount:e.query({query:e=>({url:"/api/v1/groups/account",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),postApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST"})}),putApiV1GroupsByGroupIdMedia:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/media`,method:"PUT",body:e.groupMediaUpdate})}),putApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"PUT",body:e.groupMemberUpdate})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{bookmarkedOnly:e.bookmarkedOnly,forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,ownerType:e.ownerType,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsBookmarks:e.query({query:()=>({url:"/api/v1/posts/bookmarks"})}),getApiV1PostsFollowing:e.query({query:e=>({url:"/api/v1/posts/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsPublic:e.query({query:e=>({url:"/api/v1/posts/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,ownerType:e.ownerType,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{scope:e.scope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{scope:e.scope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE"})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST"})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST"})}),getApiV1TagsFollowed:e.query({query:()=>({url:"/api/v1/tags/followed"})}),getApiV1TagsTrending:e.query({query:()=>({url:"/api/v1/tags/trending"})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST"})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:()=>({url:"/api/v1/trends/tags"})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{account_id:e.accountId,email:e.email,htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersCheck:e.query({query:e=>({url:"/api/v1/users/check",params:{username:e.username}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInvite:e.mutation({query:e=>({url:"/api/v1/users/invite",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),postApiV1UsersInviteAccept:e.mutation({query:e=>({url:"/api/v1/users/invite/accept",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),getApiV1UsersInviteInviteeEntities:e.query({query:e=>({url:"/api/v1/users/invite/invitee/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeEntitiesByInviterUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/entities/${e.inviterUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInviters:e.query({query:e=>({url:"/api/v1/users/invite/invitee/inviters",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInvitersByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/inviters/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterEntities:e.query({query:e=>({url:"/api/v1/users/invite/inviter/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInvitees:e.query({query:e=>({url:"/api/v1/users/invite/inviter/invitees",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInviteesByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/inviter/invitees/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInviteReject:e.mutation({query:e=>({url:"/api/v1/users/invite/reject",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),postApiV1UsersInviteUndo:e.mutation({query:e=>({url:"/api/v1/users/invite/undo",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{allowDeleted:e.allowDeleted,full:e.full,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})})}),overrideExisting:!1}),{usePostApiV1AccountsAddReasonMutation:aHe,usePostApiV1AccountsAuthenticateMutation:oHe,usePostApiV1AccountsAuthenticateEmailMutation:iHe,usePostApiV1AccountsAuthenticatePhoneMutation:sHe,usePutApiV1AccountsChangeNameMutation:cHe,usePostApiV1AccountsCheckCaptchaMutation:lHe,usePostApiV1AccountsConfirmEmailMutation:fHe,usePostApiV1AccountsConfirmPhoneMutation:uHe,useDeleteApiV1AccountsDeleteMutation:dHe,usePostApiV1AccountsEmailChangeConfirmMutation:pHe,usePostApiV1AccountsEmailChangeRequestMutation:hHe,usePutApiV1AccountsEmailChangeResendCodeMutation:mHe,usePostApiV1AccountsFinishCreatingMutation:gHe,usePutApiV1AccountsGetTokenByHashMutation:yHe,usePostApiV1AccountsLoginsAddEmailPasswordMutation:_He,usePostApiV1AccountsLoginsAddEmailPasswordConfirmMutation:vHe,usePutApiV1AccountsLoginsAddEmailPasswordResendCodeMutation:bHe,usePostApiV1AccountsLoginsAddPhoneMutation:wHe,useDeleteApiV1AccountsLoginsRemoveEmailPasswordMutation:kHe,useDeleteApiV1AccountsLoginsRemovePhoneMutation:xHe,usePostApiV1AccountsPasswordChangeConfirmMutation:SHe,usePostApiV1AccountsPasswordChangeRequestMutation:EHe,usePutApiV1AccountsPasswordChangeResendCodeMutation:CHe,usePostApiV1AccountsPasswordRecoverMutation:RHe,usePostApiV1AccountsPasswordRecoverChangeMutation:AHe,usePostApiV1AccountsPasswordRecoverCheckCodeMutation:THe,usePostApiV1AccountsPhoneChangeConfirmAuthMutation:IHe,usePostApiV1AccountsPhoneChangeConfirmNewPhoneMutation:PHe,usePostApiV1AccountsPhoneChangeNewPhoneMutation:$He,usePutApiV1AccountsPhoneChangeRequestMutation:OHe,usePutApiV1AccountsPhoneChangeResendCodeAuthMutation:zHe,usePutApiV1AccountsPhoneChangeResendCodeNewPhoneMutation:MHe,useGetApiV1AccountsProfileQuery:DHe,usePostApiV1AccountsReselectUserMutation:NHe,usePutApiV1AccountsResendCodeByHashMutation:LHe,usePutApiV1AccountsResendEmailByHashMutation:jHe,usePostApiV1AccountsSignupMutation:BHe,usePostApiV1AccountsSignupPhoneMutation:FHe,usePostApiV1AccountsUserReselectUserMutation:UHe,useGetApiV1AccountsByIdQuery:VHe,useGetApiV1AddressesSuggestQuery:qHe,useGetApiV1AdminAccountByAccountIdQuery:WHe,useGetApiV1AdminAuditLogQuery:HHe,usePutApiV1AdminChangeEmailMutation:GHe,usePutApiV1AdminChangePasswordMutation:KHe,usePutApiV1AdminChangeRoleMutation:QHe,usePostApiV1AdminClearApErrorsMutation:YHe,usePostApiV1AdminCreateAccountMutation:ZHe,useDeleteApiV1AdminDeleteMutation:XHe,useGetApiV1AdminDomainAllowQuery:JHe,usePostApiV1AdminDomainAllowMutation:eGe,useDeleteApiV1AdminDomainAllowByDomainMutation:tGe,usePutApiV1AdminDomainBlockMutation:nGe,useGetApiV1AdminDomainBlockQuery:rGe,usePostApiV1AdminDomainBlockMutation:aGe,useGetApiV1AdminDomainBlockListQuery:oGe,useDeleteApiV1AdminDomainBlockByDomainMutation:iGe,useGetApiV1AdminFederationQuery:sGe,useGetApiV1AdminFederationByDomainQuery:cGe,usePostApiV1AdminFeedClearUserFeedMutation:lGe,usePostApiV1AdminFeedRegenerateUserFeedMutation:fGe,usePostApiV1AdminPostsDeleteMutation:uGe,useDeleteApiV1AdminPurgeMutation:dGe,usePostApiV1AdminRegenerateKeysMutation:pGe,usePostApiV1AdminRegenerateKeysAllMutation:hGe,usePostApiV1AdminReportsDeletePostsMutation:mGe,useGetApiV1AdminReportsListQuery:gGe,useGetApiV1AdminReportsByReportIdQuery:yGe,usePostApiV1AdminReportsByReportIdAddNoteMutation:_Ge,usePostApiV1AdminReportsByReportIdAssignToSelfMutation:vGe,useDeleteApiV1AdminReportsByReportIdDeleteMutation:bGe,usePostApiV1AdminReportsByReportIdRemoveNoteMutation:wGe,usePostApiV1AdminReportsByReportIdReopenMutation:kGe,usePostApiV1AdminReportsByReportIdResolveMutation:xGe,usePostApiV1AdminReportsByReportIdUnassignMutation:SGe,usePostApiV1AdminRestartApDeliveryMutation:EGe,useGetApiV1AdminSearchQuery:CGe,usePutApiV1AdminSignupRequestsApproveByHashMutation:RGe,useDeleteApiV1AdminSignupRequestsDeleteByHashMutation:AGe,useGetApiV1AdminSignupRequestsListQuery:TGe,usePutApiV1AdminSignupRequestsRejectByHashMutation:IGe,useGetApiV1AdminUploadsSearchQuery:PGe,useGetApiV1AdminUploadsStorageByUserIdQuery:$Ge,usePostApiV1AdminUserChangeStateMutation:OGe,useGetApiV1AdminUserByUserIdQuery:zGe,usePostApiV1AppsMutation:MGe,useGetApiV1AppsQuery:DGe,useGetApiV1AppsEnabledQuery:NGe,useGetApiV1AppsGroupByGroupIdQuery:LGe,useDeleteApiV1AppsGroupByGroupIdAndAppIdMutation:jGe,usePutApiV1AppsGroupByGroupIdAndAppIdMutation:BGe,useGetApiV1AppsInstalledQuery:FGe,useGetApiV1AppsUserQuery:UGe,useDeleteApiV1AppsUserByAppIdMutation:VGe,usePutApiV1AppsUserByAppIdMutation:qGe,usePutApiV1AppsByAppIdMutation:WGe,useGetApiV1AppsByAppIdQuery:HGe,useDeleteApiV1AppsByAppIdMutation:GGe,useGetApiV1AppsByAppIdDataQuery:KGe,usePostApiV1AppsByAppIdDataMutation:QGe,usePutApiV1AppsByAppIdDataAndIdMutation:YGe,useDeleteApiV1AppsByAppIdDataAndIdMutation:ZGe,usePutApiV1AppsByAppIdDefaultMutation:XGe,usePutApiV1AppsByAppIdDisableMutation:JGe,usePutApiV1AppsByAppIdEnableMutation:eKe,useGetApiV1AppsByAppIdStatsQuery:tKe,usePutApiV1AppsByAppIdUserDefaultMutation:nKe,useDeleteApiV1AppsByAppIdUserDefaultMutation:rKe,useGetApiV1BlockQuery:aKe,useGetApiV1BlockByQuery:oKe,useDeleteApiV1BlockByUserIdMutation:iKe,usePostApiV1BlockByUserIdMutation:sKe,usePostApiV1CategoriesMutation:cKe,useGetApiV1CategoriesNameByCategoryNameQuery:lKe,usePutApiV1CategoriesByCategoryIdMutation:fKe,useGetApiV1CategoriesByCategoryIdQuery:uKe,useDeleteApiV1CategoriesByCategoryIdMutation:dKe,useGetApiV1CustomEmojisQuery:pKe,useDeleteApiV1CustomEmojisMutation:hKe,usePostApiV1CustomEmojisMutation:mKe,useGetApiV1CustomEmojisExportQuery:gKe,usePostApiV1CustomEmojisImportMutation:yKe,useGetApiV1CustomEmojisSearchQuery:_Ke,usePostApiV1CustomEmojisUploadMutation:vKe,useGetApiV1EventsQuery:bKe,usePostApiV1EventsMutation:wKe,useGetApiV1EventsFollowingQuery:kKe,useGetApiV1EventsMyQuery:xKe,usePutApiV1EventsByEventIdMutation:SKe,useGetApiV1EventsByEventIdQuery:EKe,useDeleteApiV1EventsByEventIdMutation:CKe,usePostApiV1EventsByEventIdAcceptMutation:RKe,useGetApiV1EventsByEventIdAttendeesQuery:AKe,useDeleteApiV1EventsByEventIdAttendeesAndUserIdMutation:TKe,usePostApiV1EventsByEventIdAttendeesAndUserIdMutation:IKe,usePostApiV1EventsByEventIdCancelMutation:PKe,usePostApiV1EventsByEventIdInterestedMutation:$Ke,usePostApiV1EventsByEventIdJoinMutation:OKe,useDeleteApiV1EventsByEventIdLeaveMutation:zKe,usePostApiV1EventsByEventIdMaybeMutation:MKe,useGetApiV1EventsByEventIdMutualQuery:DKe,usePostApiV1EventsByEventIdRejectMutation:NKe,usePostApiV1FaspClearMutation:LKe,useGetApiV1FaspDebugV0CallbackCallbacksQuery:jKe,useDeleteApiV1FaspDebugV0CallbackCallbacksByIdMutation:BKe,usePostApiV1FaspRegistrationMutation:FKe,usePostApiV1FaspByProviderIdCapabilitiesMutation:UKe,usePostApiV1FaspByProviderIdDebugCallMutation:VKe,useGetApiV1FaspByProviderIdRegistrationFinishQuery:qKe,usePostApiV1FaspByProviderIdRegistrationFinishMutation:WKe,usePostApiV1FaspByProviderIdRequestBackfillMutation:HKe,usePutApiV1ForumsByForumIdMutation:GKe,useGetApiV1ForumsByForumIdQuery:KKe,useDeleteApiV1ForumsByForumIdMutation:QKe,useGetApiV1ForumsByForumIdCategoriesQuery:YKe,useGetApiV1ForumsByForumIdPostsQuery:ZKe,useGetApiV1ForumsByForumIdTagsQuery:XKe,useGetApiV1ForumsByForumIdTagsSearchQuery:JKe,useGetApiV1GeoQuery:eQe,useGetApiV1GroupsQuery:tQe,usePostApiV1GroupsMutation:nQe,useGetApiV1GroupsAccountQuery:rQe,useGetApiV1GroupsMemberByUserIdQuery:aQe,useGetApiV1GroupsMemberByUserIdGroupsQuery:oQe,useGetApiV1GroupsNameByGroupnameQuery:iQe,useGetApiV1GroupsSearchQuery:sQe,usePutApiV1GroupsByGroupIdMutation:cQe,useGetApiV1GroupsByGroupIdQuery:lQe,useDeleteApiV1GroupsByGroupIdMutation:fQe,useGetApiV1GroupsByGroupIdForumQuery:uQe,usePostApiV1GroupsByGroupIdForumMutation:dQe,usePostApiV1GroupsByGroupIdJoinMutation:pQe,usePutApiV1GroupsByGroupIdMediaMutation:hQe,usePutApiV1GroupsByGroupIdMembersMutation:mQe,useGetApiV1GroupsByGroupIdMembersQuery:gQe,usePostApiV1GroupsByGroupIdMembersMutation:yQe,useDeleteApiV1GroupsByGroupIdMembersAndMemberIdMutation:_Qe,useGetApiV1GroupsByGroupIdUsersQuery:vQe,useGetApiV1ImportQuery:bQe,usePostApiV1ImportMutation:wQe,usePostApiV1ImportStartByIdMutation:kQe,useGetApiV1ImportByIdQuery:xQe,useGetApiV1InstanceQuery:SQe,useGetApiV1InstanceCountriesQuery:EQe,useGetApiV1InstanceDomainsQuery:CQe,useGetApiV1InstanceExtendedDescriptionQuery:RQe,useGetApiV1InstanceSupportedLanguagesQuery:AQe,useGetApiV1InstanceTimezonesQuery:TQe,useGetApiV1JobsListJobsQuery:IQe,useGetApiV1JobsListStatsQuery:PQe,useGetApiV1JobsListStatsAllQuery:$Qe,useGetApiV1JobsListsQuery:OQe,useGetApiV1JobsStatsQuery:zQe,useGetApiV1JobsStatsPerDayQuery:MQe,useGetApiV1LinksQuery:DQe,useGetApiV1ListsQuery:NQe,usePostApiV1ListsMutation:LQe,usePutApiV1ListsByListIdMutation:jQe,useGetApiV1ListsByListIdQuery:BQe,useDeleteApiV1ListsByListIdMutation:FQe,useGetApiV1ListsByListIdUsersQuery:UQe,useDeleteApiV1ListsByListIdUsersAndUserIdMutation:VQe,usePostApiV1ListsByListIdUsersAndUserIdMutation:qQe,useGetApiV1MuteQuery:WQe,useDeleteApiV1MuteByUserIdMutation:HQe,usePostApiV1MuteByUserIdMutation:GQe,usePutApiV1NotesMutation:KQe,useGetApiV1NotesQuery:QQe,useDeleteApiV1NotesByUserIdMutation:YQe,useGetApiV1NotificationsQuery:ZQe,useGetApiV1NotificationsCountQuery:XQe,usePostApiV1NotificationsMarkAllMutation:JQe,useGetApiV1NotificationsByIdQuery:eYe,usePostApiV1NotificationsByIdMarkMutation:tYe,usePostApiV1PollsByPollIdRefreshMutation:nYe,usePostApiV1PollsByPollIdVoteMutation:rYe,useGetApiV1PostsQuery:aYe,usePostApiV1PostsMutation:oYe,useGetApiV1PostsBookmarksQuery:iYe,useGetApiV1PostsFollowingQuery:sYe,useGetApiV1PostsLikedQuery:cYe,useGetApiV1PostsMentionedQuery:lYe,useGetApiV1PostsMyQuery:fYe,useGetApiV1PostsPinsQuery:uYe,useDeleteApiV1PostsPinsByPostIdMutation:dYe,usePostApiV1PostsPinsByPostIdMutation:pYe,useGetApiV1PostsPublicQuery:hYe,useGetApiV1PostsRepliesQuery:mYe,useGetApiV1PostsSubscribeQuery:gYe,usePutApiV1PostsByPostIdMutation:yYe,useGetApiV1PostsByPostIdQuery:_Ye,useDeleteApiV1PostsByPostIdMutation:vYe,useDeleteApiV1PostsByPostIdBookmarkMutation:bYe,usePostApiV1PostsByPostIdBookmarkMutation:wYe,useGetApiV1PostsByPostIdCommentsQuery:kYe,usePostApiV1PostsByPostIdCommentsMutation:xYe,usePutApiV1PostsByPostIdCommentsAndCommentIdMutation:SYe,useDeleteApiV1PostsByPostIdCommentsAndCommentIdMutation:EYe,usePostApiV1PostsByPostIdDetachMutation:CYe,useGetApiV1PostsByPostIdEditsQuery:RYe,useGetApiV1PostsByPostIdLikesQuery:AYe,useDeleteApiV1PostsByPostIdLikesMutation:TYe,usePostApiV1PostsByPostIdLikesMutation:IYe,usePostApiV1PostsByPostIdRefreshCardMutation:PYe,useDeleteApiV1PostsByPostIdRepostMutation:$Ye,usePostApiV1PostsByPostIdRepostMutation:OYe,useGetApiV1PostsByPostIdRepostsQuery:zYe,usePostApiV1PostsByPostIdSubscribeMutation:MYe,useDeleteApiV1PostsByPostIdSubscribeMutation:DYe,usePostApiV1PostsByPostIdTranslateMutation:NYe,useGetApiV1RbacQuery:LYe,useGetApiV1RbacActorsByActorIdPermissionsQuery:jYe,useGetApiV1RbacActorsByActorIdRolesQuery:BYe,usePutApiV1RbacRolesByRoleIdMutation:FYe,useGetApiV1RbacScopesByScopeRolesQuery:UYe,usePostApiV1RbacScopesByScopeRolesMutation:VYe,useDeleteApiV1RbacScopesByScopeRolesAndRoleNameMutation:qYe,useGetApiV1RbacByResourceQuery:WYe,usePostApiV1ReportsMutation:HYe,usePutApiV1RulesMutation:GYe,useGetApiV1RulesQuery:KYe,usePostApiV1RulesMutation:QYe,usePostApiV1RulesReorderMutation:YYe,useDeleteApiV1RulesByIdMutation:ZYe,useGetApiV1SearchQuery:D1e,useDeleteApiV1SessionsAllMutation:XYe,useGetApiV1SessionsListQuery:JYe,usePutApiV1SessionsRevokeAllMutation:eZe,usePutApiV1SessionsRevokeBySessionKeyMutation:tZe,useDeleteApiV1SessionsBySessionKeyMutation:nZe,usePutApiV1SettingsMutation:rZe,useGetApiV1SettingsQuery:aZe,useDeleteApiV1SettingsMutation:oZe,usePutApiV1SettingsUserMutation:iZe,useGetApiV1SettingsUserQuery:sZe,useDeleteApiV1SettingsUserMutation:cZe,useGetApiV1TagsFeaturedQuery:lZe,useDeleteApiV1TagsFeaturedByNameMutation:fZe,usePostApiV1TagsFeaturedByNameMutation:uZe,usePostApiV1TagsFollowByNameMutation:dZe,useGetApiV1TagsFollowedQuery:pZe,useGetApiV1TagsTrendingQuery:hZe,usePostApiV1TagsUnfollowByNameMutation:mZe,useGetApiV1TagsByNameQuery:gZe,usePostApiV1TranslateTextMutation:yZe,useGetApiV1TrendsLinksQuery:_Ze,useGetApiV1TrendsPostsQuery:vZe,useGetApiV1TrendsTagsQuery:bZe,usePostApiV1UploadsMutation:wZe,usePostApiV1UploadsBatchMutation:kZe,usePostApiV1UploadsListMutation:xZe,useGetApiV1UploadsSearchQuery:SZe,useGetApiV1UploadsUsagesQuery:EZe,useGetApiV1UploadsByIdQuery:CZe,useDeleteApiV1UploadsByIdMutation:RZe,usePostApiV1UploadsByIdMetaMutation:AZe,usePutApiV1UploadsByIdMetaMutation:TZe,usePostApiV1UploadsByIdTagsMutation:IZe,usePutApiV1UploadsByIdTagsMutation:PZe,usePostApiV1UploadsByIdThumbnailMutation:$Ze,useGetApiV1UserAliasQuery:OZe,useDeleteApiV1UserAliasMutation:zZe,usePostApiV1UserAliasMutation:MZe,useGetApiV1UserDomainBlockQuery:DZe,useDeleteApiV1UserDomainBlockByDomainMutation:NZe,usePostApiV1UserDomainBlockByDomainMutation:LZe,useDeleteApiV1UsersMutation:jZe,usePostApiV1UsersMutation:BZe,useGetApiV1UsersQuery:FZe,useGetApiV1UsersCheckQuery:UZe,useGetApiV1UsersConnectionsQuery:VZe,usePostApiV1UsersFollowByUsernameMutation:qZe,usePostApiV1UsersFollowByUsernameAcceptMutation:WZe,usePostApiV1UsersFollowByUsernamePendMutation:HZe,usePostApiV1UsersFollowByUsernameRejectMutation:GZe,usePostApiV1UsersFollowByUsernameUndoMutation:KZe,useGetApiV1UsersFolloweesQuery:QZe,useGetApiV1UsersFollowersQuery:YZe,usePostApiV1UsersInviteMutation:ZZe,usePostApiV1UsersInviteAcceptMutation:XZe,useGetApiV1UsersInviteInviteeEntitiesQuery:JZe,useGetApiV1UsersInviteInviteeEntitiesByInviterUserQuery:eXe,useGetApiV1UsersInviteInviteeInvitersQuery:tXe,useGetApiV1UsersInviteInviteeInvitersByEntityUserQuery:nXe,useGetApiV1UsersInviteInviterEntitiesQuery:rXe,useGetApiV1UsersInviteInviterInviteesQuery:aXe,useGetApiV1UsersInviteInviterInviteesByEntityUserQuery:oXe,usePostApiV1UsersInviteRejectMutation:iXe,usePostApiV1UsersInviteUndoMutation:sXe,useGetApiV1UsersRelationshipsQuery:cXe,useGetApiV1UsersRemoteByUserNameFullFollowersQuery:lXe,useGetApiV1UsersRemoteByUserNameFullFollowingQuery:fXe,useGetApiV1UsersRenameHistoryQuery:uXe,usePutApiV1UsersByUserIdMutation:dXe,useGetApiV1UsersByUserIdQuery:pXe,useGetApiV1UsersByUserIdFollowersQuery:hXe,useGetApiV1UsersByUserIdFollowingQuery:mXe,usePutApiV1UsersByUserIdMediaMutation:gXe}=lr,gN={400:{title:"",description:"You have no permission ..."},401:{title:"Unauthorized",description:"Your access is restricted. Please ensure you have the correct login details"},404:{title:"Oh no, bad luck!",description:"Looks like the page you were looking for has been removed. Just in case, please make sure to check your spelling."},user404:{title:"We could not find the user you were looking for",description:"Check the username and try one more time",links:[{text:"To the Wellsley account",link:"/account"},{text:"To account settings",link:"/account/settings"}]},page404:{title:"We could not find the page you were looking for",description:"Check the address and try one more time"},post404:{title:"We could not find the post you were looking for",description:"Check the address and try one more time"},403:{title:"",description:"Your session has been expired. Please re-login again."},440:{title:"",description:"You have reached maximum allowed number of concurrent sessions."},460:{title:"",description:"Please re-login again."},498:{title:"Expired",description:"The link was expired or invalid. Please try again."},500:{title:"Oops, something went wrong!",description:'We are already on it. Please try again later or contact us at <a href="mailto:support@wave.video">support@wave.video</a>'}},G4=e=>gN[e]||gN[500],Bl=e=>{var t,n;if(!e)return G4(500).description;if(hu.isString(e))return e;if("data"in e&&hu.isString(e.data))return e.data;if("data"in e&&null!=(t=e.data)&&t.errorCode)return null==(n=e.data)?void 0:n.message;if("isUnhandledError"in e&&!e.isUnhandledError){const{status:t,data:n}=null==e?void 0:e.error;return(hu.isString(n)?n:null==n?void 0:n.message)||G4(t||500).description}return"message"in e&&e.message?e.message:"error"in e?e.error:"status"in e?G4(e.status).description:void 0},jt=async(e,t,n)=>{try{return await e,t&&Ft.success(t),e}catch(e){null==n||n(),Ft.error(Bl(e))}};
88
88
  /**
89
89
  * @remix-run/router v1.15.2
90
90
  *
@@ -94,7 +94,7 @@ var EW=Object.defineProperty,CW=(e,t,n)=>t in e?EW(e,t,{enumerable:!0,configurab
94
94
  * LICENSE.md file in the root directory of this source tree.
95
95
  *
96
96
  * @license MIT
97
- */function vR(){return vR=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},vR.apply(this,arguments)}var yN,_N;function _p(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function JU(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function N1e(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?JU(e):e;return{pathname:n?n.startsWith("/")?n:L1e(n,t):t,search:V1e(r),hash:q1e(a)}}function L1e(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function K4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function j1e(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function B1e(e,t){let n=j1e(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function F1e(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=JU(e):(a=vR({},e),_p(!a.pathname||!a.pathname.includes("?"),K4("?","pathname","search",a)),_p(!a.pathname||!a.pathname.includes("#"),K4("#","pathname","hash",a)),_p(!a.search||!a.search.includes("#"),K4("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=N1e(a,o),l=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(yN||(yN={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(_N||(_N={}));const U1e=e=>e.join("/").replace(/\/\/+/g,"/"),V1e=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q1e=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",eV=["post","put","patch","delete"];new Set(eV);const W1e=["get",...eV];function bR(){return bR=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},bR.apply(this,arguments)}new Set(W1e);const tV=v.createContext(null),nV=v.createContext(null),rV=v.createContext(null),hI=v.createContext({outlet:null,matches:[],isDataRoute:!1});function aV(){return null!=v.useContext(rV)}function Xk(){return aV()||_p(!1),v.useContext(rV).location}function oV(e){v.useContext(nV).static||v.useLayoutEffect(e)}function mI(){let{isDataRoute:e}=v.useContext(hI);return e?Y1e():H1e()}function H1e(){aV()||_p(!1);let e=v.useContext(tV),{basename:t,future:n,navigator:r}=v.useContext(nV),{matches:a}=v.useContext(hI),{pathname:o}=Xk(),i=JSON.stringify(B1e(a,n.v7_relativeSplatPath)),s=v.useRef(!1);return oV((()=>{s.current=!0})),v.useCallback((function(n,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof n)return void r.go(n);let c=F1e(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:U1e([t,c.pathname])),(a.replace?r.replace:r.push)(c,a.state,a)}),[t,r,i,o,e])}var iV=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(iV||{}),sV=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(sV||{});function G1e(e){let t=v.useContext(tV);return t||_p(!1),t}function K1e(e){let t=v.useContext(hI);return t||_p(!1),t}function Q1e(e){let t=K1e(),n=t.matches[t.matches.length-1];return n.route.id||_p(!1),n.route.id}function Y1e(){let{router:e}=G1e(iV.UseNavigateStable),t=Q1e(sV.UseNavigateStable),n=v.useRef(!1);return oV((()=>{n.current=!0})),v.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,bR({fromRouteId:t},a)))}),[e,t])}new Promise((()=>{}));const vN={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!!km.getToken(),isAuthenticated:!1},Hl=Ca({name:"auth",initialState:vN,reducers:{login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...vN,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}}),Z1e={data:null,isPending:!1,isSuccess:!1},Jo=Ca({name:"userNoHTML",initialState:Z1e,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}});var bN,Q4={};function X1e(){return bN||(bN=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],n=[],r=[],a=[],o=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeBefore=e=>o(e,t),e.subscribeAfter=e=>o(e,n);const i=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeActionBefore=(e,t)=>i({action:e,listener:t},r),e.subscribeActionAfter=(e,t)=>i({action:e,listener:t},a),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{r.length=0},e.unsubscribeAfter=()=>{n.length=0},e.unsubscribeActionsAfter=()=>{a.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const s=(e,t)=>{const n=e.filter((({action:e})=>e!==t));e.length=0,e.concat(n)};e.unsubscribeActionBefore=e=>{s(r,e)},e.unsubscribeActionAfter=e=>{s(a,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r(e)}},l=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r.action===e.type&&r.listener(e)}};e.subscribeActionMiddleware=e=>e=>o=>{c(o,t),l(o,r);const i=e(o);return c(o,n),l(o,a),i},e.default=e.subscribeActionMiddleware}(Q4)),Q4}var J1e=X1e();const e0e=Ql(J1e),gI=e=>e,cV=go(gI,(e=>e.data)),t0e=go(gI,(e=>e.error)),n0e=go(gI,(e=>e.isPending)),r0e=go(cV,(e=>null==e?void 0:e.rules)),a0e={data:null,isPending:!1},Bb=Ca({name:"instanceInfo",initialState:a0e,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:cV,selectInstanceInfoError:t0e,selectInstanceInfoPending:n0e,selectPlatformRules:r0e,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),wN={data:{userId:"",list:[]},count:{},isPending:!1},o0e=e=>e,i0e=e=>e.error,s0e=e=>e.isPending,c0e=e=>{var t;return null==(t=e.count)?void 0:t.total},l0e=e=>{var t;return null==(t=e.count)?void 0:t.unread},f0e=e=>e.data.userId,yI=go(o0e,(e=>e.data.list)),u0e=go(yI,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),d0e=go(yI,(e=>null==e?void 0:e.at(-1))),zl=Ca({name:"notifications",initialState:wN,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setError:(e,t)=>{e.error=t.payload},setNotifications:(e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}},addNotification:(e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])},markNotification:(e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))},updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},setTotalCount:(e,t)=>{e.count.total=t.payload},setUnreadCount:(e,t)=>{e.count.unread=t.payload},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))},resetState:()=>wN,undoNotitication:(e,t)=>{var n,r,a;const o=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===o)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(a=e.data.list)?void 0:a.filter((e=>e.id!==o)))||[]}},selectors:{selectError:i0e,selectIsPending:s0e,selectTotalCount:c0e,selectUnreadCount:l0e,selectNotifications:yI,selectUnreadNotifications:u0e,selectLastNotification:d0e,selectNotificationsOwner:f0e}});function p0e(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const h0e={isOnline:p0e()},m0e=Ca({name:"network",initialState:h0e,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}});var g0e={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/settings/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/settings/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.14.0/bin",TURBO_HASH:"c842ef5034645afc",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_package_name:"@wellesley/settings",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.141",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/settings"};const av=jH(lr,m0e,RT,Hl,fa,Jo,Bb,zl,Qy,Ry);let vy;const y0e=e=>{const t=fH({devTools:{name:g0e.APP_NAME},reducer:av,preloadedState:e,middleware:e=>e().concat(lr.middleware,e0e)});return vy=t,t},g_=e=>vy||(vy=y0e(e),vy),_0e={path:"",transitionPath:""},Us=Ca({name:"router",initialState:_0e,reducers:{setPath:(e,{payload:t})=>{t!==e.path&&(e.path=t)},requestChangePath:(e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)}},selectors:{selectPath:e=>e.path,selectTransitionPath:e=>e.transitionPath}}).injectInto(av);var kN,by={exports:{}},v0e=by.exports;
97
+ */function vR(){return vR=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},vR.apply(this,arguments)}var yN,_N;function _p(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function JU(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function N1e(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?JU(e):e;return{pathname:n?n.startsWith("/")?n:L1e(n,t):t,search:V1e(r),hash:q1e(a)}}function L1e(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function K4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function j1e(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function B1e(e,t){let n=j1e(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function F1e(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=JU(e):(a=vR({},e),_p(!a.pathname||!a.pathname.includes("?"),K4("?","pathname","search",a)),_p(!a.pathname||!a.pathname.includes("#"),K4("#","pathname","hash",a)),_p(!a.search||!a.search.includes("#"),K4("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=N1e(a,o),l=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(yN||(yN={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(_N||(_N={}));const U1e=e=>e.join("/").replace(/\/\/+/g,"/"),V1e=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q1e=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",eV=["post","put","patch","delete"];new Set(eV);const W1e=["get",...eV];function bR(){return bR=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},bR.apply(this,arguments)}new Set(W1e);const tV=v.createContext(null),nV=v.createContext(null),rV=v.createContext(null),hI=v.createContext({outlet:null,matches:[],isDataRoute:!1});function aV(){return null!=v.useContext(rV)}function Xk(){return aV()||_p(!1),v.useContext(rV).location}function oV(e){v.useContext(nV).static||v.useLayoutEffect(e)}function mI(){let{isDataRoute:e}=v.useContext(hI);return e?Y1e():H1e()}function H1e(){aV()||_p(!1);let e=v.useContext(tV),{basename:t,future:n,navigator:r}=v.useContext(nV),{matches:a}=v.useContext(hI),{pathname:o}=Xk(),i=JSON.stringify(B1e(a,n.v7_relativeSplatPath)),s=v.useRef(!1);return oV((()=>{s.current=!0})),v.useCallback((function(n,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof n)return void r.go(n);let c=F1e(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:U1e([t,c.pathname])),(a.replace?r.replace:r.push)(c,a.state,a)}),[t,r,i,o,e])}var iV=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(iV||{}),sV=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(sV||{});function G1e(e){let t=v.useContext(tV);return t||_p(!1),t}function K1e(e){let t=v.useContext(hI);return t||_p(!1),t}function Q1e(e){let t=K1e(),n=t.matches[t.matches.length-1];return n.route.id||_p(!1),n.route.id}function Y1e(){let{router:e}=G1e(iV.UseNavigateStable),t=Q1e(sV.UseNavigateStable),n=v.useRef(!1);return oV((()=>{n.current=!0})),v.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,bR({fromRouteId:t},a)))}),[e,t])}new Promise((()=>{}));const vN={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!!km.getToken(),isAuthenticated:!1},Hl=Ca({name:"auth",initialState:vN,reducers:{login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...vN,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}}),Z1e={data:null,isPending:!1,isSuccess:!1},Jo=Ca({name:"userNoHTML",initialState:Z1e,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}});var bN,Q4={};function X1e(){return bN||(bN=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],n=[],r=[],a=[],o=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeBefore=e=>o(e,t),e.subscribeAfter=e=>o(e,n);const i=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeActionBefore=(e,t)=>i({action:e,listener:t},r),e.subscribeActionAfter=(e,t)=>i({action:e,listener:t},a),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{r.length=0},e.unsubscribeAfter=()=>{n.length=0},e.unsubscribeActionsAfter=()=>{a.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const s=(e,t)=>{const n=e.filter((({action:e})=>e!==t));e.length=0,e.concat(n)};e.unsubscribeActionBefore=e=>{s(r,e)},e.unsubscribeActionAfter=e=>{s(a,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r(e)}},l=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r.action===e.type&&r.listener(e)}};e.subscribeActionMiddleware=e=>e=>o=>{c(o,t),l(o,r);const i=e(o);return c(o,n),l(o,a),i},e.default=e.subscribeActionMiddleware}(Q4)),Q4}var J1e=X1e();const e0e=Ql(J1e),gI=e=>e,cV=go(gI,(e=>e.data)),t0e=go(gI,(e=>e.error)),n0e=go(gI,(e=>e.isPending)),r0e=go(cV,(e=>null==e?void 0:e.rules)),a0e={data:null,isPending:!1},Bb=Ca({name:"instanceInfo",initialState:a0e,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:cV,selectInstanceInfoError:t0e,selectInstanceInfoPending:n0e,selectPlatformRules:r0e,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),wN={data:{userId:"",list:[]},count:{},isPending:!1},o0e=e=>e,i0e=e=>e.error,s0e=e=>e.isPending,c0e=e=>{var t;return null==(t=e.count)?void 0:t.total},l0e=e=>{var t;return null==(t=e.count)?void 0:t.unread},f0e=e=>e.data.userId,yI=go(o0e,(e=>e.data.list)),u0e=go(yI,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),d0e=go(yI,(e=>null==e?void 0:e.at(-1))),zl=Ca({name:"notifications",initialState:wN,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setError:(e,t)=>{e.error=t.payload},setNotifications:(e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}},addNotification:(e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])},markNotification:(e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))},updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},setTotalCount:(e,t)=>{e.count.total=t.payload},setUnreadCount:(e,t)=>{e.count.unread=t.payload},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))},resetState:()=>wN,undoNotitication:(e,t)=>{var n,r,a;const o=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===o)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(a=e.data.list)?void 0:a.filter((e=>e.id!==o)))||[]}},selectors:{selectError:i0e,selectIsPending:s0e,selectTotalCount:c0e,selectUnreadCount:l0e,selectNotifications:yI,selectUnreadNotifications:u0e,selectLastNotification:d0e,selectNotificationsOwner:f0e}});function p0e(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const h0e={isOnline:p0e()},m0e=Ca({name:"network",initialState:h0e,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}});var g0e={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/settings/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/settings/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.14.0/bin",TURBO_HASH:"ef0c1e62b4142a53",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",npm_package_name:"@wellesley/settings",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.142",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/settings",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/settings"};const av=jH(lr,m0e,RT,Hl,fa,Jo,Bb,zl,Qy,Ry);let vy;const y0e=e=>{const t=fH({devTools:{name:g0e.APP_NAME},reducer:av,preloadedState:e,middleware:e=>e().concat(lr.middleware,e0e)});return vy=t,t},g_=e=>vy||(vy=y0e(e),vy),_0e={path:"",transitionPath:""},Us=Ca({name:"router",initialState:_0e,reducers:{setPath:(e,{payload:t})=>{t!==e.path&&(e.path=t)},requestChangePath:(e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)}},selectors:{selectPath:e=>e.path,selectTransitionPath:e=>e.transitionPath}}).injectInto(av);var kN,by={exports:{}},v0e=by.exports;
98
98
  /**
99
99
  * @license
100
100
  * Lodash <https://lodash.com/>