@wellesley/openapi 1.0.163 → 1.0.165
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.
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $E=Object.defineProperty,zE=(e,t,n)=>t in e?$E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yu=(e,t,n)=>zE(e,"symbol"!=typeof t?t+"":t,n);function WE(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 Wu(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 gu=()=>Math.random().toString(36).substring(7).split("").join("."),GE={INIT:`@@redux/INIT${gu()}`,REPLACE:`@@redux/REPLACE${gu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gu()}`},Df=GE;function Fn(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 HE(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Df.INIT})>"u")throw new Error(Wu(12));if(typeof n(void 0,{type:Df.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Wu(13))}))}function QE(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const s=t[r];"function"==typeof e[s]&&(n[s]=e[s])}const r=Object.keys(n);let s;try{HE(n)}catch(e){s=e}return function(e={},t){if(s)throw s;let o=!1;const i={};for(let s=0;s<r.length;s++){const a=r[s],u=n[a],c=e[a],l=u(c,t);if(typeof l>"u")throw t&&t.type,new Error(Wu(14));i[a]=l,o=o||l!==c}return o=o||r.length!==Object.keys(e).length,o?i:e}}function vh(e){return Fn(e)&&"type"in e&&"string"==typeof e.type}var Ic=Symbol.for("immer-nothing"),Ei=Symbol.for("immer-draftable"),wt=Symbol.for("immer-state");function ot(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ir=Object.getPrototypeOf;function Ht(e){return!!e&&!!e[wt]}function Qt(e){var t;return!!e&&(Sh(e)||Array.isArray(e)||!!e[Ei]||!(null==(t=e.constructor)||!t[Ei])||Qi(e)||qi(e))}var qE=Object.prototype.constructor.toString();function Sh(e){if(!e||"object"!=typeof e)return!1;const t=ir(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)===qE}function KE(e){return Ht(e)||ot(15,e),e[wt].base_}function Nr(e,t){0===sr(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function sr(e){const t=e[wt];return t?t.type_:Array.isArray(e)?1:Qi(e)?2:qi(e)?3:0}function Di(e,t){return 2===sr(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _u(e,t){return 2===sr(e)?e.get(t):e[t]}function Ih(e,t,n){const r=sr(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function YE(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Qi(e){return e instanceof Map}function qi(e){return e instanceof Set}function tr(e){return e.copy_||e.base_}function Gu(e,t){if(Qi(e))return new Map(e);if(qi(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Sh(e))return ir(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[wt];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const s=r[t],o=n[s];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[s]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[s]})}return Object.create(ir(e),n)}function Ec(e,t=!1){return Bo(e)||Ht(e)||!Qt(e)||(sr(e)>1&&(e.set=e.add=e.clear=e.delete=JE),Object.freeze(e),t&&Nr(e,((e,t)=>Ec(t,!0)))),e}function JE(){ot(2)}function Bo(e){return Object.isFrozen(e)}var xi,Hu={};function or(e){const t=Hu[e];return t||ot(0,e),t}function XE(e,t){Hu[e]||(Hu[e]=t)}function Eh(){return xi}function ZE(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function xf(e,t){t&&(or("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Qu(e){qu(e),e.drafts_.forEach(e0),e.drafts_=null}function qu(e){e===xi&&(xi=e.parent_)}function Bf(e){return xi=ZE(xi,e)}function e0(e){const t=e[wt];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Vf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[wt].modified_&&(Qu(t),ot(4)),Qt(e)&&(e=So(t,e),t.parent_||Io(t,e)),t.patches_&&or("Patches").generateReplacementPatches_(n[wt].base_,e,t.patches_,t.inversePatches_)):e=So(t,n,[]),Qu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ic?e:void 0}function So(e,t,n){if(Bo(t))return t;const r=t[wt];if(!r)return Nr(t,((s,o)=>Lf(e,r,t,s,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Io(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let s=t,o=!1;3===r.type_&&(s=new Set(t),t.clear(),o=!0),Nr(s,((s,i)=>Lf(e,r,t,s,i,n,o))),Io(e,t,!1),n&&e.patches_&&or("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Lf(e,t,n,r,s,o,i){if(Ht(s)){const i=So(e,s,o&&t&&3!==t.type_&&!Di(t.assigned_,r)?o.concat(r):void 0);if(Ih(n,r,i),!Ht(i))return;e.canAutoFreeze_=!1}else i&&n.add(s);if(Qt(s)&&!Bo(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;So(e,s),(!t||!t.scope_.parent_)&&Io(e,s)}}function Io(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ec(t,n)}function t0(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Eh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=r,o=bc;n&&(s=[r],o=Bi);const{revoke:i,proxy:a}=Proxy.revocable(s,o);return r.draft_=a,r.revoke_=i,a}var bc={get(e,t){if(t===wt)return e;const n=tr(e);if(!Di(n,t))return n0(e,n,t);const r=n[t];return e.finalized_||!Qt(r)?r:r===vu(e.base_,t)?(Su(e),e.copy_[t]=Yu(r,e)):r},has:(e,t)=>t in tr(e),ownKeys:e=>Reflect.ownKeys(tr(e)),set(e,t,n){const r=bh(tr(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=vu(tr(e),t),s=null==r?void 0:r[wt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(YE(n,r)&&(void 0!==n||Di(e.base_,t)))return!0;Su(e),Ku(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!==vu(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Su(e),Ku(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=tr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){ot(11)},getPrototypeOf:e=>ir(e.base_),setPrototypeOf(){ot(12)}},Bi={};function vu(e,t){const n=e[wt];return(n?tr(n):e)[t]}function n0(e,t,n){var r;const s=bh(t,n);return s?"value"in s?s.value:null==(r=s.get)?void 0:r.call(e.draft_):void 0}function bh(e,t){if(!(t in e))return;let n=ir(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=ir(n)}}function Ku(e){e.modified_||(e.modified_=!0,e.parent_&&Ku(e.parent_))}function Su(e){e.copy_||(e.copy_=Gu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Nr(bc,((e,t)=>{Bi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Bi.deleteProperty=function(e,t){return Bi.set.call(this,e,t,void 0)},Bi.set=function(e,t,n){return bc.set.call(this,e[0],t,n,e[0])};var r0=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,...s){return r.produce(e,(e=>t.call(this,e,...s)))}}let r;if("function"!=typeof t&&ot(6),void 0!==n&&"function"!=typeof n&&ot(7),Qt(e)){const s=Bf(this),o=Yu(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?Qu(s):qu(s)}return xf(s,n),Vf(r,s)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Ic&&(r=void 0),this.autoFreeze_&&Ec(r,!0),n){const t=[],s=[];or("Patches").generateReplacementPatches_(e,r,t,s),n(t,s)}return r}ot(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){Qt(e)||ot(8),Ht(e)&&(e=wh(e));const t=Bf(this),n=Yu(e,void 0);return n[wt].isManual_=!0,qu(t),n}finishDraft(e,t){const n=e&&e[wt];(!n||!n.isManual_)&&ot(9);const{scope_:r}=n;return xf(r,t),Vf(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=or("Patches").applyPatches_;return Ht(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function Yu(e,t){const n=Qi(e)?or("MapSet").proxyMap_(e,t):qi(e)?or("MapSet").proxySet_(e,t):t0(e,t);return(t?t.scope_:Eh()).drafts_.push(n),n}function wh(e){return Ht(e)||ot(10,e),Ah(e)}function Ah(e){if(!Qt(e)||Bo(e))return e;const t=e[wt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Gu(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Gu(e,!0);return Nr(n,((e,t)=>{Ih(n,e,Ah(t))})),t&&(t.finalized_=!1),n}function i0(){const e="replace",t="add",n="remove";function r(e){if(!Qt(e))return e;if(Array.isArray(e))return e.map(r);if(Qi(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(qi(e))return new Set(Array.from(e).map(r));const t=Object.create(ir(e));for(const n in e)t[n]=r(e[n]);return Di(e,Ei)&&(t[Ei]=e[Ei]),t}function s(e){return Ht(e)?r(e):e}XE("Patches",{applyPatches_:function(s,o){return o.forEach((o=>{const{path:i,op:a}=o;let u=s;for(let e=0;e<i.length-1;e++){const t=sr(u);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&ot(19),"function"==typeof u&&"prototype"===n&&ot(19),u=_u(u,n),"object"!=typeof u&&ot(18,i.join("/"))}const c=sr(u),l=r(o.value),p=i[i.length-1];switch(a){case e:switch(c){case 2:return u.set(p,l);case 3:ot(16);default:return u[p]=l}case t:switch(c){case 1:return"-"===p?u.push(l):u.splice(p,0,l);case 2:return u.set(p,l);case 3:return u.add(l);default:return u[p]=l}case n:switch(c){case 1:return u.splice(p,1);case 2:return u.delete(p);case 3:return u.delete(o.value);default:return delete u[p]}default:ot(17,a)}})),s},generatePatches_:function(r,o,i,a){switch(r.type_){case 0:case 2:return function(r,o,i,a){const{base_:u,copy_:c}=r;Nr(r.assigned_,((r,l)=>{const p=_u(u,r),d=_u(c,r),f=l?Di(u,r)?e:t:n;if(p===d&&f===e)return;const m=o.concat(r);i.push(f===n?{op:f,path:m}:{op:f,path:m,value:d}),a.push(f===t?{op:n,path:m}:f===n?{op:t,path:m,value:s(p)}:{op:e,path:m,value:s(p)})}))}(r,o,i,a);case 1:return function(r,o,i,a){let{base_:u,assigned_:c}=r,l=r.copy_;l.length<u.length&&([u,l]=[l,u],[i,a]=[a,i]);for(let t=0;t<u.length;t++)if(c[t]&&l[t]!==u[t]){const n=o.concat([t]);i.push({op:e,path:n,value:s(l[t])}),a.push({op:e,path:n,value:s(u[t])})}for(let e=u.length;e<l.length;e++){const n=o.concat([e]);i.push({op:t,path:n,value:s(l[e])})}for(let e=l.length-1;u.length<=e;--e){const t=o.concat([e]);a.push({op:n,path:t})}}(r,o,i,a);case 3:return function(e,r,s,o){let{base_:i,copy_:a}=e,u=0;i.forEach((e=>{if(!a.has(e)){const i=r.concat([u]);s.push({op:n,path:i,value:e}),o.unshift({op:t,path:i,value:e})}u++})),u=0,a.forEach((e=>{if(!i.has(e)){const i=r.concat([u]);s.push({op:t,path:i,value:e}),o.unshift({op:n,path:i,value:e})}u++}))}(r,o,i,a)}},generateReplacementPatches_:function(t,n,r,s){r.push({op:e,path:[],value:n===Ic?void 0:n}),s.push({op:e,path:[],value:t})}})}var kt=new r0,Ki=kt.produce,Th=kt.produceWithPatches.bind(kt);kt.setAutoFreeze.bind(kt),kt.setUseStrictShallowCopy.bind(kt);var Nf=kt.applyPatches.bind(kt);function s0(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function o0(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function a0(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}]`)}}kt.createDraft.bind(kt),kt.finishDraft.bind(kt);var Uf=e=>Array.isArray(e)?e:[e];function u0(e){const t=Array.isArray(e[0])?e[0]:e;return a0(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function c0(e,t){const n=[],{length:r}=e;for(let s=0;s<r;s++)n.push(e[s].apply(null,t));return n}var l0=class{constructor(e){this.value=e}deref(){return this.value}},d0=typeof WeakRef<"u"?WeakRef:l0,f0=0,Ff=1;function Xs(){return{s:f0,v:void 0,o:null,p:null}}function Vi(e,t={}){let n=Xs();const{resultEqualityCheck:r}=t;let s,o=0;function i(){var t;let i=n;const{length:a}=arguments;for(let e=0,t=a;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=Xs(),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=Xs(),e.set(t,i)):i=n}}const u=i;let c;if(i.s===Ff?c=i.v:(c=e.apply(null,arguments),o++),u.s=Ff,r){const e=(null==(t=null==s?void 0:s.deref)?void 0:t.call(s))??s;null!=e&&r(e,c)&&(c=e,0!==o&&o--),s="object"==typeof c&&null!==c||"function"==typeof c?new d0(c):c}return u.v=c,c}return i.clearCache=()=>{n=Xs(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function Rh(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,s=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),s0(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const a={...n,...o},{memoize:u,memoizeOptions:c=[],argsMemoize:l=Vi,argsMemoizeOptions:p=[],devModeChecks:d={}}=a,f=Uf(c),m=Uf(p),h=u0(e),y=u((function(){return r++,i.apply(null,arguments)}),...f),g=l((function(){s++;const e=c0(h,arguments);return t=y.apply(null,e),t}),...m);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:h,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var wc=Rh(Vi),p0=Object.assign(((e,t=wc)=>{o0(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:()=>p0}),h0=(...e)=>{const t=Rh(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Ht(e)?wh(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};h0(Vi);var m0=e=>e&&"function"==typeof e.match;function mt(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(yt(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=>vh(t)&&t.type===e,n}function jf(e){return Qt(e)?Ki(e,(()=>{})):e}function $f(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(yt(10));const r=n.insert(t,e);return e.set(t,r),r}var vi="RTK_autoBatch",yi=()=>e=>({payload:e,meta:{[vi]:!0}});function Ch(e){const t={},n=[];let r;const s={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(yt(28));if(r in t)throw new Error(yt(29));return t[r]=n,s},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),s),addDefaultCase:e=>(r=e,s)};return e(s),[t,n,r]}function y0(e){return"function"==typeof e}function g0(e,t){let n,[r,s,o]=Ch(t);if(y0(e))n=()=>jf(e());else{const t=jf(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...s.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(Ht(e)){const r=n(e,t);return void 0===r?e:r}if(Qt(e))return Ki(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(yt(9))}return r}}return e}),e)}return i.getInitialState=n,i}var _0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ac=(e=21)=>{let t="",n=e;for(;n--;)t+=_0[64*Math.random()|0];return t},kh=(e,t)=>m0(e)?e.match(t):e(t);function jn(...e){return t=>e.some((e=>kh(e,t)))}function bi(...e){return t=>e.every((e=>kh(e,t)))}function Vo(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 Yi(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Tc(...e){return 0===e.length?e=>Vo(e,["pending"]):Yi(e)?t=>jn(...e.map((e=>e.pending)))(t):Tc()(e[0])}function Ur(...e){return 0===e.length?e=>Vo(e,["rejected"]):Yi(e)?t=>jn(...e.map((e=>e.rejected)))(t):Ur()(e[0])}function Lo(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||Yi(e)?n=>bi(Ur(...e),t)(n):Lo()(e[0])}function $n(...e){return 0===e.length?e=>Vo(e,["fulfilled"]):Yi(e)?t=>jn(...e.map((e=>e.fulfilled)))(t):$n()(e[0])}function Ju(...e){return 0===e.length?e=>Vo(e,["pending","fulfilled","rejected"]):Yi(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return jn(...n)(t)}:Ju()(e[0])}var v0=["name","message","stack","code"],Iu=class{constructor(e,t){yu(this,"_type"),this.payload=e,this.meta=t}},zf=class{constructor(e,t){yu(this,"_type"),this.payload=e,this.meta=t}},S0=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of v0)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},Wf=(()=>{function e(e,t,n){const r=mt(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),s=mt(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=mt(e+"/rejected",((e,t,r,s,o)=>({payload:s,error:(n&&n.serializeError||S0)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!s,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,a,u)=>{const c=null!=n&&n.idGenerator?n.idGenerator(e):Ac(),l=new AbortController;let p,d;function f(e){d=e,l.abort()}const m=async function(){var m,h;let y;try{let o=null==(m=null==n?void 0:n.condition)?void 0:m.call(n,e,{getState:a,extra:u});if(E0(o)&&(o=await o),!1===o||l.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{p=()=>{t({name:"AbortError",message:d||"Aborted"})},l.signal.addEventListener("abort",p)}));i(s(c,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:c,arg:e},{getState:a,extra:u}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:a,extra:u,requestId:c,signal:l.signal,abort:f,rejectWithValue:(e,t)=>new Iu(e,t),fulfillWithValue:(e,t)=>new zf(e,t)})).then((t=>{if(t instanceof Iu)throw t;return t instanceof zf?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(t){y=t instanceof Iu?o(null,c,e,t.payload,t.meta):o(t,c,e)}finally{p&&l.signal.removeEventListener("abort",p)}return n&&!n.dispatchConditionRejection&&o.match(y)&&y.meta.condition||i(y),y}();return Object.assign(m,{abort:f,requestId:c,arg:e,unwrap:()=>m.then(I0)})}}),{pending:s,rejected:o,fulfilled:r,settled:jn(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function I0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function E0(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var b0=Symbol.for("rtk-slice-createasyncthunk");function w0(e,t){return`${e}/${t}`}function A0({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[b0];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(yt(11));const s=("function"==typeof e.reducers?e.reducers(R0()):e.reducers)||{},o=Object.keys(s),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(yt(12));if(n in i.sliceCaseReducersByType)throw new Error(yt(13));return i.sliceCaseReducersByType[n]=t,a},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),a),exposeAction:(e,t)=>(i.actionCreators[e]=t,a),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,a)};function u(){const[t={},n=[],r]="function"==typeof e.extraReducers?Ch(e.extraReducers):[e.extraReducers],s={...t,...i.sliceCaseReducersByType};return g0(e.initialState,(e=>{for(let t in s)e.addCase(t,s[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=s[r],i={reducerName:r,type:w0(t,r),createNotation:"function"==typeof e.reducers};k0(o)?O0(i,o,a,n):C0(i,o,a)}));const c=e=>e,l=new Map;let p;function d(e,t){return p||(p=u()),p(e,t)}function f(){return p||(p=u()),p.getInitialState()}function m(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=f()),r}function s(t=c){const r=$f(l,n,{insert:()=>new WeakMap});return $f(r,t,{insert:()=>{const r={};for(const[s,o]of Object.entries(e.selectors??{}))r[s]=T0(o,t,f,n);return r}})}return{reducerPath:t,getSelectors:s,get selectors(){return s(r)},selectSlice:r}}const h={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:f,...m(r),injectInto(e,{reducerPath:t,...n}={}){const s=t??r;return e.inject({reducerPath:s,reducer:d},n),{...h,...m(s,!0)}}};return h}}function T0(e,t,n,r){function s(s,...o){let i=t(s);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return s.unwrapped=e,s}var xn=A0();function R0(){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 C0({type:e,reducerName:t,createNotation:n},r,s){let o,i;if("reducer"in r){if(n&&!M0(r))throw new Error(yt(17));o=r.reducer,i=r.prepare}else o=r;s.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?mt(e,i):mt(e))}function k0(e){return"asyncThunk"===e._reducerDefinitionType}function M0(e){return"reducerWithPrepare"===e._reducerDefinitionType}function O0({type:e,reducerName:t},n,r,s){if(!s)throw new Error(yt(18));const{payloadCreator:o,fulfilled:i,pending:a,rejected:u,settled:c,options:l}=n,p=s(e,o,l);r.exposeAction(t,p),i&&r.addCase(p.fulfilled,i),a&&r.addCase(p.pending,a),u&&r.addCase(p.rejected,u),c&&r.addMatcher(p.settled,c),r.exposeCaseReducer(t,{fulfilled:i||Zs,pending:a||Zs,rejected:u||Zs,settled:c||Zs})}function Zs(){}var P0=(e,t)=>{if("function"!=typeof e)throw new Error(yt(32))},Rc="listenerMiddleware",D0=e=>{let{type:t,actionCreator:n,matcher:r,predicate:s,effect:o}=e;if(t)s=mt(t).match;else if(n)t=n.type,s=n.match;else if(r)s=r;else if(!s)throw new Error(yt(21));return P0(o),{predicate:s,type:t,effect:o}},x0=Object.assign((e=>{const{type:t,predicate:n,effect:r}=D0(e);return{id:Ac(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(yt(22))}}}),{withTypes:()=>x0}),B0=Object.assign(mt(`${Rc}/add`),{withTypes:()=>B0});mt(`${Rc}/removeAll`);var V0=Object.assign(mt(`${Rc}/remove`),{withTypes:()=>V0});function yt(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. `}var L0={DISTRIB_RELEASE:"24.04",JDK_18:"/usr/lib/jvm/java-1.8.0-amazon-corretto",TEAMCITY_PROJECT_NAME:"Web Apps",USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/false ci/teamcity",rvm_pretty_print_flag:"0",NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS:"20",TEAMCITY_PROCESS_PARENT_FLOW_ID:"",ANDROID_SDK_HOME:"/home/teamcity/android-sdk-linux",DOTNET_CLI_TELEMETRY_OPTOUT:"true",JDK_11_x64:"/usr/lib/jvm/java-11-amazon-corretto",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",SHLVL:"0",npm_config_noproxy:"",BUILD_VCS_NUMBER:"e7919ec2538e6c582b86e0f14d7672b861ebd3f7",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/22056",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/openapi/package.json",ANDROID_SDKMANAGER_PATH:"/home/teamcity/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager",TEAMCITY_BUILD_PROPERTIES_FILE:"/mnt/agent/temp/buildTmp/teamcity.build.parameters",npm_package_engines_node:">=20.2.0",rvm_stored_umask:"0022",GRADLE_HOME:"/opt/gradle",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",npm_config_userconfig:"/home/teamcity/.npmrc",rvm_user_install_flag:"1",BUILD_VCS_NUMBER_WebApps:"e7919ec2538e6c582b86e0f14d7672b861ebd3f7",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1376",COLOR:"1",TEAMCITY_BUILDCONF_NAME:"Apps",DISTRIB_DESCRIPTION:"Ubuntu 24.04.2 LTS",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"true",TMPDIR:"/mnt/agent/temp/buildTmp",LOGNAME:"teamcity",JOURNAL_STREAM:"8:11531",TEMP:"/mnt/agent/temp/buildTmp",_:"/usr/bin/nohup",npm_config_npm_version:"10.9.2",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",rvm_bin_path:"/home/teamcity/.rvm/bin",IRBRC:"/home/teamcity/.rvm/rubies/ruby-3.3.7/.irbrc",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/teamcity-agent.service/memory.pressure",P4CONFIG:".p4config",RUBY_VERSION:"ruby-3.3.7",npm_config_cache:"/home/teamcity/.npm",DOTNET_ROOT:"/usr/share/dotnet",JDK_1_8:"/usr/lib/jvm/java-1.8.0-amazon-corretto",MNT_MOUNT:"/dev/nvme1n1 on /mnt type ext4 (rw,noatime)",TEAMCITY_GIT_PATH:"/usr/local/bin/git",AWS_SHARED_CREDENTIALS_FILE:"/mnt/agent/temp/agentTmp/aws.credentials",DISTRIB_ID:"Ubuntu",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/openapi/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",INVOCATION_ID:"753d12a58e154b53b22cb26ece7f8b62",JDK_11_0:"/usr/lib/jvm/java-11-amazon-corretto",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",TEAMCITY_CAPTURE_ENV:'"/usr/lib/jvm/java-21-amazon-corretto/bin/java" -jar "/home/teamcity/agent/plugins/environment-fetcher/lib/environment-fetcher-bin-2025.03-186049-jar-with-dependencies.jar"',TURBO_HASH:"5ec376fc56aef4cc",npm_package_name:"@wellesley/openapi",DISTRIB_CODENAME:"noble",JDK_21_0:"/usr/lib/jvm/java-21-amazon-corretto",npm_config_color:"always",DOMAIN_ENV:"test",MY_RUBY_HOME:"/home/teamcity/.rvm/rubies/ruby-3.3.7",TEAMCITY_VERSION:"2025.03 (build 186049)",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"2691",NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS:"20",UID:"1001",AWS_PROFILE:"default",GOPATH:"/home/teamcity/go",JDK_17_0:"/usr/lib/jvm/java-17-amazon-corretto",SHELL:"/bin/bash",TEAMCITY_AGENT_OPTS:"-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs/agent_%p.hprof -Dteamcity.internal.hosted.server.technicalName=PREINIT_AGENT",USE_NPM_VENDOR:"false",npm_lifecycle_event:"build",npm_package_version:"1.0.163",JDK_1_8_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",rvm_loaded_flag:"1",rvm_prefix:"/home/teamcity",GEM_HOME:"/home/teamcity/.rvm/gems/ruby-3.3.7",TURBO_INVOCATION_DIR:"/mnt/agent/work/70fcd8585843667f",JDK_11_0_x64:"/usr/lib/jvm/java-11-amazon-corretto",JDK_21_0_x64:"/usr/lib/jvm/java-21-amazon-corretto",rvm_version:"1.29.12 (latest)",WELLESLEY_APPS:"tooter.zip\nforum.zip\nsettings.zip\naccount.zip\nadmin.zip\nerror.zip\nevents.zip\nhost.zip\ngroup-settings.zip\ngroup-profile.zip\nuser-profile.zip\ndiscover.zip",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",GEM_PATH:"/home/teamcity/.rvm/gems/ruby-3.3.7:/home/teamcity/.rvm/gems/ruby-3.3.7@global",JAVA_HOME:"/usr/lib/jvm/java-21-amazon-corretto",PWD:"/mnt/agent/work/70fcd8585843667f/packages/openapi",TEAMCITY_AGENT_MEM_OPTS:"-Xmx512m",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",ANDROID_HOME:"/home/teamcity/android-sdk-linux",JDK_11:"/usr/lib/jvm/java-11-amazon-corretto",TEAMCITY_GIT_VERSION:"2.47.1.0",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",TEAMCITY_PROCESS_FLOW_ID:"924698992448",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",rvm_ruby_string:"ruby-3.3.7",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",rvm_path:"/home/teamcity/.rvm",EDITOR:"vi",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/openapi",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/openapi"},Mh=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Mh||{});function N0(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function U0(e){return new RegExp("(^|:)//").test(e)}var F0=e=>e.replace(/\/$/,""),j0=e=>e.replace(/^\//,"");function $0(e,t){if(!e)return t;if(!t)return e;if(U0(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=F0(e)}${n}${t=j0(t)}`}var Gf=e=>[].concat(...e);function z0(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function W0(){return typeof document>"u"||"hidden"!==document.visibilityState}var Hf=Fn;function Oh(e,t){if(e===t||!(Hf(e)&&Hf(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let s=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const r of n)o[r]=Oh(e[r],t[r]),s&&(s=e[r]===o[r]);return s?e:o}var Qf=(...e)=>fetch(...e),G0=e=>e.status>=200&&e.status<=299,H0=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function qf(e){if(!Fn(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function Q0({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=Qf,paramsSerializer:r,isJsonContentType:s=H0,jsonContentType:o="application/json",jsonReplacer:i,timeout:a,responseHandler:u,validateStatus:c,...l}={}){return typeof fetch>"u"&&n===Qf&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,f)=>{const{signal:m,getState:h,extra:y,endpoint:g,forced:v,type:A}=f;let _,{url:b,headers:I=new Headers(l.headers),params:S,responseHandler:w=u??"json",validateStatus:E=c??G0,timeout:k=a,...P}="string"==typeof d?{url:d}:d,T={...l,signal:m,...P};I=new Headers(qf(I)),T.headers=await t(I,{getState:h,extra:y,endpoint:g,forced:v,type:A})||I;const M=e=>"object"==typeof e&&(Fn(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!T.headers.has("content-type")&&M(T.body)&&T.headers.set("content-type",o),M(T.body)&&s(T.headers)&&(T.body=JSON.stringify(T.body,i)),S){const e=~b.indexOf("?")?"&":"?";b+=e+(r?r(S):new URLSearchParams(qf(S)))}b=$0(e,b);const C=new Request(b,T);_={request:new Request(b,T)};let R,V=!1,O=k&&setTimeout((()=>{V=!0,f.abort()}),k);try{R=await n(C)}catch(e){return{error:{status:V?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:_}}finally{O&&clearTimeout(O)}const B=R.clone();_.response=B;let x,D="";try{let e;if(await Promise.all([p(R,w).then((e=>x=e),(t=>e=t)),B.text().then((e=>D=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:D,error:String(e)},meta:_}}return E(R,x)?{data:x,meta:_}:{error:{status:R.status,data:x},meta:_}};async function p(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=s(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var Kf=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Cc=mt("__rtkq/focused"),Ph=mt("__rtkq/unfocused"),kc=mt("__rtkq/online"),Dh=mt("__rtkq/offline");function xh(e){return"query"===e.type}function q0(e){return"mutation"===e.type}function Mc(e,t,n,r,s,o){return K0(e)?e(t,n,r,s).map(Xu).map(o):Array.isArray(e)?e.map(Xu).map(o):[]}function K0(e){return"function"==typeof e}function Xu(e){return"string"==typeof e?{type:e}:e}function Yf(e){return null!=e}function Lr(e){let t=0;for(const n in e)t++;return t}function Y0(e,t){return e.catch(t)}var Li=Symbol("forceQueryFn"),Zu=e=>"function"==typeof e[Li];function J0({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:s}){const o=new Map,i=new Map,{unsubscribeQueryResult:a,removeMutationResult:u,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,s){const i=(u,{subscribe:l=!0,forceRefetch:p,subscriptionOptions:d,[Li]:f,...m}={})=>(h,y)=>{var g;const v=e({queryArgs:u,endpointDefinition:s,endpointName:n}),A=t({...m,type:"query",subscribe:l,forceRefetch:p,subscriptionOptions:d,endpointName:n,originalArgs:u,queryCacheKey:v,[Li]:f}),_=r.endpoints[n].select(u),b=h(A),I=_(y()),{requestId:S,abort:w}=b,E=I.requestId!==S,k=null==(g=o.get(h))?void 0:g[v],P=()=>_(y()),T=Object.assign(f?b.then(P):E&&!k?Promise.resolve(I):Promise.all([k,b]).then(P),{arg:u,requestId:S,subscriptionOptions:d,queryCacheKey:v,abort:w,async unwrap(){const e=await T;if(e.isError)throw e.error;return e.data},refetch:()=>h(i(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){l&&h(a({queryCacheKey:v,requestId:S}))},updateSubscriptionOptions(e){T.subscriptionOptions=e,h(c({endpointName:n,requestId:S,queryCacheKey:v,options:e}))}});if(!k&&!E&&!f){const e=o.get(h)||{};e[v]=T,o.set(h,e),T.then((()=>{delete e[v],Lr(e)||o.delete(h)}))}return T};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:s}={})=>(o,a)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:s}),l=o(c),{requestId:p,abort:d,unwrap:f}=l,m=Y0(l.unwrap().then((e=>({data:e}))),(e=>({error:e}))),h=Object.assign(m,{arg:l.arg,requestId:p,abort:d,unwrap:f,reset:()=>{o(u({requestId:p,fixedCacheKey:s}))}}),y=i.get(o)||{};return i.set(o,y),y[p]=h,h.then((()=>{delete y[p],Lr(y)||i.delete(o)})),s&&(y[s]=h,h.then((()=>{y[s]===h&&(delete y[s],Lr(y)||i.delete(o))}))),h}},getRunningQueryThunk:function(t,n){return r=>{var i;const a=s.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:a,endpointName:t});return null==(i=o.get(r))?void 0:i[u]}},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(Yf)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(Yf)}}}function Jf(e){return e}function X0({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:s,assertTagType:o}){const i=async(e,{signal:r,abort:s,rejectWithValue:o,fulfillWithValue:i,dispatch:u,getState:c,extra:l})=>{const p=n[e.endpointName];try{let n,o=Jf;const d={signal:r,abort:s,dispatch:u,getState:c,extra:l,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?a(e,c()):void 0},f="query"===e.type?e[Li]:void 0;if(f?n=f():p.query?(n=await t(p.query(e.originalArgs),d,p.extraOptions),p.transformResponse&&(o=p.transformResponse)):n=await p.queryFn(e.originalArgs,d,p.extraOptions,(e=>t(e,d,p.extraOptions))),typeof process<"u"&&L0.NODE_ENV,n.error)throw new Kf(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[vi]:!0})}catch(t){let n=t;if(n instanceof Kf){let t=Jf;p.query&&p.transformErrorResponse&&(t=p.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[vi]:!0})}catch(e){n=e}}throw console.error(n),n}};function a(t,n){var r,s,o;const i=null==(s=null==(r=n[e])?void 0:r.queries)?void 0:s[t.queryCacheKey],a=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,u=null==i?void 0:i.fulfilledTimeStamp,c=t.forceRefetch??(t.subscribe&&a);return!!c&&(!0===c||(Number(new Date)-Number(u))/1e3>=c)}const u=Wf(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[vi]:!0}),condition(t,{getState:r}){var s,o,i;const u=r(),c=null==(o=null==(s=u[e])?void 0:s.queries)?void 0:o[t.queryCacheKey],l=null==c?void 0:c.fulfilledTimeStamp,p=t.originalArgs,d=null==c?void 0:c.originalArgs,f=n[t.endpointName];return!!Zu(t)||"pending"!==(null==c?void 0:c.status)&&(!!(a(t,u)||xh(f)&&null!=(i=null==f?void 0:f.forceRefetch)&&i.call(f,{currentArg:p,previousArg:d,endpointState:c,state:u}))||!l)},dispatchConditionRejection:!0}),c=Wf(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[vi]:!0})});function l(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:u,mutationThunk:c,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,a=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,u=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return s.endpoints[e].initiate(t,r)},c=s.endpoints[e].select(t)(o());if(i)r(u());else if(a){const e=null==c?void 0:c.fulfilledTimeStamp;if(!e)return void r(u());(Number(new Date)-Number(new Date(e)))/1e3>=a&&r(u())}else r(u(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const a=s.endpoints[e].select(t)(i());let u,c={patches:[],inversePatches:[],undo:()=>o(s.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===a.status)return c;if("data"in a)if(Qt(a.data)){const[e,t,r]=Th(a.data,n);c.patches.push(...t),c.inversePatches.push(...r),u=e}else u=n(a.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:a.data});return o(s.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(s.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Li]:()=>({data:n})})),patchQueryData:(e,t,i,a)=>(u,c)=>{const l=n[e],p=r({queryArgs:t,endpointDefinition:l,endpointName:e});if(u(s.internalActions.queryResultPatched({queryCacheKey:p,patches:i})),!a)return;const d=s.endpoints[e].select(t)(c()),f=Mc(l.providesTags,d.data,void 0,t,{},o);u(s.internalActions.updateProvidedBy({queryCacheKey:p,providedTags:f}))},buildMatchThunkActions:function(e,t){return{matchPending:bi(Tc(e),l(t)),matchFulfilled:bi($n(e),l(t)),matchRejected:bi(Ur(e),l(t))}}}}function Bh(e,t,n,r){return Mc(n[e.meta.arg.endpointName][t],$n(e)?e.payload:void 0,Lo(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function eo(e,t,n){const r=e[t];r&&n(r)}function Ni(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Xf(e,t,n){const r=e[Ni(t)];r&&n(r)}var gi={};function Z0({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:s,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:a,config:u}){const c=mt(`${e}/resetApiState`),l=xn({name:`${e}/queries`,initialState:gi,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:yi()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){eo(e,t,(e=>{e.data=Nf(e.data,n.concat())}))},prepare:yi()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const s=Zu(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),eo(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=s&&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})=>{eo(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!Zu(t.arg))return;const{merge:s}=r[t.arg.endpointName];if(e.status="fulfilled",s)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:a}=t;let u=Ki(e.data,(e=>s(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:a})));e.data=u}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?Oh(Ht(e.data)?KE(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:s,payload:o})=>{eo(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??s}}))})).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)}))}}),p=xn({name:`${e}/mutations`,initialState:gi,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Ni(t);n in e&&delete e[n]},prepare:yi()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:s}})=>{r.track&&(e[Ni(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:s})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&Xf(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&&Xf(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=xn({name:`${e}/invalidation`,initialState:gi,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:s,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(s);-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(s)||o.push(s)}},prepare:yi()}},extraReducers(e){e.addCase(l.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:s}=o(t);for(const[t,o]of Object.entries(s))for(const[s,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=s||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(jn($n(t),Lo(t)),((e,t)=>{const n=Bh(t,"providesTags",r,a),{queryCacheKey:s}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:s,providedTags:n}))}))}}),f=xn({name:`${e}/subscriptions`,initialState:gi,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=xn({name:`${e}/internalSubscriptions`,initialState:gi,reducers:{subscriptionsUpdated:{reducer:(e,t)=>Nf(e,t.payload),prepare:yi()}}}),h=xn({name:`${e}/config`,initialState:{online:z0(),focused:W0(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&s===t||"conflict"}},extraReducers:e=>{e.addCase(kc,(e=>{e.online=!0})).addCase(Dh,(e=>{e.online=!1})).addCase(Cc,(e=>{e.focused=!0})).addCase(Ph,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=QE({queries:l.reducer,mutations:p.reducer,provided:d.reducer,subscriptions:m.reducer,config:h.reducer});return{reducer:(e,t)=>y(c.match(t)?void 0:e,t),actions:{...h.actions,...l.actions,...f.actions,...m.actions,...p.actions,...d.actions,resetApiState:c}}}var nr=Symbol.for("RTKQ/skipToken"),Vh={status:"uninitialized"},Zf=Ki(Vh,(()=>{})),ep=Ki(Vh,(()=>{}));function eb({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>Zf,s=e=>ep;return{buildQuerySelector:function(t,s){return a=>{const u=e({queryArgs:a,endpointDefinition:s,endpointName:t});return n(a===nr?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[u])??Zf},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Ni(e)??nr:e,n(t===nr?s:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??ep},o)}},selectInvalidatedBy:function(e,n){const r=e[t],s=new Set;for(const e of n.map(Xu)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:Gf(Object.values(t)))??[];for(const e of n)s.add(e)}return Gf(Array.from(s.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,...N0(e.status)}}function i(e){return e[t]}}var kr=WeakMap?new WeakMap:void 0,tp=({endpointName:e,queryArgs:t})=>{let n="";const r=null==kr?void 0:kr.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Fn(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Fn(t)&&(null==kr||kr.set(t,e)),n=e}return`${e}(${n})`};function tb(...e){return function(t){const n=Vi((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=tp;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:tp({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},s={endpointDefinitions:{},batch(e){e()},apiUid:Ac(),extractRehydrationInfo:n,hasRehydrationInfo:Vi((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 s.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(yt(39))}else{s.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(s.endpointDefinitions[e]):Object.assign(s.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,s)));return o.injectEndpoints({endpoints:t.endpoints})}}function nb(e){for(let t in e)return!1;return!0}var rb=2147482.647,ib=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:s,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!nb(t)}const a={};function u(e,t,r,o){const u=n.endpointDefinitions[t],c=(null==u?void 0:u.keepUnusedDataFor)??o.keepUnusedDataFor;if(c===1/0)return;const l=Math.max(0,Math.min(c,rb));if(!i(e)){const t=a[e];t&&clearTimeout(t),a[e]=setTimeout((()=>{i(e)||r.dispatch(s({queryCacheKey:e})),delete a[e]}),1e3*l)}}return(r,s,i)=>{var c;if(o.match(r)){const t=s.getState()[e],{queryCacheKey:n}=r.payload;u(n,null==(c=t.queries[n])?void 0:c.endpointName,s,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(a))t&&clearTimeout(t),delete a[e];if(n.hasRehydrationInfo(r)){const t=s.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))u(e,null==n?void 0:n.endpointName,s,t.config)}}},sb=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:s,api:o,assertTagType:i,refetchQuery:a,internalState:u})=>{const{removeQueryResult:c}=o.internalActions,l=jn($n(r),Lo(r)),p=jn($n(r,s),Ur(r,s));let d=[];function f(n,r){const s=r.getState(),i=s[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 l=d;if(d=[],0===l.length)return;const p=o.util.selectInvalidatedBy(s,l);t.batch((()=>{const e=Array.from(p.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=u.currentSubscriptions[t]??{};e&&(0===Lr(n)?r.dispatch(c({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(a(e,t)))}}))}return(e,t)=>{l(e)?f(Bh(e,"invalidatesTags",n,i),t):p(e)?f([],t):o.util.invalidateTags.match(e)&&f(Mc(e.payload,void 0,void 0,void 0,void 0,i),t)}},ob=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:s})=>{const o={};function i({queryCacheKey:t},n){const a=n.getState()[e],u=a.queries[t],l=s.currentSubscriptions[t];if(!u||"uninitialized"===u.status)return;const{lowestPollingInterval:p,skipPollingIfUnfocused:d}=c(l);if(!Number.isFinite(p))return;const f=o[t];null!=f&&f.timeout&&(clearTimeout(f.timeout),f.timeout=void 0);const m=Date.now()+p;o[t]={nextPollTimestamp:m,pollingInterval:p,timeout:setTimeout((()=>{(a.config.focused||!d)&&n.dispatch(r(u,t)),i({queryCacheKey:t},n)}),p)}}function a({queryCacheKey:t},n){const r=n.getState()[e].queries[t],a=s.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:l}=c(a);if(!Number.isFinite(l))return void u(t);const p=o[t],d=Date.now()+l;(!p||d<p.nextPollTimestamp)&&i({queryCacheKey:t},n)}function u(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function c(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))&&a(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&a(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))u(e)}()}},ab=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:s})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const a=n.getState()[e],u=a.queries,c=s.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=u[e],s=c[e];s&&t&&((Object.values(s).some((e=>!0===e[i]))||Object.values(s).every((e=>void 0===e[i]))&&a.config[i])&&(0===Lr(s)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{Cc.match(e)&&i(t,"refetchOnFocus"),kc.match(e)&&i(t,"refetchOnReconnect")}},np=new Error("Promise never resolved before cacheEntryRemoved."),ub=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:s,internalState:o})=>{const i=Ju(r),a=Ju(s),u=$n(r,s),c={};function l(t,r,s,o,i){const a=n.endpointDefinitions[t],u=null==a?void 0:a.onCacheEntryAdded;if(!u)return;let l={};const p=new Promise((e=>{l.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{l.valueResolved=e})),p.then((()=>{throw np}))]);d.catch((()=>{})),c[s]=l;const f=e.endpoints[t].select("query"===a.type?r:s),m=o.dispatch(((e,t,n)=>n)),h={...o,getCacheEntry:()=>f(o.getState()),requestId:i,extra:m,updateCachedData:"query"===a.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:p},y=u(r,h);Promise.resolve(y).catch((e=>{if(e!==np)throw e}))}return(n,o,p)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:a(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Ni(t.payload):""}(n);if(r.pending.match(n)){const e=p[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&l(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(s.pending.match(n))o.getState()[t].mutations[d]&&l(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(u(n)){const e=c[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=c[d];e&&(delete c[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(c))delete c[e],t.cacheEntryRemoved()}},cb=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const s=Tc(n,r),o=Ur(n,r),i=$n(n,r),a={};return(n,r)=>{var u,c;if(s(n)){const{requestId:s,arg:{endpointName:o,originalArgs:i}}=n.meta,u=t.endpointDefinitions[o],c=null==u?void 0:u.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),a[s]=t;const l=e.endpoints[o].select("query"===u.type?i:s),p=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>l(r.getState()),requestId:s,extra:p,updateCachedData:"query"===u.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};c(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(u=a[e])||u.resolve({data:n.payload,meta:t}),delete a[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(c=a[e])||c.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete a[e]}}},lb=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},db=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let s=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:a}=e.internalActions,u=()=>n.currentSubscriptions,c={getSubscriptions:u,getSubscriptionCount:e=>Lr(u()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=u();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(u,l)=>{if(s||(s=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(u))return s=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,c];const p=((n,r)=>{var s,o,u;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(s=null==n?void 0:n[e])&&s[t]&&(n[e][t]=o),!0}if(a.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,s=n[o=e.queryCacheKey]??(n[o]={});return s[`${t}_running`]={},e.subscribe&&(s[t]=e.subscriptionOptions??s[t]??{}),!0}let c=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;c||(c=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:s}}=r;if(e&&t.subscribe){const e=n[u=t.queryCacheKey]??(n[u]={});e[s]=t.subscriptionOptions??e[s]??{},c=!0}}return c})(n.currentSubscriptions,u);let d=!0;if(p){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=Th(s,(()=>t));l.next(e.internalActions.subscriptionsUpdated(r)),s=t,o=null}),500));const i="string"==typeof u.type&&!!u.type.startsWith(r),a=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;d=!i&&!a}return[d,!1]}};function fb(e){const{reducerPath:t,queryThunk:n,api:r,context:s}=e,{apiUid:o}=s,i={invalidateTags:mt(`${t}/invalidateTags`)},a=e=>e.type.startsWith(`${t}/`),u=[lb,ib,sb,ob,ub,cb];return{middleware:n=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:a},p=u.map((e=>e(l))),d=db(l),f=ab(l);return e=>u=>{if(!vh(u))return e(u);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const c={...n,next:e},l=n.getState(),[m,h]=d(u,c,l);let y;if(y=m?e(u):h,n.getState()[t]&&(f(u,c,l),a(u)||s.hasRehydrationInfo(u)))for(let e of p)e(u,c,l);return y}},actions:i};function c(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function Dn(e,...t){return Object.assign(e,...t)}var rp=Symbol(),pb=({createSelector:e=wc}={})=>({name:rp,init(t,{baseQuery:n,tagTypes:r,reducerPath:s,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:a,refetchOnFocus:u,refetchOnReconnect:c,invalidationBehavior:l},p){i0();const d=e=>e;Object.assign(t,{reducerPath:s,endpoints:{},internalActions:{onOnline:kc,onOffline:Dh,onFocus:Cc,onFocusLost:Ph},util:{}});const{queryThunk:f,mutationThunk:m,patchQueryData:h,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:A}=X0({baseQuery:n,reducerPath:s,context:p,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:_,actions:b}=Z0({context:p,queryThunk:f,mutationThunk:m,reducerPath:s,assertTagType:d,config:{refetchOnFocus:u,refetchOnReconnect:c,refetchOnMountOrArgChange:a,keepUnusedDataFor:i,reducerPath:s,invalidationBehavior:l}});Dn(t.util,{patchQueryData:h,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:b.resetApiState}),Dn(t.internalActions,b);const{middleware:I,actions:S}=fb({reducerPath:s,context:p,queryThunk:f,mutationThunk:m,api:t,assertTagType:d});Dn(t.util,S),Dn(t,{reducer:_,middleware:I});const{buildQuerySelector:w,buildMutationSelector:E,selectInvalidatedBy:k,selectCachedArgsForQuery:P}=eb({serializeQueryArgs:o,reducerPath:s,createSelector:e});Dn(t.util,{selectInvalidatedBy:k,selectCachedArgsForQuery:P});const{buildInitiateQuery:T,buildInitiateMutation:M,getRunningMutationThunk:C,getRunningMutationsThunk:R,getRunningQueriesThunk:V,getRunningQueryThunk:O}=J0({queryThunk:f,mutationThunk:m,api:t,serializeQueryArgs:o,context:p});return Dn(t.util,{getRunningMutationThunk:C,getRunningMutationsThunk:R,getRunningQueryThunk:O,getRunningQueriesThunk:V}),{name:rp,injectEndpoint(e,n){var r;const s=t;(r=s.endpoints)[e]??(r[e]={}),xh(n)?Dn(s.endpoints[e],{name:e,select:w(e,n),initiate:T(e,n)},A(f,e)):q0(n)&&Dn(s.endpoints[e],{name:e,select:E(),initiate:M(e)},A(m,e))}}}}),to=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ip,sp,Eu={exports:{}},ke={};
|
|
1
|
+
var $E=Object.defineProperty,zE=(e,t,n)=>t in e?$E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yu=(e,t,n)=>zE(e,"symbol"!=typeof t?t+"":t,n);function WE(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 Wu(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 gu=()=>Math.random().toString(36).substring(7).split("").join("."),GE={INIT:`@@redux/INIT${gu()}`,REPLACE:`@@redux/REPLACE${gu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gu()}`},Df=GE;function Fn(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 HE(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Df.INIT})>"u")throw new Error(Wu(12));if(typeof n(void 0,{type:Df.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Wu(13))}))}function QE(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const s=t[r];"function"==typeof e[s]&&(n[s]=e[s])}const r=Object.keys(n);let s;try{HE(n)}catch(e){s=e}return function(e={},t){if(s)throw s;let o=!1;const i={};for(let s=0;s<r.length;s++){const a=r[s],u=n[a],c=e[a],l=u(c,t);if(typeof l>"u")throw t&&t.type,new Error(Wu(14));i[a]=l,o=o||l!==c}return o=o||r.length!==Object.keys(e).length,o?i:e}}function vh(e){return Fn(e)&&"type"in e&&"string"==typeof e.type}var Ic=Symbol.for("immer-nothing"),Ei=Symbol.for("immer-draftable"),wt=Symbol.for("immer-state");function ot(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ir=Object.getPrototypeOf;function Ht(e){return!!e&&!!e[wt]}function Qt(e){var t;return!!e&&(Sh(e)||Array.isArray(e)||!!e[Ei]||!(null==(t=e.constructor)||!t[Ei])||Qi(e)||qi(e))}var qE=Object.prototype.constructor.toString();function Sh(e){if(!e||"object"!=typeof e)return!1;const t=ir(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)===qE}function KE(e){return Ht(e)||ot(15,e),e[wt].base_}function Nr(e,t){0===sr(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function sr(e){const t=e[wt];return t?t.type_:Array.isArray(e)?1:Qi(e)?2:qi(e)?3:0}function Di(e,t){return 2===sr(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _u(e,t){return 2===sr(e)?e.get(t):e[t]}function Ih(e,t,n){const r=sr(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function YE(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Qi(e){return e instanceof Map}function qi(e){return e instanceof Set}function tr(e){return e.copy_||e.base_}function Gu(e,t){if(Qi(e))return new Map(e);if(qi(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Sh(e))return ir(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[wt];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const s=r[t],o=n[s];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[s]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[s]})}return Object.create(ir(e),n)}function Ec(e,t=!1){return Bo(e)||Ht(e)||!Qt(e)||(sr(e)>1&&(e.set=e.add=e.clear=e.delete=JE),Object.freeze(e),t&&Nr(e,((e,t)=>Ec(t,!0)))),e}function JE(){ot(2)}function Bo(e){return Object.isFrozen(e)}var xi,Hu={};function or(e){const t=Hu[e];return t||ot(0,e),t}function XE(e,t){Hu[e]||(Hu[e]=t)}function Eh(){return xi}function ZE(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function xf(e,t){t&&(or("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Qu(e){qu(e),e.drafts_.forEach(e0),e.drafts_=null}function qu(e){e===xi&&(xi=e.parent_)}function Bf(e){return xi=ZE(xi,e)}function e0(e){const t=e[wt];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Vf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[wt].modified_&&(Qu(t),ot(4)),Qt(e)&&(e=So(t,e),t.parent_||Io(t,e)),t.patches_&&or("Patches").generateReplacementPatches_(n[wt].base_,e,t.patches_,t.inversePatches_)):e=So(t,n,[]),Qu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ic?e:void 0}function So(e,t,n){if(Bo(t))return t;const r=t[wt];if(!r)return Nr(t,((s,o)=>Lf(e,r,t,s,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Io(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let s=t,o=!1;3===r.type_&&(s=new Set(t),t.clear(),o=!0),Nr(s,((s,i)=>Lf(e,r,t,s,i,n,o))),Io(e,t,!1),n&&e.patches_&&or("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Lf(e,t,n,r,s,o,i){if(Ht(s)){const i=So(e,s,o&&t&&3!==t.type_&&!Di(t.assigned_,r)?o.concat(r):void 0);if(Ih(n,r,i),!Ht(i))return;e.canAutoFreeze_=!1}else i&&n.add(s);if(Qt(s)&&!Bo(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;So(e,s),(!t||!t.scope_.parent_)&&Io(e,s)}}function Io(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ec(t,n)}function t0(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Eh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=r,o=bc;n&&(s=[r],o=Bi);const{revoke:i,proxy:a}=Proxy.revocable(s,o);return r.draft_=a,r.revoke_=i,a}var bc={get(e,t){if(t===wt)return e;const n=tr(e);if(!Di(n,t))return n0(e,n,t);const r=n[t];return e.finalized_||!Qt(r)?r:r===vu(e.base_,t)?(Su(e),e.copy_[t]=Yu(r,e)):r},has:(e,t)=>t in tr(e),ownKeys:e=>Reflect.ownKeys(tr(e)),set(e,t,n){const r=bh(tr(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=vu(tr(e),t),s=null==r?void 0:r[wt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(YE(n,r)&&(void 0!==n||Di(e.base_,t)))return!0;Su(e),Ku(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!==vu(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Su(e),Ku(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=tr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){ot(11)},getPrototypeOf:e=>ir(e.base_),setPrototypeOf(){ot(12)}},Bi={};function vu(e,t){const n=e[wt];return(n?tr(n):e)[t]}function n0(e,t,n){var r;const s=bh(t,n);return s?"value"in s?s.value:null==(r=s.get)?void 0:r.call(e.draft_):void 0}function bh(e,t){if(!(t in e))return;let n=ir(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=ir(n)}}function Ku(e){e.modified_||(e.modified_=!0,e.parent_&&Ku(e.parent_))}function Su(e){e.copy_||(e.copy_=Gu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Nr(bc,((e,t)=>{Bi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Bi.deleteProperty=function(e,t){return Bi.set.call(this,e,t,void 0)},Bi.set=function(e,t,n){return bc.set.call(this,e[0],t,n,e[0])};var r0=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,...s){return r.produce(e,(e=>t.call(this,e,...s)))}}let r;if("function"!=typeof t&&ot(6),void 0!==n&&"function"!=typeof n&&ot(7),Qt(e)){const s=Bf(this),o=Yu(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?Qu(s):qu(s)}return xf(s,n),Vf(r,s)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Ic&&(r=void 0),this.autoFreeze_&&Ec(r,!0),n){const t=[],s=[];or("Patches").generateReplacementPatches_(e,r,t,s),n(t,s)}return r}ot(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){Qt(e)||ot(8),Ht(e)&&(e=wh(e));const t=Bf(this),n=Yu(e,void 0);return n[wt].isManual_=!0,qu(t),n}finishDraft(e,t){const n=e&&e[wt];(!n||!n.isManual_)&&ot(9);const{scope_:r}=n;return xf(r,t),Vf(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=or("Patches").applyPatches_;return Ht(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function Yu(e,t){const n=Qi(e)?or("MapSet").proxyMap_(e,t):qi(e)?or("MapSet").proxySet_(e,t):t0(e,t);return(t?t.scope_:Eh()).drafts_.push(n),n}function wh(e){return Ht(e)||ot(10,e),Ah(e)}function Ah(e){if(!Qt(e)||Bo(e))return e;const t=e[wt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Gu(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Gu(e,!0);return Nr(n,((e,t)=>{Ih(n,e,Ah(t))})),t&&(t.finalized_=!1),n}function i0(){const e="replace",t="add",n="remove";function r(e){if(!Qt(e))return e;if(Array.isArray(e))return e.map(r);if(Qi(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(qi(e))return new Set(Array.from(e).map(r));const t=Object.create(ir(e));for(const n in e)t[n]=r(e[n]);return Di(e,Ei)&&(t[Ei]=e[Ei]),t}function s(e){return Ht(e)?r(e):e}XE("Patches",{applyPatches_:function(s,o){return o.forEach((o=>{const{path:i,op:a}=o;let u=s;for(let e=0;e<i.length-1;e++){const t=sr(u);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&ot(19),"function"==typeof u&&"prototype"===n&&ot(19),u=_u(u,n),"object"!=typeof u&&ot(18,i.join("/"))}const c=sr(u),l=r(o.value),p=i[i.length-1];switch(a){case e:switch(c){case 2:return u.set(p,l);case 3:ot(16);default:return u[p]=l}case t:switch(c){case 1:return"-"===p?u.push(l):u.splice(p,0,l);case 2:return u.set(p,l);case 3:return u.add(l);default:return u[p]=l}case n:switch(c){case 1:return u.splice(p,1);case 2:return u.delete(p);case 3:return u.delete(o.value);default:return delete u[p]}default:ot(17,a)}})),s},generatePatches_:function(r,o,i,a){switch(r.type_){case 0:case 2:return function(r,o,i,a){const{base_:u,copy_:c}=r;Nr(r.assigned_,((r,l)=>{const p=_u(u,r),d=_u(c,r),f=l?Di(u,r)?e:t:n;if(p===d&&f===e)return;const m=o.concat(r);i.push(f===n?{op:f,path:m}:{op:f,path:m,value:d}),a.push(f===t?{op:n,path:m}:f===n?{op:t,path:m,value:s(p)}:{op:e,path:m,value:s(p)})}))}(r,o,i,a);case 1:return function(r,o,i,a){let{base_:u,assigned_:c}=r,l=r.copy_;l.length<u.length&&([u,l]=[l,u],[i,a]=[a,i]);for(let t=0;t<u.length;t++)if(c[t]&&l[t]!==u[t]){const n=o.concat([t]);i.push({op:e,path:n,value:s(l[t])}),a.push({op:e,path:n,value:s(u[t])})}for(let e=u.length;e<l.length;e++){const n=o.concat([e]);i.push({op:t,path:n,value:s(l[e])})}for(let e=l.length-1;u.length<=e;--e){const t=o.concat([e]);a.push({op:n,path:t})}}(r,o,i,a);case 3:return function(e,r,s,o){let{base_:i,copy_:a}=e,u=0;i.forEach((e=>{if(!a.has(e)){const i=r.concat([u]);s.push({op:n,path:i,value:e}),o.unshift({op:t,path:i,value:e})}u++})),u=0,a.forEach((e=>{if(!i.has(e)){const i=r.concat([u]);s.push({op:t,path:i,value:e}),o.unshift({op:n,path:i,value:e})}u++}))}(r,o,i,a)}},generateReplacementPatches_:function(t,n,r,s){r.push({op:e,path:[],value:n===Ic?void 0:n}),s.push({op:e,path:[],value:t})}})}var kt=new r0,Ki=kt.produce,Th=kt.produceWithPatches.bind(kt);kt.setAutoFreeze.bind(kt),kt.setUseStrictShallowCopy.bind(kt);var Nf=kt.applyPatches.bind(kt);function s0(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function o0(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function a0(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}]`)}}kt.createDraft.bind(kt),kt.finishDraft.bind(kt);var Uf=e=>Array.isArray(e)?e:[e];function u0(e){const t=Array.isArray(e[0])?e[0]:e;return a0(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function c0(e,t){const n=[],{length:r}=e;for(let s=0;s<r;s++)n.push(e[s].apply(null,t));return n}var l0=class{constructor(e){this.value=e}deref(){return this.value}},d0=typeof WeakRef<"u"?WeakRef:l0,f0=0,Ff=1;function Xs(){return{s:f0,v:void 0,o:null,p:null}}function Vi(e,t={}){let n=Xs();const{resultEqualityCheck:r}=t;let s,o=0;function i(){var t;let i=n;const{length:a}=arguments;for(let e=0,t=a;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=Xs(),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=Xs(),e.set(t,i)):i=n}}const u=i;let c;if(i.s===Ff?c=i.v:(c=e.apply(null,arguments),o++),u.s=Ff,r){const e=(null==(t=null==s?void 0:s.deref)?void 0:t.call(s))??s;null!=e&&r(e,c)&&(c=e,0!==o&&o--),s="object"==typeof c&&null!==c||"function"==typeof c?new d0(c):c}return u.v=c,c}return i.clearCache=()=>{n=Xs(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function Rh(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,s=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),s0(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const a={...n,...o},{memoize:u,memoizeOptions:c=[],argsMemoize:l=Vi,argsMemoizeOptions:p=[],devModeChecks:d={}}=a,f=Uf(c),m=Uf(p),h=u0(e),y=u((function(){return r++,i.apply(null,arguments)}),...f),g=l((function(){s++;const e=c0(h,arguments);return t=y.apply(null,e),t}),...m);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:h,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var wc=Rh(Vi),p0=Object.assign(((e,t=wc)=>{o0(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:()=>p0}),h0=(...e)=>{const t=Rh(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Ht(e)?wh(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};h0(Vi);var m0=e=>e&&"function"==typeof e.match;function mt(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(yt(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=>vh(t)&&t.type===e,n}function jf(e){return Qt(e)?Ki(e,(()=>{})):e}function $f(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(yt(10));const r=n.insert(t,e);return e.set(t,r),r}var vi="RTK_autoBatch",yi=()=>e=>({payload:e,meta:{[vi]:!0}});function Ch(e){const t={},n=[];let r;const s={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(yt(28));if(r in t)throw new Error(yt(29));return t[r]=n,s},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),s),addDefaultCase:e=>(r=e,s)};return e(s),[t,n,r]}function y0(e){return"function"==typeof e}function g0(e,t){let n,[r,s,o]=Ch(t);if(y0(e))n=()=>jf(e());else{const t=jf(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...s.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(Ht(e)){const r=n(e,t);return void 0===r?e:r}if(Qt(e))return Ki(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(yt(9))}return r}}return e}),e)}return i.getInitialState=n,i}var _0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ac=(e=21)=>{let t="",n=e;for(;n--;)t+=_0[64*Math.random()|0];return t},kh=(e,t)=>m0(e)?e.match(t):e(t);function jn(...e){return t=>e.some((e=>kh(e,t)))}function bi(...e){return t=>e.every((e=>kh(e,t)))}function Vo(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 Yi(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Tc(...e){return 0===e.length?e=>Vo(e,["pending"]):Yi(e)?t=>jn(...e.map((e=>e.pending)))(t):Tc()(e[0])}function Ur(...e){return 0===e.length?e=>Vo(e,["rejected"]):Yi(e)?t=>jn(...e.map((e=>e.rejected)))(t):Ur()(e[0])}function Lo(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||Yi(e)?n=>bi(Ur(...e),t)(n):Lo()(e[0])}function $n(...e){return 0===e.length?e=>Vo(e,["fulfilled"]):Yi(e)?t=>jn(...e.map((e=>e.fulfilled)))(t):$n()(e[0])}function Ju(...e){return 0===e.length?e=>Vo(e,["pending","fulfilled","rejected"]):Yi(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return jn(...n)(t)}:Ju()(e[0])}var v0=["name","message","stack","code"],Iu=class{constructor(e,t){yu(this,"_type"),this.payload=e,this.meta=t}},zf=class{constructor(e,t){yu(this,"_type"),this.payload=e,this.meta=t}},S0=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of v0)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},Wf=(()=>{function e(e,t,n){const r=mt(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),s=mt(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=mt(e+"/rejected",((e,t,r,s,o)=>({payload:s,error:(n&&n.serializeError||S0)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!s,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,a,u)=>{const c=null!=n&&n.idGenerator?n.idGenerator(e):Ac(),l=new AbortController;let p,d;function f(e){d=e,l.abort()}const m=async function(){var m,h;let y;try{let o=null==(m=null==n?void 0:n.condition)?void 0:m.call(n,e,{getState:a,extra:u});if(E0(o)&&(o=await o),!1===o||l.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{p=()=>{t({name:"AbortError",message:d||"Aborted"})},l.signal.addEventListener("abort",p)}));i(s(c,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:c,arg:e},{getState:a,extra:u}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:a,extra:u,requestId:c,signal:l.signal,abort:f,rejectWithValue:(e,t)=>new Iu(e,t),fulfillWithValue:(e,t)=>new zf(e,t)})).then((t=>{if(t instanceof Iu)throw t;return t instanceof zf?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(t){y=t instanceof Iu?o(null,c,e,t.payload,t.meta):o(t,c,e)}finally{p&&l.signal.removeEventListener("abort",p)}return n&&!n.dispatchConditionRejection&&o.match(y)&&y.meta.condition||i(y),y}();return Object.assign(m,{abort:f,requestId:c,arg:e,unwrap:()=>m.then(I0)})}}),{pending:s,rejected:o,fulfilled:r,settled:jn(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function I0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function E0(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var b0=Symbol.for("rtk-slice-createasyncthunk");function w0(e,t){return`${e}/${t}`}function A0({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[b0];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(yt(11));const s=("function"==typeof e.reducers?e.reducers(R0()):e.reducers)||{},o=Object.keys(s),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(yt(12));if(n in i.sliceCaseReducersByType)throw new Error(yt(13));return i.sliceCaseReducersByType[n]=t,a},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),a),exposeAction:(e,t)=>(i.actionCreators[e]=t,a),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,a)};function u(){const[t={},n=[],r]="function"==typeof e.extraReducers?Ch(e.extraReducers):[e.extraReducers],s={...t,...i.sliceCaseReducersByType};return g0(e.initialState,(e=>{for(let t in s)e.addCase(t,s[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=s[r],i={reducerName:r,type:w0(t,r),createNotation:"function"==typeof e.reducers};k0(o)?O0(i,o,a,n):C0(i,o,a)}));const c=e=>e,l=new Map;let p;function d(e,t){return p||(p=u()),p(e,t)}function f(){return p||(p=u()),p.getInitialState()}function m(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=f()),r}function s(t=c){const r=$f(l,n,{insert:()=>new WeakMap});return $f(r,t,{insert:()=>{const r={};for(const[s,o]of Object.entries(e.selectors??{}))r[s]=T0(o,t,f,n);return r}})}return{reducerPath:t,getSelectors:s,get selectors(){return s(r)},selectSlice:r}}const h={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:f,...m(r),injectInto(e,{reducerPath:t,...n}={}){const s=t??r;return e.inject({reducerPath:s,reducer:d},n),{...h,...m(s,!0)}}};return h}}function T0(e,t,n,r){function s(s,...o){let i=t(s);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return s.unwrapped=e,s}var xn=A0();function R0(){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 C0({type:e,reducerName:t,createNotation:n},r,s){let o,i;if("reducer"in r){if(n&&!M0(r))throw new Error(yt(17));o=r.reducer,i=r.prepare}else o=r;s.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?mt(e,i):mt(e))}function k0(e){return"asyncThunk"===e._reducerDefinitionType}function M0(e){return"reducerWithPrepare"===e._reducerDefinitionType}function O0({type:e,reducerName:t},n,r,s){if(!s)throw new Error(yt(18));const{payloadCreator:o,fulfilled:i,pending:a,rejected:u,settled:c,options:l}=n,p=s(e,o,l);r.exposeAction(t,p),i&&r.addCase(p.fulfilled,i),a&&r.addCase(p.pending,a),u&&r.addCase(p.rejected,u),c&&r.addMatcher(p.settled,c),r.exposeCaseReducer(t,{fulfilled:i||Zs,pending:a||Zs,rejected:u||Zs,settled:c||Zs})}function Zs(){}var P0=(e,t)=>{if("function"!=typeof e)throw new Error(yt(32))},Rc="listenerMiddleware",D0=e=>{let{type:t,actionCreator:n,matcher:r,predicate:s,effect:o}=e;if(t)s=mt(t).match;else if(n)t=n.type,s=n.match;else if(r)s=r;else if(!s)throw new Error(yt(21));return P0(o),{predicate:s,type:t,effect:o}},x0=Object.assign((e=>{const{type:t,predicate:n,effect:r}=D0(e);return{id:Ac(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(yt(22))}}}),{withTypes:()=>x0}),B0=Object.assign(mt(`${Rc}/add`),{withTypes:()=>B0});mt(`${Rc}/removeAll`);var V0=Object.assign(mt(`${Rc}/remove`),{withTypes:()=>V0});function yt(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. `}var L0={DISTRIB_RELEASE:"24.04",JDK_18:"/usr/lib/jvm/java-1.8.0-amazon-corretto",TEAMCITY_PROJECT_NAME:"Web Apps",USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/false ci/teamcity",rvm_pretty_print_flag:"0",NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS:"20",TEAMCITY_PROCESS_PARENT_FLOW_ID:"",ANDROID_SDK_HOME:"/home/teamcity/android-sdk-linux",DOTNET_CLI_TELEMETRY_OPTOUT:"true",JDK_11_x64:"/usr/lib/jvm/java-11-amazon-corretto",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",SHLVL:"0",npm_config_noproxy:"",BUILD_VCS_NUMBER:"328a7f14b1845a9b68091b969dd2870a5edfe7ff",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/22074",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/openapi/package.json",ANDROID_SDKMANAGER_PATH:"/home/teamcity/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager",TEAMCITY_BUILD_PROPERTIES_FILE:"/mnt/agent/temp/buildTmp/teamcity.build.parameters",npm_package_engines_node:">=20.2.0",rvm_stored_umask:"0022",GRADLE_HOME:"/opt/gradle",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",npm_config_userconfig:"/home/teamcity/.npmrc",rvm_user_install_flag:"1",BUILD_VCS_NUMBER_WebApps:"328a7f14b1845a9b68091b969dd2870a5edfe7ff",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1313",COLOR:"1",TEAMCITY_BUILDCONF_NAME:"Apps",DISTRIB_DESCRIPTION:"Ubuntu 24.04.2 LTS",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"true",TMPDIR:"/mnt/agent/temp/buildTmp",LOGNAME:"teamcity",JOURNAL_STREAM:"8:9782",TEMP:"/mnt/agent/temp/buildTmp",_:"/usr/bin/nohup",npm_config_npm_version:"10.9.2",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",rvm_bin_path:"/home/teamcity/.rvm/bin",IRBRC:"/home/teamcity/.rvm/rubies/ruby-3.3.7/.irbrc",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/teamcity-agent.service/memory.pressure",P4CONFIG:".p4config",RUBY_VERSION:"ruby-3.3.7",npm_config_cache:"/home/teamcity/.npm",DOTNET_ROOT:"/usr/share/dotnet",JDK_1_8:"/usr/lib/jvm/java-1.8.0-amazon-corretto",MNT_MOUNT:"/dev/nvme1n1 on /mnt type ext4 (rw,noatime)",TEAMCITY_GIT_PATH:"/usr/local/bin/git",AWS_SHARED_CREDENTIALS_FILE:"/mnt/agent/temp/agentTmp/aws.credentials",DISTRIB_ID:"Ubuntu",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/openapi/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",INVOCATION_ID:"beac2387fdde450f903ca740afe9cef0",JDK_11_0:"/usr/lib/jvm/java-11-amazon-corretto",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",TEAMCITY_CAPTURE_ENV:'"/usr/lib/jvm/java-21-amazon-corretto/bin/java" -jar "/home/teamcity/agent/plugins/environment-fetcher/lib/environment-fetcher-bin-2025.03-186049-jar-with-dependencies.jar"',TURBO_HASH:"ccb5d8852ca0cba1",npm_package_name:"@wellesley/openapi",DISTRIB_CODENAME:"noble",JDK_21_0:"/usr/lib/jvm/java-21-amazon-corretto",npm_config_color:"always",DOMAIN_ENV:"test",MY_RUBY_HOME:"/home/teamcity/.rvm/rubies/ruby-3.3.7",TEAMCITY_VERSION:"2025.03 (build 186049)",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"2694",NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS:"20",UID:"1001",AWS_PROFILE:"default",GOPATH:"/home/teamcity/go",JDK_17_0:"/usr/lib/jvm/java-17-amazon-corretto",SHELL:"/bin/bash",TEAMCITY_AGENT_OPTS:"-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs/agent_%p.hprof -Dteamcity.internal.hosted.server.technicalName=PREINIT_AGENT",USE_NPM_VENDOR:"false",npm_lifecycle_event:"build",npm_package_version:"1.0.165",JDK_1_8_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",rvm_loaded_flag:"1",rvm_prefix:"/home/teamcity",GEM_HOME:"/home/teamcity/.rvm/gems/ruby-3.3.7",TURBO_INVOCATION_DIR:"/mnt/agent/work/70fcd8585843667f",JDK_11_0_x64:"/usr/lib/jvm/java-11-amazon-corretto",JDK_21_0_x64:"/usr/lib/jvm/java-21-amazon-corretto",rvm_version:"1.29.12 (latest)",WELLESLEY_APPS:"tooter.zip\nforum.zip\nsettings.zip\naccount.zip\nadmin.zip\nerror.zip\nevents.zip\nhost.zip\ngroup-settings.zip\ngroup-profile.zip\nuser-profile.zip\ndiscover.zip",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",GEM_PATH:"/home/teamcity/.rvm/gems/ruby-3.3.7:/home/teamcity/.rvm/gems/ruby-3.3.7@global",JAVA_HOME:"/usr/lib/jvm/java-21-amazon-corretto",PWD:"/mnt/agent/work/70fcd8585843667f/packages/openapi",TEAMCITY_AGENT_MEM_OPTS:"-Xmx512m",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",ANDROID_HOME:"/home/teamcity/android-sdk-linux",JDK_11:"/usr/lib/jvm/java-11-amazon-corretto",TEAMCITY_GIT_VERSION:"2.47.1.0",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",TEAMCITY_PROCESS_FLOW_ID:"783181422459",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",rvm_ruby_string:"ruby-3.3.7",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",rvm_path:"/home/teamcity/.rvm",EDITOR:"vi",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/openapi",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/openapi"},Mh=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Mh||{});function N0(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function U0(e){return new RegExp("(^|:)//").test(e)}var F0=e=>e.replace(/\/$/,""),j0=e=>e.replace(/^\//,"");function $0(e,t){if(!e)return t;if(!t)return e;if(U0(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=F0(e)}${n}${t=j0(t)}`}var Gf=e=>[].concat(...e);function z0(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function W0(){return typeof document>"u"||"hidden"!==document.visibilityState}var Hf=Fn;function Oh(e,t){if(e===t||!(Hf(e)&&Hf(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let s=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const r of n)o[r]=Oh(e[r],t[r]),s&&(s=e[r]===o[r]);return s?e:o}var Qf=(...e)=>fetch(...e),G0=e=>e.status>=200&&e.status<=299,H0=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function qf(e){if(!Fn(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function Q0({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=Qf,paramsSerializer:r,isJsonContentType:s=H0,jsonContentType:o="application/json",jsonReplacer:i,timeout:a,responseHandler:u,validateStatus:c,...l}={}){return typeof fetch>"u"&&n===Qf&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,f)=>{const{signal:m,getState:h,extra:y,endpoint:g,forced:v,type:A}=f;let _,{url:b,headers:I=new Headers(l.headers),params:S,responseHandler:w=u??"json",validateStatus:E=c??G0,timeout:k=a,...P}="string"==typeof d?{url:d}:d,T={...l,signal:m,...P};I=new Headers(qf(I)),T.headers=await t(I,{getState:h,extra:y,endpoint:g,forced:v,type:A})||I;const M=e=>"object"==typeof e&&(Fn(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!T.headers.has("content-type")&&M(T.body)&&T.headers.set("content-type",o),M(T.body)&&s(T.headers)&&(T.body=JSON.stringify(T.body,i)),S){const e=~b.indexOf("?")?"&":"?";b+=e+(r?r(S):new URLSearchParams(qf(S)))}b=$0(e,b);const C=new Request(b,T);_={request:new Request(b,T)};let R,V=!1,O=k&&setTimeout((()=>{V=!0,f.abort()}),k);try{R=await n(C)}catch(e){return{error:{status:V?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:_}}finally{O&&clearTimeout(O)}const B=R.clone();_.response=B;let x,D="";try{let e;if(await Promise.all([p(R,w).then((e=>x=e),(t=>e=t)),B.text().then((e=>D=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:D,error:String(e)},meta:_}}return E(R,x)?{data:x,meta:_}:{error:{status:R.status,data:x},meta:_}};async function p(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=s(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var Kf=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Cc=mt("__rtkq/focused"),Ph=mt("__rtkq/unfocused"),kc=mt("__rtkq/online"),Dh=mt("__rtkq/offline");function xh(e){return"query"===e.type}function q0(e){return"mutation"===e.type}function Mc(e,t,n,r,s,o){return K0(e)?e(t,n,r,s).map(Xu).map(o):Array.isArray(e)?e.map(Xu).map(o):[]}function K0(e){return"function"==typeof e}function Xu(e){return"string"==typeof e?{type:e}:e}function Yf(e){return null!=e}function Lr(e){let t=0;for(const n in e)t++;return t}function Y0(e,t){return e.catch(t)}var Li=Symbol("forceQueryFn"),Zu=e=>"function"==typeof e[Li];function J0({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:s}){const o=new Map,i=new Map,{unsubscribeQueryResult:a,removeMutationResult:u,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,s){const i=(u,{subscribe:l=!0,forceRefetch:p,subscriptionOptions:d,[Li]:f,...m}={})=>(h,y)=>{var g;const v=e({queryArgs:u,endpointDefinition:s,endpointName:n}),A=t({...m,type:"query",subscribe:l,forceRefetch:p,subscriptionOptions:d,endpointName:n,originalArgs:u,queryCacheKey:v,[Li]:f}),_=r.endpoints[n].select(u),b=h(A),I=_(y()),{requestId:S,abort:w}=b,E=I.requestId!==S,k=null==(g=o.get(h))?void 0:g[v],P=()=>_(y()),T=Object.assign(f?b.then(P):E&&!k?Promise.resolve(I):Promise.all([k,b]).then(P),{arg:u,requestId:S,subscriptionOptions:d,queryCacheKey:v,abort:w,async unwrap(){const e=await T;if(e.isError)throw e.error;return e.data},refetch:()=>h(i(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){l&&h(a({queryCacheKey:v,requestId:S}))},updateSubscriptionOptions(e){T.subscriptionOptions=e,h(c({endpointName:n,requestId:S,queryCacheKey:v,options:e}))}});if(!k&&!E&&!f){const e=o.get(h)||{};e[v]=T,o.set(h,e),T.then((()=>{delete e[v],Lr(e)||o.delete(h)}))}return T};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:s}={})=>(o,a)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:s}),l=o(c),{requestId:p,abort:d,unwrap:f}=l,m=Y0(l.unwrap().then((e=>({data:e}))),(e=>({error:e}))),h=Object.assign(m,{arg:l.arg,requestId:p,abort:d,unwrap:f,reset:()=>{o(u({requestId:p,fixedCacheKey:s}))}}),y=i.get(o)||{};return i.set(o,y),y[p]=h,h.then((()=>{delete y[p],Lr(y)||i.delete(o)})),s&&(y[s]=h,h.then((()=>{y[s]===h&&(delete y[s],Lr(y)||i.delete(o))}))),h}},getRunningQueryThunk:function(t,n){return r=>{var i;const a=s.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:a,endpointName:t});return null==(i=o.get(r))?void 0:i[u]}},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(Yf)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(Yf)}}}function Jf(e){return e}function X0({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:s,assertTagType:o}){const i=async(e,{signal:r,abort:s,rejectWithValue:o,fulfillWithValue:i,dispatch:u,getState:c,extra:l})=>{const p=n[e.endpointName];try{let n,o=Jf;const d={signal:r,abort:s,dispatch:u,getState:c,extra:l,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?a(e,c()):void 0},f="query"===e.type?e[Li]:void 0;if(f?n=f():p.query?(n=await t(p.query(e.originalArgs),d,p.extraOptions),p.transformResponse&&(o=p.transformResponse)):n=await p.queryFn(e.originalArgs,d,p.extraOptions,(e=>t(e,d,p.extraOptions))),typeof process<"u"&&L0.NODE_ENV,n.error)throw new Kf(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[vi]:!0})}catch(t){let n=t;if(n instanceof Kf){let t=Jf;p.query&&p.transformErrorResponse&&(t=p.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[vi]:!0})}catch(e){n=e}}throw console.error(n),n}};function a(t,n){var r,s,o;const i=null==(s=null==(r=n[e])?void 0:r.queries)?void 0:s[t.queryCacheKey],a=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,u=null==i?void 0:i.fulfilledTimeStamp,c=t.forceRefetch??(t.subscribe&&a);return!!c&&(!0===c||(Number(new Date)-Number(u))/1e3>=c)}const u=Wf(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[vi]:!0}),condition(t,{getState:r}){var s,o,i;const u=r(),c=null==(o=null==(s=u[e])?void 0:s.queries)?void 0:o[t.queryCacheKey],l=null==c?void 0:c.fulfilledTimeStamp,p=t.originalArgs,d=null==c?void 0:c.originalArgs,f=n[t.endpointName];return!!Zu(t)||"pending"!==(null==c?void 0:c.status)&&(!!(a(t,u)||xh(f)&&null!=(i=null==f?void 0:f.forceRefetch)&&i.call(f,{currentArg:p,previousArg:d,endpointState:c,state:u}))||!l)},dispatchConditionRejection:!0}),c=Wf(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[vi]:!0})});function l(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:u,mutationThunk:c,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,a=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,u=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return s.endpoints[e].initiate(t,r)},c=s.endpoints[e].select(t)(o());if(i)r(u());else if(a){const e=null==c?void 0:c.fulfilledTimeStamp;if(!e)return void r(u());(Number(new Date)-Number(new Date(e)))/1e3>=a&&r(u())}else r(u(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const a=s.endpoints[e].select(t)(i());let u,c={patches:[],inversePatches:[],undo:()=>o(s.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===a.status)return c;if("data"in a)if(Qt(a.data)){const[e,t,r]=Th(a.data,n);c.patches.push(...t),c.inversePatches.push(...r),u=e}else u=n(a.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:a.data});return o(s.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(s.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Li]:()=>({data:n})})),patchQueryData:(e,t,i,a)=>(u,c)=>{const l=n[e],p=r({queryArgs:t,endpointDefinition:l,endpointName:e});if(u(s.internalActions.queryResultPatched({queryCacheKey:p,patches:i})),!a)return;const d=s.endpoints[e].select(t)(c()),f=Mc(l.providesTags,d.data,void 0,t,{},o);u(s.internalActions.updateProvidedBy({queryCacheKey:p,providedTags:f}))},buildMatchThunkActions:function(e,t){return{matchPending:bi(Tc(e),l(t)),matchFulfilled:bi($n(e),l(t)),matchRejected:bi(Ur(e),l(t))}}}}function Bh(e,t,n,r){return Mc(n[e.meta.arg.endpointName][t],$n(e)?e.payload:void 0,Lo(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function eo(e,t,n){const r=e[t];r&&n(r)}function Ni(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Xf(e,t,n){const r=e[Ni(t)];r&&n(r)}var gi={};function Z0({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:s,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:a,config:u}){const c=mt(`${e}/resetApiState`),l=xn({name:`${e}/queries`,initialState:gi,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:yi()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){eo(e,t,(e=>{e.data=Nf(e.data,n.concat())}))},prepare:yi()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const s=Zu(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),eo(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=s&&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})=>{eo(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!Zu(t.arg))return;const{merge:s}=r[t.arg.endpointName];if(e.status="fulfilled",s)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:a}=t;let u=Ki(e.data,(e=>s(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:a})));e.data=u}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?Oh(Ht(e.data)?KE(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:s,payload:o})=>{eo(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??s}}))})).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)}))}}),p=xn({name:`${e}/mutations`,initialState:gi,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Ni(t);n in e&&delete e[n]},prepare:yi()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:s}})=>{r.track&&(e[Ni(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:s})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&Xf(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&&Xf(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=xn({name:`${e}/invalidation`,initialState:gi,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:s,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(s);-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(s)||o.push(s)}},prepare:yi()}},extraReducers(e){e.addCase(l.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:s}=o(t);for(const[t,o]of Object.entries(s))for(const[s,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=s||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(jn($n(t),Lo(t)),((e,t)=>{const n=Bh(t,"providesTags",r,a),{queryCacheKey:s}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:s,providedTags:n}))}))}}),f=xn({name:`${e}/subscriptions`,initialState:gi,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=xn({name:`${e}/internalSubscriptions`,initialState:gi,reducers:{subscriptionsUpdated:{reducer:(e,t)=>Nf(e,t.payload),prepare:yi()}}}),h=xn({name:`${e}/config`,initialState:{online:z0(),focused:W0(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&s===t||"conflict"}},extraReducers:e=>{e.addCase(kc,(e=>{e.online=!0})).addCase(Dh,(e=>{e.online=!1})).addCase(Cc,(e=>{e.focused=!0})).addCase(Ph,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=QE({queries:l.reducer,mutations:p.reducer,provided:d.reducer,subscriptions:m.reducer,config:h.reducer});return{reducer:(e,t)=>y(c.match(t)?void 0:e,t),actions:{...h.actions,...l.actions,...f.actions,...m.actions,...p.actions,...d.actions,resetApiState:c}}}var nr=Symbol.for("RTKQ/skipToken"),Vh={status:"uninitialized"},Zf=Ki(Vh,(()=>{})),ep=Ki(Vh,(()=>{}));function eb({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>Zf,s=e=>ep;return{buildQuerySelector:function(t,s){return a=>{const u=e({queryArgs:a,endpointDefinition:s,endpointName:t});return n(a===nr?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[u])??Zf},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Ni(e)??nr:e,n(t===nr?s:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??ep},o)}},selectInvalidatedBy:function(e,n){const r=e[t],s=new Set;for(const e of n.map(Xu)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:Gf(Object.values(t)))??[];for(const e of n)s.add(e)}return Gf(Array.from(s.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,...N0(e.status)}}function i(e){return e[t]}}var kr=WeakMap?new WeakMap:void 0,tp=({endpointName:e,queryArgs:t})=>{let n="";const r=null==kr?void 0:kr.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Fn(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Fn(t)&&(null==kr||kr.set(t,e)),n=e}return`${e}(${n})`};function tb(...e){return function(t){const n=Vi((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=tp;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:tp({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},s={endpointDefinitions:{},batch(e){e()},apiUid:Ac(),extractRehydrationInfo:n,hasRehydrationInfo:Vi((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 s.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(yt(39))}else{s.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(s.endpointDefinitions[e]):Object.assign(s.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,s)));return o.injectEndpoints({endpoints:t.endpoints})}}function nb(e){for(let t in e)return!1;return!0}var rb=2147482.647,ib=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:s,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!nb(t)}const a={};function u(e,t,r,o){const u=n.endpointDefinitions[t],c=(null==u?void 0:u.keepUnusedDataFor)??o.keepUnusedDataFor;if(c===1/0)return;const l=Math.max(0,Math.min(c,rb));if(!i(e)){const t=a[e];t&&clearTimeout(t),a[e]=setTimeout((()=>{i(e)||r.dispatch(s({queryCacheKey:e})),delete a[e]}),1e3*l)}}return(r,s,i)=>{var c;if(o.match(r)){const t=s.getState()[e],{queryCacheKey:n}=r.payload;u(n,null==(c=t.queries[n])?void 0:c.endpointName,s,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(a))t&&clearTimeout(t),delete a[e];if(n.hasRehydrationInfo(r)){const t=s.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))u(e,null==n?void 0:n.endpointName,s,t.config)}}},sb=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:s,api:o,assertTagType:i,refetchQuery:a,internalState:u})=>{const{removeQueryResult:c}=o.internalActions,l=jn($n(r),Lo(r)),p=jn($n(r,s),Ur(r,s));let d=[];function f(n,r){const s=r.getState(),i=s[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 l=d;if(d=[],0===l.length)return;const p=o.util.selectInvalidatedBy(s,l);t.batch((()=>{const e=Array.from(p.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=u.currentSubscriptions[t]??{};e&&(0===Lr(n)?r.dispatch(c({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(a(e,t)))}}))}return(e,t)=>{l(e)?f(Bh(e,"invalidatesTags",n,i),t):p(e)?f([],t):o.util.invalidateTags.match(e)&&f(Mc(e.payload,void 0,void 0,void 0,void 0,i),t)}},ob=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:s})=>{const o={};function i({queryCacheKey:t},n){const a=n.getState()[e],u=a.queries[t],l=s.currentSubscriptions[t];if(!u||"uninitialized"===u.status)return;const{lowestPollingInterval:p,skipPollingIfUnfocused:d}=c(l);if(!Number.isFinite(p))return;const f=o[t];null!=f&&f.timeout&&(clearTimeout(f.timeout),f.timeout=void 0);const m=Date.now()+p;o[t]={nextPollTimestamp:m,pollingInterval:p,timeout:setTimeout((()=>{(a.config.focused||!d)&&n.dispatch(r(u,t)),i({queryCacheKey:t},n)}),p)}}function a({queryCacheKey:t},n){const r=n.getState()[e].queries[t],a=s.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:l}=c(a);if(!Number.isFinite(l))return void u(t);const p=o[t],d=Date.now()+l;(!p||d<p.nextPollTimestamp)&&i({queryCacheKey:t},n)}function u(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function c(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))&&a(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&a(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))u(e)}()}},ab=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:s})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const a=n.getState()[e],u=a.queries,c=s.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=u[e],s=c[e];s&&t&&((Object.values(s).some((e=>!0===e[i]))||Object.values(s).every((e=>void 0===e[i]))&&a.config[i])&&(0===Lr(s)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{Cc.match(e)&&i(t,"refetchOnFocus"),kc.match(e)&&i(t,"refetchOnReconnect")}},np=new Error("Promise never resolved before cacheEntryRemoved."),ub=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:s,internalState:o})=>{const i=Ju(r),a=Ju(s),u=$n(r,s),c={};function l(t,r,s,o,i){const a=n.endpointDefinitions[t],u=null==a?void 0:a.onCacheEntryAdded;if(!u)return;let l={};const p=new Promise((e=>{l.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{l.valueResolved=e})),p.then((()=>{throw np}))]);d.catch((()=>{})),c[s]=l;const f=e.endpoints[t].select("query"===a.type?r:s),m=o.dispatch(((e,t,n)=>n)),h={...o,getCacheEntry:()=>f(o.getState()),requestId:i,extra:m,updateCachedData:"query"===a.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:p},y=u(r,h);Promise.resolve(y).catch((e=>{if(e!==np)throw e}))}return(n,o,p)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:a(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Ni(t.payload):""}(n);if(r.pending.match(n)){const e=p[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&l(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(s.pending.match(n))o.getState()[t].mutations[d]&&l(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(u(n)){const e=c[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=c[d];e&&(delete c[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(c))delete c[e],t.cacheEntryRemoved()}},cb=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const s=Tc(n,r),o=Ur(n,r),i=$n(n,r),a={};return(n,r)=>{var u,c;if(s(n)){const{requestId:s,arg:{endpointName:o,originalArgs:i}}=n.meta,u=t.endpointDefinitions[o],c=null==u?void 0:u.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),a[s]=t;const l=e.endpoints[o].select("query"===u.type?i:s),p=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>l(r.getState()),requestId:s,extra:p,updateCachedData:"query"===u.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};c(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(u=a[e])||u.resolve({data:n.payload,meta:t}),delete a[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(c=a[e])||c.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete a[e]}}},lb=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},db=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let s=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:a}=e.internalActions,u=()=>n.currentSubscriptions,c={getSubscriptions:u,getSubscriptionCount:e=>Lr(u()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=u();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(u,l)=>{if(s||(s=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(u))return s=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,c];const p=((n,r)=>{var s,o,u;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(s=null==n?void 0:n[e])&&s[t]&&(n[e][t]=o),!0}if(a.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,s=n[o=e.queryCacheKey]??(n[o]={});return s[`${t}_running`]={},e.subscribe&&(s[t]=e.subscriptionOptions??s[t]??{}),!0}let c=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;c||(c=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:s}}=r;if(e&&t.subscribe){const e=n[u=t.queryCacheKey]??(n[u]={});e[s]=t.subscriptionOptions??e[s]??{},c=!0}}return c})(n.currentSubscriptions,u);let d=!0;if(p){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=Th(s,(()=>t));l.next(e.internalActions.subscriptionsUpdated(r)),s=t,o=null}),500));const i="string"==typeof u.type&&!!u.type.startsWith(r),a=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;d=!i&&!a}return[d,!1]}};function fb(e){const{reducerPath:t,queryThunk:n,api:r,context:s}=e,{apiUid:o}=s,i={invalidateTags:mt(`${t}/invalidateTags`)},a=e=>e.type.startsWith(`${t}/`),u=[lb,ib,sb,ob,ub,cb];return{middleware:n=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:a},p=u.map((e=>e(l))),d=db(l),f=ab(l);return e=>u=>{if(!vh(u))return e(u);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const c={...n,next:e},l=n.getState(),[m,h]=d(u,c,l);let y;if(y=m?e(u):h,n.getState()[t]&&(f(u,c,l),a(u)||s.hasRehydrationInfo(u)))for(let e of p)e(u,c,l);return y}},actions:i};function c(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function Dn(e,...t){return Object.assign(e,...t)}var rp=Symbol(),pb=({createSelector:e=wc}={})=>({name:rp,init(t,{baseQuery:n,tagTypes:r,reducerPath:s,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:a,refetchOnFocus:u,refetchOnReconnect:c,invalidationBehavior:l},p){i0();const d=e=>e;Object.assign(t,{reducerPath:s,endpoints:{},internalActions:{onOnline:kc,onOffline:Dh,onFocus:Cc,onFocusLost:Ph},util:{}});const{queryThunk:f,mutationThunk:m,patchQueryData:h,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:A}=X0({baseQuery:n,reducerPath:s,context:p,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:_,actions:b}=Z0({context:p,queryThunk:f,mutationThunk:m,reducerPath:s,assertTagType:d,config:{refetchOnFocus:u,refetchOnReconnect:c,refetchOnMountOrArgChange:a,keepUnusedDataFor:i,reducerPath:s,invalidationBehavior:l}});Dn(t.util,{patchQueryData:h,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:b.resetApiState}),Dn(t.internalActions,b);const{middleware:I,actions:S}=fb({reducerPath:s,context:p,queryThunk:f,mutationThunk:m,api:t,assertTagType:d});Dn(t.util,S),Dn(t,{reducer:_,middleware:I});const{buildQuerySelector:w,buildMutationSelector:E,selectInvalidatedBy:k,selectCachedArgsForQuery:P}=eb({serializeQueryArgs:o,reducerPath:s,createSelector:e});Dn(t.util,{selectInvalidatedBy:k,selectCachedArgsForQuery:P});const{buildInitiateQuery:T,buildInitiateMutation:M,getRunningMutationThunk:C,getRunningMutationsThunk:R,getRunningQueriesThunk:V,getRunningQueryThunk:O}=J0({queryThunk:f,mutationThunk:m,api:t,serializeQueryArgs:o,context:p});return Dn(t.util,{getRunningMutationThunk:C,getRunningMutationsThunk:R,getRunningQueryThunk:O,getRunningQueriesThunk:V}),{name:rp,injectEndpoint(e,n){var r;const s=t;(r=s.endpoints)[e]??(r[e]={}),xh(n)?Dn(s.endpoints[e],{name:e,select:w(e,n),initiate:T(e,n)},A(f,e)):q0(n)&&Dn(s.endpoints[e],{name:e,select:E(),initiate:M(e)},A(m,e))}}}}),to=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ip,sp,Eu={exports:{}},ke={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -16,7 +16,7 @@ var $E=Object.defineProperty,zE=(e,t,n)=>t in e?$E(e,t,{enumerable:!0,configurab
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/function yb(){if(ap)return wu;ap=1;var e=Lh();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,s=e.useEffect,o=e.useMemo,i=e.useDebugValue;return wu.useSyncExternalStoreWithSelector=function(e,a,u,c,l){var p=r(null);if(null===p.current){var d={hasValue:!1,value:null};p.current=d}else d=p.current;p=o((function(){function e(e){if(!s){if(s=!0,n=e,e=c(e),void 0!==l&&d.hasValue){var o=d.value;if(l(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var i=c(e);return void 0!==l&&l(o,i)?o:(n=e,r=i)}var n,r,s=!1,o=void 0===u?null:u;return[function(){return e(a())},null===o?void 0:function(){return e(o())}]}),[a,u,c,l]);var f=n(e,p[0],p[1]);return s((function(){d.hasValue=!0,d.value=f}),[f]),i(f),f},wu}function gb(){return up||(up=1,bu.exports=yb()),bu.exports}var _b=gb(),tn="default"in op?Nh:op,cp=Symbol.for("react-redux-context"),lp=typeof globalThis<"u"?globalThis:{};function vb(){if(!tn.createContext)return{};const e=lp[cp]??(lp[cp]=new Map);let t=e.get(tn.createContext);return t||(t=tn.createContext(null),e.set(tn.createContext,t)),t}var ar=vb(),Sb=()=>{throw new Error("uSES not initialized!")};function Oc(e=ar){return function(){return tn.useContext(e)}}var Uh=Oc(),Fh=Sb,Ib=e=>{Fh=e},Eb=(e,t)=>e===t;function bb(e=ar){const t=e===ar?Uh:Oc(e),n=(e,n={})=>{const{equalityFn:r=Eb,devModeChecks:s={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:i,getServerState:a,stabilityCheck:u,identityFunctionCheck:c}=t();tn.useRef(!0);const l=tn.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,s.stabilityCheck]),p=Fh(i.addNestedSub,o.getState,a||o.getState,l,r);return tn.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var wb=bb();function Ab(e){e()}var Tb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dp(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function wi(e,t){if(dp(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])||!dp(e[n[r]],t[n[r]]))return!1;return!0}function jh(e=ar){const t=e===ar?Uh:Oc(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}Tb?tn.useLayoutEffect:tn.useEffect;var $h=jh();function Rb(e=ar){const t=e===ar?$h:jh(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Cb=Rb(),kb=Ab;function Mb(e){return"query"===e.type}function Ob(e){return"mutation"===e.type}function no(e,...t){return Object.assign(e,...t)}function Au(e){return e.replace(e[0],e[0].toUpperCase())}Ib(_b.useSyncExternalStoreWithSelector);var Mr=WeakMap?new WeakMap:void 0,Pb=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Mr?void 0:Mr.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Fn(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Fn(t)&&(null==Mr||Mr.set(t,e)),n=e}return`${e}(${n})`},Tu=Symbol();function fp(e,t,n,r){const s=Ee.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=Ee.useRef(s);return Ee.useEffect((()=>{o.current.serialized!==s.serialized&&(o.current=s)}),[s]),o.current.serialized===s.serialized?o.current.queryArgs:e}function Ru(e){const t=Ee.useRef(e);return Ee.useEffect((()=>{wi(t.current,e)||(t.current=e)}),[e]),wi(t.current,e)?t.current:e}var Db=typeof window<"u"&&window.document&&window.document.createElement?Ee.useLayoutEffect:Ee.useEffect,xb=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:Mh.pending}:e;function Bb({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:s},unstable__sideEffectsInRender:o,createSelector:i},serializeQueryArgs:a,context:u}){const c=o?e=>e():Ee.useEffect;return{buildQueryHooks:function(o){const p=(t,{refetchOnReconnect:r,refetchOnFocus:s,refetchOnMountOrArgChange:i,skip:a=!1,pollingInterval:l=0,skipPollingIfUnfocused:p=!1}={})=>{const{initiate:d}=e.endpoints[o],f=n(),m=Ee.useRef();if(!m.current){const t=f(e.internalActions.internal_getRTKQSubscriptions());m.current=t}const h=fp(a?nr:t,Pb,u.endpointDefinitions[o],o),y=Ru({refetchOnReconnect:r,refetchOnFocus:s,pollingInterval:l,skipPollingIfUnfocused:p}),g=Ee.useRef(!1),v=Ee.useRef();let{queryCacheKey:A,requestId:_}=v.current||{},b=!1;A&&_&&(b=m.current.isRequestSubscribed(A,_));const I=!b&&g.current;return c((()=>{g.current=b})),c((()=>{I&&(v.current=void 0)}),[I]),c((()=>{var e;const t=v.current;if(h===nr)return null==t||t.unsubscribe(),void(v.current=void 0);const n=null==(e=v.current)?void 0:e.subscriptionOptions;if(t&&t.arg===h)y!==n&&t.updateSubscriptionOptions(y);else{null==t||t.unsubscribe();const e=f(d(h,{subscriptionOptions:y,forceRefetch:i}));v.current=e}}),[f,d,i,h,y,I]),Ee.useEffect((()=>()=>{var e;null==(e=v.current)||e.unsubscribe(),v.current=void 0}),[]),Ee.useMemo((()=>({refetch:()=>{var e;if(!v.current)throw new Error(yt(38));return null==(e=v.current)?void 0:e.refetch()}})),[])},d=({refetchOnReconnect:r,refetchOnFocus:s,pollingInterval:i=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:u}=e.endpoints[o],l=n(),[p,d]=Ee.useState(Tu),f=Ee.useRef(),m=Ru({refetchOnReconnect:r,refetchOnFocus:s,pollingInterval:i,skipPollingIfUnfocused:a});c((()=>{var e,t;const n=null==(e=f.current)?void 0:e.subscriptionOptions;m!==n&&(null==(t=f.current)||t.updateSubscriptionOptions(m))}),[m]);const h=Ee.useRef(m);c((()=>{h.current=m}),[m]);const y=Ee.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=f.current)||t.unsubscribe(),f.current=r=l(u(e,{subscriptionOptions:h.current,forceRefetch:!n})),d(e)})),r}),[l,u]);return Ee.useEffect((()=>()=>{var e;null==(e=null==f?void 0:f.current)||e.unsubscribe()}),[]),Ee.useEffect((()=>{p!==Tu&&!f.current&&y(p,!0)}),[p,y]),Ee.useMemo((()=>[y,p]),[y,p])},f=(t,{skip:n=!1,selectFromResult:c}={})=>{const{select:p}=e.endpoints[o],d=fp(n?nr:t,a,u.endpointDefinitions[o],o),f=Ee.useRef(),m=Ee.useMemo((()=>i([p(d),(e,t)=>t,e=>d],l,{memoizeOptions:{resultEqualityCheck:wi}})),[p,d]),h=Ee.useMemo((()=>c?i([m],c,{devModeChecks:{identityFunctionCheck:"never"}}):m),[m,c]),y=r((e=>h(e,f.current)),wi),g=s(),v=m(g.getState(),f.current);return Db((()=>{f.current=v}),[v]),y};return{useQueryState:f,useQuerySubscription:p,useLazyQuerySubscription:d,useLazyQuery(e){const[t,n]=d(e),r=f(n,{...e,skip:n===Tu}),s=Ee.useMemo((()=>({lastArg:n})),[n]);return Ee.useMemo((()=>[t,r,s]),[t,r,s])},useQuery(e,t){const n=p(e,t),r=f(e,{selectFromResult:e===nr||null!=t&&t.skip?void 0:xb,...t}),{data:s,status:o,isLoading:i,isSuccess:a,isError:u,error:c}=r;return Ee.useDebugValue({data:s,status:o,isLoading:i,isSuccess:a,isError:u,error:c}),Ee.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(s){return({selectFromResult:o,fixedCacheKey:a}={})=>{const{select:u,initiate:c}=e.endpoints[s],l=n(),[p,d]=Ee.useState();Ee.useEffect((()=>()=>{null!=p&&p.arg.fixedCacheKey||null==p||p.reset()}),[p]);const f=Ee.useCallback((function(e){const t=l(c(e,{fixedCacheKey:a}));return d(t),t}),[l,c,a]),{requestId:m}=p||{},h=Ee.useMemo((()=>u({fixedCacheKey:a,requestId:null==p?void 0:p.requestId})),[a,p,u]),y=Ee.useMemo((()=>o?i([h],o):h),[o,h]),g=r(y,wi),v=null==a?null==p?void 0:p.arg.originalArgs:void 0,A=Ee.useCallback((()=>{t((()=>{p&&d(void 0),a&&l(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:a}))}))}),[l,a,p,m]),{endpointName:_,data:b,status:I,isLoading:S,isSuccess:w,isError:E,error:k}=g;Ee.useDebugValue({endpointName:_,data:b,status:I,isLoading:S,isSuccess:w,isError:E,error:k});const P=Ee.useMemo((()=>({...g,originalArgs:v,reset:A})),[g,v,A]);return Ee.useMemo((()=>[f,P]),[f,P])}},usePrefetch:function(t,r){const s=n(),o=Ru(r);return Ee.useCallback(((n,r)=>s(e.util.prefetch(t,n,{...o,...r}))),[t,s,o])}};function l(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=u.endpointDefinitions[e];a({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===a({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 s=void 0!==r,o=e.isLoading,i=!s&&o,c=e.isSuccess||o&&s;return{...e,data:r,currentData:e.data,isFetching:o,isLoading:i,isSuccess:c}}}var Vb=Symbol(),Lb=({batch:e=kb,hooks:t={useDispatch:Cb,useSelector:wb,useStore:$h},createSelector:n=wc,unstable__sideEffectsInRender:r=!1,...s}={})=>({name:Vb,init(s,{serializeQueryArgs:o},i){const a=s,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:l}=Bb({api:s,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:i});return no(a,{usePrefetch:l}),no(i,{batch:e}),{injectEndpoint(e,t){if(Mb(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=u(e);no(a.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),s[`use${Au(e)}Query`]=t,s[`useLazy${Au(e)}Query`]=n}else if(Ob(t)){const t=c(e);no(a.endpoints[e],{useMutation:t}),s[`use${Au(e)}Mutation`]=t}}}}}),Nb=tb(pb(),Lb());const Pc="auth_token",zh=()=>localStorage.getItem(Pc)||void 0,Ub=e=>localStorage.setItem(Pc,e),Fb=()=>localStorage.removeItem(Pc),jb=()=>!!zh(),Ui={getToken:zh,setToken:Ub,removeToken:Fb,hasToken:jb},$b=()=>{Ui.removeToken()},pp={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!!Ui.getToken(),isAuthenticated:!1},zb=xn({name:"auth",initialState:pp,reducers:{login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload,e.isPending=!1,Ui.setToken(t.payload)},logout:()=>(Ui.removeToken(),{...pp,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}}),Wb=e=>async(t,n,r)=>{const s=await e(t,n,r);return s.error&&[401].includes(s.error.status)&&($b(),n.dispatch(zb.actions.logout())),s},Gb=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},Hb=5,Qb=e=>t=>!!e&&t.includes(e.status),hp=e=>new Promise((t=>setTimeout(t,1e3*e))),qb=e=>async(t,n,r)=>{const s=(null==r?void 0:r.maxRetries)??5;await Gb((()=>n.getState().network.isOnline));let o=0;const i=async()=>{var a,u,c,l;const p=await e(t,n,r),d=p.error;if(o>=s)return p;o>0&&await hp(Math.pow(2,o)),o++;const f=Qb(d);switch(!0){case"mutation"===n.type:return p;case!navigator.onLine:case f([408,404]):case d&&"FETCH_ERROR"===(null==d?void 0:d.status):case d&&d.status>=500:return await i();case 429===(null==(a=null==p?void 0:p.error)?void 0:a.status):{const e=null==(l=null==(c=null==(u=p.meta)?void 0:u.response)?void 0:c.headers)?void 0:l.get("Retry-After");return await hp(+(e||"0")),await i()}default:return p}};return await i()};var Wh=(e=>(e.SERVER_RULES="serverRules",e.EVENT_ATTENDEES="eventAttendees",e))(Wh||{});const Dc=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ai="8.48.0",lt=globalThis;function No(e,t,n){const r=lt,s=r.__SENTRY__=r.__SENTRY__||{},o=s[Ai]=s[Ai]||{};return o[e]||(o[e]=t())}const Ji=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Kb="Sentry Logger ",mp=["debug","info","warn","error","log","assert","trace"],yp={};function xc(e){if(!("console"in lt))return e();const t=lt.console,n={},r=Object.keys(yp);r.forEach((e=>{const r=yp[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function Yb(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Ji?mp.forEach((n=>{t[n]=(...t)=>{e&&xc((()=>{lt.console[n](`${Kb}[${n}]:`,...t)}))}})):mp.forEach((e=>{t[e]=()=>{}})),t}const gt=No("logger",Yb),Cu="<anonymous>";function En(e){try{return e&&"function"==typeof e&&e.name||Cu}catch{return Cu}}function gp(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 yo={},_p={};function Gh(e,t){yo[e]=yo[e]||[],yo[e].push(t)}function Hh(e,t){if(!_p[e]){_p[e]=!0;try{t()}catch(t){Ji&>.error(`Error while instrumenting ${e}`,t)}}}function ec(e,t){const n=e&&yo[e];if(n)for(const r of n)try{r(t)}catch(t){Ji&>.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${En(r)}\nError:`,t)}}function Xi(){return Bc(lt),lt}function Bc(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ai,t[Ai]=t[Ai]||{}}const Qh=Object.prototype.toString;function Jb(e){switch(Qh.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Uo(e,Error)}}function Vc(e,t){return Qh.call(e)===`[object ${t}]`}function Eo(e){return Vc(e,"String")}function Lc(e){return Vc(e,"Object")}function Xb(e){return typeof Event<"u"&&Uo(e,Event)}function Zb(e){return typeof Element<"u"&&Uo(e,Element)}function ew(e){return Vc(e,"RegExp")}function Nc(e){return!(!e||!e.then||"function"!=typeof e.then)}function tw(e){return Lc(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Uo(e,t){try{return e instanceof t}catch{return!1}}function nw(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const qh=lt,rw=80;function Uc(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",u=a.length;let c;const l=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(c=iw(n,l),!("html"===c||o>1&&i+s.length*u+c.length>=p));)s.push(c),i+=c.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function iw(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(qh.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 s=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(s&&s.length)s.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&Eo(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 sw(){try{return qh.document.location.href}catch{return""}}function ku(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function ow(e,t,n=!1){return!!Eo(e)&&(ew(t)?t.test(e):!!Eo(t)&&(n?e===t:e.includes(t)))}function aw(e,t=[],n=!1){return t.some((t=>ow(e,t,n)))}function Nt(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);"function"==typeof s&&Kh(s,r);try{e[t]=s}catch{Ji&>.log(`Failed to replace method "${t}" in object`,e)}}function Fi(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Ji&>.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Kh(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Fi(e,"__sentry_original__",t)}catch{}}function Yh(e){return e.__sentry_original__}function uw(e){if(Jb(e))return{message:e.message,name:e.name,stack:e.stack,...Sp(e)};if(Xb(e)){const t={type:e.type,target:vp(e.target),currentTarget:vp(e.currentTarget),...Sp(e)};return typeof CustomEvent<"u"&&Uo(e,CustomEvent)&&(t.detail=e.detail),t}return e}function vp(e){try{return Zb(e)?Uc(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Sp(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 Gt(e){return tc(e,new Map)}function tc(e,t){if(cw(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]=tc(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(tc(e,t))})),r}return e}function cw(e){if(!Lc(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const Jh=1e3;function Fo(){return Date.now()/Jh}function lw(){const{performance:e}=lt;if(!e||!e.now)return Fo;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/Jh}const Xh=lw(),dw=(()=>{const{performance:e}=lt;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):t;return o||a<t?s<=a?e.timeOrigin:i:r})();function Sn(){const e=lt,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 fw(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function pw(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=""),o.type||(o.type="Error")}function Zh(e,t){const n=fw(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 yn;function Ip(e){return new vn((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(yn||(yn={}));class vn{constructor(e){vn.prototype.__init.call(this),vn.prototype.__init2.call(this),vn.prototype.__init3.call(this),vn.prototype.__init4.call(this),this._state=yn.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new vn(((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 vn(((t,n)=>{let r,s;return this.then((t=>{s=!1,r=t,e&&e()}),(t=>{s=!0,r=t,e&&e()})).then((()=>{s?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(yn.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(yn.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===yn.PENDING){if(Nc(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===yn.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===yn.RESOLVED&&e[1](this._value),this._state===yn.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function hw(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||Xh(),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:Sn()),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 Ep(){return Sn()}function nc(){return Sn().substring(16)}function jo(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]=jo(r[e],t[e],n-1));return r}const rc="_sentrySpan";function bp(e,t){t?Fi(e,rc,t):delete e[rc]}function ic(e){return e[rc]}const mw=100;class Fc{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:Ep(),spanId:nc()}}clone(){const e=new Fc;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,bp(e,ic(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&&hw(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 ur?[t.getScopeData(),t.getRequestSession()]:Lc(t)?[e,e.requestSession]:[],{tags:s,extra:o,user:i,contexts:a,level:u,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),u&&(this._level=u),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),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,bp(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ep()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:mw;if(n<=0)return this;const r={timestamp:Fo(),...e},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,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:ic(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=jo(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:nc(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Sn();if(!this._client)return gt.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:Sn();if(!this._client)return gt.warn("No client configured on scope - will not capture message!"),r;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Sn();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(gt.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 ur=Fc;function yw(){return No("defaultCurrentScope",(()=>new ur))}function gw(){return No("defaultIsolationScope",(()=>new ur))}class _w{constructor(e,t){let n,r;n=e||new ur,r=t||new ur,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 Nc(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 Fr(){const e=Bc(Xi());return e.stack=e.stack||new _w(yw(),gw())}function vw(e){return Fr().withScope(e)}function Sw(e,t){const n=Fr();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function wp(e){return Fr().withScope((()=>e(Fr().getIsolationScope())))}function Iw(){return{withIsolationScope:wp,withScope:vw,withSetScope:Sw,withSetIsolationScope:(e,t)=>wp(t),getCurrentScope:()=>Fr().getScope(),getIsolationScope:()=>Fr().getIsolationScope()}}function $o(e){const t=Bc(e);return t.acs?t.acs:Iw()}function Hr(){return $o(Xi()).getCurrentScope()}function Zi(){return $o(Xi()).getIsolationScope()}function Ew(){return No("globalScope",(()=>new ur))}function bw(...e){const t=$o(Xi());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function rn(){return Hr().getClient()}const ww="_sentryMetrics";function Aw(e){const t=e[ww];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(Gt(r));return n}const em="sentry.source",Tw="sentry.sample_rate",Rw="sentry.op",Cw="sentry.origin",kw=0,Mw=1,Ow="sentry-",Pw=/^sentry-/;function Dw(e){const t=xw(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(Pw)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function xw(e){if(e&&(Eo(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Ap(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Ap(e)}function Ap(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const Bw=1;function Vw(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Gt({parent_span_id:r?t:ji(e).parent_span_id,span_id:r?nc():t,trace_id:n})}function Tp(e){return"number"==typeof e?Rp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Rp(e.getTime()):Xh()}function Rp(e){return e>9999999999?e/1e3:e}function ji(e){if(Nw(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Lw(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:u}=e;return Gt({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Tp(s),timestamp:Tp(i)||void 0,status:Fw(u),op:r[Rw],origin:r[Cw],_metrics_summary:Aw(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Lw(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function Nw(e){return"function"==typeof e.getSpanJSON}function Uw(e){const{traceFlags:t}=e.spanContext();return 1===t}function Fw(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const jw="_sentryRootSpan";function jc(e){return e[jw]||e}function tm(){const e=$o(Xi());return e.getActiveSpan?e.getActiveSpan():ic(Hr())}function $w(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=rn(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const nm="production",zw="_frozenDsc";function Ww(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=Gt({environment:n.environment||nm,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function rm(e){const t=rn();if(!t)return{};const n=jc(e),r=n[zw];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&Dw(o);if(i)return i;const a=Ww(e.spanContext().traceId,t),u=ji(n),c=u.data||{},l=c[Tw];null!=l&&(a.sample_rate=`${l}`);const p=c[em],d=u.description;return"url"!==p&&d&&(a.transaction=d),$w()&&(a.sampled=String(Uw(n))),t.emit("createDsc",a,n),a}function Cp(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;Dc&>.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 Gw(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:u}=e;return`${a}://${u}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Hw(){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 gn(e,t=100,n=1/0){try{return sc("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function sc(e,t,n=1/0,r=1/0,s=Hw()){const[o,i]=s;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=Qw(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const u="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===u)return a.replace("object ","");if(o(t))return"[Circular ~]";const c=t;if(c&&"function"==typeof c.toJSON)try{return sc("",c.toJSON(),u-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let p=0;const d=uw(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(p>=r){l[e]="[MaxProperties ~]";break}const t=d[e];l[e]=sc(e,t,u-1,r,s),p++}return i(t),l}function Qw(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(nw(t))return"[VueViewModel]";if(tw(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${En(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=qw(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function qw(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Kw(e,t=[]){return[e,t]}function Yw(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Jw(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Gw(r)},...s&&{trace:Gt({...s})}}}function oc(e,t,n,r=0){return new vn(((s,o)=>{const i=e[r];if(null===t||"function"!=typeof i)s(t);else{const a=i({...t},n);Dc&&i.id&&null===a&>.log(`Event processor "${i.id}" dropped event`),Nc(a)?a.then((t=>oc(e,t,n,r+1).then(s))).then(null,o):oc(e,a,n,r+1).then(s).then(null,o)}}))}let ro,kp,io;function Xw(e){const t=lt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return io&&n.length===kp||(kp=n.length,io=n.reduce(((n,r)=>{ro||(ro={});const s=ro[r];if(s)n[s[0]]=s[1];else{const s=e(r);for(let e=s.length-1;e>=0;e--){const o=s[e],i=o&&o.filename,a=t[r];if(i&&a){n[i]=a,ro[r]=[i,a];break}}}return n}),{})),io}function Zw(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;eA(e,t),r&&rA(e,r),iA(e,n),tA(e,s),nA(e,o)}function Mp(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:p,propagationContext:d,transactionName:f,span:m}=t;so(e,"extra",n),so(e,"tags",r),so(e,"user",s),so(e,"contexts",o),e.sdkProcessingMetadata=jo(e.sdkProcessingMetadata,a,2),i&&(e.level=i),f&&(e.transactionName=f),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...d}}function so(e,t,n){e[t]=jo(e[t],n,1)}function eA(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,u=Gt(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=Gt(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=Gt(s);l&&Object.keys(l).length&&(e.user={...l,...e.user});const p=Gt(o);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),i&&(e.level=i),a&&"transaction"!==e.type&&(e.transaction=a)}function tA(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function nA(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function rA(e,t){e.contexts={trace:Vw(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:rm(t),...e.sdkProcessingMetadata};const n=ji(jc(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function iA(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 sA(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,u={...t,event_id:t.event_id||n.event_id||Sn(),timestamp:t.timestamp||Fo()},c=n.integrations||e.integrations.map((e=>e.name));oA(u,e),cA(u,c),s&&s.emit("applyFrameMetadata",t),void 0===t.type&&aA(u,e.stackParser);const l=dA(r,n.captureContext);n.mechanism&&Zh(u,n.mechanism);const p=s?s.getEventProcessors():[],d=Ew().getScopeData();if(o){Mp(d,o.getScopeData())}if(l){Mp(d,l.getScopeData())}const f=[...n.attachments||[],...d.attachments];f.length&&(n.attachments=f),Zw(u,d);return oc([...p,...d.eventProcessors],u,n).then((e=>(e&&uA(e),"number"==typeof i&&i>0?lA(e,i,a):e)))}function oA(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||nm,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=ku(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=ku(i.value,o));const a=e.request;a&&a.url&&(a.url=ku(a.url,o))}function aA(e,t){const n=Xw(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function uA(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 cA(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function lA(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:gn(e.data,t,n)}})))},...e.user&&{user:gn(e.user,t,n)},...e.contexts&&{contexts:gn(e.contexts,t,n)},...e.extra&&{extra:gn(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=gn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:gn(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=gn(e.contexts.flags,3,n)),r}function dA(e,t){if(!t)return e;const n=e?e.clone():new ur;return n.update(t),n}function $c(e,t){return Hr().captureException(e,void 0)}function fA(e,t){const n={captureContext:t};return Hr().captureMessage(e,void 0,n)}function pA(e,t){Zi().setContext(e,t)}function hA(e,t){Zi().setExtra(e,t)}function mA(e){Zi().addEventProcessor(e)}const yA=6e4;function gA(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?yA:r-t}function _A(e,t){return e[t]||e.all||0}function vA(e,t,n=Date.now()){return _A(e,t)>n}function SA(e,{statusCode:t,headers:n},r=Date.now()){const s={...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),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(s[e]=r+a):s[e]=r+a;else s.all=r+a}else i?s.all=r+gA(i,r):429===t&&(s.all=r+6e4);return s}function IA(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return bA(e,n)||EA(e,r)}function EA(e,t){return!!t&&Op(e)===Op(t)}function bA(e,t){return!!t&&e.includes(t.host)}function Op(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const wA=100;function AA(e,t){const n=rn(),r=Zi();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=wA}=n.getOptions();if(o<=0)return;const i={timestamp:Fo(),...e},a=s?xc((()=>s(i,t))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,o))}function TA(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const RA="Dedupe",CA=()=>{let e;return{name:RA,processEvent(t){if(t.type)return t;try{if(MA(t,e))return Dc&>.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},kA=CA;function MA(e,t){return!!t&&!(!OA(e,t)&&!PA(e,t))}function OA(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!sm(e,t)||!im(e,t))}function PA(e,t){const n=Pp(t),r=Pp(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&sm(e,t)&&im(e,t))}function im(e,t){let n=gp(e),r=gp(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],s=n[e];if(t.filename!==s.filename||t.lineno!==s.lineno||t.colno!==s.colno||t.function!==s.function)return!1}return!0}function sm(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 Pp(e){return e.exception&&e.exception.values&&e.exception.values[0]}function DA(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function xA(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function BA(){return!xA()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function Dp(){return typeof window<"u"&&(!BA()||VA())}function VA(){const e=lt.process;return!!e&&"renderer"===e.type}const oo=lt;function LA(){const e=oo.chrome,t=e&&e.app&&e.app.runtime,n="history"in oo&&!!oo.history.pushState&&!!oo.history.replaceState;return!t&&n}function NA(e,t){return e??t()}function go(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const Si=lt;function UA(){setTimeout((()=>{}))}function jr(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Yh(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>jr(e,t)));return e.apply(this,r)}catch(e){throw UA(),bw((r=>{r.addEventProcessor((e=>(t.mechanism&&(pw(e),Zh(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),$c(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}Kh(n,e),Fi(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const om=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,FA=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",es=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s||0),(o||void 0===s)&&(s=t.value,t.delta=o,t.rating=FA(t.value,n),e(t)))}},Pe=lt,jA=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,am=(e=!0)=>{const t=Pe.performance&&Pe.performance.getEntriesByType&&Pe.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},zc=()=>{const e=am();return e&&e.activationStart||0},ts=(e,t)=>{const n=am();let r="navigate";return n&&(Pe.document&&Pe.document.prerendering||zc()>0?r="prerender":Pe.document&&Pe.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:jA(),navigationType:r}},cr=(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{}},ns=e=>{const t=t=>{("pagehide"===t.type||Pe.document&&"hidden"===Pe.document.visibilityState)&&e(t)};Pe.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},zo=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Ti=-1;const $A=()=>"hidden"!==Pe.document.visibilityState||Pe.document.prerendering?1/0:0,bo=e=>{"hidden"===Pe.document.visibilityState&&Ti>-1&&(Ti="visibilitychange"===e.type?e.timeStamp:0,WA())},zA=()=>{addEventListener("visibilitychange",bo,!0),addEventListener("prerenderingchange",bo,!0)},WA=()=>{removeEventListener("visibilitychange",bo,!0),removeEventListener("prerenderingchange",bo,!0)},Wc=()=>(Pe.document&&Ti<0&&(Ti=$A(),zA()),{get firstHiddenTime(){return Ti}}),Wo=e=>{Pe.document&&Pe.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},GA=[1800,3e3],HA=(e,t={})=>{Wo((()=>{const n=Wc(),r=ts("FCP");let s;const o=cr("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-zc(),0),r.entries.push(e),s(!0)))}))}));o&&(s=es(e,r,GA,t.reportAllChanges))}))},QA=[.1,.25],qA=(e,t={})=>{HA(zo((()=>{const n=ts("CLS",0);let r,s=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];s&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(s+=e.value,o.push(e)):(s=e.value,o=[e])}})),s>n.value&&(n.value=s,n.entries=o,r())},a=cr("layout-shift",i);a&&(r=es(e,n,QA,t.reportAllChanges),ns((()=>{i(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},KA=[100,300],YA=(e,t={})=>{Wo((()=>{const n=Wc(),r=ts("FID");let s;const o=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),s(!0))},i=e=>{e.forEach(o)},a=cr("first-input",i);s=es(e,r,KA,t.reportAllChanges),a&&ns(zo((()=>{i(a.takeRecords()),a.disconnect()})))}))};let um=0,Mu=1/0,ao=0;const JA=e=>{e.forEach((e=>{e.interactionId&&(Mu=Math.min(Mu,e.interactionId),ao=Math.max(ao,e.interactionId),um=ao?(ao-Mu)/7+1:0)}))};let ac;const XA=()=>ac?um:performance.interactionCount||0,ZA=()=>{"interactionCount"in performance||ac||(ac=cr("event",JA,{type:"event",buffered:!0,durationThreshold:0}))},_n=[],Ou=new Map,eT=40;let tT=0;const nT=()=>XA()-tT,rT=()=>{const e=Math.min(_n.length-1,Math.floor(nT()/50));return _n[e]},Pu=10,iT=[],sT=e=>{if(iT.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=_n[_n.length-1],n=Ou.get(e.interactionId);if(n||_n.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]};Ou.set(t.id,t),_n.push(t)}_n.sort(((e,t)=>t.latency-e.latency)),_n.length>10&&_n.splice(10).forEach((e=>Ou.delete(e.id)))}},cm=e=>{const t=Pe.requestIdleCallback||Pe.setTimeout;let n=-1;return e=zo(e),Pe.document&&"hidden"===Pe.document.visibilityState?e():(n=t(e),ns(e)),n},oT=[200,500],aT=(e,t={})=>{"PerformanceEventTiming"in Pe&&"interactionId"in PerformanceEventTiming.prototype&&Wo((()=>{ZA();const n=ts("INP");let r;const s=e=>{cm((()=>{e.forEach(sT);const t=rT();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},o=cr("event",s,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=es(e,n,oT,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),ns((()=>{s(o.takeRecords()),r(!0)})))}))},uT=[2500,4e3],xp={},cT=(e,t={})=>{Wo((()=>{const n=Wc(),r=ts("LCP");let s;const o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-zc(),0),r.entries=[e],s())}))},i=cr("largest-contentful-paint",o);if(i){s=es(e,r,uT,t.reportAllChanges);const n=zo((()=>{xp[r.id]||(o(i.takeRecords()),i.disconnect(),xp[r.id]=!0,s(!0))}));["keydown","click"].forEach((e=>{Pe.document&&addEventListener(e,(()=>cm(n)),{once:!0,capture:!0})})),ns(n)}}))},Ri={},wo={};let lm,dm,fm,pm;function lT(e,t=!1){return Go("cls",e,mT,lm,t)}function dT(e,t=!1){return Go("lcp",e,gT,fm,t)}function fT(e){return Go("fid",e,yT,dm)}function pT(e){return Go("inp",e,_T,pm)}function hT(e,t){return hm(e,t),wo[e]||(vT(e),wo[e]=!0),mm(e,t)}function rs(e,t){const n=Ri[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){om&>.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${En(r)}\nError:`,t)}}function mT(){return qA((e=>{rs("cls",{metric:e}),lm=e}),{reportAllChanges:!0})}function yT(){return YA((e=>{rs("fid",{metric:e}),dm=e}))}function gT(){return cT((e=>{rs("lcp",{metric:e}),fm=e}),{reportAllChanges:!0})}function _T(){return aT((e=>{rs("inp",{metric:e}),pm=e}))}function Go(e,t,n,r,s=!1){let o;return hm(e,t),wo[e]||(o=n(),wo[e]=!0),r&&t({metric:r}),mm(e,t,s?o:void 0)}function vT(e){const t={};"event"===e&&(t.durationThreshold=0),cr(e,(t=>{rs(e,{entries:t})}),t)}function hm(e,t){Ri[e]=Ri[e]||[],Ri[e].push(t)}function mm(e,t,n){return()=>{n&&n();const r=Ri[e];if(!r)return;const s=r.indexOf(t);-1!==s&&r.splice(s,1)}}const ST=1e3;let Bp,uc,cc,uo;function IT(e){Gh("dom",e),Hh("dom",ET)}function ET(){if(!Pe.document)return;const e=ec.bind(null,"dom"),t=Vp(e,!0);Pe.document.addEventListener("click",t,!1),Pe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Pe[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Nt(r,"addEventListener",(function(t){return function(n,r,s){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=Vp(e);o.handler=r,t.call(this,n,r,s)}o.refCount++}catch{}return t.call(this,n,r,s)}})),Nt(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.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 bT(e){if(e.type!==uc)return!1;try{if(!e.target||e.target._sentryId!==cc)return!1}catch{}return!0}function wT(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function Vp(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=AT(n);if(wT(n.type,r))return;Fi(n,"_sentryCaptured",!0),r&&!r._sentryId&&Fi(r,"_sentryId",Sn());const s="keypress"===n.type?"input":n.type;bT(n)||(e({event:n,name:s,global:t}),uc=n.type,cc=r?r._sentryId:void 0),clearTimeout(Bp),Bp=Pe.setTimeout((()=>{cc=void 0,uc=void 0}),ST)}}function AT(e){try{return e.target}catch{return null}}function TT(e){const t="history";Gh(t,e),Hh(t,RT)}function RT(){if(!LA())return;const e=Pe.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=uo,t=String(n);uo=t,ec("history",{from:e,to:t})}return e.apply(this,t)}}Pe.onpopstate=function(...t){const n=Pe.location.href,r=uo;if(uo=n,ec("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Nt(Pe.history,"pushState",t),Nt(Pe.history,"replaceState",t)}const Du={};function CT(e){const t=Du[e];if(t)return t;let n=Pe[e];if(DA(n))return Du[e]=n.bind(Pe);const r=Pe.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(t)}catch(t){om&>.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Du[e]=n.bind(Pe))}function $r(...e){return CT("setTimeout")(...e)}const kT="__sentry_xhr_v3__",MT=["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"],OT="BrowserApiErrors",PT=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:OT,setupOnce(){t.setTimeout&&Nt(Si,"setTimeout",Lp),t.setInterval&&Nt(Si,"setInterval",Lp),t.requestAnimationFrame&&Nt(Si,"requestAnimationFrame",xT),t.XMLHttpRequest&&"XMLHttpRequest"in Si&&Nt(XMLHttpRequest.prototype,"send",BT);const e=t.eventTarget;e&&(Array.isArray(e)?e:MT).forEach(VT)}}},DT=PT;function Lp(e){return function(...t){const n=t[0];return t[0]=jr(n,{mechanism:{data:{function:En(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function xT(e){return function(t){return e.apply(this,[jr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:En(e)},handled:!1,type:"instrument"}})])}}function BT(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Nt(n,e,(function(t){const n={mechanism:{data:{function:e,handler:En(t)},handled:!1,type:"instrument"}},r=Yh(t);return r&&(n.mechanism.data.handler=En(r)),jr(t,n)}))})),e.apply(this,t)}}function VT(e){const t=Si[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Nt(n,"addEventListener",(function(t){return function(n,r,s){try{LT(r)&&(r.handleEvent=jr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:En(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,jr(r,{mechanism:{data:{function:"addEventListener",handler:En(r),target:e},handled:!1,type:"instrument"}}),s])}})),Nt(n,"removeEventListener",(function(e){return function(t,n,r){try{const s=n.__sentry_wrapped__;s&&e.call(this,t,s,r)}catch{}return e.call(this,t,n,r)}})))}function LT(e){return"function"==typeof e.handleEvent}const $e=lt,Gc="sentryReplaySession",NT="replay_event",Hc="Unable to send Replay",UT=3e5,FT=9e5,jT=5e3,$T=5500,zT=6e4,WT=5e3,GT=3,Np=15e4,co=5e3,HT=3e3,QT=300,Qc=2e7,qT=4999,KT=15e3,Up=36e5;function lc(e,t){return e??t()}function $i(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}var nt;function YT(e){return e.nodeType===e.ELEMENT_NODE}function Ci(e){const t=$i([e,"optionalAccess",e=>e.host]);return $i([t,"optionalAccess",e=>e.shadowRoot])===e}function ki(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function JT(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 XT(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 Ao(e){try{const t=e.rules||e.cssRules;return t?JT(Array.from(t,ym).join("")):null}catch{return null}}function ZT(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function ym(e){let t;if(tR(e))try{t=Ao(e.styleSheet)||XT(e)}catch{}else if(nR(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=ZT(e)),n&&(t=eR(t)),n||r)return t}return t||e.cssText}function eR(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function tR(e){return"styleSheet"in e}function nR(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"}(nt||(nt={}));class gm{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return lc($i([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 rR(){return new gm}function Ho({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 zi({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function zr(e){return e.toLowerCase()}function dc(e){return e.toUpperCase()}const Fp="__rrweb_original__";function iR(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 s=t.getImageData,o=Fp in s?s[Fp]:s;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 qc(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?zr(t):null}function To(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function _m(e,t){let n;try{n=new URL(e,lc(t,(()=>window.location.href)))}catch{return null}return lc($i([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const jp={};function vm(e){const t=jp[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 s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch{}return jp[e]=r.bind(window)}function fc(...e){return vm("setTimeout")(...e)}function Sm(...e){return vm("clearTimeout")(...e)}function Im(e){try{return e.contentDocument}catch{}}let sR=1;const oR=new RegExp("[^a-z0-9-_:]"),Wi=-2;function Kc(){return sR++}function aR(e){if(e instanceof HTMLFormElement)return"form";const t=zr(e.tagName);return oR.test(t)?"div":t}function uR(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let Or,$p;const cR=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lR=/^(?:[a-z+]+:)?\/\//i,dR=/^www\..*/i,fR=/^(data:)([^,]*),(.*)/i;function Ro(e,t){return(e||"").replace(cR,((e,n,r,s,o,i)=>{const a=r||o||i,u=n||s||"";if(!a)return e;if(lR.test(a)||dR.test(a))return`url(${u}${a}${u})`;if(fR.test(a))return`url(${u}${a}${u})`;if("/"===a[0])return`url(${u}${uR(t)+a}${u})`;const c=t.split("/"),l=a.split("/");c.pop();for(const e of l)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${u}${c.join("/")}${u})`}))}const pR=/^[^ \t\n\r\u000c]+/,hR=/^[, \t\n\r\u000c]+/;function mR(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(hR),!(n>=t.length);){let o=r(pR);if(","===o.slice(-1))o=Dr(e,o.substring(0,o.length-1)),s.push(o);else{let r="";o=Dr(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,s.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return s.join(", ")}const zp=new WeakMap;function Dr(e,t){return t&&""!==t.trim()?Qo(e,t):t}function yR(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function Qo(e,t){let n=zp.get(e);if(n||(n=e.createElement("a"),zp.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Em(e,t,n,r,s,o){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?Dr(e,r):"srcset"===n?mR(e,r):"style"===n?Ro(r,Qo(e)):"object"===t&&"data"===n?Dr(e,r):"function"==typeof o?o(n,r,s):r)}function bm(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function gR(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 _R(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function rr(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:rr(e.parentNode,t,n,r+1)}function xr(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(_R(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function Wr(e,t,n,r,s,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 a=-1,u=-1;if(o){if(u=rr(i,xr(r,s)),u<0)return!0;a=rr(i,xr(t,n),u>=0?u:1/0)}else{if(a=rr(i,xr(t,n)),a<0)return!1;u=rr(i,xr(r,s),a>=0?a:1/0)}return a>=0?!(u>=0)||a<=u:!(u>=0)&&!!o}catch{}return!!o}function vR(e,t,n){const r=e.contentWindow;if(!r)return;let s,o=!1;try{s=r.document.readyState}catch{return}if("complete"!==s){const r=fc((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{Sm(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return fc(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function SR(e,t,n){let r,s=!1;try{r=e.sheet}catch{return}if(r)return;const o=fc((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{Sm(o),s=!0,t()}))}function IR(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:m={},maskTextFn:h,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:A,keepIframeSrcFn:_,newlyAddedElement:b=!1}=t,I=ER(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:nt.Document,childNodes:[],compatMode:e.compatMode}:{type:nt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:nt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return wR(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:f,maskAttributeFn:u,maskInputOptions:m,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:A,keepIframeSrcFn:_,newlyAddedElement:b,rootId:I,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d});case e.TEXT_NODE:return bR(e,{doc:n,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d,maskTextFn:h,maskInputOptions:m,maskInputFn:y,rootId:I});case e.CDATA_SECTION_NODE:return{type:nt.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:nt.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}function ER(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function bR(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:u,maskInputFn:c,rootId:l}=t,p=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const f="STYLE"===p||void 0,m="SCRIPT"===p||void 0,h="TEXTAREA"===p||void 0;if(f&&d){try{e.nextSibling||e.previousSibling||$i([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=Ao(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=Ro(d,Qo(t.doc))}m&&(d="SCRIPT_PLACEHOLDER");const y=Wr(e,r,o,s,i,n);if(!f&&!m&&!h&&d&&y&&(d=a?a(d,e.parentElement):d.replace(/[\S]/g,"*")),h&&d&&(u.textarea||y)&&(d=c?c(d,e.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===p&&d){d=zi({isMasked:Wr(e,r,o,s,i,Ho({type:null,tagName:p,maskInputOptions:u})),element:e,value:d,maskInputFn:c})}return{type:nt.Text,textContent:d||"",isStyle:f,rootId:l}}function wR(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:h,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:A,unmaskTextSelector:_}=t,b=gR(e,r,s,o),I=aR(e);let S={};const w=e.attributes.length;for(let t=0;t<w;t++){const r=e.attributes[t];r.name&&!bm(I,r.name,r.value)&&(S[r.name]=Em(n,I,zr(r.name),r.value,e,u))}if("link"===I&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Ao(t)),r&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=Ro(r,t.href))}if("style"===I&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Ao(e.sheet);t&&(S._cssText=Ro(t,Qo(n)))}if("input"===I||"textarea"===I||"select"===I||"option"===I){const t=e,n=qc(t),r=To(t,dc(I),n),s=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Wr(t,g,A,v,_,Ho({type:n,tagName:dc(I),maskInputOptions:a}));S.value=zi({isMasked:e,element:t,value:r,maskInputFn:c})}s&&(S.checked=s)}if("option"===I&&(e.selected&&!a.select?S.selected=!0:delete S.selected),"canvas"===I&&d)if("2d"===e.__context)iR(e)||(S.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(l.type,l.quality)&&(S.rr_dataURL=t)}if("img"===I&&p){Or||(Or=n.createElement("canvas"),$p=Or.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",s=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{Or.width=t.naturalWidth,Or.height=t.naturalHeight,$p.drawImage(t,0,0),S.rr_dataURL=Or.toDataURL(l.type,l.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&&(s?S.crossOrigin=s:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if(("audio"===I||"video"===I)&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),b){const{width:t,height:n}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"===I&&!f(S.src)&&(!b&&!Im(e)&&(S.rr_src=S.src),delete S.src);try{customElements.get(I)&&(E=!0)}catch{}return{type:nt.Element,tagName:I,attributes:S,childNodes:[],isSVG:yR(e)||void 0,needBlock:b,rootId:h,isCustom:E}}function je(e){return null==e?"":e.toLowerCase()}function AR(e,t){if(t.comment&&e.type===nt.Comment)return!0;if(e.type===nt.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"===_m(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(je(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===je(e.attributes.name)||"icon"===je(e.attributes.rel)||"apple-touch-icon"===je(e.attributes.rel)||"shortcut icon"===je(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&je(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(je(e.attributes.property).match(/^(og|twitter|fb):/)||je(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===je(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===je(e.attributes.name)||"googlebot"===je(e.attributes.name)||"bingbot"===je(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===je(e.attributes.name)||"generator"===je(e.attributes.name)||"framework"===je(e.attributes.name)||"publisher"===je(e.attributes.name)||"progid"===je(e.attributes.name)||je(e.attributes.property).match(/^article:/)||je(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===je(e.attributes.name)||"yandex-verification"===je(e.attributes.name)||"csrf-token"===je(e.attributes.name)||"p:domain_verify"===je(e.attributes.name)||"verify-v1"===je(e.attributes.name)||"verification"===je(e.attributes.name)||"shopify-checkout-api-token"===je(e.attributes.name)))return!0}}return!1}function Br(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:p,skipChild:d=!1,inlineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:A={},inlineImages:_=!1,recordCanvas:b=!1,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:w=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:P=()=>!1,newlyAddedElement:T=!1}=t;let{preserveWhiteSpace:M=!0}=t;const C=IR(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,dataURLOptions:A,inlineImages:_,recordCanvas:b,keepIframeSrcFn:P,newlyAddedElement:T});if(!C)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):AR(C,v)||!M&&C.type===nt.Text&&!C.isStyle&&!C.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Kc();const V=Object.assign(C,{id:R});if(r.add(e,V),-2===R)return null;I&&I(e);let O=!d;if(V.type===nt.Element){O=O&&!V.needBlock,delete V.needBlock;const t=e.shadowRoot;t&&ki(t)&&(V.isShadowHost=!0)}if((V.type===nt.Document||V.type===nt.Element)&&O){v.headWhitespace&&V.type===nt.Element&&"head"===V.tagName&&(M=!1);const t={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:p,skipChild:d,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:A,inlineImages:_,recordCanvas:b,preserveWhiteSpace:M,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:P};for(const n of Array.from(e.childNodes)){const e=Br(n,t);e&&V.childNodes.push(e)}if(YT(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Br(n,t);r&&(ki(e.shadowRoot)&&(r.isShadow=!0),V.childNodes.push(r))}}return e.parentNode&&Ci(e.parentNode)&&ki(e.parentNode)&&(V.isShadow=!0),V.type===nt.Element&&"iframe"===V.tagName&&vR(e,(()=>{const t=Im(e);if(t&&S){const n=Br(t,{doc:t,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:A,inlineImages:_,recordCanvas:b,preserveWhiteSpace:M,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:P});n&&S(e,n)}}),w),V.type===nt.Element&&"link"===V.tagName&&"string"==typeof V.attributes.rel&&("stylesheet"===V.attributes.rel||"preload"===V.attributes.rel&&"string"==typeof V.attributes.href&&"css"===_m(V.attributes.href))&&SR(e,(()=>{if(E){const t=Br(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:A,inlineImages:_,recordCanvas:b,preserveWhiteSpace:M,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:P});t&&E(e,t)}}),k),V}function TR(e,t){const{mirror:n=new gm,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:p=!0,inlineImages:d=!1,recordCanvas:f=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:A,preserveWhiteSpace:_,onSerialize:b,onIframeLoad:I,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:k=()=>!1}=t;return Br(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:!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}:!1===m?{}:m,maskAttributeFn:h,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:A,inlineImages:d,recordCanvas:f,preserveWhiteSpace:_,onSerialize:b,onIframeLoad:I,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:k,newlyAddedElement:!1})}function Bn(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function ht(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Pr="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 Wp={map:{},getId:()=>(console.error(Pr),-1),getNode:()=>(console.error(Pr),null),removeNodeFromMap(){console.error(Pr)},has:()=>(console.error(Pr),!1),reset(){console.error(Pr)}};function Gi(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();!s&&!1===n.leading&&(s=i);const a=t-(i-s),u=this;a<=0||a>t?(r&&(DR(r),r=null),s=i,e.apply(u,o)):!r&&!1!==n.trailing&&(r=qo((()=>{s=!1===n.leading?0:Date.now(),r=null,e.apply(u,o)}),a))}}function wm(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){qo((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>wm(e,t,o||{},!0)}function Yc(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(Wp=new Proxy(Wp,{get:(e,t,n)=>("map"===t&&console.error(Pr),Reflect.get(e,t,n))}));let Co=Date.now;function Am(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Bn([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Bn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Bn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Bn([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Bn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Bn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Tm(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Rm(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Cm(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Ct(e,t,n,r,s){if(!e)return!1;const o=Cm(e);if(!o)return!1;const i=xr(t,n);if(!s){const e=r&&o.matches(r);return i(o)&&!e}const a=rr(o,i);let u=-1;return!(a<0)&&(r&&(u=rr(o,xr(null,r))),a>-1&&u<0||a<u)}function RR(e,t){return-1!==t.getId(e)}function xu(e,t){return-2===t.getId(e)}function km(e,t){if(Ci(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||km(e.parentNode,t))}function pc(e){return!!e.changedTouches}function CR(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 Mm(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function Om(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function hc(e){return!!Bn([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(Co=()=>(new Date).getTime());class kR{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return NA(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 Pm(e){let t=null;return Bn([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 MR(e){let t,n=e;for(;t=Pm(n);)n=t;return n}function OR(e){const t=e.ownerDocument;if(!t)return!1;const n=MR(e);return t.contains(n)}function Dm(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||OR(e))}const Gp={};function Jc(e){const t=Gp[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 s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch{}return Gp[e]=r.bind(window)}function PR(...e){return Jc("requestAnimationFrame")(...e)}function qo(...e){return Jc("setTimeout")(...e)}function DR(...e){return Jc("clearTimeout")(...e)}var Hp,Qp,we=(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))(we||{}),_e=(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))(_e||{}),pt=(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))(pt||{}),mn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(mn||{});function Xc(e){try{return e.contentDocument}catch{}}function xR(e){try{return e.contentWindow}catch{}}function BR(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function qp(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"}(Hp||(Hp={})),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"}(Qp||(Qp={}));class VR{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=BR([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&qp(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&&qp(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 Kp=(e,t)=>`${e}@${t}`;class LR{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 VR,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!Dm(s))return;const o=Ci(s.parentNode)?this.mirror.getId(Pm(s)):this.mirror.getId(s.parentNode),i=r(s);if(-1===o||-1===i)return n.addNode(s);const a=Br(s,{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=>{Mm(e,this.mirror)&&!Ct(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Om(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hc(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Ct(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)}});a&&(e.push({parentId:o,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Yp(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)!Jp(this.droppedSet,e)&&!Yp(this.removes,e,this.mirror)||Jp(this.movedSet,e)?s(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),s(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(!xu(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!Ct(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Wr(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Cm(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=qc(t),s=t.tagName;r=To(t,s,n);const o=Ho({maskInputOptions:this.maskInputOptions,tagName:s,type:n});r=zi({isMasked:Wr(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(Ct(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Xc(t))return;n="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!bm(t.tagName,n)&&(s.attributes[n]=Em(this.doc,zr(t.tagName),zr(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)?s.styleDiff[e]=""===o?r:[r,o]:s._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(Ct(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=Ci(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Ct(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||xu(t,this.mirror)||!RR(t,this.mirror)||(this.addedSet.has(t)?(mc(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||km(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Kp(n,r)]?mc(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Ci(e.target)||!ki(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(xu(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[Kp(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Ct(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),hc(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 mc(e,t){e.delete(t),t.childNodes.forEach((t=>mc(e,t)))}function Yp(e,t,n){return 0!==e.length&&NR(e,t,n)}function NR(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 Jp(e,t){return 0!==e.size&&xm(e,t)}function xm(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||xm(e,n))}let Mi;function UR(e){Mi=e}function FR(){Mi=void 0}const De=e=>Mi?(...t)=>{try{return e(...t)}catch(e){if(Mi&&!0===Mi(e))return()=>{};throw e}}:e;function Wt(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const Vr=[];function is(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 Bm(e,t){const n=new LR;Vr.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=Wt([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);s&&window[s]&&(r=window[s]);const o=new r(De((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 jR({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const u=Gi(De((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),o),c=De(Gi(De((e=>{const t=is(e),{clientX:n,clientY:s}=pc(e)?e.changedTouches[0]:e;i||(i=Co()),a.push({x:n,y:s,id:r.getId(t),timeOffset:Co()-i}),u(typeof DragEvent<"u"&&e instanceof DragEvent?_e.Drag:e instanceof MouseEvent?_e.MouseMove:_e.TouchMove)})),s,{trailing:!1})),l=[ht("mousemove",c,n),ht("touchmove",c,n),ht("drag",c,n)];return De((()=>{l.forEach((e=>e()))}))}function $R({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,u=[];let c=null;return Object.keys(pt).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=zr(i);const l=(t=>i=>{const a=is(i);if(Ct(a,r,s,o,!0))return;let u=null,l=t;if("pointerType"in i){switch(i.pointerType){case"mouse":u=mn.Mouse;break;case"touch":u=mn.Touch;break;case"pen":u=mn.Pen}u===mn.Touch?pt[t]===pt.MouseDown?l="TouchStart":pt[t]===pt.MouseUp&&(l="TouchEnd"):mn.Pen}else pc(i)&&(u=mn.Touch);null!==u?(c=u,(l.startsWith("Touch")&&u===mn.Touch||l.startsWith("Mouse")&&u===mn.Mouse)&&(u=null)):pt[t]===pt.Click&&(u=c,c=null);const p=pc(i)?i.changedTouches[0]:i;if(!p)return;const d=n.getId(a),{clientX:f,clientY:m}=p;De(e)({type:pt[l],id:d,x:f,y:m,...null!==u&&{pointerType:u}})})(i);if(window.PointerEvent)switch(pt[i]){case pt.MouseDown:case pt.MouseUp:a=a.replace("mouse","pointer");break;case pt.TouchStart:case pt.TouchEnd:return}u.push(ht(a,l,t))})),De((()=>{u.forEach((e=>e()))}))}function Vm({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){return ht("scroll",De(Gi(De((i=>{const a=is(i);if(!a||Ct(a,r,s,o,!0))return;const u=n.getId(a);if(a===t&&t.defaultView){const n=Am(t.defaultView);e({id:u,x:n.left,y:n.top})}else e({id:u,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}function zR({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ht("resize",De(Gi(De((()=>{const t=Tm(),s=Rm();(n!==t||r!==s)&&(e({width:Number(s),height:Number(t)}),n=t,r=s)})),200)),t)}const WR=["INPUT","TEXTAREA","SELECT"],Xp=new WeakMap;function GR({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:p,maskTextClass:d,unmaskTextClass:f,maskTextSelector:m,unmaskTextSelector:h}){function y(e){let n=is(e);const l=e.isTrusted,y=n&&dc(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||WR.indexOf(y)<0||Ct(n,r,s,o,!0))return;const v=n;if(v.classList.contains(i)||a&&v.matches(a))return;const A=qc(n);let _=To(v,y,A),b=!1;const I=Ho({maskInputOptions:u,tagName:y,type:A}),S=Wr(n,d,m,f,h,I);("radio"===A||"checkbox"===A)&&(b=n.checked),_=zi({isMasked:S,element:n,value:_,maskInputFn:c}),g(n,p?{text:_,isChecked:b,userTriggered:l}:{text:_,isChecked:b});const w=n.name;"radio"===A&&w&&b&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach((e=>{if(e!==n){const t=zi({isMasked:S,element:e,value:To(e,y,A),maskInputFn:c});g(e,p?{text:t,isChecked:!b,userTriggered:!1}:{text:t,isChecked:!b})}}))}function g(t,r){const s=Xp.get(t);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){Xp.set(t,r);const s=n.getId(t);De(e)({...r,id:s})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>ht(e,De(y),t))),A=t.defaultView;if(!A)return()=>{v.forEach((e=>e()))};const _=A.Object.getOwnPropertyDescriptor(A.HTMLInputElement.prototype,"value"),b=[[A.HTMLInputElement.prototype,"value"],[A.HTMLInputElement.prototype,"checked"],[A.HTMLSelectElement.prototype,"value"],[A.HTMLTextAreaElement.prototype,"value"],[A.HTMLSelectElement.prototype,"selectedIndex"],[A.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...b.map((e=>wm(e[0],e[1],{set(){De(y)({target:this,isTrusted:!1})}},!1,A)))),De((()=>{v.forEach((e=>e()))}))}function ko(e){return function(e,t){if(lo("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||lo("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||lo("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||lo("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 Vn(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function HR({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:De(((r,s,o)=>{const[i,a]=o,{id:u,styleId:c}=Vn(s,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:i,index:a}]}),r.apply(s,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:De(((r,s,o)=>{const[i]=o,{id:a,styleId:u}=Vn(s,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:i}]}),r.apply(s,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:De(((r,s,o)=>{const[i]=o,{id:a,styleId:u}=Vn(s,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replace:i}),r.apply(s,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:De(((r,s,o)=>{const[i]=o,{id:a,styleId:u}=Vn(s,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replaceSync:i}),r.apply(s,o)}))}));const u={};fo("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(fo("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),fo("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),fo("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach((([r,s])=>{c[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(c[r].insertRule,{apply:De(((r,s,o)=>{const[i,a]=o,{id:u,styleId:c}=Vn(s.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:i,index:[...ko(s),a||0]}]}),r.apply(s,o)}))}),s.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:De(((r,s,o)=>{const[i]=o,{id:a,styleId:u}=Vn(s.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:[...ko(s),i]}]}),r.apply(s,o)}))})})),De((()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(u).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}function Lm({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const s="#document"===n.nodeName?Wt([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Wt([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=Wt([s,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Wt([s,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&s&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Wt([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Wt([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}}),De((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function QR({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:De(((s,i,a)=>{const[u,c,l]=a;if(n.has(u))return o.apply(i,[u,c,l]);const{id:p,styleId:d}=Vn(Wt([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,set:{property:u,value:c,priority:l},index:ko(i.parentRule)}),s.apply(i,a)}))});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:De(((s,o,a)=>{const[u]=a;if(n.has(u))return i.apply(o,[u]);const{id:c,styleId:l}=Vn(Wt([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,remove:{property:u},index:ko(o.parentRule)}),s.apply(o,a)}))}),De((()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i}))}function qR({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=De((i=>Gi(De((o=>{const a=is(o);if(!a||Ct(a,t,n,r,!0))return;const{currentTime:u,volume:c,muted:l,playbackRate:p}=a;e({type:i,id:s.getId(a),currentTime:u,volume:c,muted:l,playbackRate:p})})),o.media||500))),u=[ht("play",a(0),i),ht("pause",a(1),i),ht("seeked",a(2),i),ht("volumechange",a(3),i),ht("ratechange",a(4),i)];return De((()=>{u.forEach((e=>e()))}))}function KR({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return s.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=Yc(t.fonts,"add",(function(t){return function(n){return qo(De((()=>{const t=s.get(n);t&&(e(t),s.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),De((()=>{r.forEach((e=>e()))}))}function YR(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const u=De((()=>{const e=t.getSelection();if(!e||a&&Wt([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const u=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:c,endContainer:l,endOffset:p}=i;Ct(a,r,s,o,!0)||Ct(l,r,s,o,!0)||u.push({start:n.getId(a),startOffset:c,end:n.getId(l),endOffset:p})}i({ranges:u})}));return u(),ht("selectionchange",u)}function JR({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Yc(n.customElements,"define",(function(e){return function(n,r,s){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,s])}})):()=>{}}function XR(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Bm(e,e.doc));const s=jR(e),o=$R(e),i=Vm(e),a=zR(e,{win:n}),u=GR(e),c=qR(e);let l=()=>{},p=()=>{},d=()=>{},f=()=>{};e.recordDOM&&(l=HR(e,{win:n}),p=Lm(e,e.doc),d=QR(e,{win:n}),e.collectFonts&&(f=KR(e)));const m=YR(e),h=JR(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return De((()=>{Vr.forEach((e=>e.reset())),Wt([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),s(),o(),i(),a(),u(),c(),l(),p(),d(),f(),m(),h(),y.forEach((e=>e()))}))}function lo(e){return typeof window[e]<"u"}function fo(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class yc{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const s=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=s.get(t);return i||(i=this.generateIdFn(),s.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 Zp(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}class ZR{constructor(){this.crossOriginIframeMirror=new yc(Kc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class eC{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new yc(Kc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yc(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}),Zp([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=Xc(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 we.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:we.IncrementalSnapshot,data:{source:_e.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case we.Meta:case we.Load:case we.DomContentLoaded:return!1;case we.Plugin:return t;case we.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case we.IncrementalSnapshot:switch(t.data.source){case _e.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 _e.Drag:case _e.TouchMove:case _e.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case _e.ViewportResize:return!1;case _e.MediaInteraction:case _e.MouseInteraction:case _e.Scroll:case _e.CanvasMutation:case _e.Input:return this.replaceIds(t.data,e,["id"]),t;case _e.StyleSheetRule:case _e.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case _e.Font:return t;case _e.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case _e.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Zp([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 s of r)!Array.isArray(t[s])&&"number"!=typeof t[s]||(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));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!==nt.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class tC{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class nC{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(!ki(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=Bm({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Vm({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),qo((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Lm({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=Xc(e),n=xR(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Yc(e.prototype,"attachShadow",(function(e){return function(r){const s=e.call(this,r);return this.shadowRoot&&Dm(this)&&n.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class eh{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class rC{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new kR,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:ym(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 iC{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,PR((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Je,Mo;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=go([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 zt=rR();function In(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:l="rr-mask",unmaskTextClass:p=null,maskTextSelector:d=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:A,maskTextFn:_,maxCanvasSize:b=null,packFn:I,sampling:S={},dataURLOptions:w={},mousemoveWait:E,recordDOM:k=!0,recordCanvas:P=!1,recordCrossOriginIframes:T=!1,recordAfter:M=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:C=!1,collectFonts:R=!1,inlineImages:V=!1,plugins:O,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:x=new Set([]),errorHandler:D,onMutation:q,getCanvasManager:U}=e;UR(D);const N=!T||window.parent===window;let L=!1;if(!N)try{window.parent.document&&(L=!1)}catch{L=!0}if(N&&!t)throw new Error("emit function is required");if(!N&&!L)return()=>{};void 0!==E&&void 0===S.mousemove&&(S.mousemove=E),zt.reset();const j=!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,radio:!0,checkbox:!0}:void 0!==y?y:{},F=!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||{};CR();let G,$=0;const Q=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return I&&!L&&(e=I(e)),e};Je=(e,s)=>{const o=e;if(o.timestamp=Co(),go([Vr,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&o.type!==we.FullSnapshot&&!(o.type===we.IncrementalSnapshot&&o.data.source===_e.Mutation)&&Vr.forEach((e=>e.unfreeze())),N)go([t,"optionalCall",e=>e(Q(o),s)]);else if(L){const e={type:"rrweb",event:Q(o),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(o.type===we.FullSnapshot)G=o,$=0;else if(o.type===we.IncrementalSnapshot){if(o.data.source===_e.Mutation&&o.data.isAttachIframe)return;$++;const e=r&&$>=r,t=n&&G&&o.timestamp-G.timestamp>n;(e||t)&&ee(!0)}};const z=e=>{Je({type:we.IncrementalSnapshot,data:{source:_e.Mutation,...e}})},W=e=>Je({type:we.IncrementalSnapshot,data:{source:_e.Scroll,...e}}),H=e=>Je({type:we.IncrementalSnapshot,data:{source:_e.CanvasMutation,...e}}),K=new rC({mutationCb:z,adoptedStyleSheetCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.AdoptedStyleSheet,...e}})}),J="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ZR:new eC({mirror:zt,mutationCb:z,stylesheetManager:K,recordCrossOriginIframes:T,wrappedEmit:Je});for(const e of O||[])e.getMirror&&e.getMirror({nodeMirror:zt,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});const Y=new iC,X=oC(U,{mirror:zt,win:window,mutationCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.CanvasMutation,...e}}),recordCanvas:P,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:b,sampling:S.canvas,dataURLOptions:w,errorHandler:D}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new tC:new nC({mutationCb:z,scrollCb:W,bypassOptions:{onMutation:q,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:c,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:j,dataURLOptions:w,maskAttributeFn:v,maskTextFn:_,maskInputFn:A,recordCanvas:P,inlineImages:V,sampling:S,slimDOMOptions:F,iframeManager:J,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:B,processedNodeManager:Y},mirror:zt}),ee=(e=!1)=>{if(!k)return;Je({type:we.Meta,data:{href:window.location.href,width:Rm(),height:Tm()}},e),K.reset(),Z.init(),Vr.forEach((e=>e.lock()));const t=TR(document,{mirror:zt,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:c,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:j,maskAttributeFn:v,maskInputFn:A,maskTextFn:_,slimDOM:F,dataURLOptions:w,recordCanvas:P,inlineImages:V,onSerialize:e=>{Mm(e,zt)&&J.addIframe(e),Om(e,zt)&&K.trackLinkElement(e),hc(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{J.attachIframe(e,t),e.contentWindow&&X.addWindow(e.contentWindow),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:B});if(!t)return console.warn("Failed to snapshot the document");Je({type:we.FullSnapshot,data:{node:t,initialOffset:Am(window)}}),Vr.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,zt.getId(document))};Mo=ee;try{const e=[],t=e=>De(XR)({onMutation:q,mutationCb:z,mousemoveCb:(e,t)=>Je({type:we.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.MouseInteraction,...e}}),scrollCb:W,viewportResizeCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.ViewportResize,...e}}),inputCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.Input,...e}}),mediaInteractionCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.MediaInteraction,...e}}),styleSheetRuleCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.StyleSheetRule,...e}}),styleDeclarationCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.StyleDeclaration,...e}}),canvasMutationCb:H,fontCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.Font,...e}}),selectionCb:e=>{Je({type:we.IncrementalSnapshot,data:{source:_e.Selection,...e}})},customElementCb:e=>{Je({type:we.IncrementalSnapshot,data:{source:_e.CustomElement,...e}})},blockClass:s,ignoreClass:a,ignoreSelector:u,maskAllText:c,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,maskInputOptions:j,inlineStylesheet:m,sampling:S,recordDOM:k,recordCanvas:P,inlineImages:V,userTriggeredOnInput:C,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:A,maskTextFn:_,keepIframeSrcFn:B,blockSelector:o,unblockSelector:i,slimDOMOptions:F,dataURLOptions:w,mirror:zt,iframeManager:J,stylesheetManager:K,shadowDomManager:Z,processedNodeManager:Y,canvasManager:X,ignoreCSSAttributes:x,plugins:go([O,"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=>Je({type:we.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});J.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(ht("DOMContentLoaded",(()=>{Je({type:we.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()}))),e.push(ht("load",(()=>{Je({type:we.Load,data:{}}),"load"===M&&n()}),window))),()=>{e.forEach((e=>e())),Y.destroy(),Mo=void 0,FR()}}catch(e){console.warn(e)}}function sC(e){if(!Mo)throw new Error("please take full snapshot after start recording");Mo(e)}function oC(e,t){try{return e?e(t):new eh}catch{return console.warn("Unable to initialize CanvasManager"),new eh}}In.mirror=zt,In.takeFullSnapshot=sC;const aC=3,uC=5;function Zc(e){return e>9999999999?e:1e3*e}function Bu(e){return e>9999999999?e/1e3:e}function ss(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:we.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:gn(t,10,1e3)}}),"console"===t.category))))}const cC="button,a";function Nm(e){return e.closest(cC)||e}function Um(e){const t=Fm(e);return t&&t instanceof Element?Nm(t):t}function Fm(e){return lC(e)?e.target:e}function lC(e){return"object"==typeof e&&!!e&&"target"in e}let Ln;function dC(e){return Ln||(Ln=[],fC()),Ln.push(e),()=>{const t=Ln?Ln.indexOf(e):-1;t>-1&&Ln.splice(t,1)}}function fC(){Nt($e,"open",(function(e){return function(...t){if(Ln)try{Ln.forEach((e=>e()))}catch{}return e.apply($e,t)}}))}const pC=new Set([_e.Mutation,_e.StyleSheetRule,_e.StyleDeclaration,_e.AdoptedStyleSheet,_e.CanvasMutation,_e.Selection,_e.MediaInteraction]);function hC(e,t,n){e.handleClick(t,n)}class mC{constructor(e,t,n=ss){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=dC((()=>{this._lastMutation=th()}));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(gC(t,this._ignoreSelector)||!_C(e))return;const n={timestamp:Bu(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=Bu(e)}registerScroll(e=Date.now()){this._lastScroll=Bu(e)}registerClick(e){const t=Nm(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=th();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,s=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:$e.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,s)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:$e.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=$r((()=>this._checkClicks()),1e3)}}const yC=["A","BUTTON","INPUT"];function gC(e,t){return!!(!yC.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 _C(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function th(){return Date.now()/1e3}function vC(e,t){try{if(!SC(t))return;const{source:n}=t.data;if(pC.has(n)&&e.registerMutation(t.timestamp),n===_e.Scroll&&e.registerScroll(t.timestamp),IC(t)){const{type:n,id:r}=t.data,s=In.mirror.getNode(r);s instanceof HTMLElement&&n===pt.Click&&e.registerClick(s)}}catch{}}function SC(e){return 3===e.type}function IC(e){return e.data.source===_e.MouseInteraction}function nn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Oo;!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"}(Oo||(Oo={}));const EC=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function bC(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(EC.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const wC=e=>t=>{if(!e.isEnabled())return;const n=AC(t);if(!n)return;const r="click"===t.name,s=r?t.event:void 0;r&&e.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&hC(e.clickDetector,n,Um(t.event)),ss(e,n)};function jm(e,t){const n=In.mirror.getId(e),r=n&&In.mirror.getNode(n),s=r&&In.mirror.getMeta(r),o=s&&RC(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Oo.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:bC(o.attributes)}}:{}}}function AC(e){const{target:t,message:n}=TC(e);return nn({category:`ui.${e.name}`,...jm(t,n)})}function TC(e){const t="click"===e.name;let n,r=null;try{r=t?Um(e.event):Fm(e.event),n=Uc(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function RC(e){return e.type===Oo.Element}function CC(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=kC(t);n&&ss(e,n)}function kC(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||MC(i)||!o)return null;const a=t||r||s,u=1===o.length;if(!a&&u)return null;const c=Uc(i,{maxStringLength:200})||"<unknown>";return nn({category:"ui.keyDown",message:c,data:{...jm(i,c).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function MC(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const OC={resource:VC,paint:xC,navigation:BC};function po(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function PC(e){return e.map(DC).filter(Boolean)}function DC(e){const t=OC[e.entryType];return t?t(e):null}function Gr(e){return((dw||$e.performance.timeOrigin)+e)/1e3}function xC(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=Gr(s);return{type:n,name:r,start:o,end:o+t,data:void 0}}function BC(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:p,redirectCount:d,startTime:f,transferSize:m,type:h}=e;return 0===s?null:{type:`${t}.${h}`,start:Gr(f),end:Gr(o),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:p,domComplete:o,redirectCount:d}}}function VC(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:u,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Gr(o),end:Gr(s),name:r,data:{size:c,statusCode:u,decodedBodySize:i,encodedBodySize:a}}}function LC(e){const t=e.entries[e.entries.length-1];return Ko(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function NC(e){return void 0!==e.sources}function UC(e){const t=[],n=[];for(const r of e.entries)if(NC(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=In.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Ko(e,"cumulative-layout-shift",n,t)}function FC(e){const t=e.entries[e.entries.length-1];return Ko(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function jC(e){const t=e.entries[e.entries.length-1];return Ko(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Ko(e,t,n,r){const s=e.value,o=e.rating,i=Gr(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map((e=>In.mirror.getId(e))):void 0,attributions:r}}}function $C(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(hT(e,n))})),r.push(dT(po(LC,e)),lT(po(UC,e)),fT(po(FC,e)),pT(po(jC,e))),()=>{r.forEach((e=>e()))}}const me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,zC='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 WC(){const e=new Blob([zC]);return URL.createObjectURL(e)}const nh=["info","warn","error","log"],_o="[Replay] ";function Vu(e,t="info"){AA({category:"console",data:{logger:"replay"},level:t,message:`${_o}${e}`},{level:t})}function GC(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return me?(nh.forEach((e=>{n[e]=(...n)=>{gt[e](_o,...n),t&&Vu(n.join(""),TA(e))}})),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),gt.error(_o,r),e?$c(r):t&&Vu(r,"error")},n.infoTick=(...e)=>{gt.info(_o,...e),t&&setTimeout((()=>Vu(e[0])),0)}):nh.forEach((e=>{n[e]=()=>{}})),n}const ge=GC();class el extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Qc}.`)}}class $m{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>Qc)throw new el;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?Zc(e):null}}class HC{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(){me&&ge.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,s)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return me&&ge.error("Error in compression worker: ",i.response),void s(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 QC{constructor(e){this._worker=new HC(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=Zc(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Qc?Promise.reject(new el):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{me&&ge.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 qC{constructor(e){this._fallback=new $m,this._compression=new QC(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(me&&ge.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){me&&ge.exception(e,"Failed to add events when switching buffers.")}}}function KC({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=YC(t);if(e)return e}return me&&ge.info("Using simple buffer"),new $m}function YC(e){try{const t=e||JC();if(!t)return;me&&ge.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new qC(n)}catch(e){me&&ge.exception(e,"Failed to create compression worker")}}function JC(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?WC():""}function tl(){try{return"sessionStorage"in $e&&!!$e.sessionStorage}catch{return!1}}function XC(e){ZC(),e.session=void 0}function ZC(){if(tl())try{$e.sessionStorage.removeItem(Gc)}catch{}}function zm(e){return void 0!==e&&Math.random()<e}function Wm(e){const t=Date.now();return{id:e.id||Sn(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function nl(e){if(tl())try{$e.sessionStorage.setItem(Gc,JSON.stringify(e))}catch{}}function ek(e,t){return zm(e)?"session":!!t&&"buffer"}function rh({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=Wm({sampled:ek(e,t),previousSessionId:r});return n&&nl(s),s}function tk(){if(!tl())return null;try{const e=$e.sessionStorage.getItem(Gc);if(!e)return null;const t=JSON.parse(e);return me&&ge.infoTick("Loading existing session"),Wm(t)}catch{return null}}function gc(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Gm(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return gc(e.started,t,r)||gc(e.lastActivity,n,r)}function Hm(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Gm(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function Lu({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&tk();return s?Hm(s,{sessionIdleExpire:e,maxReplayDuration:t})?(me&&ge.infoTick("Session in sessionStorage is expired, creating new one..."),rh(r,{previousSessionId:s.id})):s:(me&&ge.infoTick("Creating new session"),rh(r,{previousSessionId:n}))}function nk(e){return e.type===we.Custom}function rl(e,t,n){return!!qm(e,t)&&(Qm(e,t,n),!0)}function rk(e,t,n){return qm(e,t)?Qm(e,t,n):Promise.resolve(null)}async function Qm(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s="buffer"===e.recordingMode;try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=ik(t,e.getOptions().beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(t){const n=t&&t instanceof el,o=n?"addEventSizeExceeded":"addEvent";if(n&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o});const i=rn();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function qm(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Zc(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(me&&ge.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function ik(e,t){try{if("function"==typeof t&&nk(e))return t(e)}catch(e){return me&&ge.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function il(e){return!e.type}function _c(e){return"transaction"===e.type}function sk(e){return"replay_event"===e.type}function ih(e){return"feedback"===e.type}function ok(e){return(t,n)=>{if(!e.isEnabled()||!il(t)&&!_c(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(_c(t))return void ak(e,t);uk(e,t)}}}function ak(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 uk(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)||$r((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function ck(e){return t=>{!e.isEnabled()||!il(t)||lk(e,t)}}function lk(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))){ss(e,nn({category:"replay.hydrate-error",data:{url:sw()}}))}}function dk(e){const t=rn();t&&t.on("beforeAddBreadcrumb",(t=>fk(e,t)))}function fk(e,t){if(!e.isEnabled()||!Km(t))return;const n=pk(t);n&&ss(e,n)}function pk(e){return!Km(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?hk(e):nn(e)}function hk(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return nn(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>co?(n=!0,`${e.slice(0,co)}…`):e;if("object"==typeof e)try{const t=gn(e,7);return JSON.stringify(t).length>co?(n=!0,`${JSON.stringify(t,null,2).slice(0,co)}…`):t}catch{}return e}));return nn({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Km(e){return!!e.category}function mk(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function Ym(){const e=Hr().getPropagationContext().dsc;e&&delete e.replay_id;const t=tm();if(t){delete rm(t).replay_id}}function yk(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:we.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}function gk(e,t){return!("buffer"!==e.recordingMode||t.message===Hc||!t.exception||t.type)&&zm(e.getOptions().errorSampleRate)}function _k(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:sk(t)?(delete t.breadcrumbs,t):il(t)||_c(t)||ih(t)?e.checkAndHandleExpiredSession()?ih(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),yk(e,t),t):mk(t,n)&&!e.getOptions()._experiments.captureExceptions?(me&&ge.log("Ignoring error from rrweb internals",t),null):((gk(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(Ym(),t):t),{id:"Replay"})}function Yo(e,t){return t.map((({type:t,start:n,end:r,name:s,data:o})=>{const i=e.throttledAddEvent({type:we.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function vk(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 Sk(e){return t=>{if(!e.isEnabled())return;const n=vk(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Yo(e,[n]),!1))))}}function Ik(e,t){return(!me||!e.getOptions()._experiments.traceInternals)&&IA(t,rn())}function Jm(e,t){e.isEnabled()&&null!==t&&(Ik(e,t.name)||e.addUpdate((()=>(Yo(e,[t]),!0))))}function Jo(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=ty(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Xm(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Zm(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ty(e)];if(!e)return[void 0]}catch(t){return me&&ge.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return me&&ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Po(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 ey(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:Gt({method:o,statusCode:i,request:a,response:u})}}function Hi(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Un(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:s,warnings:o}=Ek(n);return r.body=s,o&&o.length>0&&(r._meta={warnings:o}),r}function vc(e,t){return Object.entries(e).reduce(((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n}),{})}function ty(e){return new URLSearchParams(e).toString()}function Ek(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>Np,n=bk(e);if(t){const t=e.slice(0,Np);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 bk(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function Do(e,t){return aw(wk(e),t)}function wk(e,t=$e.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith($e.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 Ak(e,t,n){try{const r=ey("resource.fetch",await Rk(e,t,n));Jm(n.replay,r)}catch(e){me&&ge.exception(e,"Failed to capture fetch breadcrumb")}}function Tk(e,t){const{input:n,response:r}=t,s=Jo(n?ny(n):void 0),o=r?Xm(r.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}async function Rk(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:u=0,request_body_size:c,response_body_size:l}=e.data,p=Do(i,n.networkDetailAllowUrls)&&!Do(i,n.networkDetailDenyUrls);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:u,request:p?Ck(n,t.input,c):Hi(c),response:await kk(p,n,t.response,l)}}function Ck({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?Pk(n,t):{};if(!e)return Un(s,r,void 0);const o=ny(n),[i,a]=Zm(o),u=Un(s,r,i);return a?Po(u,a):u}async function kk(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&void 0!==s)return Hi(s);const o=r?ry(r.headers,n):{};if(!r||!t&&void 0!==s)return Un(o,s,void 0);const[i,a]=await Ok(r),u=Mk(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return a?Po(u,a):u}function Mk(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e&&e.length&&void 0===n?Jo(e):n;return r?Un(s,o,t?e:void 0):Hi(o)}catch(e){return me&&ge.exception(e,"Failed to serialize response body"),Un(s,n,void 0)}}async function Ok(e){const t=Dk(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await xk(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(me&&ge.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(me&&ge.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function ny(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function ry(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Pk(e,t){return 1===e.length&&"string"!=typeof e[0]?sh(e[0],t):2===e.length?sh(e[1],t):{}}function sh(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?ry(n,t):Array.isArray(n)?{}:vc(n,t):{}}function Dk(e){try{return e.clone()}catch(e){me&&ge.exception(e,"Failed to clone response body")}}function xk(e){return new Promise(((t,n)=>{const r=$r((()=>n(new Error("Timeout while trying to read response body"))),500);Bk(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function Bk(e){return await e.text()}async function Vk(e,t,n){try{const r=ey("resource.xhr",Nk(e,t,n));Jm(n.replay,r)}catch(e){me&&ge.exception(e,"Failed to capture xhr breadcrumb")}}function Lk(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Jo(r),o=n.getResponseHeader("content-length")?Xm(n.getResponseHeader("content-length")):$k(n.response,n.responseType);void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}function Nk(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:u,method:c,status_code:l=0,request_body_size:p,response_body_size:d}=e.data;if(!u)return null;if(!a||!Do(u,n.networkDetailAllowUrls)||Do(u,n.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:o,url:u,method:c,statusCode:l,request:Hi(p),response:Hi(d)}}const f=a[kT],m=f?vc(f.request_headers,n.networkRequestHeaders):{},h=vc(Uk(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?Zm(i):[void 0],[v,A]=n.networkCaptureBodies?Fk(a):[void 0],_=Un(m,p,y),b=Un(h,d,v);return{startTimestamp:s,endTimestamp:o,url:u,method:c,statusCode:l,request:g?Po(_,g):_,response:A?Po(b,A):b}}function Uk(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 Fk(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return jk(e.response,e.responseType)}catch(e){t.push(e)}return me&&ge.warn("Failed to get xhr response body",...t),[void 0]}function jk(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 me&&ge.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return me&&ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function $k(e,t){try{return Jo("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function zk(e){const t=rn();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>Wk(a,e,t)))}catch{}}function Wk(e,t,n){if(t.data)try{Gk(t)&&Qk(n)&&(Lk(t,n),Vk(t,n,e)),Hk(t)&&qk(n)&&(Tk(t,n),Ak(t,n,e))}catch(e){me&&ge.exception(e,"Error when enriching network breadcrumb")}}function Gk(e){return"xhr"===e.category}function Hk(e){return"fetch"===e.category}function Qk(e){return e&&e.xhr}function qk(e){return e&&e.response}function Kk(e){const t=rn();IT(wC(e)),TT(Sk(e)),dk(e),zk(e);mA(_k(e)),t&&(t.on("beforeSendEvent",ck(e)),t.on("afterSendEvent",ok(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 Yk(e){try{return Promise.all(Yo(e,[Jk($e.performance.memory)]))}catch{return[]}}function Jk(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Xk(e,t,n){let r,s,o;const i=n.maxWait?Math.max(n.maxWait,t):0;function a(){return u(),r=e(),r}function u(){void 0!==s&&clearTimeout(s),void 0!==o&&clearTimeout(o),s=o=void 0}function c(){return s&&clearTimeout(s),s=$r(a,t),i&&void 0===o&&(o=$r(a,i)),r}return c.cancel=u,c.flush=function(){return void 0!==s||void 0!==o?a():r},c}function Zk(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(me&&ge.warn("Received replay event after session expired."));const s=r||!t;t=!0,e.clickDetector&&vC(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!rl(e,n,s))return!0;if(!s)return!1;const t=e.session;if(tM(e,s),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(me&&ge.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&nl(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function eM(e){const t=e.getOptions();return{type:we.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 tM(e,t){!t||!e.session||0!==e.session.segmentId||rl(e,eM(e),!1)}function nM(e,t,n,r){return Kw(Jw(e,Yw(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function rM({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 iM({client:e,scope:t,replayId:n,event:r}){const s={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,s);const o=await sA(e.getOptions(),r,s,t,e,Zi());if(!o)return null;o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:a,version:u}=i&&i.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function sM({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=rM({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:u,traceIds:c,initialTimestamp:l}=r,p=rn(),d=Hr(),f=p&&p.getTransport(),m=p&&p.getDsn();if(!(p&&f&&m&&o.sampled))return Ip({});const h={type:NT,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:u,trace_ids:c,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},y=await iM({scope:d,client:p,replayId:t,event:h});if(!y)return p.recordDroppedEvent("event_processor","replay",h),me&&ge.info("An event processor returned `null`, will not send event."),Ip({});delete y.sdkProcessingMetadata;const g=nM(y,i,m,p.getOptions().tunnel);let v;try{v=await f.send(g)}catch(e){const t=new Error(Hc);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new iy(v.statusCode);const A=SA({},v);if(vA(A,"replay"))throw new sl(A);return v}class iy extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class sl extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function sy(e,t={count:0,interval:WT}){const{recordingData:n,onError:r}=e;if(n.length)try{return await sM(e),!0}catch(n){if(n instanceof iy||n instanceof sl)throw n;if(pA("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${Hc} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{$r((async()=>{try{await sy(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const oy="__THROTTLED",oM="__SKIPPED";function aM(e,t,n){const r=new Map;let s=!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=s;return s=!0,e?oM:oy}s=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...o)}}class Nn{constructor({options:e,recordingOptions:t}){Nn.prototype.__init.call(this),Nn.prototype.__init2.call(this),Nn.prototype.__init3.call(this),Nn.prototype.__init4.call(this),Nn.prototype.__init5.call(this),Nn.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:UT,sessionIdleExpire:FT},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=Xk((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=aM(((e,t)=>rk(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(HT,n),timeout:n,scrollTimeout:QT,ignoreSelector:r?r.join(","):""}:void 0;if(s&&(this.clickDetector=new mC(this,s)),me){const t=e._experiments;ge.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){me&&ge.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(me&&ge.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",me&&ge.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(me&&ge.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(me&&ge.info("Buffering is in progress, call `flush()` to save the replay"));me&&ge.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Lu({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(me&&ge.info("Buffering is in progress, call `flush()` to save the replay"));me&&ge.infoTick("Starting replay in buffer mode");const e=Lu({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=In({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:zT}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Zk(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{me&&ge.info("Stopping Replay"+(t?` triggered by ${t}`:"")),Ym(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,XC(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),me&&ge.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),me&&ge.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();me&&ge.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&&gc(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${$e.location.pathname}${$e.location.hash}${$e.location.search}`,t=`${$e.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===oy){const e=nn({category:"replay.throttled"});this.addUpdate((()=>!rl(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||tm(),t=e&&jc(e),n=(t&&ji(t).data||{})[em];if(t&&n&&["route","custom"].includes(n))return ji(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=KC({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=Lu({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!Hm(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{$e.document.addEventListener("visibilitychange",this._handleVisibilityChange),$e.addEventListener("blur",this._handleWindowBlur),$e.addEventListener("focus",this._handleWindowFocus),$e.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Kk(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=$C(this)}_removeListeners(){try{$e.document.removeEventListener("visibilitychange",this._handleVisibilityChange),$e.removeEventListener("blur",this._handleWindowBlur),$e.removeEventListener("focus",this._handleWindowFocus),$e.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===$e.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=nn({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=nn({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{CC(this,e)}}_doChangeToBackgroundTasks(e){!this.session||Gm(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):me&&ge.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:we.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=PC(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(Yo(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 Yk(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 s=await this.eventBuffer.finish();await sy({replayId:e,recordingData:s,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=rn();if(t){const n=e instanceof sl?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else me&&ge.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(me&&ge.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,s=n>this._options.maxReplayDuration+5e3;if(r||s)return me&&ge.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&&me&&ge.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&&nl(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=nn({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function _i(e,t){return[...e,...t].join(",")}function uM({mask:e,unmask:t,block:n,unblock:r,ignore:s}){return{maskTextSelector:_i(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:_i(t,[]),blockSelector:_i(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:_i(r,[]),ignoreSelector:_i(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function cM({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const oh='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lM=["content-length","content-type","accept"];let ah=!1;const dM=e=>new Xo(e);class Xo{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=jT,flushMaxDelay:t=$T,minReplayDuration:n=qT,maxReplayDuration:r=Up,stickySession:s=!0,useCompression:o=!0,workerUrl:i,_experiments:a={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:p=750,mutationLimit:d=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:A=[],mask:_=[],maskAttributes:b=["title","placeholder"],unmask:I=[],block:S=[],unblock:w=[],ignore:E=[],maskFn:k,beforeAddRecordingEvent:P,beforeErrorSampling:T,onError:M}={}){this.name=Xo.id;const C=uM({mask:_,unmask:I,block:S,unblock:w,ignore:E});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:k,maskInputFn:k,maskAttributeFn:(e,t,n)=>cM({maskAttributes:b,maskAllText:u,privacyOptions:C,key:e,value:t,el:n}),...C,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,KT),maxReplayDuration:Math.min(r,Up),stickySession:s,useCompression:o,workerUrl:i,blockAllMedia:l,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:d,slowClickTimeout:f,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:uh(v),networkResponseHeaders:uh(A),beforeAddRecordingEvent:P,beforeErrorSampling:T,onError:M,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${oh}`:oh),this._isInitialized&&Dp())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ah}set _isInitialized(e){ah=e}afterAllSetup(e){!Dp()||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=fM(this._initialOptions,e);this._replay=new Nn({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function fM(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Gt(e)},s=Cp(n.replaysSessionSampleRate),o=Cp(n.replaysOnErrorSampleRate);return null==s&&null==o&&xc((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=s&&(r.sessionSampleRate=s),null!=o&&(r.errorSampleRate=o),r}function uh(e){return[...lM,...e.map((e=>e.toLowerCase()))]}Xo.__initStatic();const ay=()=>"object"!=typeof window;var pM={DISTRIB_RELEASE:"24.04",JDK_18:"/usr/lib/jvm/java-1.8.0-amazon-corretto",TEAMCITY_PROJECT_NAME:"Web Apps",USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/false ci/teamcity",rvm_pretty_print_flag:"0",NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS:"20",TEAMCITY_PROCESS_PARENT_FLOW_ID:"",ANDROID_SDK_HOME:"/home/teamcity/android-sdk-linux",DOTNET_CLI_TELEMETRY_OPTOUT:"true",JDK_11_x64:"/usr/lib/jvm/java-11-amazon-corretto",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",SHLVL:"0",npm_config_noproxy:"",BUILD_VCS_NUMBER:"e7919ec2538e6c582b86e0f14d7672b861ebd3f7",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/22056",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/openapi/package.json",ANDROID_SDKMANAGER_PATH:"/home/teamcity/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager",TEAMCITY_BUILD_PROPERTIES_FILE:"/mnt/agent/temp/buildTmp/teamcity.build.parameters",npm_package_engines_node:">=20.2.0",rvm_stored_umask:"0022",GRADLE_HOME:"/opt/gradle",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",npm_config_userconfig:"/home/teamcity/.npmrc",rvm_user_install_flag:"1",BUILD_VCS_NUMBER_WebApps:"e7919ec2538e6c582b86e0f14d7672b861ebd3f7",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1376",COLOR:"1",TEAMCITY_BUILDCONF_NAME:"Apps",DISTRIB_DESCRIPTION:"Ubuntu 24.04.2 LTS",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"true",TMPDIR:"/mnt/agent/temp/buildTmp",LOGNAME:"teamcity",JOURNAL_STREAM:"8:11531",TEMP:"/mnt/agent/temp/buildTmp",_:"/usr/bin/nohup",npm_config_npm_version:"10.9.2",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",rvm_bin_path:"/home/teamcity/.rvm/bin",IRBRC:"/home/teamcity/.rvm/rubies/ruby-3.3.7/.irbrc",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/teamcity-agent.service/memory.pressure",P4CONFIG:".p4config",RUBY_VERSION:"ruby-3.3.7",npm_config_cache:"/home/teamcity/.npm",DOTNET_ROOT:"/usr/share/dotnet",JDK_1_8:"/usr/lib/jvm/java-1.8.0-amazon-corretto",MNT_MOUNT:"/dev/nvme1n1 on /mnt type ext4 (rw,noatime)",TEAMCITY_GIT_PATH:"/usr/local/bin/git",AWS_SHARED_CREDENTIALS_FILE:"/mnt/agent/temp/agentTmp/aws.credentials",DISTRIB_ID:"Ubuntu",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/openapi/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",INVOCATION_ID:"753d12a58e154b53b22cb26ece7f8b62",JDK_11_0:"/usr/lib/jvm/java-11-amazon-corretto",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",TEAMCITY_CAPTURE_ENV:'"/usr/lib/jvm/java-21-amazon-corretto/bin/java" -jar "/home/teamcity/agent/plugins/environment-fetcher/lib/environment-fetcher-bin-2025.03-186049-jar-with-dependencies.jar"',TURBO_HASH:"5ec376fc56aef4cc",npm_package_name:"@wellesley/openapi",DISTRIB_CODENAME:"noble",JDK_21_0:"/usr/lib/jvm/java-21-amazon-corretto",npm_config_color:"always",DOMAIN_ENV:"test",MY_RUBY_HOME:"/home/teamcity/.rvm/rubies/ruby-3.3.7",TEAMCITY_VERSION:"2025.03 (build 186049)",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"2691",NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS:"20",UID:"1001",AWS_PROFILE:"default",GOPATH:"/home/teamcity/go",JDK_17_0:"/usr/lib/jvm/java-17-amazon-corretto",SHELL:"/bin/bash",TEAMCITY_AGENT_OPTS:"-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs/agent_%p.hprof -Dteamcity.internal.hosted.server.technicalName=PREINIT_AGENT",USE_NPM_VENDOR:"false",npm_lifecycle_event:"build",npm_package_version:"1.0.163",JDK_1_8_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",rvm_loaded_flag:"1",rvm_prefix:"/home/teamcity",GEM_HOME:"/home/teamcity/.rvm/gems/ruby-3.3.7",TURBO_INVOCATION_DIR:"/mnt/agent/work/70fcd8585843667f",JDK_11_0_x64:"/usr/lib/jvm/java-11-amazon-corretto",JDK_21_0_x64:"/usr/lib/jvm/java-21-amazon-corretto",rvm_version:"1.29.12 (latest)",WELLESLEY_APPS:"tooter.zip\nforum.zip\nsettings.zip\naccount.zip\nadmin.zip\nerror.zip\nevents.zip\nhost.zip\ngroup-settings.zip\ngroup-profile.zip\nuser-profile.zip\ndiscover.zip",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",GEM_PATH:"/home/teamcity/.rvm/gems/ruby-3.3.7:/home/teamcity/.rvm/gems/ruby-3.3.7@global",JAVA_HOME:"/usr/lib/jvm/java-21-amazon-corretto",PWD:"/mnt/agent/work/70fcd8585843667f/packages/openapi",TEAMCITY_AGENT_MEM_OPTS:"-Xmx512m",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",ANDROID_HOME:"/home/teamcity/android-sdk-linux",JDK_11:"/usr/lib/jvm/java-11-amazon-corretto",TEAMCITY_GIT_VERSION:"2.47.1.0",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",TEAMCITY_PROCESS_FLOW_ID:"924698992448",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",rvm_ruby_string:"ruby-3.3.7",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",rvm_path:"/home/teamcity/.rvm",EDITOR:"vi",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/openapi",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/openapi"};ay()||(window.build=pM.BUILD_NUMBER),dM(),DT(),kA();const ch={data:null,isError:!1,isPending:!1,isSuccess:!1};xn({name:"user",initialState:ch,reducers:{reset:e=>{Object.assign(e,ch)},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)}}});const hM=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return hA("exceptionMessage",t),void $c(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}fA(t)},lh=["debug","info","warn","error"],mM=(e,t)=>{const n=lh.indexOf(e);return lh.indexOf(t)>=n},ho=(e,t,n,...r)=>{mM(t,e)&&console.log(`[${e}] ${n}`,...r)},yM=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),gM=(e=!ay()&&yM()||"warn")=>{let t=e;return{debug:(e,...n)=>ho("debug",t,e,...n),info:(e,...n)=>ho("info",t,e,...n),warn:(e,...n)=>ho("warn",t,e,...n),error:(e,...n)=>(hM(e,...n),ho("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},uy=gM(),Zo="staticState",vo={path:"",baseUrl:"",search:""},_M=e=>{if(!e)return vo;try{return JSON.parse(decodeURIComponent(e))||vo}catch(e){return uy.error("Error parsing static state",e),vo}},cy=()=>new URLSearchParams(window.location.search).get(Zo),vM=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:s,search:o}=window.location;return`${Zo}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||s,search:n||o}))}`},SM=()=>{const e=cy();return e&&localStorage.setItem(Zo,e),ly()},ly=()=>{try{const e=localStorage.getItem(Zo)||cy();return _M(e)}catch(e){return uy.error("Error parsing static state",e),vo}},IM={create:vM,init:SM,get:ly},EM=IM.get().baseUrl,bM=EM||"",wM=Q0({baseUrl:bM,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=Ui.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),AM=Wb(qb(wM)),TM=Nb({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(Wh)],reducerPath:"openapi",baseQuery:AM,endpoints:()=>({})}),RM=TM.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:{after:e.after,email:e.email,hash:e.hash,ip:e.ip}})}),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:{liked:e.liked,limit:e.limit,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"})}),deleteApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"DELETE"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdLike:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/like`,method:"DELETE"})}),postApiV1EventsByEventIdLike:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/like`,method:"POST"})}),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}})}),getApiV1GroupsMemberByMemberId:e.query({query:e=>({url:`/api/v1/groups/member/${e.memberId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByMemberIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.memberId}/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:{includeFollowStatus:e.includeFollowStatus,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:{includeFollowStatus:e.includeFollowStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,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:jM,usePostApiV1AccountsAuthenticateMutation:$M,usePostApiV1AccountsAuthenticateEmailMutation:zM,usePostApiV1AccountsAuthenticatePhoneMutation:WM,usePutApiV1AccountsChangeNameMutation:GM,usePostApiV1AccountsCheckCaptchaMutation:HM,usePostApiV1AccountsConfirmEmailMutation:QM,usePostApiV1AccountsConfirmPhoneMutation:qM,useDeleteApiV1AccountsDeleteMutation:KM,usePostApiV1AccountsEmailChangeConfirmMutation:YM,usePostApiV1AccountsEmailChangeRequestMutation:JM,usePutApiV1AccountsEmailChangeResendCodeMutation:XM,usePostApiV1AccountsFinishCreatingMutation:ZM,usePutApiV1AccountsGetTokenByHashMutation:eO,usePostApiV1AccountsLoginsAddEmailPasswordMutation:tO,usePostApiV1AccountsLoginsAddEmailPasswordConfirmMutation:nO,usePutApiV1AccountsLoginsAddEmailPasswordResendCodeMutation:rO,usePostApiV1AccountsLoginsAddPhoneMutation:iO,useDeleteApiV1AccountsLoginsRemoveEmailPasswordMutation:sO,useDeleteApiV1AccountsLoginsRemovePhoneMutation:oO,usePostApiV1AccountsPasswordChangeConfirmMutation:aO,usePostApiV1AccountsPasswordChangeRequestMutation:uO,usePutApiV1AccountsPasswordChangeResendCodeMutation:cO,usePostApiV1AccountsPasswordRecoverMutation:lO,usePostApiV1AccountsPasswordRecoverChangeMutation:dO,usePostApiV1AccountsPasswordRecoverCheckCodeMutation:fO,usePostApiV1AccountsPhoneChangeConfirmAuthMutation:pO,usePostApiV1AccountsPhoneChangeConfirmNewPhoneMutation:hO,usePostApiV1AccountsPhoneChangeNewPhoneMutation:mO,usePutApiV1AccountsPhoneChangeRequestMutation:yO,usePutApiV1AccountsPhoneChangeResendCodeAuthMutation:gO,usePutApiV1AccountsPhoneChangeResendCodeNewPhoneMutation:_O,useGetApiV1AccountsProfileQuery:vO,usePostApiV1AccountsReselectUserMutation:SO,usePutApiV1AccountsResendCodeByHashMutation:IO,usePutApiV1AccountsResendEmailByHashMutation:EO,usePostApiV1AccountsSignupMutation:bO,usePostApiV1AccountsSignupPhoneMutation:wO,usePostApiV1AccountsUserReselectUserMutation:AO,useGetApiV1AccountsByIdQuery:TO,useGetApiV1AddressesSuggestQuery:RO,useGetApiV1AdminAccountByAccountIdQuery:CO,useGetApiV1AdminAuditLogQuery:kO,usePutApiV1AdminChangeEmailMutation:MO,usePutApiV1AdminChangePasswordMutation:OO,usePutApiV1AdminChangeRoleMutation:PO,usePostApiV1AdminClearApErrorsMutation:DO,usePostApiV1AdminCreateAccountMutation:xO,useDeleteApiV1AdminDeleteMutation:BO,useGetApiV1AdminDomainAllowQuery:VO,usePostApiV1AdminDomainAllowMutation:LO,useDeleteApiV1AdminDomainAllowByDomainMutation:NO,usePutApiV1AdminDomainBlockMutation:UO,useGetApiV1AdminDomainBlockQuery:FO,usePostApiV1AdminDomainBlockMutation:jO,useGetApiV1AdminDomainBlockListQuery:$O,useDeleteApiV1AdminDomainBlockByDomainMutation:zO,useGetApiV1AdminFederationQuery:WO,useGetApiV1AdminFederationByDomainQuery:GO,usePostApiV1AdminFeedClearUserFeedMutation:HO,usePostApiV1AdminFeedRegenerateUserFeedMutation:QO,usePostApiV1AdminPostsDeleteMutation:qO,useDeleteApiV1AdminPurgeMutation:KO,usePostApiV1AdminRegenerateKeysMutation:YO,usePostApiV1AdminRegenerateKeysAllMutation:JO,usePostApiV1AdminReportsDeletePostsMutation:XO,useGetApiV1AdminReportsListQuery:ZO,useGetApiV1AdminReportsByReportIdQuery:eP,usePostApiV1AdminReportsByReportIdAddNoteMutation:tP,usePostApiV1AdminReportsByReportIdAssignToSelfMutation:nP,useDeleteApiV1AdminReportsByReportIdDeleteMutation:rP,usePostApiV1AdminReportsByReportIdRemoveNoteMutation:iP,usePostApiV1AdminReportsByReportIdReopenMutation:sP,usePostApiV1AdminReportsByReportIdResolveMutation:oP,usePostApiV1AdminReportsByReportIdUnassignMutation:aP,usePostApiV1AdminRestartApDeliveryMutation:uP,useGetApiV1AdminSearchQuery:cP,usePutApiV1AdminSignupRequestsApproveByHashMutation:lP,useDeleteApiV1AdminSignupRequestsDeleteByHashMutation:dP,useGetApiV1AdminSignupRequestsListQuery:fP,usePutApiV1AdminSignupRequestsRejectByHashMutation:pP,useGetApiV1AdminUploadsSearchQuery:hP,useGetApiV1AdminUploadsStorageByUserIdQuery:mP,usePostApiV1AdminUserChangeStateMutation:yP,useGetApiV1AdminUserByUserIdQuery:gP,usePostApiV1AppsMutation:_P,useGetApiV1AppsQuery:vP,useGetApiV1AppsEnabledQuery:SP,useGetApiV1AppsGroupByGroupIdQuery:IP,useDeleteApiV1AppsGroupByGroupIdAndAppIdMutation:EP,usePutApiV1AppsGroupByGroupIdAndAppIdMutation:bP,useGetApiV1AppsInstalledQuery:wP,useGetApiV1AppsUserQuery:AP,useDeleteApiV1AppsUserByAppIdMutation:TP,usePutApiV1AppsUserByAppIdMutation:RP,usePutApiV1AppsByAppIdMutation:CP,useGetApiV1AppsByAppIdQuery:kP,useDeleteApiV1AppsByAppIdMutation:MP,useGetApiV1AppsByAppIdDataQuery:OP,usePostApiV1AppsByAppIdDataMutation:PP,usePutApiV1AppsByAppIdDataAndIdMutation:DP,useDeleteApiV1AppsByAppIdDataAndIdMutation:xP,usePutApiV1AppsByAppIdDefaultMutation:BP,usePutApiV1AppsByAppIdDisableMutation:VP,usePutApiV1AppsByAppIdEnableMutation:LP,useGetApiV1AppsByAppIdStatsQuery:NP,usePutApiV1AppsByAppIdUserDefaultMutation:UP,useDeleteApiV1AppsByAppIdUserDefaultMutation:FP,useGetApiV1BlockQuery:jP,useGetApiV1BlockByQuery:$P,useDeleteApiV1BlockByUserIdMutation:zP,usePostApiV1BlockByUserIdMutation:WP,usePostApiV1CategoriesMutation:GP,useGetApiV1CategoriesNameByCategoryNameQuery:HP,usePutApiV1CategoriesByCategoryIdMutation:QP,useGetApiV1CategoriesByCategoryIdQuery:qP,useDeleteApiV1CategoriesByCategoryIdMutation:KP,useGetApiV1CustomEmojisQuery:YP,useDeleteApiV1CustomEmojisMutation:JP,usePostApiV1CustomEmojisMutation:XP,useGetApiV1CustomEmojisExportQuery:ZP,usePostApiV1CustomEmojisImportMutation:eD,useGetApiV1CustomEmojisSearchQuery:tD,usePostApiV1CustomEmojisUploadMutation:nD,useGetApiV1EventsQuery:rD,usePostApiV1EventsMutation:iD,useGetApiV1EventsFollowingQuery:sD,useGetApiV1EventsMyQuery:oD,usePutApiV1EventsByEventIdMutation:aD,useGetApiV1EventsByEventIdQuery:uD,useDeleteApiV1EventsByEventIdMutation:cD,usePostApiV1EventsByEventIdAcceptMutation:lD,useGetApiV1EventsByEventIdAttendeesQuery:dD,useDeleteApiV1EventsByEventIdAttendeesAndUserIdMutation:fD,usePostApiV1EventsByEventIdAttendeesAndUserIdMutation:pD,usePostApiV1EventsByEventIdCancelMutation:hD,useDeleteApiV1EventsByEventIdJoinMutation:mD,usePostApiV1EventsByEventIdJoinMutation:yD,useDeleteApiV1EventsByEventIdLikeMutation:gD,usePostApiV1EventsByEventIdLikeMutation:_D,usePostApiV1EventsByEventIdMaybeMutation:vD,useGetApiV1EventsByEventIdMutualQuery:SD,usePostApiV1EventsByEventIdRejectMutation:ID,usePostApiV1FaspClearMutation:ED,useGetApiV1FaspDebugV0CallbackCallbacksQuery:bD,useDeleteApiV1FaspDebugV0CallbackCallbacksByIdMutation:wD,usePostApiV1FaspRegistrationMutation:AD,usePostApiV1FaspByProviderIdCapabilitiesMutation:TD,usePostApiV1FaspByProviderIdDebugCallMutation:RD,useGetApiV1FaspByProviderIdRegistrationFinishQuery:CD,usePostApiV1FaspByProviderIdRegistrationFinishMutation:kD,usePostApiV1FaspByProviderIdRequestBackfillMutation:MD,usePutApiV1ForumsByForumIdMutation:OD,useGetApiV1ForumsByForumIdQuery:PD,useDeleteApiV1ForumsByForumIdMutation:DD,useGetApiV1ForumsByForumIdCategoriesQuery:xD,useGetApiV1ForumsByForumIdPostsQuery:BD,useGetApiV1ForumsByForumIdTagsQuery:VD,useGetApiV1ForumsByForumIdTagsSearchQuery:LD,useGetApiV1GeoQuery:ND,useGetApiV1GroupsQuery:UD,usePostApiV1GroupsMutation:FD,useGetApiV1GroupsAccountQuery:jD,useGetApiV1GroupsMemberByMemberIdQuery:$D,useGetApiV1GroupsMemberByMemberIdGroupsQuery:zD,useGetApiV1GroupsNameByGroupnameQuery:WD,useGetApiV1GroupsSearchQuery:GD,usePutApiV1GroupsByGroupIdMutation:HD,useGetApiV1GroupsByGroupIdQuery:QD,useDeleteApiV1GroupsByGroupIdMutation:qD,useGetApiV1GroupsByGroupIdForumQuery:KD,usePostApiV1GroupsByGroupIdForumMutation:YD,usePostApiV1GroupsByGroupIdJoinMutation:JD,usePutApiV1GroupsByGroupIdMediaMutation:XD,usePutApiV1GroupsByGroupIdMembersMutation:ZD,useGetApiV1GroupsByGroupIdMembersQuery:ex,usePostApiV1GroupsByGroupIdMembersMutation:tx,useDeleteApiV1GroupsByGroupIdMembersAndMemberIdMutation:nx,useGetApiV1GroupsByGroupIdUsersQuery:rx,useGetApiV1ImportQuery:ix,usePostApiV1ImportMutation:sx,usePostApiV1ImportStartByIdMutation:ox,useGetApiV1ImportByIdQuery:ax,useGetApiV1InstanceQuery:ux,useGetApiV1InstanceCountriesQuery:cx,useGetApiV1InstanceDomainsQuery:lx,useGetApiV1InstanceExtendedDescriptionQuery:dx,useGetApiV1InstanceSupportedLanguagesQuery:fx,useGetApiV1InstanceTimezonesQuery:px,useGetApiV1JobsListJobsQuery:hx,useGetApiV1JobsListStatsQuery:mx,useGetApiV1JobsListStatsAllQuery:yx,useGetApiV1JobsListsQuery:gx,useGetApiV1JobsStatsQuery:_x,useGetApiV1JobsStatsPerDayQuery:vx,useGetApiV1LinksQuery:Sx,useGetApiV1ListsQuery:Ix,usePostApiV1ListsMutation:Ex,usePutApiV1ListsByListIdMutation:bx,useGetApiV1ListsByListIdQuery:wx,useDeleteApiV1ListsByListIdMutation:Ax,useGetApiV1ListsByListIdUsersQuery:Tx,useDeleteApiV1ListsByListIdUsersAndUserIdMutation:Rx,usePostApiV1ListsByListIdUsersAndUserIdMutation:Cx,useGetApiV1MuteQuery:kx,useDeleteApiV1MuteByUserIdMutation:Mx,usePostApiV1MuteByUserIdMutation:Ox,usePutApiV1NotesMutation:Px,useGetApiV1NotesQuery:Dx,useDeleteApiV1NotesByUserIdMutation:xx,useGetApiV1NotificationsQuery:Bx,useGetApiV1NotificationsCountQuery:Vx,usePostApiV1NotificationsMarkAllMutation:Lx,useGetApiV1NotificationsByIdQuery:Nx,usePostApiV1NotificationsByIdMarkMutation:Ux,usePostApiV1PollsByPollIdRefreshMutation:Fx,usePostApiV1PollsByPollIdVoteMutation:jx,useGetApiV1PostsQuery:$x,usePostApiV1PostsMutation:zx,useGetApiV1PostsBookmarksQuery:Wx,useGetApiV1PostsFollowingQuery:Gx,useGetApiV1PostsLikedQuery:Hx,useGetApiV1PostsMentionedQuery:Qx,useGetApiV1PostsMyQuery:qx,useGetApiV1PostsPinsQuery:Kx,useDeleteApiV1PostsPinsByPostIdMutation:Yx,usePostApiV1PostsPinsByPostIdMutation:Jx,useGetApiV1PostsPublicQuery:Xx,useGetApiV1PostsRepliesQuery:Zx,useGetApiV1PostsSubscribeQuery:eB,usePutApiV1PostsByPostIdMutation:tB,useGetApiV1PostsByPostIdQuery:nB,useDeleteApiV1PostsByPostIdMutation:rB,useDeleteApiV1PostsByPostIdBookmarkMutation:iB,usePostApiV1PostsByPostIdBookmarkMutation:sB,useGetApiV1PostsByPostIdCommentsQuery:oB,usePostApiV1PostsByPostIdCommentsMutation:aB,usePutApiV1PostsByPostIdCommentsAndCommentIdMutation:uB,useDeleteApiV1PostsByPostIdCommentsAndCommentIdMutation:cB,usePostApiV1PostsByPostIdDetachMutation:lB,useGetApiV1PostsByPostIdEditsQuery:dB,useGetApiV1PostsByPostIdLikesQuery:fB,useDeleteApiV1PostsByPostIdLikesMutation:pB,usePostApiV1PostsByPostIdLikesMutation:hB,usePostApiV1PostsByPostIdRefreshCardMutation:mB,useDeleteApiV1PostsByPostIdRepostMutation:yB,usePostApiV1PostsByPostIdRepostMutation:gB,useGetApiV1PostsByPostIdRepostsQuery:_B,usePostApiV1PostsByPostIdSubscribeMutation:vB,useDeleteApiV1PostsByPostIdSubscribeMutation:SB,usePostApiV1PostsByPostIdTranslateMutation:IB,useGetApiV1RbacQuery:EB,useGetApiV1RbacActorsByActorIdPermissionsQuery:bB,useGetApiV1RbacActorsByActorIdRolesQuery:wB,usePutApiV1RbacRolesByRoleIdMutation:AB,useGetApiV1RbacScopesByScopeRolesQuery:TB,usePostApiV1RbacScopesByScopeRolesMutation:RB,useDeleteApiV1RbacScopesByScopeRolesAndRoleNameMutation:CB,useGetApiV1RbacByResourceQuery:kB,usePostApiV1ReportsMutation:MB,usePutApiV1RulesMutation:OB,useGetApiV1RulesQuery:PB,usePostApiV1RulesMutation:DB,usePostApiV1RulesReorderMutation:xB,useDeleteApiV1RulesByIdMutation:BB,useGetApiV1SearchQuery:VB,useDeleteApiV1SessionsAllMutation:LB,useGetApiV1SessionsListQuery:NB,usePutApiV1SessionsRevokeAllMutation:UB,usePutApiV1SessionsRevokeBySessionKeyMutation:FB,useDeleteApiV1SessionsBySessionKeyMutation:jB,usePutApiV1SettingsMutation:$B,useGetApiV1SettingsQuery:zB,useDeleteApiV1SettingsMutation:WB,usePutApiV1SettingsUserMutation:GB,useGetApiV1SettingsUserQuery:HB,useDeleteApiV1SettingsUserMutation:QB,useGetApiV1TagsFeaturedQuery:qB,useDeleteApiV1TagsFeaturedByNameMutation:KB,usePostApiV1TagsFeaturedByNameMutation:YB,usePostApiV1TagsFollowByNameMutation:JB,useGetApiV1TagsFollowedQuery:XB,useGetApiV1TagsTrendingQuery:ZB,usePostApiV1TagsUnfollowByNameMutation:eV,useGetApiV1TagsByNameQuery:tV,usePostApiV1TranslateTextMutation:nV,useGetApiV1TrendsLinksQuery:rV,useGetApiV1TrendsPostsQuery:iV,useGetApiV1TrendsTagsQuery:sV,usePostApiV1UploadsMutation:oV,usePostApiV1UploadsBatchMutation:aV,usePostApiV1UploadsListMutation:uV,useGetApiV1UploadsSearchQuery:cV,useGetApiV1UploadsUsagesQuery:lV,useGetApiV1UploadsByIdQuery:dV,useDeleteApiV1UploadsByIdMutation:fV,usePostApiV1UploadsByIdMetaMutation:pV,usePutApiV1UploadsByIdMetaMutation:hV,usePostApiV1UploadsByIdTagsMutation:mV,usePutApiV1UploadsByIdTagsMutation:yV,usePostApiV1UploadsByIdThumbnailMutation:gV,useGetApiV1UserAliasQuery:_V,useDeleteApiV1UserAliasMutation:vV,usePostApiV1UserAliasMutation:SV,useGetApiV1UserDomainBlockQuery:IV,useDeleteApiV1UserDomainBlockByDomainMutation:EV,usePostApiV1UserDomainBlockByDomainMutation:bV,useDeleteApiV1UsersMutation:wV,usePostApiV1UsersMutation:AV,useGetApiV1UsersQuery:TV,useGetApiV1UsersCheckQuery:RV,useGetApiV1UsersConnectionsQuery:CV,usePostApiV1UsersFollowByUsernameMutation:kV,usePostApiV1UsersFollowByUsernameAcceptMutation:MV,usePostApiV1UsersFollowByUsernamePendMutation:OV,usePostApiV1UsersFollowByUsernameRejectMutation:PV,usePostApiV1UsersFollowByUsernameUndoMutation:DV,useGetApiV1UsersFolloweesQuery:xV,useGetApiV1UsersFollowersQuery:BV,usePostApiV1UsersInviteMutation:VV,usePostApiV1UsersInviteAcceptMutation:LV,useGetApiV1UsersInviteInviteeEntitiesQuery:NV,useGetApiV1UsersInviteInviteeEntitiesByInviterUserQuery:UV,useGetApiV1UsersInviteInviteeInvitersQuery:FV,useGetApiV1UsersInviteInviteeInvitersByEntityUserQuery:jV,useGetApiV1UsersInviteInviterEntitiesQuery:$V,useGetApiV1UsersInviteInviterInviteesQuery:zV,useGetApiV1UsersInviteInviterInviteesByEntityUserQuery:WV,usePostApiV1UsersInviteRejectMutation:GV,usePostApiV1UsersInviteUndoMutation:HV,useGetApiV1UsersRelationshipsQuery:QV,useGetApiV1UsersRemoteByUserNameFullFollowersQuery:qV,useGetApiV1UsersRemoteByUserNameFullFollowingQuery:KV,useGetApiV1UsersRenameHistoryQuery:YV,usePutApiV1UsersByUserIdMutation:JV,useGetApiV1UsersByUserIdQuery:XV,useGetApiV1UsersByUserIdFollowersQuery:ZV,useGetApiV1UsersByUserIdFollowingQuery:eL,usePutApiV1UsersByUserIdMediaMutation:tL}=RM;var dh,Ii={exports:{}},CM=Ii.exports;
|
|
19
|
+
*/function yb(){if(ap)return wu;ap=1;var e=Lh();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,s=e.useEffect,o=e.useMemo,i=e.useDebugValue;return wu.useSyncExternalStoreWithSelector=function(e,a,u,c,l){var p=r(null);if(null===p.current){var d={hasValue:!1,value:null};p.current=d}else d=p.current;p=o((function(){function e(e){if(!s){if(s=!0,n=e,e=c(e),void 0!==l&&d.hasValue){var o=d.value;if(l(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var i=c(e);return void 0!==l&&l(o,i)?o:(n=e,r=i)}var n,r,s=!1,o=void 0===u?null:u;return[function(){return e(a())},null===o?void 0:function(){return e(o())}]}),[a,u,c,l]);var f=n(e,p[0],p[1]);return s((function(){d.hasValue=!0,d.value=f}),[f]),i(f),f},wu}function gb(){return up||(up=1,bu.exports=yb()),bu.exports}var _b=gb(),tn="default"in op?Nh:op,cp=Symbol.for("react-redux-context"),lp=typeof globalThis<"u"?globalThis:{};function vb(){if(!tn.createContext)return{};const e=lp[cp]??(lp[cp]=new Map);let t=e.get(tn.createContext);return t||(t=tn.createContext(null),e.set(tn.createContext,t)),t}var ar=vb(),Sb=()=>{throw new Error("uSES not initialized!")};function Oc(e=ar){return function(){return tn.useContext(e)}}var Uh=Oc(),Fh=Sb,Ib=e=>{Fh=e},Eb=(e,t)=>e===t;function bb(e=ar){const t=e===ar?Uh:Oc(e),n=(e,n={})=>{const{equalityFn:r=Eb,devModeChecks:s={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:i,getServerState:a,stabilityCheck:u,identityFunctionCheck:c}=t();tn.useRef(!0);const l=tn.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,s.stabilityCheck]),p=Fh(i.addNestedSub,o.getState,a||o.getState,l,r);return tn.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var wb=bb();function Ab(e){e()}var Tb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dp(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function wi(e,t){if(dp(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])||!dp(e[n[r]],t[n[r]]))return!1;return!0}function jh(e=ar){const t=e===ar?Uh:Oc(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}Tb?tn.useLayoutEffect:tn.useEffect;var $h=jh();function Rb(e=ar){const t=e===ar?$h:jh(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Cb=Rb(),kb=Ab;function Mb(e){return"query"===e.type}function Ob(e){return"mutation"===e.type}function no(e,...t){return Object.assign(e,...t)}function Au(e){return e.replace(e[0],e[0].toUpperCase())}Ib(_b.useSyncExternalStoreWithSelector);var Mr=WeakMap?new WeakMap:void 0,Pb=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Mr?void 0:Mr.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Fn(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Fn(t)&&(null==Mr||Mr.set(t,e)),n=e}return`${e}(${n})`},Tu=Symbol();function fp(e,t,n,r){const s=Ee.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=Ee.useRef(s);return Ee.useEffect((()=>{o.current.serialized!==s.serialized&&(o.current=s)}),[s]),o.current.serialized===s.serialized?o.current.queryArgs:e}function Ru(e){const t=Ee.useRef(e);return Ee.useEffect((()=>{wi(t.current,e)||(t.current=e)}),[e]),wi(t.current,e)?t.current:e}var Db=typeof window<"u"&&window.document&&window.document.createElement?Ee.useLayoutEffect:Ee.useEffect,xb=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:Mh.pending}:e;function Bb({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:s},unstable__sideEffectsInRender:o,createSelector:i},serializeQueryArgs:a,context:u}){const c=o?e=>e():Ee.useEffect;return{buildQueryHooks:function(o){const p=(t,{refetchOnReconnect:r,refetchOnFocus:s,refetchOnMountOrArgChange:i,skip:a=!1,pollingInterval:l=0,skipPollingIfUnfocused:p=!1}={})=>{const{initiate:d}=e.endpoints[o],f=n(),m=Ee.useRef();if(!m.current){const t=f(e.internalActions.internal_getRTKQSubscriptions());m.current=t}const h=fp(a?nr:t,Pb,u.endpointDefinitions[o],o),y=Ru({refetchOnReconnect:r,refetchOnFocus:s,pollingInterval:l,skipPollingIfUnfocused:p}),g=Ee.useRef(!1),v=Ee.useRef();let{queryCacheKey:A,requestId:_}=v.current||{},b=!1;A&&_&&(b=m.current.isRequestSubscribed(A,_));const I=!b&&g.current;return c((()=>{g.current=b})),c((()=>{I&&(v.current=void 0)}),[I]),c((()=>{var e;const t=v.current;if(h===nr)return null==t||t.unsubscribe(),void(v.current=void 0);const n=null==(e=v.current)?void 0:e.subscriptionOptions;if(t&&t.arg===h)y!==n&&t.updateSubscriptionOptions(y);else{null==t||t.unsubscribe();const e=f(d(h,{subscriptionOptions:y,forceRefetch:i}));v.current=e}}),[f,d,i,h,y,I]),Ee.useEffect((()=>()=>{var e;null==(e=v.current)||e.unsubscribe(),v.current=void 0}),[]),Ee.useMemo((()=>({refetch:()=>{var e;if(!v.current)throw new Error(yt(38));return null==(e=v.current)?void 0:e.refetch()}})),[])},d=({refetchOnReconnect:r,refetchOnFocus:s,pollingInterval:i=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:u}=e.endpoints[o],l=n(),[p,d]=Ee.useState(Tu),f=Ee.useRef(),m=Ru({refetchOnReconnect:r,refetchOnFocus:s,pollingInterval:i,skipPollingIfUnfocused:a});c((()=>{var e,t;const n=null==(e=f.current)?void 0:e.subscriptionOptions;m!==n&&(null==(t=f.current)||t.updateSubscriptionOptions(m))}),[m]);const h=Ee.useRef(m);c((()=>{h.current=m}),[m]);const y=Ee.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=f.current)||t.unsubscribe(),f.current=r=l(u(e,{subscriptionOptions:h.current,forceRefetch:!n})),d(e)})),r}),[l,u]);return Ee.useEffect((()=>()=>{var e;null==(e=null==f?void 0:f.current)||e.unsubscribe()}),[]),Ee.useEffect((()=>{p!==Tu&&!f.current&&y(p,!0)}),[p,y]),Ee.useMemo((()=>[y,p]),[y,p])},f=(t,{skip:n=!1,selectFromResult:c}={})=>{const{select:p}=e.endpoints[o],d=fp(n?nr:t,a,u.endpointDefinitions[o],o),f=Ee.useRef(),m=Ee.useMemo((()=>i([p(d),(e,t)=>t,e=>d],l,{memoizeOptions:{resultEqualityCheck:wi}})),[p,d]),h=Ee.useMemo((()=>c?i([m],c,{devModeChecks:{identityFunctionCheck:"never"}}):m),[m,c]),y=r((e=>h(e,f.current)),wi),g=s(),v=m(g.getState(),f.current);return Db((()=>{f.current=v}),[v]),y};return{useQueryState:f,useQuerySubscription:p,useLazyQuerySubscription:d,useLazyQuery(e){const[t,n]=d(e),r=f(n,{...e,skip:n===Tu}),s=Ee.useMemo((()=>({lastArg:n})),[n]);return Ee.useMemo((()=>[t,r,s]),[t,r,s])},useQuery(e,t){const n=p(e,t),r=f(e,{selectFromResult:e===nr||null!=t&&t.skip?void 0:xb,...t}),{data:s,status:o,isLoading:i,isSuccess:a,isError:u,error:c}=r;return Ee.useDebugValue({data:s,status:o,isLoading:i,isSuccess:a,isError:u,error:c}),Ee.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(s){return({selectFromResult:o,fixedCacheKey:a}={})=>{const{select:u,initiate:c}=e.endpoints[s],l=n(),[p,d]=Ee.useState();Ee.useEffect((()=>()=>{null!=p&&p.arg.fixedCacheKey||null==p||p.reset()}),[p]);const f=Ee.useCallback((function(e){const t=l(c(e,{fixedCacheKey:a}));return d(t),t}),[l,c,a]),{requestId:m}=p||{},h=Ee.useMemo((()=>u({fixedCacheKey:a,requestId:null==p?void 0:p.requestId})),[a,p,u]),y=Ee.useMemo((()=>o?i([h],o):h),[o,h]),g=r(y,wi),v=null==a?null==p?void 0:p.arg.originalArgs:void 0,A=Ee.useCallback((()=>{t((()=>{p&&d(void 0),a&&l(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:a}))}))}),[l,a,p,m]),{endpointName:_,data:b,status:I,isLoading:S,isSuccess:w,isError:E,error:k}=g;Ee.useDebugValue({endpointName:_,data:b,status:I,isLoading:S,isSuccess:w,isError:E,error:k});const P=Ee.useMemo((()=>({...g,originalArgs:v,reset:A})),[g,v,A]);return Ee.useMemo((()=>[f,P]),[f,P])}},usePrefetch:function(t,r){const s=n(),o=Ru(r);return Ee.useCallback(((n,r)=>s(e.util.prefetch(t,n,{...o,...r}))),[t,s,o])}};function l(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=u.endpointDefinitions[e];a({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===a({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 s=void 0!==r,o=e.isLoading,i=!s&&o,c=e.isSuccess||o&&s;return{...e,data:r,currentData:e.data,isFetching:o,isLoading:i,isSuccess:c}}}var Vb=Symbol(),Lb=({batch:e=kb,hooks:t={useDispatch:Cb,useSelector:wb,useStore:$h},createSelector:n=wc,unstable__sideEffectsInRender:r=!1,...s}={})=>({name:Vb,init(s,{serializeQueryArgs:o},i){const a=s,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:l}=Bb({api:s,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:i});return no(a,{usePrefetch:l}),no(i,{batch:e}),{injectEndpoint(e,t){if(Mb(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=u(e);no(a.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),s[`use${Au(e)}Query`]=t,s[`useLazy${Au(e)}Query`]=n}else if(Ob(t)){const t=c(e);no(a.endpoints[e],{useMutation:t}),s[`use${Au(e)}Mutation`]=t}}}}}),Nb=tb(pb(),Lb());const Pc="auth_token",zh=()=>localStorage.getItem(Pc)||void 0,Ub=e=>localStorage.setItem(Pc,e),Fb=()=>localStorage.removeItem(Pc),jb=()=>!!zh(),Ui={getToken:zh,setToken:Ub,removeToken:Fb,hasToken:jb},$b=()=>{Ui.removeToken()},pp={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!!Ui.getToken(),isAuthenticated:!1},zb=xn({name:"auth",initialState:pp,reducers:{login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload,e.isPending=!1,Ui.setToken(t.payload)},logout:()=>(Ui.removeToken(),{...pp,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}}),Wb=e=>async(t,n,r)=>{const s=await e(t,n,r);return s.error&&[401].includes(s.error.status)&&($b(),n.dispatch(zb.actions.logout())),s},Gb=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},Hb=5,Qb=e=>t=>!!e&&t.includes(e.status),hp=e=>new Promise((t=>setTimeout(t,1e3*e))),qb=e=>async(t,n,r)=>{const s=(null==r?void 0:r.maxRetries)??5;await Gb((()=>n.getState().network.isOnline));let o=0;const i=async()=>{var a,u,c,l;const p=await e(t,n,r),d=p.error;if(o>=s)return p;o>0&&await hp(Math.pow(2,o)),o++;const f=Qb(d);switch(!0){case"mutation"===n.type:return p;case!navigator.onLine:case f([408,404]):case d&&"FETCH_ERROR"===(null==d?void 0:d.status):case d&&d.status>=500:return await i();case 429===(null==(a=null==p?void 0:p.error)?void 0:a.status):{const e=null==(l=null==(c=null==(u=p.meta)?void 0:u.response)?void 0:c.headers)?void 0:l.get("Retry-After");return await hp(+(e||"0")),await i()}default:return p}};return await i()};var Wh=(e=>(e.SERVER_RULES="serverRules",e.EVENT_ATTENDEES="eventAttendees",e))(Wh||{});const Dc=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ai="8.48.0",lt=globalThis;function No(e,t,n){const r=lt,s=r.__SENTRY__=r.__SENTRY__||{},o=s[Ai]=s[Ai]||{};return o[e]||(o[e]=t())}const Ji=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Kb="Sentry Logger ",mp=["debug","info","warn","error","log","assert","trace"],yp={};function xc(e){if(!("console"in lt))return e();const t=lt.console,n={},r=Object.keys(yp);r.forEach((e=>{const r=yp[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function Yb(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Ji?mp.forEach((n=>{t[n]=(...t)=>{e&&xc((()=>{lt.console[n](`${Kb}[${n}]:`,...t)}))}})):mp.forEach((e=>{t[e]=()=>{}})),t}const gt=No("logger",Yb),Cu="<anonymous>";function En(e){try{return e&&"function"==typeof e&&e.name||Cu}catch{return Cu}}function gp(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 yo={},_p={};function Gh(e,t){yo[e]=yo[e]||[],yo[e].push(t)}function Hh(e,t){if(!_p[e]){_p[e]=!0;try{t()}catch(t){Ji&>.error(`Error while instrumenting ${e}`,t)}}}function ec(e,t){const n=e&&yo[e];if(n)for(const r of n)try{r(t)}catch(t){Ji&>.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${En(r)}\nError:`,t)}}function Xi(){return Bc(lt),lt}function Bc(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ai,t[Ai]=t[Ai]||{}}const Qh=Object.prototype.toString;function Jb(e){switch(Qh.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Uo(e,Error)}}function Vc(e,t){return Qh.call(e)===`[object ${t}]`}function Eo(e){return Vc(e,"String")}function Lc(e){return Vc(e,"Object")}function Xb(e){return typeof Event<"u"&&Uo(e,Event)}function Zb(e){return typeof Element<"u"&&Uo(e,Element)}function ew(e){return Vc(e,"RegExp")}function Nc(e){return!(!e||!e.then||"function"!=typeof e.then)}function tw(e){return Lc(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Uo(e,t){try{return e instanceof t}catch{return!1}}function nw(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const qh=lt,rw=80;function Uc(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",u=a.length;let c;const l=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(c=iw(n,l),!("html"===c||o>1&&i+s.length*u+c.length>=p));)s.push(c),i+=c.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function iw(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(qh.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 s=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(s&&s.length)s.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&Eo(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 sw(){try{return qh.document.location.href}catch{return""}}function ku(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function ow(e,t,n=!1){return!!Eo(e)&&(ew(t)?t.test(e):!!Eo(t)&&(n?e===t:e.includes(t)))}function aw(e,t=[],n=!1){return t.some((t=>ow(e,t,n)))}function Nt(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);"function"==typeof s&&Kh(s,r);try{e[t]=s}catch{Ji&>.log(`Failed to replace method "${t}" in object`,e)}}function Fi(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Ji&>.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Kh(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Fi(e,"__sentry_original__",t)}catch{}}function Yh(e){return e.__sentry_original__}function uw(e){if(Jb(e))return{message:e.message,name:e.name,stack:e.stack,...Sp(e)};if(Xb(e)){const t={type:e.type,target:vp(e.target),currentTarget:vp(e.currentTarget),...Sp(e)};return typeof CustomEvent<"u"&&Uo(e,CustomEvent)&&(t.detail=e.detail),t}return e}function vp(e){try{return Zb(e)?Uc(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Sp(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 Gt(e){return tc(e,new Map)}function tc(e,t){if(cw(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]=tc(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(tc(e,t))})),r}return e}function cw(e){if(!Lc(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const Jh=1e3;function Fo(){return Date.now()/Jh}function lw(){const{performance:e}=lt;if(!e||!e.now)return Fo;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/Jh}const Xh=lw(),dw=(()=>{const{performance:e}=lt;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):t;return o||a<t?s<=a?e.timeOrigin:i:r})();function Sn(){const e=lt,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 fw(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function pw(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=""),o.type||(o.type="Error")}function Zh(e,t){const n=fw(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 yn;function Ip(e){return new vn((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(yn||(yn={}));class vn{constructor(e){vn.prototype.__init.call(this),vn.prototype.__init2.call(this),vn.prototype.__init3.call(this),vn.prototype.__init4.call(this),this._state=yn.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new vn(((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 vn(((t,n)=>{let r,s;return this.then((t=>{s=!1,r=t,e&&e()}),(t=>{s=!0,r=t,e&&e()})).then((()=>{s?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(yn.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(yn.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===yn.PENDING){if(Nc(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===yn.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===yn.RESOLVED&&e[1](this._value),this._state===yn.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function hw(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||Xh(),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:Sn()),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 Ep(){return Sn()}function nc(){return Sn().substring(16)}function jo(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]=jo(r[e],t[e],n-1));return r}const rc="_sentrySpan";function bp(e,t){t?Fi(e,rc,t):delete e[rc]}function ic(e){return e[rc]}const mw=100;class Fc{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:Ep(),spanId:nc()}}clone(){const e=new Fc;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,bp(e,ic(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&&hw(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 ur?[t.getScopeData(),t.getRequestSession()]:Lc(t)?[e,e.requestSession]:[],{tags:s,extra:o,user:i,contexts:a,level:u,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),u&&(this._level=u),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),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,bp(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ep()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:mw;if(n<=0)return this;const r={timestamp:Fo(),...e},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,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:ic(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=jo(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:nc(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Sn();if(!this._client)return gt.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:Sn();if(!this._client)return gt.warn("No client configured on scope - will not capture message!"),r;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Sn();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(gt.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 ur=Fc;function yw(){return No("defaultCurrentScope",(()=>new ur))}function gw(){return No("defaultIsolationScope",(()=>new ur))}class _w{constructor(e,t){let n,r;n=e||new ur,r=t||new ur,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 Nc(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 Fr(){const e=Bc(Xi());return e.stack=e.stack||new _w(yw(),gw())}function vw(e){return Fr().withScope(e)}function Sw(e,t){const n=Fr();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function wp(e){return Fr().withScope((()=>e(Fr().getIsolationScope())))}function Iw(){return{withIsolationScope:wp,withScope:vw,withSetScope:Sw,withSetIsolationScope:(e,t)=>wp(t),getCurrentScope:()=>Fr().getScope(),getIsolationScope:()=>Fr().getIsolationScope()}}function $o(e){const t=Bc(e);return t.acs?t.acs:Iw()}function Hr(){return $o(Xi()).getCurrentScope()}function Zi(){return $o(Xi()).getIsolationScope()}function Ew(){return No("globalScope",(()=>new ur))}function bw(...e){const t=$o(Xi());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function rn(){return Hr().getClient()}const ww="_sentryMetrics";function Aw(e){const t=e[ww];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(Gt(r));return n}const em="sentry.source",Tw="sentry.sample_rate",Rw="sentry.op",Cw="sentry.origin",kw=0,Mw=1,Ow="sentry-",Pw=/^sentry-/;function Dw(e){const t=xw(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(Pw)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function xw(e){if(e&&(Eo(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Ap(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Ap(e)}function Ap(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const Bw=1;function Vw(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Gt({parent_span_id:r?t:ji(e).parent_span_id,span_id:r?nc():t,trace_id:n})}function Tp(e){return"number"==typeof e?Rp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Rp(e.getTime()):Xh()}function Rp(e){return e>9999999999?e/1e3:e}function ji(e){if(Nw(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Lw(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:u}=e;return Gt({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Tp(s),timestamp:Tp(i)||void 0,status:Fw(u),op:r[Rw],origin:r[Cw],_metrics_summary:Aw(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Lw(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function Nw(e){return"function"==typeof e.getSpanJSON}function Uw(e){const{traceFlags:t}=e.spanContext();return 1===t}function Fw(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const jw="_sentryRootSpan";function jc(e){return e[jw]||e}function tm(){const e=$o(Xi());return e.getActiveSpan?e.getActiveSpan():ic(Hr())}function $w(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=rn(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const nm="production",zw="_frozenDsc";function Ww(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=Gt({environment:n.environment||nm,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function rm(e){const t=rn();if(!t)return{};const n=jc(e),r=n[zw];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&Dw(o);if(i)return i;const a=Ww(e.spanContext().traceId,t),u=ji(n),c=u.data||{},l=c[Tw];null!=l&&(a.sample_rate=`${l}`);const p=c[em],d=u.description;return"url"!==p&&d&&(a.transaction=d),$w()&&(a.sampled=String(Uw(n))),t.emit("createDsc",a,n),a}function Cp(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;Dc&>.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 Gw(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:u}=e;return`${a}://${u}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Hw(){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 gn(e,t=100,n=1/0){try{return sc("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function sc(e,t,n=1/0,r=1/0,s=Hw()){const[o,i]=s;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=Qw(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const u="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===u)return a.replace("object ","");if(o(t))return"[Circular ~]";const c=t;if(c&&"function"==typeof c.toJSON)try{return sc("",c.toJSON(),u-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let p=0;const d=uw(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(p>=r){l[e]="[MaxProperties ~]";break}const t=d[e];l[e]=sc(e,t,u-1,r,s),p++}return i(t),l}function Qw(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(nw(t))return"[VueViewModel]";if(tw(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${En(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=qw(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function qw(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Kw(e,t=[]){return[e,t]}function Yw(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Jw(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Gw(r)},...s&&{trace:Gt({...s})}}}function oc(e,t,n,r=0){return new vn(((s,o)=>{const i=e[r];if(null===t||"function"!=typeof i)s(t);else{const a=i({...t},n);Dc&&i.id&&null===a&>.log(`Event processor "${i.id}" dropped event`),Nc(a)?a.then((t=>oc(e,t,n,r+1).then(s))).then(null,o):oc(e,a,n,r+1).then(s).then(null,o)}}))}let ro,kp,io;function Xw(e){const t=lt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return io&&n.length===kp||(kp=n.length,io=n.reduce(((n,r)=>{ro||(ro={});const s=ro[r];if(s)n[s[0]]=s[1];else{const s=e(r);for(let e=s.length-1;e>=0;e--){const o=s[e],i=o&&o.filename,a=t[r];if(i&&a){n[i]=a,ro[r]=[i,a];break}}}return n}),{})),io}function Zw(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;eA(e,t),r&&rA(e,r),iA(e,n),tA(e,s),nA(e,o)}function Mp(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:p,propagationContext:d,transactionName:f,span:m}=t;so(e,"extra",n),so(e,"tags",r),so(e,"user",s),so(e,"contexts",o),e.sdkProcessingMetadata=jo(e.sdkProcessingMetadata,a,2),i&&(e.level=i),f&&(e.transactionName=f),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...d}}function so(e,t,n){e[t]=jo(e[t],n,1)}function eA(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,u=Gt(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=Gt(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=Gt(s);l&&Object.keys(l).length&&(e.user={...l,...e.user});const p=Gt(o);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),i&&(e.level=i),a&&"transaction"!==e.type&&(e.transaction=a)}function tA(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function nA(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function rA(e,t){e.contexts={trace:Vw(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:rm(t),...e.sdkProcessingMetadata};const n=ji(jc(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function iA(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 sA(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,u={...t,event_id:t.event_id||n.event_id||Sn(),timestamp:t.timestamp||Fo()},c=n.integrations||e.integrations.map((e=>e.name));oA(u,e),cA(u,c),s&&s.emit("applyFrameMetadata",t),void 0===t.type&&aA(u,e.stackParser);const l=dA(r,n.captureContext);n.mechanism&&Zh(u,n.mechanism);const p=s?s.getEventProcessors():[],d=Ew().getScopeData();if(o){Mp(d,o.getScopeData())}if(l){Mp(d,l.getScopeData())}const f=[...n.attachments||[],...d.attachments];f.length&&(n.attachments=f),Zw(u,d);return oc([...p,...d.eventProcessors],u,n).then((e=>(e&&uA(e),"number"==typeof i&&i>0?lA(e,i,a):e)))}function oA(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||nm,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=ku(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=ku(i.value,o));const a=e.request;a&&a.url&&(a.url=ku(a.url,o))}function aA(e,t){const n=Xw(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function uA(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 cA(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function lA(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:gn(e.data,t,n)}})))},...e.user&&{user:gn(e.user,t,n)},...e.contexts&&{contexts:gn(e.contexts,t,n)},...e.extra&&{extra:gn(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=gn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:gn(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=gn(e.contexts.flags,3,n)),r}function dA(e,t){if(!t)return e;const n=e?e.clone():new ur;return n.update(t),n}function $c(e,t){return Hr().captureException(e,void 0)}function fA(e,t){const n={captureContext:t};return Hr().captureMessage(e,void 0,n)}function pA(e,t){Zi().setContext(e,t)}function hA(e,t){Zi().setExtra(e,t)}function mA(e){Zi().addEventProcessor(e)}const yA=6e4;function gA(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?yA:r-t}function _A(e,t){return e[t]||e.all||0}function vA(e,t,n=Date.now()){return _A(e,t)>n}function SA(e,{statusCode:t,headers:n},r=Date.now()){const s={...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),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(s[e]=r+a):s[e]=r+a;else s.all=r+a}else i?s.all=r+gA(i,r):429===t&&(s.all=r+6e4);return s}function IA(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return bA(e,n)||EA(e,r)}function EA(e,t){return!!t&&Op(e)===Op(t)}function bA(e,t){return!!t&&e.includes(t.host)}function Op(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const wA=100;function AA(e,t){const n=rn(),r=Zi();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=wA}=n.getOptions();if(o<=0)return;const i={timestamp:Fo(),...e},a=s?xc((()=>s(i,t))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,o))}function TA(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const RA="Dedupe",CA=()=>{let e;return{name:RA,processEvent(t){if(t.type)return t;try{if(MA(t,e))return Dc&>.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},kA=CA;function MA(e,t){return!!t&&!(!OA(e,t)&&!PA(e,t))}function OA(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!sm(e,t)||!im(e,t))}function PA(e,t){const n=Pp(t),r=Pp(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&sm(e,t)&&im(e,t))}function im(e,t){let n=gp(e),r=gp(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],s=n[e];if(t.filename!==s.filename||t.lineno!==s.lineno||t.colno!==s.colno||t.function!==s.function)return!1}return!0}function sm(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 Pp(e){return e.exception&&e.exception.values&&e.exception.values[0]}function DA(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function xA(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function BA(){return!xA()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function Dp(){return typeof window<"u"&&(!BA()||VA())}function VA(){const e=lt.process;return!!e&&"renderer"===e.type}const oo=lt;function LA(){const e=oo.chrome,t=e&&e.app&&e.app.runtime,n="history"in oo&&!!oo.history.pushState&&!!oo.history.replaceState;return!t&&n}function NA(e,t){return e??t()}function go(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const Si=lt;function UA(){setTimeout((()=>{}))}function jr(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Yh(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>jr(e,t)));return e.apply(this,r)}catch(e){throw UA(),bw((r=>{r.addEventProcessor((e=>(t.mechanism&&(pw(e),Zh(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),$c(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}Kh(n,e),Fi(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const om=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,FA=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",es=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s||0),(o||void 0===s)&&(s=t.value,t.delta=o,t.rating=FA(t.value,n),e(t)))}},Pe=lt,jA=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,am=(e=!0)=>{const t=Pe.performance&&Pe.performance.getEntriesByType&&Pe.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},zc=()=>{const e=am();return e&&e.activationStart||0},ts=(e,t)=>{const n=am();let r="navigate";return n&&(Pe.document&&Pe.document.prerendering||zc()>0?r="prerender":Pe.document&&Pe.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:jA(),navigationType:r}},cr=(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{}},ns=e=>{const t=t=>{("pagehide"===t.type||Pe.document&&"hidden"===Pe.document.visibilityState)&&e(t)};Pe.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},zo=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Ti=-1;const $A=()=>"hidden"!==Pe.document.visibilityState||Pe.document.prerendering?1/0:0,bo=e=>{"hidden"===Pe.document.visibilityState&&Ti>-1&&(Ti="visibilitychange"===e.type?e.timeStamp:0,WA())},zA=()=>{addEventListener("visibilitychange",bo,!0),addEventListener("prerenderingchange",bo,!0)},WA=()=>{removeEventListener("visibilitychange",bo,!0),removeEventListener("prerenderingchange",bo,!0)},Wc=()=>(Pe.document&&Ti<0&&(Ti=$A(),zA()),{get firstHiddenTime(){return Ti}}),Wo=e=>{Pe.document&&Pe.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},GA=[1800,3e3],HA=(e,t={})=>{Wo((()=>{const n=Wc(),r=ts("FCP");let s;const o=cr("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-zc(),0),r.entries.push(e),s(!0)))}))}));o&&(s=es(e,r,GA,t.reportAllChanges))}))},QA=[.1,.25],qA=(e,t={})=>{HA(zo((()=>{const n=ts("CLS",0);let r,s=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];s&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(s+=e.value,o.push(e)):(s=e.value,o=[e])}})),s>n.value&&(n.value=s,n.entries=o,r())},a=cr("layout-shift",i);a&&(r=es(e,n,QA,t.reportAllChanges),ns((()=>{i(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},KA=[100,300],YA=(e,t={})=>{Wo((()=>{const n=Wc(),r=ts("FID");let s;const o=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),s(!0))},i=e=>{e.forEach(o)},a=cr("first-input",i);s=es(e,r,KA,t.reportAllChanges),a&&ns(zo((()=>{i(a.takeRecords()),a.disconnect()})))}))};let um=0,Mu=1/0,ao=0;const JA=e=>{e.forEach((e=>{e.interactionId&&(Mu=Math.min(Mu,e.interactionId),ao=Math.max(ao,e.interactionId),um=ao?(ao-Mu)/7+1:0)}))};let ac;const XA=()=>ac?um:performance.interactionCount||0,ZA=()=>{"interactionCount"in performance||ac||(ac=cr("event",JA,{type:"event",buffered:!0,durationThreshold:0}))},_n=[],Ou=new Map,eT=40;let tT=0;const nT=()=>XA()-tT,rT=()=>{const e=Math.min(_n.length-1,Math.floor(nT()/50));return _n[e]},Pu=10,iT=[],sT=e=>{if(iT.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=_n[_n.length-1],n=Ou.get(e.interactionId);if(n||_n.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]};Ou.set(t.id,t),_n.push(t)}_n.sort(((e,t)=>t.latency-e.latency)),_n.length>10&&_n.splice(10).forEach((e=>Ou.delete(e.id)))}},cm=e=>{const t=Pe.requestIdleCallback||Pe.setTimeout;let n=-1;return e=zo(e),Pe.document&&"hidden"===Pe.document.visibilityState?e():(n=t(e),ns(e)),n},oT=[200,500],aT=(e,t={})=>{"PerformanceEventTiming"in Pe&&"interactionId"in PerformanceEventTiming.prototype&&Wo((()=>{ZA();const n=ts("INP");let r;const s=e=>{cm((()=>{e.forEach(sT);const t=rT();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},o=cr("event",s,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=es(e,n,oT,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),ns((()=>{s(o.takeRecords()),r(!0)})))}))},uT=[2500,4e3],xp={},cT=(e,t={})=>{Wo((()=>{const n=Wc(),r=ts("LCP");let s;const o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-zc(),0),r.entries=[e],s())}))},i=cr("largest-contentful-paint",o);if(i){s=es(e,r,uT,t.reportAllChanges);const n=zo((()=>{xp[r.id]||(o(i.takeRecords()),i.disconnect(),xp[r.id]=!0,s(!0))}));["keydown","click"].forEach((e=>{Pe.document&&addEventListener(e,(()=>cm(n)),{once:!0,capture:!0})})),ns(n)}}))},Ri={},wo={};let lm,dm,fm,pm;function lT(e,t=!1){return Go("cls",e,mT,lm,t)}function dT(e,t=!1){return Go("lcp",e,gT,fm,t)}function fT(e){return Go("fid",e,yT,dm)}function pT(e){return Go("inp",e,_T,pm)}function hT(e,t){return hm(e,t),wo[e]||(vT(e),wo[e]=!0),mm(e,t)}function rs(e,t){const n=Ri[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){om&>.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${En(r)}\nError:`,t)}}function mT(){return qA((e=>{rs("cls",{metric:e}),lm=e}),{reportAllChanges:!0})}function yT(){return YA((e=>{rs("fid",{metric:e}),dm=e}))}function gT(){return cT((e=>{rs("lcp",{metric:e}),fm=e}),{reportAllChanges:!0})}function _T(){return aT((e=>{rs("inp",{metric:e}),pm=e}))}function Go(e,t,n,r,s=!1){let o;return hm(e,t),wo[e]||(o=n(),wo[e]=!0),r&&t({metric:r}),mm(e,t,s?o:void 0)}function vT(e){const t={};"event"===e&&(t.durationThreshold=0),cr(e,(t=>{rs(e,{entries:t})}),t)}function hm(e,t){Ri[e]=Ri[e]||[],Ri[e].push(t)}function mm(e,t,n){return()=>{n&&n();const r=Ri[e];if(!r)return;const s=r.indexOf(t);-1!==s&&r.splice(s,1)}}const ST=1e3;let Bp,uc,cc,uo;function IT(e){Gh("dom",e),Hh("dom",ET)}function ET(){if(!Pe.document)return;const e=ec.bind(null,"dom"),t=Vp(e,!0);Pe.document.addEventListener("click",t,!1),Pe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Pe[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Nt(r,"addEventListener",(function(t){return function(n,r,s){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=Vp(e);o.handler=r,t.call(this,n,r,s)}o.refCount++}catch{}return t.call(this,n,r,s)}})),Nt(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.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 bT(e){if(e.type!==uc)return!1;try{if(!e.target||e.target._sentryId!==cc)return!1}catch{}return!0}function wT(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function Vp(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=AT(n);if(wT(n.type,r))return;Fi(n,"_sentryCaptured",!0),r&&!r._sentryId&&Fi(r,"_sentryId",Sn());const s="keypress"===n.type?"input":n.type;bT(n)||(e({event:n,name:s,global:t}),uc=n.type,cc=r?r._sentryId:void 0),clearTimeout(Bp),Bp=Pe.setTimeout((()=>{cc=void 0,uc=void 0}),ST)}}function AT(e){try{return e.target}catch{return null}}function TT(e){const t="history";Gh(t,e),Hh(t,RT)}function RT(){if(!LA())return;const e=Pe.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=uo,t=String(n);uo=t,ec("history",{from:e,to:t})}return e.apply(this,t)}}Pe.onpopstate=function(...t){const n=Pe.location.href,r=uo;if(uo=n,ec("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Nt(Pe.history,"pushState",t),Nt(Pe.history,"replaceState",t)}const Du={};function CT(e){const t=Du[e];if(t)return t;let n=Pe[e];if(DA(n))return Du[e]=n.bind(Pe);const r=Pe.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(t)}catch(t){om&>.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Du[e]=n.bind(Pe))}function $r(...e){return CT("setTimeout")(...e)}const kT="__sentry_xhr_v3__",MT=["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"],OT="BrowserApiErrors",PT=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:OT,setupOnce(){t.setTimeout&&Nt(Si,"setTimeout",Lp),t.setInterval&&Nt(Si,"setInterval",Lp),t.requestAnimationFrame&&Nt(Si,"requestAnimationFrame",xT),t.XMLHttpRequest&&"XMLHttpRequest"in Si&&Nt(XMLHttpRequest.prototype,"send",BT);const e=t.eventTarget;e&&(Array.isArray(e)?e:MT).forEach(VT)}}},DT=PT;function Lp(e){return function(...t){const n=t[0];return t[0]=jr(n,{mechanism:{data:{function:En(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function xT(e){return function(t){return e.apply(this,[jr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:En(e)},handled:!1,type:"instrument"}})])}}function BT(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Nt(n,e,(function(t){const n={mechanism:{data:{function:e,handler:En(t)},handled:!1,type:"instrument"}},r=Yh(t);return r&&(n.mechanism.data.handler=En(r)),jr(t,n)}))})),e.apply(this,t)}}function VT(e){const t=Si[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Nt(n,"addEventListener",(function(t){return function(n,r,s){try{LT(r)&&(r.handleEvent=jr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:En(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,jr(r,{mechanism:{data:{function:"addEventListener",handler:En(r),target:e},handled:!1,type:"instrument"}}),s])}})),Nt(n,"removeEventListener",(function(e){return function(t,n,r){try{const s=n.__sentry_wrapped__;s&&e.call(this,t,s,r)}catch{}return e.call(this,t,n,r)}})))}function LT(e){return"function"==typeof e.handleEvent}const $e=lt,Gc="sentryReplaySession",NT="replay_event",Hc="Unable to send Replay",UT=3e5,FT=9e5,jT=5e3,$T=5500,zT=6e4,WT=5e3,GT=3,Np=15e4,co=5e3,HT=3e3,QT=300,Qc=2e7,qT=4999,KT=15e3,Up=36e5;function lc(e,t){return e??t()}function $i(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}var nt;function YT(e){return e.nodeType===e.ELEMENT_NODE}function Ci(e){const t=$i([e,"optionalAccess",e=>e.host]);return $i([t,"optionalAccess",e=>e.shadowRoot])===e}function ki(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function JT(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 XT(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 Ao(e){try{const t=e.rules||e.cssRules;return t?JT(Array.from(t,ym).join("")):null}catch{return null}}function ZT(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function ym(e){let t;if(tR(e))try{t=Ao(e.styleSheet)||XT(e)}catch{}else if(nR(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=ZT(e)),n&&(t=eR(t)),n||r)return t}return t||e.cssText}function eR(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function tR(e){return"styleSheet"in e}function nR(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"}(nt||(nt={}));class gm{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return lc($i([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 rR(){return new gm}function Ho({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 zi({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function zr(e){return e.toLowerCase()}function dc(e){return e.toUpperCase()}const Fp="__rrweb_original__";function iR(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 s=t.getImageData,o=Fp in s?s[Fp]:s;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 qc(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?zr(t):null}function To(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function _m(e,t){let n;try{n=new URL(e,lc(t,(()=>window.location.href)))}catch{return null}return lc($i([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const jp={};function vm(e){const t=jp[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 s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch{}return jp[e]=r.bind(window)}function fc(...e){return vm("setTimeout")(...e)}function Sm(...e){return vm("clearTimeout")(...e)}function Im(e){try{return e.contentDocument}catch{}}let sR=1;const oR=new RegExp("[^a-z0-9-_:]"),Wi=-2;function Kc(){return sR++}function aR(e){if(e instanceof HTMLFormElement)return"form";const t=zr(e.tagName);return oR.test(t)?"div":t}function uR(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let Or,$p;const cR=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lR=/^(?:[a-z+]+:)?\/\//i,dR=/^www\..*/i,fR=/^(data:)([^,]*),(.*)/i;function Ro(e,t){return(e||"").replace(cR,((e,n,r,s,o,i)=>{const a=r||o||i,u=n||s||"";if(!a)return e;if(lR.test(a)||dR.test(a))return`url(${u}${a}${u})`;if(fR.test(a))return`url(${u}${a}${u})`;if("/"===a[0])return`url(${u}${uR(t)+a}${u})`;const c=t.split("/"),l=a.split("/");c.pop();for(const e of l)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${u}${c.join("/")}${u})`}))}const pR=/^[^ \t\n\r\u000c]+/,hR=/^[, \t\n\r\u000c]+/;function mR(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(hR),!(n>=t.length);){let o=r(pR);if(","===o.slice(-1))o=Dr(e,o.substring(0,o.length-1)),s.push(o);else{let r="";o=Dr(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,s.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return s.join(", ")}const zp=new WeakMap;function Dr(e,t){return t&&""!==t.trim()?Qo(e,t):t}function yR(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function Qo(e,t){let n=zp.get(e);if(n||(n=e.createElement("a"),zp.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Em(e,t,n,r,s,o){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?Dr(e,r):"srcset"===n?mR(e,r):"style"===n?Ro(r,Qo(e)):"object"===t&&"data"===n?Dr(e,r):"function"==typeof o?o(n,r,s):r)}function bm(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function gR(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 _R(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function rr(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:rr(e.parentNode,t,n,r+1)}function xr(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(_R(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function Wr(e,t,n,r,s,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 a=-1,u=-1;if(o){if(u=rr(i,xr(r,s)),u<0)return!0;a=rr(i,xr(t,n),u>=0?u:1/0)}else{if(a=rr(i,xr(t,n)),a<0)return!1;u=rr(i,xr(r,s),a>=0?a:1/0)}return a>=0?!(u>=0)||a<=u:!(u>=0)&&!!o}catch{}return!!o}function vR(e,t,n){const r=e.contentWindow;if(!r)return;let s,o=!1;try{s=r.document.readyState}catch{return}if("complete"!==s){const r=fc((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{Sm(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return fc(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function SR(e,t,n){let r,s=!1;try{r=e.sheet}catch{return}if(r)return;const o=fc((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{Sm(o),s=!0,t()}))}function IR(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:m={},maskTextFn:h,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:A,keepIframeSrcFn:_,newlyAddedElement:b=!1}=t,I=ER(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:nt.Document,childNodes:[],compatMode:e.compatMode}:{type:nt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:nt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return wR(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:f,maskAttributeFn:u,maskInputOptions:m,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:A,keepIframeSrcFn:_,newlyAddedElement:b,rootId:I,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d});case e.TEXT_NODE:return bR(e,{doc:n,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d,maskTextFn:h,maskInputOptions:m,maskInputFn:y,rootId:I});case e.CDATA_SECTION_NODE:return{type:nt.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:nt.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}function ER(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function bR(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:u,maskInputFn:c,rootId:l}=t,p=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const f="STYLE"===p||void 0,m="SCRIPT"===p||void 0,h="TEXTAREA"===p||void 0;if(f&&d){try{e.nextSibling||e.previousSibling||$i([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=Ao(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=Ro(d,Qo(t.doc))}m&&(d="SCRIPT_PLACEHOLDER");const y=Wr(e,r,o,s,i,n);if(!f&&!m&&!h&&d&&y&&(d=a?a(d,e.parentElement):d.replace(/[\S]/g,"*")),h&&d&&(u.textarea||y)&&(d=c?c(d,e.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===p&&d){d=zi({isMasked:Wr(e,r,o,s,i,Ho({type:null,tagName:p,maskInputOptions:u})),element:e,value:d,maskInputFn:c})}return{type:nt.Text,textContent:d||"",isStyle:f,rootId:l}}function wR(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:h,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:A,unmaskTextSelector:_}=t,b=gR(e,r,s,o),I=aR(e);let S={};const w=e.attributes.length;for(let t=0;t<w;t++){const r=e.attributes[t];r.name&&!bm(I,r.name,r.value)&&(S[r.name]=Em(n,I,zr(r.name),r.value,e,u))}if("link"===I&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Ao(t)),r&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=Ro(r,t.href))}if("style"===I&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Ao(e.sheet);t&&(S._cssText=Ro(t,Qo(n)))}if("input"===I||"textarea"===I||"select"===I||"option"===I){const t=e,n=qc(t),r=To(t,dc(I),n),s=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Wr(t,g,A,v,_,Ho({type:n,tagName:dc(I),maskInputOptions:a}));S.value=zi({isMasked:e,element:t,value:r,maskInputFn:c})}s&&(S.checked=s)}if("option"===I&&(e.selected&&!a.select?S.selected=!0:delete S.selected),"canvas"===I&&d)if("2d"===e.__context)iR(e)||(S.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(l.type,l.quality)&&(S.rr_dataURL=t)}if("img"===I&&p){Or||(Or=n.createElement("canvas"),$p=Or.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",s=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{Or.width=t.naturalWidth,Or.height=t.naturalHeight,$p.drawImage(t,0,0),S.rr_dataURL=Or.toDataURL(l.type,l.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&&(s?S.crossOrigin=s:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if(("audio"===I||"video"===I)&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),b){const{width:t,height:n}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"===I&&!f(S.src)&&(!b&&!Im(e)&&(S.rr_src=S.src),delete S.src);try{customElements.get(I)&&(E=!0)}catch{}return{type:nt.Element,tagName:I,attributes:S,childNodes:[],isSVG:yR(e)||void 0,needBlock:b,rootId:h,isCustom:E}}function je(e){return null==e?"":e.toLowerCase()}function AR(e,t){if(t.comment&&e.type===nt.Comment)return!0;if(e.type===nt.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"===_m(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(je(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===je(e.attributes.name)||"icon"===je(e.attributes.rel)||"apple-touch-icon"===je(e.attributes.rel)||"shortcut icon"===je(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&je(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(je(e.attributes.property).match(/^(og|twitter|fb):/)||je(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===je(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===je(e.attributes.name)||"googlebot"===je(e.attributes.name)||"bingbot"===je(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===je(e.attributes.name)||"generator"===je(e.attributes.name)||"framework"===je(e.attributes.name)||"publisher"===je(e.attributes.name)||"progid"===je(e.attributes.name)||je(e.attributes.property).match(/^article:/)||je(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===je(e.attributes.name)||"yandex-verification"===je(e.attributes.name)||"csrf-token"===je(e.attributes.name)||"p:domain_verify"===je(e.attributes.name)||"verify-v1"===je(e.attributes.name)||"verification"===je(e.attributes.name)||"shopify-checkout-api-token"===je(e.attributes.name)))return!0}}return!1}function Br(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:p,skipChild:d=!1,inlineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:A={},inlineImages:_=!1,recordCanvas:b=!1,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:w=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:P=()=>!1,newlyAddedElement:T=!1}=t;let{preserveWhiteSpace:M=!0}=t;const C=IR(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,dataURLOptions:A,inlineImages:_,recordCanvas:b,keepIframeSrcFn:P,newlyAddedElement:T});if(!C)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):AR(C,v)||!M&&C.type===nt.Text&&!C.isStyle&&!C.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Kc();const V=Object.assign(C,{id:R});if(r.add(e,V),-2===R)return null;I&&I(e);let O=!d;if(V.type===nt.Element){O=O&&!V.needBlock,delete V.needBlock;const t=e.shadowRoot;t&&ki(t)&&(V.isShadowHost=!0)}if((V.type===nt.Document||V.type===nt.Element)&&O){v.headWhitespace&&V.type===nt.Element&&"head"===V.tagName&&(M=!1);const t={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:p,skipChild:d,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:A,inlineImages:_,recordCanvas:b,preserveWhiteSpace:M,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:P};for(const n of Array.from(e.childNodes)){const e=Br(n,t);e&&V.childNodes.push(e)}if(YT(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Br(n,t);r&&(ki(e.shadowRoot)&&(r.isShadow=!0),V.childNodes.push(r))}}return e.parentNode&&Ci(e.parentNode)&&ki(e.parentNode)&&(V.isShadow=!0),V.type===nt.Element&&"iframe"===V.tagName&&vR(e,(()=>{const t=Im(e);if(t&&S){const n=Br(t,{doc:t,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:A,inlineImages:_,recordCanvas:b,preserveWhiteSpace:M,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:P});n&&S(e,n)}}),w),V.type===nt.Element&&"link"===V.tagName&&"string"==typeof V.attributes.rel&&("stylesheet"===V.attributes.rel||"preload"===V.attributes.rel&&"string"==typeof V.attributes.href&&"css"===_m(V.attributes.href))&&SR(e,(()=>{if(E){const t=Br(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:A,inlineImages:_,recordCanvas:b,preserveWhiteSpace:M,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:P});t&&E(e,t)}}),k),V}function TR(e,t){const{mirror:n=new gm,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:p=!0,inlineImages:d=!1,recordCanvas:f=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:A,preserveWhiteSpace:_,onSerialize:b,onIframeLoad:I,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:k=()=>!1}=t;return Br(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:!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}:!1===m?{}:m,maskAttributeFn:h,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:A,inlineImages:d,recordCanvas:f,preserveWhiteSpace:_,onSerialize:b,onIframeLoad:I,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:k,newlyAddedElement:!1})}function Bn(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function ht(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Pr="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 Wp={map:{},getId:()=>(console.error(Pr),-1),getNode:()=>(console.error(Pr),null),removeNodeFromMap(){console.error(Pr)},has:()=>(console.error(Pr),!1),reset(){console.error(Pr)}};function Gi(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();!s&&!1===n.leading&&(s=i);const a=t-(i-s),u=this;a<=0||a>t?(r&&(DR(r),r=null),s=i,e.apply(u,o)):!r&&!1!==n.trailing&&(r=qo((()=>{s=!1===n.leading?0:Date.now(),r=null,e.apply(u,o)}),a))}}function wm(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){qo((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>wm(e,t,o||{},!0)}function Yc(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(Wp=new Proxy(Wp,{get:(e,t,n)=>("map"===t&&console.error(Pr),Reflect.get(e,t,n))}));let Co=Date.now;function Am(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Bn([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Bn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Bn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Bn([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Bn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Bn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Tm(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Rm(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Cm(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Ct(e,t,n,r,s){if(!e)return!1;const o=Cm(e);if(!o)return!1;const i=xr(t,n);if(!s){const e=r&&o.matches(r);return i(o)&&!e}const a=rr(o,i);let u=-1;return!(a<0)&&(r&&(u=rr(o,xr(null,r))),a>-1&&u<0||a<u)}function RR(e,t){return-1!==t.getId(e)}function xu(e,t){return-2===t.getId(e)}function km(e,t){if(Ci(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||km(e.parentNode,t))}function pc(e){return!!e.changedTouches}function CR(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 Mm(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function Om(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function hc(e){return!!Bn([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(Co=()=>(new Date).getTime());class kR{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return NA(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 Pm(e){let t=null;return Bn([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 MR(e){let t,n=e;for(;t=Pm(n);)n=t;return n}function OR(e){const t=e.ownerDocument;if(!t)return!1;const n=MR(e);return t.contains(n)}function Dm(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||OR(e))}const Gp={};function Jc(e){const t=Gp[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 s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch{}return Gp[e]=r.bind(window)}function PR(...e){return Jc("requestAnimationFrame")(...e)}function qo(...e){return Jc("setTimeout")(...e)}function DR(...e){return Jc("clearTimeout")(...e)}var Hp,Qp,we=(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))(we||{}),_e=(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))(_e||{}),pt=(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))(pt||{}),mn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(mn||{});function Xc(e){try{return e.contentDocument}catch{}}function xR(e){try{return e.contentWindow}catch{}}function BR(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function qp(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"}(Hp||(Hp={})),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"}(Qp||(Qp={}));class VR{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=BR([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&qp(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&&qp(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 Kp=(e,t)=>`${e}@${t}`;class LR{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 VR,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!Dm(s))return;const o=Ci(s.parentNode)?this.mirror.getId(Pm(s)):this.mirror.getId(s.parentNode),i=r(s);if(-1===o||-1===i)return n.addNode(s);const a=Br(s,{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=>{Mm(e,this.mirror)&&!Ct(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Om(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hc(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Ct(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)}});a&&(e.push({parentId:o,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Yp(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)!Jp(this.droppedSet,e)&&!Yp(this.removes,e,this.mirror)||Jp(this.movedSet,e)?s(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),s(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(!xu(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!Ct(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Wr(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Cm(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=qc(t),s=t.tagName;r=To(t,s,n);const o=Ho({maskInputOptions:this.maskInputOptions,tagName:s,type:n});r=zi({isMasked:Wr(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(Ct(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Xc(t))return;n="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!bm(t.tagName,n)&&(s.attributes[n]=Em(this.doc,zr(t.tagName),zr(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)?s.styleDiff[e]=""===o?r:[r,o]:s._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(Ct(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=Ci(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Ct(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||xu(t,this.mirror)||!RR(t,this.mirror)||(this.addedSet.has(t)?(mc(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||km(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Kp(n,r)]?mc(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Ci(e.target)||!ki(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(xu(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[Kp(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Ct(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),hc(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 mc(e,t){e.delete(t),t.childNodes.forEach((t=>mc(e,t)))}function Yp(e,t,n){return 0!==e.length&&NR(e,t,n)}function NR(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 Jp(e,t){return 0!==e.size&&xm(e,t)}function xm(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||xm(e,n))}let Mi;function UR(e){Mi=e}function FR(){Mi=void 0}const De=e=>Mi?(...t)=>{try{return e(...t)}catch(e){if(Mi&&!0===Mi(e))return()=>{};throw e}}:e;function Wt(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const Vr=[];function is(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 Bm(e,t){const n=new LR;Vr.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=Wt([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);s&&window[s]&&(r=window[s]);const o=new r(De((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 jR({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const u=Gi(De((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),o),c=De(Gi(De((e=>{const t=is(e),{clientX:n,clientY:s}=pc(e)?e.changedTouches[0]:e;i||(i=Co()),a.push({x:n,y:s,id:r.getId(t),timeOffset:Co()-i}),u(typeof DragEvent<"u"&&e instanceof DragEvent?_e.Drag:e instanceof MouseEvent?_e.MouseMove:_e.TouchMove)})),s,{trailing:!1})),l=[ht("mousemove",c,n),ht("touchmove",c,n),ht("drag",c,n)];return De((()=>{l.forEach((e=>e()))}))}function $R({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,u=[];let c=null;return Object.keys(pt).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=zr(i);const l=(t=>i=>{const a=is(i);if(Ct(a,r,s,o,!0))return;let u=null,l=t;if("pointerType"in i){switch(i.pointerType){case"mouse":u=mn.Mouse;break;case"touch":u=mn.Touch;break;case"pen":u=mn.Pen}u===mn.Touch?pt[t]===pt.MouseDown?l="TouchStart":pt[t]===pt.MouseUp&&(l="TouchEnd"):mn.Pen}else pc(i)&&(u=mn.Touch);null!==u?(c=u,(l.startsWith("Touch")&&u===mn.Touch||l.startsWith("Mouse")&&u===mn.Mouse)&&(u=null)):pt[t]===pt.Click&&(u=c,c=null);const p=pc(i)?i.changedTouches[0]:i;if(!p)return;const d=n.getId(a),{clientX:f,clientY:m}=p;De(e)({type:pt[l],id:d,x:f,y:m,...null!==u&&{pointerType:u}})})(i);if(window.PointerEvent)switch(pt[i]){case pt.MouseDown:case pt.MouseUp:a=a.replace("mouse","pointer");break;case pt.TouchStart:case pt.TouchEnd:return}u.push(ht(a,l,t))})),De((()=>{u.forEach((e=>e()))}))}function Vm({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){return ht("scroll",De(Gi(De((i=>{const a=is(i);if(!a||Ct(a,r,s,o,!0))return;const u=n.getId(a);if(a===t&&t.defaultView){const n=Am(t.defaultView);e({id:u,x:n.left,y:n.top})}else e({id:u,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}function zR({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ht("resize",De(Gi(De((()=>{const t=Tm(),s=Rm();(n!==t||r!==s)&&(e({width:Number(s),height:Number(t)}),n=t,r=s)})),200)),t)}const WR=["INPUT","TEXTAREA","SELECT"],Xp=new WeakMap;function GR({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:p,maskTextClass:d,unmaskTextClass:f,maskTextSelector:m,unmaskTextSelector:h}){function y(e){let n=is(e);const l=e.isTrusted,y=n&&dc(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||WR.indexOf(y)<0||Ct(n,r,s,o,!0))return;const v=n;if(v.classList.contains(i)||a&&v.matches(a))return;const A=qc(n);let _=To(v,y,A),b=!1;const I=Ho({maskInputOptions:u,tagName:y,type:A}),S=Wr(n,d,m,f,h,I);("radio"===A||"checkbox"===A)&&(b=n.checked),_=zi({isMasked:S,element:n,value:_,maskInputFn:c}),g(n,p?{text:_,isChecked:b,userTriggered:l}:{text:_,isChecked:b});const w=n.name;"radio"===A&&w&&b&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach((e=>{if(e!==n){const t=zi({isMasked:S,element:e,value:To(e,y,A),maskInputFn:c});g(e,p?{text:t,isChecked:!b,userTriggered:!1}:{text:t,isChecked:!b})}}))}function g(t,r){const s=Xp.get(t);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){Xp.set(t,r);const s=n.getId(t);De(e)({...r,id:s})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>ht(e,De(y),t))),A=t.defaultView;if(!A)return()=>{v.forEach((e=>e()))};const _=A.Object.getOwnPropertyDescriptor(A.HTMLInputElement.prototype,"value"),b=[[A.HTMLInputElement.prototype,"value"],[A.HTMLInputElement.prototype,"checked"],[A.HTMLSelectElement.prototype,"value"],[A.HTMLTextAreaElement.prototype,"value"],[A.HTMLSelectElement.prototype,"selectedIndex"],[A.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...b.map((e=>wm(e[0],e[1],{set(){De(y)({target:this,isTrusted:!1})}},!1,A)))),De((()=>{v.forEach((e=>e()))}))}function ko(e){return function(e,t){if(lo("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||lo("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||lo("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||lo("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 Vn(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function HR({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:De(((r,s,o)=>{const[i,a]=o,{id:u,styleId:c}=Vn(s,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:i,index:a}]}),r.apply(s,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:De(((r,s,o)=>{const[i]=o,{id:a,styleId:u}=Vn(s,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:i}]}),r.apply(s,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:De(((r,s,o)=>{const[i]=o,{id:a,styleId:u}=Vn(s,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replace:i}),r.apply(s,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:De(((r,s,o)=>{const[i]=o,{id:a,styleId:u}=Vn(s,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replaceSync:i}),r.apply(s,o)}))}));const u={};fo("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(fo("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),fo("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),fo("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach((([r,s])=>{c[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(c[r].insertRule,{apply:De(((r,s,o)=>{const[i,a]=o,{id:u,styleId:c}=Vn(s.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:i,index:[...ko(s),a||0]}]}),r.apply(s,o)}))}),s.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:De(((r,s,o)=>{const[i]=o,{id:a,styleId:u}=Vn(s.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:[...ko(s),i]}]}),r.apply(s,o)}))})})),De((()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(u).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}function Lm({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const s="#document"===n.nodeName?Wt([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Wt([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=Wt([s,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Wt([s,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&s&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Wt([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Wt([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}}),De((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function QR({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:De(((s,i,a)=>{const[u,c,l]=a;if(n.has(u))return o.apply(i,[u,c,l]);const{id:p,styleId:d}=Vn(Wt([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,set:{property:u,value:c,priority:l},index:ko(i.parentRule)}),s.apply(i,a)}))});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:De(((s,o,a)=>{const[u]=a;if(n.has(u))return i.apply(o,[u]);const{id:c,styleId:l}=Vn(Wt([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,remove:{property:u},index:ko(o.parentRule)}),s.apply(o,a)}))}),De((()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i}))}function qR({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=De((i=>Gi(De((o=>{const a=is(o);if(!a||Ct(a,t,n,r,!0))return;const{currentTime:u,volume:c,muted:l,playbackRate:p}=a;e({type:i,id:s.getId(a),currentTime:u,volume:c,muted:l,playbackRate:p})})),o.media||500))),u=[ht("play",a(0),i),ht("pause",a(1),i),ht("seeked",a(2),i),ht("volumechange",a(3),i),ht("ratechange",a(4),i)];return De((()=>{u.forEach((e=>e()))}))}function KR({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return s.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=Yc(t.fonts,"add",(function(t){return function(n){return qo(De((()=>{const t=s.get(n);t&&(e(t),s.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),De((()=>{r.forEach((e=>e()))}))}function YR(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const u=De((()=>{const e=t.getSelection();if(!e||a&&Wt([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const u=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:c,endContainer:l,endOffset:p}=i;Ct(a,r,s,o,!0)||Ct(l,r,s,o,!0)||u.push({start:n.getId(a),startOffset:c,end:n.getId(l),endOffset:p})}i({ranges:u})}));return u(),ht("selectionchange",u)}function JR({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Yc(n.customElements,"define",(function(e){return function(n,r,s){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,s])}})):()=>{}}function XR(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Bm(e,e.doc));const s=jR(e),o=$R(e),i=Vm(e),a=zR(e,{win:n}),u=GR(e),c=qR(e);let l=()=>{},p=()=>{},d=()=>{},f=()=>{};e.recordDOM&&(l=HR(e,{win:n}),p=Lm(e,e.doc),d=QR(e,{win:n}),e.collectFonts&&(f=KR(e)));const m=YR(e),h=JR(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return De((()=>{Vr.forEach((e=>e.reset())),Wt([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),s(),o(),i(),a(),u(),c(),l(),p(),d(),f(),m(),h(),y.forEach((e=>e()))}))}function lo(e){return typeof window[e]<"u"}function fo(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class yc{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const s=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=s.get(t);return i||(i=this.generateIdFn(),s.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 Zp(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):("call"===s||"optionalCall"===s)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}class ZR{constructor(){this.crossOriginIframeMirror=new yc(Kc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class eC{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new yc(Kc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yc(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}),Zp([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=Xc(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 we.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:we.IncrementalSnapshot,data:{source:_e.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case we.Meta:case we.Load:case we.DomContentLoaded:return!1;case we.Plugin:return t;case we.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case we.IncrementalSnapshot:switch(t.data.source){case _e.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 _e.Drag:case _e.TouchMove:case _e.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case _e.ViewportResize:return!1;case _e.MediaInteraction:case _e.MouseInteraction:case _e.Scroll:case _e.CanvasMutation:case _e.Input:return this.replaceIds(t.data,e,["id"]),t;case _e.StyleSheetRule:case _e.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case _e.Font:return t;case _e.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case _e.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Zp([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 s of r)!Array.isArray(t[s])&&"number"!=typeof t[s]||(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));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!==nt.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class tC{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class nC{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(!ki(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=Bm({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Vm({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),qo((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Lm({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=Xc(e),n=xR(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Yc(e.prototype,"attachShadow",(function(e){return function(r){const s=e.call(this,r);return this.shadowRoot&&Dm(this)&&n.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class eh{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class rC{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new kR,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:ym(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 iC{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,PR((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Je,Mo;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=go([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 zt=rR();function In(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:l="rr-mask",unmaskTextClass:p=null,maskTextSelector:d=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:A,maskTextFn:_,maxCanvasSize:b=null,packFn:I,sampling:S={},dataURLOptions:w={},mousemoveWait:E,recordDOM:k=!0,recordCanvas:P=!1,recordCrossOriginIframes:T=!1,recordAfter:M=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:C=!1,collectFonts:R=!1,inlineImages:V=!1,plugins:O,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:x=new Set([]),errorHandler:D,onMutation:q,getCanvasManager:U}=e;UR(D);const N=!T||window.parent===window;let L=!1;if(!N)try{window.parent.document&&(L=!1)}catch{L=!0}if(N&&!t)throw new Error("emit function is required");if(!N&&!L)return()=>{};void 0!==E&&void 0===S.mousemove&&(S.mousemove=E),zt.reset();const j=!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,radio:!0,checkbox:!0}:void 0!==y?y:{},F=!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||{};CR();let G,$=0;const Q=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return I&&!L&&(e=I(e)),e};Je=(e,s)=>{const o=e;if(o.timestamp=Co(),go([Vr,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&o.type!==we.FullSnapshot&&!(o.type===we.IncrementalSnapshot&&o.data.source===_e.Mutation)&&Vr.forEach((e=>e.unfreeze())),N)go([t,"optionalCall",e=>e(Q(o),s)]);else if(L){const e={type:"rrweb",event:Q(o),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(o.type===we.FullSnapshot)G=o,$=0;else if(o.type===we.IncrementalSnapshot){if(o.data.source===_e.Mutation&&o.data.isAttachIframe)return;$++;const e=r&&$>=r,t=n&&G&&o.timestamp-G.timestamp>n;(e||t)&&ee(!0)}};const z=e=>{Je({type:we.IncrementalSnapshot,data:{source:_e.Mutation,...e}})},W=e=>Je({type:we.IncrementalSnapshot,data:{source:_e.Scroll,...e}}),H=e=>Je({type:we.IncrementalSnapshot,data:{source:_e.CanvasMutation,...e}}),K=new rC({mutationCb:z,adoptedStyleSheetCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.AdoptedStyleSheet,...e}})}),J="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ZR:new eC({mirror:zt,mutationCb:z,stylesheetManager:K,recordCrossOriginIframes:T,wrappedEmit:Je});for(const e of O||[])e.getMirror&&e.getMirror({nodeMirror:zt,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});const Y=new iC,X=oC(U,{mirror:zt,win:window,mutationCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.CanvasMutation,...e}}),recordCanvas:P,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:b,sampling:S.canvas,dataURLOptions:w,errorHandler:D}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new tC:new nC({mutationCb:z,scrollCb:W,bypassOptions:{onMutation:q,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:c,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:j,dataURLOptions:w,maskAttributeFn:v,maskTextFn:_,maskInputFn:A,recordCanvas:P,inlineImages:V,sampling:S,slimDOMOptions:F,iframeManager:J,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:B,processedNodeManager:Y},mirror:zt}),ee=(e=!1)=>{if(!k)return;Je({type:we.Meta,data:{href:window.location.href,width:Rm(),height:Tm()}},e),K.reset(),Z.init(),Vr.forEach((e=>e.lock()));const t=TR(document,{mirror:zt,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:c,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:j,maskAttributeFn:v,maskInputFn:A,maskTextFn:_,slimDOM:F,dataURLOptions:w,recordCanvas:P,inlineImages:V,onSerialize:e=>{Mm(e,zt)&&J.addIframe(e),Om(e,zt)&&K.trackLinkElement(e),hc(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{J.attachIframe(e,t),e.contentWindow&&X.addWindow(e.contentWindow),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:B});if(!t)return console.warn("Failed to snapshot the document");Je({type:we.FullSnapshot,data:{node:t,initialOffset:Am(window)}}),Vr.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,zt.getId(document))};Mo=ee;try{const e=[],t=e=>De(XR)({onMutation:q,mutationCb:z,mousemoveCb:(e,t)=>Je({type:we.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.MouseInteraction,...e}}),scrollCb:W,viewportResizeCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.ViewportResize,...e}}),inputCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.Input,...e}}),mediaInteractionCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.MediaInteraction,...e}}),styleSheetRuleCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.StyleSheetRule,...e}}),styleDeclarationCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.StyleDeclaration,...e}}),canvasMutationCb:H,fontCb:e=>Je({type:we.IncrementalSnapshot,data:{source:_e.Font,...e}}),selectionCb:e=>{Je({type:we.IncrementalSnapshot,data:{source:_e.Selection,...e}})},customElementCb:e=>{Je({type:we.IncrementalSnapshot,data:{source:_e.CustomElement,...e}})},blockClass:s,ignoreClass:a,ignoreSelector:u,maskAllText:c,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,maskInputOptions:j,inlineStylesheet:m,sampling:S,recordDOM:k,recordCanvas:P,inlineImages:V,userTriggeredOnInput:C,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:A,maskTextFn:_,keepIframeSrcFn:B,blockSelector:o,unblockSelector:i,slimDOMOptions:F,dataURLOptions:w,mirror:zt,iframeManager:J,stylesheetManager:K,shadowDomManager:Z,processedNodeManager:Y,canvasManager:X,ignoreCSSAttributes:x,plugins:go([O,"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=>Je({type:we.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});J.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(ht("DOMContentLoaded",(()=>{Je({type:we.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()}))),e.push(ht("load",(()=>{Je({type:we.Load,data:{}}),"load"===M&&n()}),window))),()=>{e.forEach((e=>e())),Y.destroy(),Mo=void 0,FR()}}catch(e){console.warn(e)}}function sC(e){if(!Mo)throw new Error("please take full snapshot after start recording");Mo(e)}function oC(e,t){try{return e?e(t):new eh}catch{return console.warn("Unable to initialize CanvasManager"),new eh}}In.mirror=zt,In.takeFullSnapshot=sC;const aC=3,uC=5;function Zc(e){return e>9999999999?e:1e3*e}function Bu(e){return e>9999999999?e/1e3:e}function ss(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:we.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:gn(t,10,1e3)}}),"console"===t.category))))}const cC="button,a";function Nm(e){return e.closest(cC)||e}function Um(e){const t=Fm(e);return t&&t instanceof Element?Nm(t):t}function Fm(e){return lC(e)?e.target:e}function lC(e){return"object"==typeof e&&!!e&&"target"in e}let Ln;function dC(e){return Ln||(Ln=[],fC()),Ln.push(e),()=>{const t=Ln?Ln.indexOf(e):-1;t>-1&&Ln.splice(t,1)}}function fC(){Nt($e,"open",(function(e){return function(...t){if(Ln)try{Ln.forEach((e=>e()))}catch{}return e.apply($e,t)}}))}const pC=new Set([_e.Mutation,_e.StyleSheetRule,_e.StyleDeclaration,_e.AdoptedStyleSheet,_e.CanvasMutation,_e.Selection,_e.MediaInteraction]);function hC(e,t,n){e.handleClick(t,n)}class mC{constructor(e,t,n=ss){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=dC((()=>{this._lastMutation=th()}));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(gC(t,this._ignoreSelector)||!_C(e))return;const n={timestamp:Bu(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=Bu(e)}registerScroll(e=Date.now()){this._lastScroll=Bu(e)}registerClick(e){const t=Nm(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=th();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,s=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:$e.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,s)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:$e.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=$r((()=>this._checkClicks()),1e3)}}const yC=["A","BUTTON","INPUT"];function gC(e,t){return!!(!yC.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 _C(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function th(){return Date.now()/1e3}function vC(e,t){try{if(!SC(t))return;const{source:n}=t.data;if(pC.has(n)&&e.registerMutation(t.timestamp),n===_e.Scroll&&e.registerScroll(t.timestamp),IC(t)){const{type:n,id:r}=t.data,s=In.mirror.getNode(r);s instanceof HTMLElement&&n===pt.Click&&e.registerClick(s)}}catch{}}function SC(e){return 3===e.type}function IC(e){return e.data.source===_e.MouseInteraction}function nn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Oo;!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"}(Oo||(Oo={}));const EC=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function bC(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(EC.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const wC=e=>t=>{if(!e.isEnabled())return;const n=AC(t);if(!n)return;const r="click"===t.name,s=r?t.event:void 0;r&&e.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&hC(e.clickDetector,n,Um(t.event)),ss(e,n)};function jm(e,t){const n=In.mirror.getId(e),r=n&&In.mirror.getNode(n),s=r&&In.mirror.getMeta(r),o=s&&RC(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Oo.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:bC(o.attributes)}}:{}}}function AC(e){const{target:t,message:n}=TC(e);return nn({category:`ui.${e.name}`,...jm(t,n)})}function TC(e){const t="click"===e.name;let n,r=null;try{r=t?Um(e.event):Fm(e.event),n=Uc(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function RC(e){return e.type===Oo.Element}function CC(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=kC(t);n&&ss(e,n)}function kC(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||MC(i)||!o)return null;const a=t||r||s,u=1===o.length;if(!a&&u)return null;const c=Uc(i,{maxStringLength:200})||"<unknown>";return nn({category:"ui.keyDown",message:c,data:{...jm(i,c).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function MC(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const OC={resource:VC,paint:xC,navigation:BC};function po(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function PC(e){return e.map(DC).filter(Boolean)}function DC(e){const t=OC[e.entryType];return t?t(e):null}function Gr(e){return((dw||$e.performance.timeOrigin)+e)/1e3}function xC(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=Gr(s);return{type:n,name:r,start:o,end:o+t,data:void 0}}function BC(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:p,redirectCount:d,startTime:f,transferSize:m,type:h}=e;return 0===s?null:{type:`${t}.${h}`,start:Gr(f),end:Gr(o),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:p,domComplete:o,redirectCount:d}}}function VC(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:u,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Gr(o),end:Gr(s),name:r,data:{size:c,statusCode:u,decodedBodySize:i,encodedBodySize:a}}}function LC(e){const t=e.entries[e.entries.length-1];return Ko(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function NC(e){return void 0!==e.sources}function UC(e){const t=[],n=[];for(const r of e.entries)if(NC(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=In.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Ko(e,"cumulative-layout-shift",n,t)}function FC(e){const t=e.entries[e.entries.length-1];return Ko(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function jC(e){const t=e.entries[e.entries.length-1];return Ko(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Ko(e,t,n,r){const s=e.value,o=e.rating,i=Gr(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map((e=>In.mirror.getId(e))):void 0,attributions:r}}}function $C(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(hT(e,n))})),r.push(dT(po(LC,e)),lT(po(UC,e)),fT(po(FC,e)),pT(po(jC,e))),()=>{r.forEach((e=>e()))}}const me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,zC='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 WC(){const e=new Blob([zC]);return URL.createObjectURL(e)}const nh=["info","warn","error","log"],_o="[Replay] ";function Vu(e,t="info"){AA({category:"console",data:{logger:"replay"},level:t,message:`${_o}${e}`},{level:t})}function GC(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return me?(nh.forEach((e=>{n[e]=(...n)=>{gt[e](_o,...n),t&&Vu(n.join(""),TA(e))}})),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),gt.error(_o,r),e?$c(r):t&&Vu(r,"error")},n.infoTick=(...e)=>{gt.info(_o,...e),t&&setTimeout((()=>Vu(e[0])),0)}):nh.forEach((e=>{n[e]=()=>{}})),n}const ge=GC();class el extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Qc}.`)}}class $m{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>Qc)throw new el;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?Zc(e):null}}class HC{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(){me&&ge.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,s)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return me&&ge.error("Error in compression worker: ",i.response),void s(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 QC{constructor(e){this._worker=new HC(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=Zc(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Qc?Promise.reject(new el):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{me&&ge.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 qC{constructor(e){this._fallback=new $m,this._compression=new QC(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(me&&ge.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){me&&ge.exception(e,"Failed to add events when switching buffers.")}}}function KC({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=YC(t);if(e)return e}return me&&ge.info("Using simple buffer"),new $m}function YC(e){try{const t=e||JC();if(!t)return;me&&ge.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new qC(n)}catch(e){me&&ge.exception(e,"Failed to create compression worker")}}function JC(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?WC():""}function tl(){try{return"sessionStorage"in $e&&!!$e.sessionStorage}catch{return!1}}function XC(e){ZC(),e.session=void 0}function ZC(){if(tl())try{$e.sessionStorage.removeItem(Gc)}catch{}}function zm(e){return void 0!==e&&Math.random()<e}function Wm(e){const t=Date.now();return{id:e.id||Sn(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function nl(e){if(tl())try{$e.sessionStorage.setItem(Gc,JSON.stringify(e))}catch{}}function ek(e,t){return zm(e)?"session":!!t&&"buffer"}function rh({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=Wm({sampled:ek(e,t),previousSessionId:r});return n&&nl(s),s}function tk(){if(!tl())return null;try{const e=$e.sessionStorage.getItem(Gc);if(!e)return null;const t=JSON.parse(e);return me&&ge.infoTick("Loading existing session"),Wm(t)}catch{return null}}function gc(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Gm(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return gc(e.started,t,r)||gc(e.lastActivity,n,r)}function Hm(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Gm(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function Lu({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&tk();return s?Hm(s,{sessionIdleExpire:e,maxReplayDuration:t})?(me&&ge.infoTick("Session in sessionStorage is expired, creating new one..."),rh(r,{previousSessionId:s.id})):s:(me&&ge.infoTick("Creating new session"),rh(r,{previousSessionId:n}))}function nk(e){return e.type===we.Custom}function rl(e,t,n){return!!qm(e,t)&&(Qm(e,t,n),!0)}function rk(e,t,n){return qm(e,t)?Qm(e,t,n):Promise.resolve(null)}async function Qm(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s="buffer"===e.recordingMode;try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=ik(t,e.getOptions().beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(t){const n=t&&t instanceof el,o=n?"addEventSizeExceeded":"addEvent";if(n&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o});const i=rn();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function qm(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Zc(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(me&&ge.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function ik(e,t){try{if("function"==typeof t&&nk(e))return t(e)}catch(e){return me&&ge.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function il(e){return!e.type}function _c(e){return"transaction"===e.type}function sk(e){return"replay_event"===e.type}function ih(e){return"feedback"===e.type}function ok(e){return(t,n)=>{if(!e.isEnabled()||!il(t)&&!_c(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(_c(t))return void ak(e,t);uk(e,t)}}}function ak(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 uk(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)||$r((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function ck(e){return t=>{!e.isEnabled()||!il(t)||lk(e,t)}}function lk(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))){ss(e,nn({category:"replay.hydrate-error",data:{url:sw()}}))}}function dk(e){const t=rn();t&&t.on("beforeAddBreadcrumb",(t=>fk(e,t)))}function fk(e,t){if(!e.isEnabled()||!Km(t))return;const n=pk(t);n&&ss(e,n)}function pk(e){return!Km(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?hk(e):nn(e)}function hk(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return nn(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>co?(n=!0,`${e.slice(0,co)}…`):e;if("object"==typeof e)try{const t=gn(e,7);return JSON.stringify(t).length>co?(n=!0,`${JSON.stringify(t,null,2).slice(0,co)}…`):t}catch{}return e}));return nn({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Km(e){return!!e.category}function mk(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function Ym(){const e=Hr().getPropagationContext().dsc;e&&delete e.replay_id;const t=tm();if(t){delete rm(t).replay_id}}function yk(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:we.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}function gk(e,t){return!("buffer"!==e.recordingMode||t.message===Hc||!t.exception||t.type)&&zm(e.getOptions().errorSampleRate)}function _k(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:sk(t)?(delete t.breadcrumbs,t):il(t)||_c(t)||ih(t)?e.checkAndHandleExpiredSession()?ih(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),yk(e,t),t):mk(t,n)&&!e.getOptions()._experiments.captureExceptions?(me&&ge.log("Ignoring error from rrweb internals",t),null):((gk(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(Ym(),t):t),{id:"Replay"})}function Yo(e,t){return t.map((({type:t,start:n,end:r,name:s,data:o})=>{const i=e.throttledAddEvent({type:we.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function vk(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 Sk(e){return t=>{if(!e.isEnabled())return;const n=vk(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Yo(e,[n]),!1))))}}function Ik(e,t){return(!me||!e.getOptions()._experiments.traceInternals)&&IA(t,rn())}function Jm(e,t){e.isEnabled()&&null!==t&&(Ik(e,t.name)||e.addUpdate((()=>(Yo(e,[t]),!0))))}function Jo(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=ty(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Xm(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Zm(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ty(e)];if(!e)return[void 0]}catch(t){return me&&ge.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return me&&ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Po(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 ey(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:Gt({method:o,statusCode:i,request:a,response:u})}}function Hi(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Un(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:s,warnings:o}=Ek(n);return r.body=s,o&&o.length>0&&(r._meta={warnings:o}),r}function vc(e,t){return Object.entries(e).reduce(((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n}),{})}function ty(e){return new URLSearchParams(e).toString()}function Ek(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>Np,n=bk(e);if(t){const t=e.slice(0,Np);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 bk(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function Do(e,t){return aw(wk(e),t)}function wk(e,t=$e.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith($e.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 Ak(e,t,n){try{const r=ey("resource.fetch",await Rk(e,t,n));Jm(n.replay,r)}catch(e){me&&ge.exception(e,"Failed to capture fetch breadcrumb")}}function Tk(e,t){const{input:n,response:r}=t,s=Jo(n?ny(n):void 0),o=r?Xm(r.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}async function Rk(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:u=0,request_body_size:c,response_body_size:l}=e.data,p=Do(i,n.networkDetailAllowUrls)&&!Do(i,n.networkDetailDenyUrls);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:u,request:p?Ck(n,t.input,c):Hi(c),response:await kk(p,n,t.response,l)}}function Ck({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?Pk(n,t):{};if(!e)return Un(s,r,void 0);const o=ny(n),[i,a]=Zm(o),u=Un(s,r,i);return a?Po(u,a):u}async function kk(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&void 0!==s)return Hi(s);const o=r?ry(r.headers,n):{};if(!r||!t&&void 0!==s)return Un(o,s,void 0);const[i,a]=await Ok(r),u=Mk(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return a?Po(u,a):u}function Mk(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e&&e.length&&void 0===n?Jo(e):n;return r?Un(s,o,t?e:void 0):Hi(o)}catch(e){return me&&ge.exception(e,"Failed to serialize response body"),Un(s,n,void 0)}}async function Ok(e){const t=Dk(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await xk(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(me&&ge.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(me&&ge.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function ny(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function ry(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Pk(e,t){return 1===e.length&&"string"!=typeof e[0]?sh(e[0],t):2===e.length?sh(e[1],t):{}}function sh(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?ry(n,t):Array.isArray(n)?{}:vc(n,t):{}}function Dk(e){try{return e.clone()}catch(e){me&&ge.exception(e,"Failed to clone response body")}}function xk(e){return new Promise(((t,n)=>{const r=$r((()=>n(new Error("Timeout while trying to read response body"))),500);Bk(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function Bk(e){return await e.text()}async function Vk(e,t,n){try{const r=ey("resource.xhr",Nk(e,t,n));Jm(n.replay,r)}catch(e){me&&ge.exception(e,"Failed to capture xhr breadcrumb")}}function Lk(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Jo(r),o=n.getResponseHeader("content-length")?Xm(n.getResponseHeader("content-length")):$k(n.response,n.responseType);void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}function Nk(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:u,method:c,status_code:l=0,request_body_size:p,response_body_size:d}=e.data;if(!u)return null;if(!a||!Do(u,n.networkDetailAllowUrls)||Do(u,n.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:o,url:u,method:c,statusCode:l,request:Hi(p),response:Hi(d)}}const f=a[kT],m=f?vc(f.request_headers,n.networkRequestHeaders):{},h=vc(Uk(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?Zm(i):[void 0],[v,A]=n.networkCaptureBodies?Fk(a):[void 0],_=Un(m,p,y),b=Un(h,d,v);return{startTimestamp:s,endTimestamp:o,url:u,method:c,statusCode:l,request:g?Po(_,g):_,response:A?Po(b,A):b}}function Uk(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 Fk(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return jk(e.response,e.responseType)}catch(e){t.push(e)}return me&&ge.warn("Failed to get xhr response body",...t),[void 0]}function jk(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 me&&ge.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return me&&ge.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function $k(e,t){try{return Jo("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function zk(e){const t=rn();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>Wk(a,e,t)))}catch{}}function Wk(e,t,n){if(t.data)try{Gk(t)&&Qk(n)&&(Lk(t,n),Vk(t,n,e)),Hk(t)&&qk(n)&&(Tk(t,n),Ak(t,n,e))}catch(e){me&&ge.exception(e,"Error when enriching network breadcrumb")}}function Gk(e){return"xhr"===e.category}function Hk(e){return"fetch"===e.category}function Qk(e){return e&&e.xhr}function qk(e){return e&&e.response}function Kk(e){const t=rn();IT(wC(e)),TT(Sk(e)),dk(e),zk(e);mA(_k(e)),t&&(t.on("beforeSendEvent",ck(e)),t.on("afterSendEvent",ok(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 Yk(e){try{return Promise.all(Yo(e,[Jk($e.performance.memory)]))}catch{return[]}}function Jk(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Xk(e,t,n){let r,s,o;const i=n.maxWait?Math.max(n.maxWait,t):0;function a(){return u(),r=e(),r}function u(){void 0!==s&&clearTimeout(s),void 0!==o&&clearTimeout(o),s=o=void 0}function c(){return s&&clearTimeout(s),s=$r(a,t),i&&void 0===o&&(o=$r(a,i)),r}return c.cancel=u,c.flush=function(){return void 0!==s||void 0!==o?a():r},c}function Zk(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(me&&ge.warn("Received replay event after session expired."));const s=r||!t;t=!0,e.clickDetector&&vC(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!rl(e,n,s))return!0;if(!s)return!1;const t=e.session;if(tM(e,s),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(me&&ge.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&nl(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function eM(e){const t=e.getOptions();return{type:we.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 tM(e,t){!t||!e.session||0!==e.session.segmentId||rl(e,eM(e),!1)}function nM(e,t,n,r){return Kw(Jw(e,Yw(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function rM({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 iM({client:e,scope:t,replayId:n,event:r}){const s={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,s);const o=await sA(e.getOptions(),r,s,t,e,Zi());if(!o)return null;o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:a,version:u}=i&&i.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function sM({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=rM({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:u,traceIds:c,initialTimestamp:l}=r,p=rn(),d=Hr(),f=p&&p.getTransport(),m=p&&p.getDsn();if(!(p&&f&&m&&o.sampled))return Ip({});const h={type:NT,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:u,trace_ids:c,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},y=await iM({scope:d,client:p,replayId:t,event:h});if(!y)return p.recordDroppedEvent("event_processor","replay",h),me&&ge.info("An event processor returned `null`, will not send event."),Ip({});delete y.sdkProcessingMetadata;const g=nM(y,i,m,p.getOptions().tunnel);let v;try{v=await f.send(g)}catch(e){const t=new Error(Hc);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new iy(v.statusCode);const A=SA({},v);if(vA(A,"replay"))throw new sl(A);return v}class iy extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class sl extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function sy(e,t={count:0,interval:WT}){const{recordingData:n,onError:r}=e;if(n.length)try{return await sM(e),!0}catch(n){if(n instanceof iy||n instanceof sl)throw n;if(pA("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${Hc} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{$r((async()=>{try{await sy(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const oy="__THROTTLED",oM="__SKIPPED";function aM(e,t,n){const r=new Map;let s=!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=s;return s=!0,e?oM:oy}s=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...o)}}class Nn{constructor({options:e,recordingOptions:t}){Nn.prototype.__init.call(this),Nn.prototype.__init2.call(this),Nn.prototype.__init3.call(this),Nn.prototype.__init4.call(this),Nn.prototype.__init5.call(this),Nn.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:UT,sessionIdleExpire:FT},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=Xk((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=aM(((e,t)=>rk(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(HT,n),timeout:n,scrollTimeout:QT,ignoreSelector:r?r.join(","):""}:void 0;if(s&&(this.clickDetector=new mC(this,s)),me){const t=e._experiments;ge.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){me&&ge.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(me&&ge.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",me&&ge.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(me&&ge.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(me&&ge.info("Buffering is in progress, call `flush()` to save the replay"));me&&ge.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Lu({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(me&&ge.info("Buffering is in progress, call `flush()` to save the replay"));me&&ge.infoTick("Starting replay in buffer mode");const e=Lu({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=In({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:zT}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Zk(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{me&&ge.info("Stopping Replay"+(t?` triggered by ${t}`:"")),Ym(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,XC(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),me&&ge.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),me&&ge.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();me&&ge.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&&gc(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${$e.location.pathname}${$e.location.hash}${$e.location.search}`,t=`${$e.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===oy){const e=nn({category:"replay.throttled"});this.addUpdate((()=>!rl(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||tm(),t=e&&jc(e),n=(t&&ji(t).data||{})[em];if(t&&n&&["route","custom"].includes(n))return ji(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=KC({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=Lu({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!Hm(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{$e.document.addEventListener("visibilitychange",this._handleVisibilityChange),$e.addEventListener("blur",this._handleWindowBlur),$e.addEventListener("focus",this._handleWindowFocus),$e.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Kk(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=$C(this)}_removeListeners(){try{$e.document.removeEventListener("visibilitychange",this._handleVisibilityChange),$e.removeEventListener("blur",this._handleWindowBlur),$e.removeEventListener("focus",this._handleWindowFocus),$e.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===$e.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=nn({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=nn({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{CC(this,e)}}_doChangeToBackgroundTasks(e){!this.session||Gm(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):me&&ge.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:we.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=PC(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(Yo(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 Yk(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 s=await this.eventBuffer.finish();await sy({replayId:e,recordingData:s,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=rn();if(t){const n=e instanceof sl?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else me&&ge.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(me&&ge.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,s=n>this._options.maxReplayDuration+5e3;if(r||s)return me&&ge.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&&me&&ge.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&&nl(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=nn({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function _i(e,t){return[...e,...t].join(",")}function uM({mask:e,unmask:t,block:n,unblock:r,ignore:s}){return{maskTextSelector:_i(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:_i(t,[]),blockSelector:_i(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:_i(r,[]),ignoreSelector:_i(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function cM({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const oh='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lM=["content-length","content-type","accept"];let ah=!1;const dM=e=>new Xo(e);class Xo{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=jT,flushMaxDelay:t=$T,minReplayDuration:n=qT,maxReplayDuration:r=Up,stickySession:s=!0,useCompression:o=!0,workerUrl:i,_experiments:a={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:p=750,mutationLimit:d=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:A=[],mask:_=[],maskAttributes:b=["title","placeholder"],unmask:I=[],block:S=[],unblock:w=[],ignore:E=[],maskFn:k,beforeAddRecordingEvent:P,beforeErrorSampling:T,onError:M}={}){this.name=Xo.id;const C=uM({mask:_,unmask:I,block:S,unblock:w,ignore:E});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:k,maskInputFn:k,maskAttributeFn:(e,t,n)=>cM({maskAttributes:b,maskAllText:u,privacyOptions:C,key:e,value:t,el:n}),...C,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,KT),maxReplayDuration:Math.min(r,Up),stickySession:s,useCompression:o,workerUrl:i,blockAllMedia:l,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:d,slowClickTimeout:f,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:uh(v),networkResponseHeaders:uh(A),beforeAddRecordingEvent:P,beforeErrorSampling:T,onError:M,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${oh}`:oh),this._isInitialized&&Dp())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ah}set _isInitialized(e){ah=e}afterAllSetup(e){!Dp()||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=fM(this._initialOptions,e);this._replay=new Nn({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function fM(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Gt(e)},s=Cp(n.replaysSessionSampleRate),o=Cp(n.replaysOnErrorSampleRate);return null==s&&null==o&&xc((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=s&&(r.sessionSampleRate=s),null!=o&&(r.errorSampleRate=o),r}function uh(e){return[...lM,...e.map((e=>e.toLowerCase()))]}Xo.__initStatic();const ay=()=>"object"!=typeof window;var pM={DISTRIB_RELEASE:"24.04",JDK_18:"/usr/lib/jvm/java-1.8.0-amazon-corretto",TEAMCITY_PROJECT_NAME:"Web Apps",USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/false ci/teamcity",rvm_pretty_print_flag:"0",NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS:"20",TEAMCITY_PROCESS_PARENT_FLOW_ID:"",ANDROID_SDK_HOME:"/home/teamcity/android-sdk-linux",DOTNET_CLI_TELEMETRY_OPTOUT:"true",JDK_11_x64:"/usr/lib/jvm/java-11-amazon-corretto",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",SHLVL:"0",npm_config_noproxy:"",BUILD_VCS_NUMBER:"328a7f14b1845a9b68091b969dd2870a5edfe7ff",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/22074",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/openapi/package.json",ANDROID_SDKMANAGER_PATH:"/home/teamcity/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager",TEAMCITY_BUILD_PROPERTIES_FILE:"/mnt/agent/temp/buildTmp/teamcity.build.parameters",npm_package_engines_node:">=20.2.0",rvm_stored_umask:"0022",GRADLE_HOME:"/opt/gradle",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",npm_config_userconfig:"/home/teamcity/.npmrc",rvm_user_install_flag:"1",BUILD_VCS_NUMBER_WebApps:"328a7f14b1845a9b68091b969dd2870a5edfe7ff",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1313",COLOR:"1",TEAMCITY_BUILDCONF_NAME:"Apps",DISTRIB_DESCRIPTION:"Ubuntu 24.04.2 LTS",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"true",TMPDIR:"/mnt/agent/temp/buildTmp",LOGNAME:"teamcity",JOURNAL_STREAM:"8:9782",TEMP:"/mnt/agent/temp/buildTmp",_:"/usr/bin/nohup",npm_config_npm_version:"10.9.2",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",rvm_bin_path:"/home/teamcity/.rvm/bin",IRBRC:"/home/teamcity/.rvm/rubies/ruby-3.3.7/.irbrc",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/teamcity-agent.service/memory.pressure",P4CONFIG:".p4config",RUBY_VERSION:"ruby-3.3.7",npm_config_cache:"/home/teamcity/.npm",DOTNET_ROOT:"/usr/share/dotnet",JDK_1_8:"/usr/lib/jvm/java-1.8.0-amazon-corretto",MNT_MOUNT:"/dev/nvme1n1 on /mnt type ext4 (rw,noatime)",TEAMCITY_GIT_PATH:"/usr/local/bin/git",AWS_SHARED_CREDENTIALS_FILE:"/mnt/agent/temp/agentTmp/aws.credentials",DISTRIB_ID:"Ubuntu",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/openapi/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",INVOCATION_ID:"beac2387fdde450f903ca740afe9cef0",JDK_11_0:"/usr/lib/jvm/java-11-amazon-corretto",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",TEAMCITY_CAPTURE_ENV:'"/usr/lib/jvm/java-21-amazon-corretto/bin/java" -jar "/home/teamcity/agent/plugins/environment-fetcher/lib/environment-fetcher-bin-2025.03-186049-jar-with-dependencies.jar"',TURBO_HASH:"ccb5d8852ca0cba1",npm_package_name:"@wellesley/openapi",DISTRIB_CODENAME:"noble",JDK_21_0:"/usr/lib/jvm/java-21-amazon-corretto",npm_config_color:"always",DOMAIN_ENV:"test",MY_RUBY_HOME:"/home/teamcity/.rvm/rubies/ruby-3.3.7",TEAMCITY_VERSION:"2025.03 (build 186049)",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"2694",NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS:"20",UID:"1001",AWS_PROFILE:"default",GOPATH:"/home/teamcity/go",JDK_17_0:"/usr/lib/jvm/java-17-amazon-corretto",SHELL:"/bin/bash",TEAMCITY_AGENT_OPTS:"-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs/agent_%p.hprof -Dteamcity.internal.hosted.server.technicalName=PREINIT_AGENT",USE_NPM_VENDOR:"false",npm_lifecycle_event:"build",npm_package_version:"1.0.165",JDK_1_8_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",rvm_loaded_flag:"1",rvm_prefix:"/home/teamcity",GEM_HOME:"/home/teamcity/.rvm/gems/ruby-3.3.7",TURBO_INVOCATION_DIR:"/mnt/agent/work/70fcd8585843667f",JDK_11_0_x64:"/usr/lib/jvm/java-11-amazon-corretto",JDK_21_0_x64:"/usr/lib/jvm/java-21-amazon-corretto",rvm_version:"1.29.12 (latest)",WELLESLEY_APPS:"tooter.zip\nforum.zip\nsettings.zip\naccount.zip\nadmin.zip\nerror.zip\nevents.zip\nhost.zip\ngroup-settings.zip\ngroup-profile.zip\nuser-profile.zip\ndiscover.zip",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",GEM_PATH:"/home/teamcity/.rvm/gems/ruby-3.3.7:/home/teamcity/.rvm/gems/ruby-3.3.7@global",JAVA_HOME:"/usr/lib/jvm/java-21-amazon-corretto",PWD:"/mnt/agent/work/70fcd8585843667f/packages/openapi",TEAMCITY_AGENT_MEM_OPTS:"-Xmx512m",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",ANDROID_HOME:"/home/teamcity/android-sdk-linux",JDK_11:"/usr/lib/jvm/java-11-amazon-corretto",TEAMCITY_GIT_VERSION:"2.47.1.0",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",TEAMCITY_PROCESS_FLOW_ID:"783181422459",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",rvm_ruby_string:"ruby-3.3.7",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",rvm_path:"/home/teamcity/.rvm",EDITOR:"vi",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/openapi",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/openapi"};ay()||(window.build=pM.BUILD_NUMBER),dM(),DT(),kA();const ch={data:null,isError:!1,isPending:!1,isSuccess:!1};xn({name:"user",initialState:ch,reducers:{reset:e=>{Object.assign(e,ch)},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)}}});const hM=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return hA("exceptionMessage",t),void $c(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}fA(t)},lh=["debug","info","warn","error"],mM=(e,t)=>{const n=lh.indexOf(e);return lh.indexOf(t)>=n},ho=(e,t,n,...r)=>{mM(t,e)&&console.log(`[${e}] ${n}`,...r)},yM=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),gM=(e=!ay()&&yM()||"warn")=>{let t=e;return{debug:(e,...n)=>ho("debug",t,e,...n),info:(e,...n)=>ho("info",t,e,...n),warn:(e,...n)=>ho("warn",t,e,...n),error:(e,...n)=>(hM(e,...n),ho("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},uy=gM(),Zo="staticState",vo={path:"",baseUrl:"",search:""},_M=e=>{if(!e)return vo;try{return JSON.parse(decodeURIComponent(e))||vo}catch(e){return uy.error("Error parsing static state",e),vo}},cy=()=>new URLSearchParams(window.location.search).get(Zo),vM=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:s,search:o}=window.location;return`${Zo}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||s,search:n||o}))}`},SM=()=>{const e=cy();return e&&localStorage.setItem(Zo,e),ly()},ly=()=>{try{const e=localStorage.getItem(Zo)||cy();return _M(e)}catch(e){return uy.error("Error parsing static state",e),vo}},IM={create:vM,init:SM,get:ly},EM=IM.get().baseUrl,bM=EM||"",wM=Q0({baseUrl:bM,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=Ui.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),AM=Wb(qb(wM)),TM=Nb({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(Wh)],reducerPath:"openapi",baseQuery:AM,endpoints:()=>({})}),RM=TM.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:{after:e.after,email:e.email,hash:e.hash,ip:e.ip}})}),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:{liked:e.liked,limit:e.limit,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"})}),deleteApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"DELETE"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdLike:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/like`,method:"DELETE"})}),postApiV1EventsByEventIdLike:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/like`,method:"POST"})}),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}})}),getApiV1GroupsMemberByMemberId:e.query({query:e=>({url:`/api/v1/groups/member/${e.memberId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByMemberIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.memberId}/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:{includeFollowStatus:e.includeFollowStatus,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:{includeFollowStatus:e.includeFollowStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,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:jM,usePostApiV1AccountsAuthenticateMutation:$M,usePostApiV1AccountsAuthenticateEmailMutation:zM,usePostApiV1AccountsAuthenticatePhoneMutation:WM,usePutApiV1AccountsChangeNameMutation:GM,usePostApiV1AccountsCheckCaptchaMutation:HM,usePostApiV1AccountsConfirmEmailMutation:QM,usePostApiV1AccountsConfirmPhoneMutation:qM,useDeleteApiV1AccountsDeleteMutation:KM,usePostApiV1AccountsEmailChangeConfirmMutation:YM,usePostApiV1AccountsEmailChangeRequestMutation:JM,usePutApiV1AccountsEmailChangeResendCodeMutation:XM,usePostApiV1AccountsFinishCreatingMutation:ZM,usePutApiV1AccountsGetTokenByHashMutation:eO,usePostApiV1AccountsLoginsAddEmailPasswordMutation:tO,usePostApiV1AccountsLoginsAddEmailPasswordConfirmMutation:nO,usePutApiV1AccountsLoginsAddEmailPasswordResendCodeMutation:rO,usePostApiV1AccountsLoginsAddPhoneMutation:iO,useDeleteApiV1AccountsLoginsRemoveEmailPasswordMutation:sO,useDeleteApiV1AccountsLoginsRemovePhoneMutation:oO,usePostApiV1AccountsPasswordChangeConfirmMutation:aO,usePostApiV1AccountsPasswordChangeRequestMutation:uO,usePutApiV1AccountsPasswordChangeResendCodeMutation:cO,usePostApiV1AccountsPasswordRecoverMutation:lO,usePostApiV1AccountsPasswordRecoverChangeMutation:dO,usePostApiV1AccountsPasswordRecoverCheckCodeMutation:fO,usePostApiV1AccountsPhoneChangeConfirmAuthMutation:pO,usePostApiV1AccountsPhoneChangeConfirmNewPhoneMutation:hO,usePostApiV1AccountsPhoneChangeNewPhoneMutation:mO,usePutApiV1AccountsPhoneChangeRequestMutation:yO,usePutApiV1AccountsPhoneChangeResendCodeAuthMutation:gO,usePutApiV1AccountsPhoneChangeResendCodeNewPhoneMutation:_O,useGetApiV1AccountsProfileQuery:vO,usePostApiV1AccountsReselectUserMutation:SO,usePutApiV1AccountsResendCodeByHashMutation:IO,usePutApiV1AccountsResendEmailByHashMutation:EO,usePostApiV1AccountsSignupMutation:bO,usePostApiV1AccountsSignupPhoneMutation:wO,usePostApiV1AccountsUserReselectUserMutation:AO,useGetApiV1AccountsByIdQuery:TO,useGetApiV1AddressesSuggestQuery:RO,useGetApiV1AdminAccountByAccountIdQuery:CO,useGetApiV1AdminAuditLogQuery:kO,usePutApiV1AdminChangeEmailMutation:MO,usePutApiV1AdminChangePasswordMutation:OO,usePutApiV1AdminChangeRoleMutation:PO,usePostApiV1AdminClearApErrorsMutation:DO,usePostApiV1AdminCreateAccountMutation:xO,useDeleteApiV1AdminDeleteMutation:BO,useGetApiV1AdminDomainAllowQuery:VO,usePostApiV1AdminDomainAllowMutation:LO,useDeleteApiV1AdminDomainAllowByDomainMutation:NO,usePutApiV1AdminDomainBlockMutation:UO,useGetApiV1AdminDomainBlockQuery:FO,usePostApiV1AdminDomainBlockMutation:jO,useGetApiV1AdminDomainBlockListQuery:$O,useDeleteApiV1AdminDomainBlockByDomainMutation:zO,useGetApiV1AdminFederationQuery:WO,useGetApiV1AdminFederationByDomainQuery:GO,usePostApiV1AdminFeedClearUserFeedMutation:HO,usePostApiV1AdminFeedRegenerateUserFeedMutation:QO,usePostApiV1AdminPostsDeleteMutation:qO,useDeleteApiV1AdminPurgeMutation:KO,usePostApiV1AdminRegenerateKeysMutation:YO,usePostApiV1AdminRegenerateKeysAllMutation:JO,usePostApiV1AdminReportsDeletePostsMutation:XO,useGetApiV1AdminReportsListQuery:ZO,useGetApiV1AdminReportsByReportIdQuery:eP,usePostApiV1AdminReportsByReportIdAddNoteMutation:tP,usePostApiV1AdminReportsByReportIdAssignToSelfMutation:nP,useDeleteApiV1AdminReportsByReportIdDeleteMutation:rP,usePostApiV1AdminReportsByReportIdRemoveNoteMutation:iP,usePostApiV1AdminReportsByReportIdReopenMutation:sP,usePostApiV1AdminReportsByReportIdResolveMutation:oP,usePostApiV1AdminReportsByReportIdUnassignMutation:aP,usePostApiV1AdminRestartApDeliveryMutation:uP,useGetApiV1AdminSearchQuery:cP,usePutApiV1AdminSignupRequestsApproveByHashMutation:lP,useDeleteApiV1AdminSignupRequestsDeleteByHashMutation:dP,useGetApiV1AdminSignupRequestsListQuery:fP,usePutApiV1AdminSignupRequestsRejectByHashMutation:pP,useGetApiV1AdminUploadsSearchQuery:hP,useGetApiV1AdminUploadsStorageByUserIdQuery:mP,usePostApiV1AdminUserChangeStateMutation:yP,useGetApiV1AdminUserByUserIdQuery:gP,usePostApiV1AppsMutation:_P,useGetApiV1AppsQuery:vP,useGetApiV1AppsEnabledQuery:SP,useGetApiV1AppsGroupByGroupIdQuery:IP,useDeleteApiV1AppsGroupByGroupIdAndAppIdMutation:EP,usePutApiV1AppsGroupByGroupIdAndAppIdMutation:bP,useGetApiV1AppsInstalledQuery:wP,useGetApiV1AppsUserQuery:AP,useDeleteApiV1AppsUserByAppIdMutation:TP,usePutApiV1AppsUserByAppIdMutation:RP,usePutApiV1AppsByAppIdMutation:CP,useGetApiV1AppsByAppIdQuery:kP,useDeleteApiV1AppsByAppIdMutation:MP,useGetApiV1AppsByAppIdDataQuery:OP,usePostApiV1AppsByAppIdDataMutation:PP,usePutApiV1AppsByAppIdDataAndIdMutation:DP,useDeleteApiV1AppsByAppIdDataAndIdMutation:xP,usePutApiV1AppsByAppIdDefaultMutation:BP,usePutApiV1AppsByAppIdDisableMutation:VP,usePutApiV1AppsByAppIdEnableMutation:LP,useGetApiV1AppsByAppIdStatsQuery:NP,usePutApiV1AppsByAppIdUserDefaultMutation:UP,useDeleteApiV1AppsByAppIdUserDefaultMutation:FP,useGetApiV1BlockQuery:jP,useGetApiV1BlockByQuery:$P,useDeleteApiV1BlockByUserIdMutation:zP,usePostApiV1BlockByUserIdMutation:WP,usePostApiV1CategoriesMutation:GP,useGetApiV1CategoriesNameByCategoryNameQuery:HP,usePutApiV1CategoriesByCategoryIdMutation:QP,useGetApiV1CategoriesByCategoryIdQuery:qP,useDeleteApiV1CategoriesByCategoryIdMutation:KP,useGetApiV1CustomEmojisQuery:YP,useDeleteApiV1CustomEmojisMutation:JP,usePostApiV1CustomEmojisMutation:XP,useGetApiV1CustomEmojisExportQuery:ZP,usePostApiV1CustomEmojisImportMutation:eD,useGetApiV1CustomEmojisSearchQuery:tD,usePostApiV1CustomEmojisUploadMutation:nD,useGetApiV1EventsQuery:rD,usePostApiV1EventsMutation:iD,useGetApiV1EventsFollowingQuery:sD,useGetApiV1EventsMyQuery:oD,usePutApiV1EventsByEventIdMutation:aD,useGetApiV1EventsByEventIdQuery:uD,useDeleteApiV1EventsByEventIdMutation:cD,usePostApiV1EventsByEventIdAcceptMutation:lD,useGetApiV1EventsByEventIdAttendeesQuery:dD,useDeleteApiV1EventsByEventIdAttendeesAndUserIdMutation:fD,usePostApiV1EventsByEventIdAttendeesAndUserIdMutation:pD,usePostApiV1EventsByEventIdCancelMutation:hD,useDeleteApiV1EventsByEventIdJoinMutation:mD,usePostApiV1EventsByEventIdJoinMutation:yD,useDeleteApiV1EventsByEventIdLikeMutation:gD,usePostApiV1EventsByEventIdLikeMutation:_D,usePostApiV1EventsByEventIdMaybeMutation:vD,useGetApiV1EventsByEventIdMutualQuery:SD,usePostApiV1EventsByEventIdRejectMutation:ID,usePostApiV1FaspClearMutation:ED,useGetApiV1FaspDebugV0CallbackCallbacksQuery:bD,useDeleteApiV1FaspDebugV0CallbackCallbacksByIdMutation:wD,usePostApiV1FaspRegistrationMutation:AD,usePostApiV1FaspByProviderIdCapabilitiesMutation:TD,usePostApiV1FaspByProviderIdDebugCallMutation:RD,useGetApiV1FaspByProviderIdRegistrationFinishQuery:CD,usePostApiV1FaspByProviderIdRegistrationFinishMutation:kD,usePostApiV1FaspByProviderIdRequestBackfillMutation:MD,usePutApiV1ForumsByForumIdMutation:OD,useGetApiV1ForumsByForumIdQuery:PD,useDeleteApiV1ForumsByForumIdMutation:DD,useGetApiV1ForumsByForumIdCategoriesQuery:xD,useGetApiV1ForumsByForumIdPostsQuery:BD,useGetApiV1ForumsByForumIdTagsQuery:VD,useGetApiV1ForumsByForumIdTagsSearchQuery:LD,useGetApiV1GeoQuery:ND,useGetApiV1GroupsQuery:UD,usePostApiV1GroupsMutation:FD,useGetApiV1GroupsAccountQuery:jD,useGetApiV1GroupsMemberByMemberIdQuery:$D,useGetApiV1GroupsMemberByMemberIdGroupsQuery:zD,useGetApiV1GroupsNameByGroupnameQuery:WD,useGetApiV1GroupsSearchQuery:GD,usePutApiV1GroupsByGroupIdMutation:HD,useGetApiV1GroupsByGroupIdQuery:QD,useDeleteApiV1GroupsByGroupIdMutation:qD,useGetApiV1GroupsByGroupIdForumQuery:KD,usePostApiV1GroupsByGroupIdForumMutation:YD,usePostApiV1GroupsByGroupIdJoinMutation:JD,usePutApiV1GroupsByGroupIdMediaMutation:XD,usePutApiV1GroupsByGroupIdMembersMutation:ZD,useGetApiV1GroupsByGroupIdMembersQuery:ex,usePostApiV1GroupsByGroupIdMembersMutation:tx,useDeleteApiV1GroupsByGroupIdMembersAndMemberIdMutation:nx,useGetApiV1GroupsByGroupIdUsersQuery:rx,useGetApiV1ImportQuery:ix,usePostApiV1ImportMutation:sx,usePostApiV1ImportStartByIdMutation:ox,useGetApiV1ImportByIdQuery:ax,useGetApiV1InstanceQuery:ux,useGetApiV1InstanceCountriesQuery:cx,useGetApiV1InstanceDomainsQuery:lx,useGetApiV1InstanceExtendedDescriptionQuery:dx,useGetApiV1InstanceSupportedLanguagesQuery:fx,useGetApiV1InstanceTimezonesQuery:px,useGetApiV1JobsListJobsQuery:hx,useGetApiV1JobsListStatsQuery:mx,useGetApiV1JobsListStatsAllQuery:yx,useGetApiV1JobsListsQuery:gx,useGetApiV1JobsStatsQuery:_x,useGetApiV1JobsStatsPerDayQuery:vx,useGetApiV1LinksQuery:Sx,useGetApiV1ListsQuery:Ix,usePostApiV1ListsMutation:Ex,usePutApiV1ListsByListIdMutation:bx,useGetApiV1ListsByListIdQuery:wx,useDeleteApiV1ListsByListIdMutation:Ax,useGetApiV1ListsByListIdUsersQuery:Tx,useDeleteApiV1ListsByListIdUsersAndUserIdMutation:Rx,usePostApiV1ListsByListIdUsersAndUserIdMutation:Cx,useGetApiV1MuteQuery:kx,useDeleteApiV1MuteByUserIdMutation:Mx,usePostApiV1MuteByUserIdMutation:Ox,usePutApiV1NotesMutation:Px,useGetApiV1NotesQuery:Dx,useDeleteApiV1NotesByUserIdMutation:xx,useGetApiV1NotificationsQuery:Bx,useGetApiV1NotificationsCountQuery:Vx,usePostApiV1NotificationsMarkAllMutation:Lx,useGetApiV1NotificationsByIdQuery:Nx,usePostApiV1NotificationsByIdMarkMutation:Ux,usePostApiV1PollsByPollIdRefreshMutation:Fx,usePostApiV1PollsByPollIdVoteMutation:jx,useGetApiV1PostsQuery:$x,usePostApiV1PostsMutation:zx,useGetApiV1PostsBookmarksQuery:Wx,useGetApiV1PostsFollowingQuery:Gx,useGetApiV1PostsLikedQuery:Hx,useGetApiV1PostsMentionedQuery:Qx,useGetApiV1PostsMyQuery:qx,useGetApiV1PostsPinsQuery:Kx,useDeleteApiV1PostsPinsByPostIdMutation:Yx,usePostApiV1PostsPinsByPostIdMutation:Jx,useGetApiV1PostsPublicQuery:Xx,useGetApiV1PostsRepliesQuery:Zx,useGetApiV1PostsSubscribeQuery:eB,usePutApiV1PostsByPostIdMutation:tB,useGetApiV1PostsByPostIdQuery:nB,useDeleteApiV1PostsByPostIdMutation:rB,useDeleteApiV1PostsByPostIdBookmarkMutation:iB,usePostApiV1PostsByPostIdBookmarkMutation:sB,useGetApiV1PostsByPostIdCommentsQuery:oB,usePostApiV1PostsByPostIdCommentsMutation:aB,usePutApiV1PostsByPostIdCommentsAndCommentIdMutation:uB,useDeleteApiV1PostsByPostIdCommentsAndCommentIdMutation:cB,usePostApiV1PostsByPostIdDetachMutation:lB,useGetApiV1PostsByPostIdEditsQuery:dB,useGetApiV1PostsByPostIdLikesQuery:fB,useDeleteApiV1PostsByPostIdLikesMutation:pB,usePostApiV1PostsByPostIdLikesMutation:hB,usePostApiV1PostsByPostIdRefreshCardMutation:mB,useDeleteApiV1PostsByPostIdRepostMutation:yB,usePostApiV1PostsByPostIdRepostMutation:gB,useGetApiV1PostsByPostIdRepostsQuery:_B,usePostApiV1PostsByPostIdSubscribeMutation:vB,useDeleteApiV1PostsByPostIdSubscribeMutation:SB,usePostApiV1PostsByPostIdTranslateMutation:IB,useGetApiV1RbacQuery:EB,useGetApiV1RbacActorsByActorIdPermissionsQuery:bB,useGetApiV1RbacActorsByActorIdRolesQuery:wB,usePutApiV1RbacRolesByRoleIdMutation:AB,useGetApiV1RbacScopesByScopeRolesQuery:TB,usePostApiV1RbacScopesByScopeRolesMutation:RB,useDeleteApiV1RbacScopesByScopeRolesAndRoleNameMutation:CB,useGetApiV1RbacByResourceQuery:kB,usePostApiV1ReportsMutation:MB,usePutApiV1RulesMutation:OB,useGetApiV1RulesQuery:PB,usePostApiV1RulesMutation:DB,usePostApiV1RulesReorderMutation:xB,useDeleteApiV1RulesByIdMutation:BB,useGetApiV1SearchQuery:VB,useDeleteApiV1SessionsAllMutation:LB,useGetApiV1SessionsListQuery:NB,usePutApiV1SessionsRevokeAllMutation:UB,usePutApiV1SessionsRevokeBySessionKeyMutation:FB,useDeleteApiV1SessionsBySessionKeyMutation:jB,usePutApiV1SettingsMutation:$B,useGetApiV1SettingsQuery:zB,useDeleteApiV1SettingsMutation:WB,usePutApiV1SettingsUserMutation:GB,useGetApiV1SettingsUserQuery:HB,useDeleteApiV1SettingsUserMutation:QB,useGetApiV1TagsFeaturedQuery:qB,useDeleteApiV1TagsFeaturedByNameMutation:KB,usePostApiV1TagsFeaturedByNameMutation:YB,usePostApiV1TagsFollowByNameMutation:JB,useGetApiV1TagsFollowedQuery:XB,useGetApiV1TagsTrendingQuery:ZB,usePostApiV1TagsUnfollowByNameMutation:eV,useGetApiV1TagsByNameQuery:tV,usePostApiV1TranslateTextMutation:nV,useGetApiV1TrendsLinksQuery:rV,useGetApiV1TrendsPostsQuery:iV,useGetApiV1TrendsTagsQuery:sV,usePostApiV1UploadsMutation:oV,usePostApiV1UploadsBatchMutation:aV,usePostApiV1UploadsListMutation:uV,useGetApiV1UploadsSearchQuery:cV,useGetApiV1UploadsUsagesQuery:lV,useGetApiV1UploadsByIdQuery:dV,useDeleteApiV1UploadsByIdMutation:fV,usePostApiV1UploadsByIdMetaMutation:pV,usePutApiV1UploadsByIdMetaMutation:hV,usePostApiV1UploadsByIdTagsMutation:mV,usePutApiV1UploadsByIdTagsMutation:yV,usePostApiV1UploadsByIdThumbnailMutation:gV,useGetApiV1UserAliasQuery:_V,useDeleteApiV1UserAliasMutation:vV,usePostApiV1UserAliasMutation:SV,useGetApiV1UserDomainBlockQuery:IV,useDeleteApiV1UserDomainBlockByDomainMutation:EV,usePostApiV1UserDomainBlockByDomainMutation:bV,useDeleteApiV1UsersMutation:wV,usePostApiV1UsersMutation:AV,useGetApiV1UsersQuery:TV,useGetApiV1UsersCheckQuery:RV,useGetApiV1UsersConnectionsQuery:CV,usePostApiV1UsersFollowByUsernameMutation:kV,usePostApiV1UsersFollowByUsernameAcceptMutation:MV,usePostApiV1UsersFollowByUsernamePendMutation:OV,usePostApiV1UsersFollowByUsernameRejectMutation:PV,usePostApiV1UsersFollowByUsernameUndoMutation:DV,useGetApiV1UsersFolloweesQuery:xV,useGetApiV1UsersFollowersQuery:BV,usePostApiV1UsersInviteMutation:VV,usePostApiV1UsersInviteAcceptMutation:LV,useGetApiV1UsersInviteInviteeEntitiesQuery:NV,useGetApiV1UsersInviteInviteeEntitiesByInviterUserQuery:UV,useGetApiV1UsersInviteInviteeInvitersQuery:FV,useGetApiV1UsersInviteInviteeInvitersByEntityUserQuery:jV,useGetApiV1UsersInviteInviterEntitiesQuery:$V,useGetApiV1UsersInviteInviterInviteesQuery:zV,useGetApiV1UsersInviteInviterInviteesByEntityUserQuery:WV,usePostApiV1UsersInviteRejectMutation:GV,usePostApiV1UsersInviteUndoMutation:HV,useGetApiV1UsersRelationshipsQuery:QV,useGetApiV1UsersRemoteByUserNameFullFollowersQuery:qV,useGetApiV1UsersRemoteByUserNameFullFollowingQuery:KV,useGetApiV1UsersRenameHistoryQuery:YV,usePutApiV1UsersByUserIdMutation:JV,useGetApiV1UsersByUserIdQuery:XV,useGetApiV1UsersByUserIdFollowersQuery:ZV,useGetApiV1UsersByUserIdFollowingQuery:eL,usePutApiV1UsersByUserIdMediaMutation:tL}=RM;var dh,Ii={exports:{}},CM=Ii.exports;
|
|
20
20
|
/**
|
|
21
21
|
* @license
|
|
22
22
|
* Lodash <https://lodash.com/>
|