@wellesley/store 1.0.154 → 1.0.157
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 +36 -1
- package/ooopsIcon.svg +88 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1 +1,36 @@
|
|
|
1
|
-
import{api as ke}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.155";function h(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 et="function"==typeof Symbol&&Symbol.observable||"@@observable",Te=et,ee=()=>Math.random().toString(36).substring(7).split("").join("."),tt={INIT:`@@redux/INIT${ee()}`,REPLACE:`@@redux/REPLACE${ee()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ee()}`},Y=tt;function de(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 Ue(e,t,n){if("function"!=typeof e)throw new Error(h(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(h(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(h(1));return n(Ue)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,c=!1;function u(){a===i&&(a=new Map,i.forEach(((e,t)=>{a.set(t,e)})))}function l(){if(c)throw new Error(h(3));return o}function d(e){if("function"!=typeof e)throw new Error(h(4));if(c)throw new Error(h(5));let t=!0;u();const n=s++;return a.set(n,e),function(){if(t){if(c)throw new Error(h(6));t=!1,u(),a.delete(n),i=null}}}function m(e){if(!de(e))throw new Error(h(7));if(typeof e.type>"u")throw new Error(h(8));if("string"!=typeof e.type)throw new Error(h(17));if(c)throw new Error(h(9));try{c=!0,o=r(o,e)}finally{c=!1}return(i=a).forEach((e=>{e()})),e}return m({type:Y.INIT}),{dispatch:m,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(h(10));r=e,m({type:Y.REPLACE})},[Te]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(h(11));function n(){const e=t;e.next&&e.next(l())}return n(),{unsubscribe:e(n)}},[Te](){return this}}}}}function nt(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Y.INIT})>"u")throw new Error(h(12));if(typeof n(void 0,{type:Y.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(h(13))}))}function Le(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{nt(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const s=r[o],c=n[s],u=e[s],l=c(u,t);if(typeof l>"u")throw t&&t.type,new Error(h(14));a[s]=l,i=i||l!==u}return i=i||r.length!==Object.keys(e).length,i?a:e}}function J(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function rt(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(h(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map((e=>e(a)));return i=J(...s)(o.dispatch),{...o,dispatch:i}}}function ot(e){return de(e)&&"type"in e&&"string"==typeof e.type}var ze=Symbol.for("immer-nothing"),we=Symbol.for("immer-draftable"),O=Symbol.for("immer-state");function D(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var k=Object.getPrototypeOf;function N(e){return!!e&&!!e[O]}function M(e){var t;return!!e&&(Fe(e)||Array.isArray(e)||!!e[we]||!(null==(t=e.constructor)||!t[we])||q(e)||Q(e))}var it=Object.prototype.constructor.toString();function Fe(e){if(!e||"object"!=typeof e)return!1;const t=k(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)===it}function x(e,t){0===X(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function X(e){const t=e[O];return t?t.type_:Array.isArray(e)?1:q(e)?2:Q(e)?3:0}function oe(e,t){return 2===X(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xe(e,t,n){const r=X(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function st(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function q(e){return e instanceof Map}function Q(e){return e instanceof Set}function C(e){return e.copy_||e.base_}function ie(e,t){if(q(e))return new Map(e);if(Q(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Fe(e))return k(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[O];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(k(e),n)}function fe(e,t=!1){return Z(e)||N(e)||!M(e)||(X(e)>1&&(e.set=e.add=e.clear=e.delete=at),Object.freeze(e),t&&x(e,((e,t)=>fe(t,!0)))),e}function at(){D(2)}function Z(e){return Object.isFrozen(e)}var B,ct={};function j(e){const t=ct[e];return t||D(0,e),t}function Be(){return B}function ut(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Se(e,t){t&&(j("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function se(e){ae(e),e.drafts_.forEach(lt),e.drafts_=null}function ae(e){e===B&&(B=e.parent_)}function Ae(e){return B=ut(B,e)}function lt(e){const t=e[O];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Oe(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[O].modified_&&(se(t),D(4)),M(e)&&(e=$(t,e),t.parent_||V(t,e)),t.patches_&&j("Patches").generateReplacementPatches_(n[O].base_,e,t.patches_,t.inversePatches_)):e=$(t,n,[]),se(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ze?e:void 0}function $(e,t,n){if(Z(t))return t;const r=t[O];if(!r)return x(t,((o,i)=>Ie(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return V(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),x(o,((o,a)=>Ie(e,r,t,o,a,n,i))),V(e,t,!1),n&&e.patches_&&j("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Ie(e,t,n,r,o,i,a){if(N(o)){const a=$(e,o,i&&t&&3!==t.type_&&!oe(t.assigned_,r)?i.concat(r):void 0);if(xe(n,r,a),!N(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(M(o)&&!Z(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$(e,o),(!t||!t.scope_.parent_)&&V(e,o)}}function V(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&fe(t,n)}function dt(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Be(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=me;n&&(o=[r],i=H);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var me={get(e,t){if(t===O)return e;const n=C(e);if(!oe(n,t))return ft(e,n,t);const r=n[t];return e.finalized_||!M(r)?r:r===te(e.base_,t)?(ne(e),e.copy_[t]=ue(r,e)):r},has:(e,t)=>t in C(e),ownKeys:e=>Reflect.ownKeys(C(e)),set(e,t,n){const r=He(C(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=te(C(e),t),o=null==r?void 0:r[O];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(st(n,r)&&(void 0!==n||oe(e.base_,t)))return!0;ne(e),ce(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!==te(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,ne(e),ce(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=C(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){D(11)},getPrototypeOf:e=>k(e.base_),setPrototypeOf(){D(12)}},H={};function te(e,t){const n=e[O];return(n?C(n):e)[t]}function ft(e,t,n){var r;const o=He(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function He(e,t){if(!(t in e))return;let n=k(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=k(n)}}function ce(e){e.modified_||(e.modified_=!0,e.parent_&&ce(e.parent_))}function ne(e){e.copy_||(e.copy_=ie(e.base_,e.scope_.immer_.useStrictShallowCopy_))}x(me,((e,t)=>{H[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),H.deleteProperty=function(e,t){return H.set.call(this,e,t,void 0)},H.set=function(e,t,n){return me.set.call(this,e[0],t,n,e[0])};var mt=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,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&D(6),void 0!==n&&"function"!=typeof n&&D(7),M(e)){const o=Ae(this),i=ue(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?se(o):ae(o)}return Se(o,n),Oe(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===ze&&(r=void 0),this.autoFreeze_&&fe(r,!0),n){const t=[],o=[];j("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}D(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){M(e)||D(8),N(e)&&(e=Ke(e));const t=Ae(this),n=ue(e,void 0);return n[O].isManual_=!0,ae(t),n}finishDraft(e,t){const n=e&&e[O];(!n||!n.isManual_)&&D(9);const{scope_:r}=n;return Se(r,t),Oe(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=j("Patches").applyPatches_;return N(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function ue(e,t){const n=q(e)?j("MapSet").proxyMap_(e,t):Q(e)?j("MapSet").proxySet_(e,t):dt(e,t);return(t?t.scope_:Be()).drafts_.push(n),n}function Ke(e){return N(e)||D(10,e),Ge(e)}function Ge(e){if(!M(e)||Z(e))return e;const t=e[O];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ie(e,t.scope_.immer_.useStrictShallowCopy_)}else n=ie(e,!0);return x(n,((e,t)=>{xe(n,e,Ge(t))})),t&&(t.finalized_=!1),n}var I=new mt,We=I.produce;function _t(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function pt(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function yt(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}]`)}}I.produceWithPatches.bind(I),I.setAutoFreeze.bind(I),I.setUseStrictShallowCopy.bind(I),I.applyPatches.bind(I),I.createDraft.bind(I),I.finishDraft.bind(I);var De=e=>Array.isArray(e)?e:[e];function bt(e){const t=Array.isArray(e[0])?e[0]:e;return yt(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ht(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var Et=class{constructor(e){this.value=e}deref(){return this.value}},gt=typeof WeakRef<"u"?WeakRef:Et,vt=0,Re=1;function K(){return{s:vt,v:void 0,o:null,p:null}}function _e(e,t={}){let n=K();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var t;let a=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=a.o;null===e&&(a.o=e=new WeakMap);const n=e.get(t);void 0===n?(a=K(),e.set(t,a)):a=n}else{let e=a.p;null===e&&(a.p=e=new Map);const n=e.get(t);void 0===n?(a=K(),e.set(t,a)):a=n}}const c=a;let u;if(a.s===Re?u=a.v:(u=e.apply(null,arguments),i++),c.s=Re,r){const e=(null==(t=null==o?void 0:o.deref)?void 0:t.call(o))??o;null!=e&&r(e,u)&&(u=e,0!==i&&i--),o="object"==typeof u&&null!==u||"function"==typeof u?new gt(u):u}return c.v=u,u}return a.clearCache=()=>{n=K(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function Ye(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),_t(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:c,memoizeOptions:u=[],argsMemoize:l=_e,argsMemoizeOptions:d=[],devModeChecks:m={}}=s,p=De(u),f=De(d),_=bt(e),y=c((function(){return r++,a.apply(null,arguments)}),...p),b=l((function(){o++;const e=ht(_,arguments);return t=y.apply(null,e),t}),...f);return Object.assign(b,{resultFunc:a,memoizedResultFunc:y,dependencies:_,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var v=Ye(_e),Tt=Object.assign(((e,t=v)=>{pt(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:()=>Tt});function Je(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var wt=Je(),St=Je,At={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:"6a1bbbe9156fa4c249d681503a5a4a38683ddfc1",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/15202",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/store/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:"6a1bbbe9156fa4c249d681503a5a4a38683ddfc1",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1344",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:12308",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/store/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:/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:"c1d04ea3c84d4e05a7330e8007678ce9",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-2024.12-174504-jar-with-dependencies.jar"',TURBO_HASH:"bda5f3dc418c5894",npm_package_name:"@wellesley/store",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:"2024.12.2 (build 174504)",LANG:"en_US.UTF-8",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"2143",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",npm_lifecycle_event:"build",npm_package_version:"1.0.154",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)",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/store",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:"679780709992",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",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/store",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/store"},Ot=(...e)=>{const t=Ye(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(N(e)?Ke(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};Ot(_e);var It=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?J:J.apply(null,arguments)};function U(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(g(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=>ot(t)&&t.type===e,n}var $e=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Pe(e){return M(e)?We(e,(()=>{})):e}function le(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(g(10));const r=n.insert(t,e);return e.set(t,r),r}function Dt(e){return"boolean"==typeof e}var Rt=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new $e;return t&&(Dt(t)?i.push(wt):i.push(St(t.extraArgument))),i},Pt="RTK_autoBatch",Ve=e=>t=>{setTimeout(t,e)},Mt=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ve(10),Nt=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?Mt:"callback"===e.type?e.queueNotification:Ve(e.timeout),u=()=>{a=!1,i&&(i=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){var t;try{return o=!(null!=(t=null==e?void 0:e.meta)&&t[Pt]),i=!o,i&&(a||(a=!0,c(u))),r.dispatch(e)}finally{o=!0}}})},Ct=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new $e(e);return n&&r.push(Nt("object"==typeof n?n:void 0)),r},jt="production"===At.NODE_ENV;function kt(e){const t=Rt(),{reducer:n,middleware:r,devTools:o=!0,preloadedState:i,enhancers:a}=e;let s,c;if("function"==typeof n)s=n;else{if(!de(n))throw new Error(g(1));s=Le(n)}c="function"==typeof r?r(t):t();let u=J;o&&(u=It({trace:!jt,..."object"==typeof o&&o}));const l=rt(...c),d=Ct(l);return Ue(s,i,u(..."function"==typeof a?a(d):d()))}function Xe(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(g(28));if(r in t)throw new Error(g(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}function Ut(e){return"function"==typeof e}function Lt(e,t){let n,[r,o,i]=Xe(t);if(Ut(e))n=()=>Pe(e());else{const t=Pe(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[i]),a.reduce(((e,n)=>{if(n){if(N(e)){const r=n(e,t);return void 0===r?e:r}if(M(e))return We(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(g(9))}return r}}return e}),e)}return a.getInitialState=n,a}var zt="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",qe=(e=21)=>{let t="",n=e;for(;n--;)t+=zt[64*Math.random()|0];return t},Ft=Symbol.for("rtk-slice-createasyncthunk");function xt(e,t){return`${e}/${t}`}function Bt({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[Ft];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(g(11));const o=("function"==typeof e.reducers?e.reducers(Kt()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(g(12));if(n in a.sliceCaseReducersByType)throw new Error(g(13));return a.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?Xe(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return Lt(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}i.forEach((r=>{const i=o[r],a={reducerName:r,type:xt(t,r),createNotation:"function"==typeof e.reducers};Wt(i)?Jt(a,i,s,n):Gt(a,i,s)}));const u=e=>e,l=new Map;let d;function m(e,t){return d||(d=c()),d(e,t)}function p(){return d||(d=c()),d.getInitialState()}function f(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function o(t=u){const r=le(l,n,{insert:()=>new WeakMap});return le(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=Ht(i,t,p,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const _={name:t,reducer:m,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...f(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:m},n),{..._,...f(o,!0)}}};return _}}function Ht(e,t,n,r){function o(o,...i){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var L=Bt();function Kt(){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 Gt({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!Yt(r))throw new Error(g(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?U(e,a):U(e))}function Wt(e){return"asyncThunk"===e._reducerDefinitionType}function Yt(e){return"reducerWithPrepare"===e._reducerDefinitionType}function Jt({type:e,reducerName:t},n,r,o){if(!o)throw new Error(g(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:c,settled:u,options:l}=n,d=o(e,i,l);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||G,pending:s||G,rejected:c||G,settled:u||G})}function G(){}var $t=(e,t)=>{if("function"!=typeof e)throw new Error(g(32))},pe="listenerMiddleware",Vt=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=U(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(g(21));return $t(i),{predicate:o,type:t,effect:i}},Xt=Object.assign((e=>{const{type:t,predicate:n,effect:r}=Vt(e);return{id:qe(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(g(22))}}}),{withTypes:()=>Xt}),qt=Object.assign(U(`${pe}/add`),{withTypes:()=>qt});U(`${pe}/removeAll`);var Qt=Object.assign(U(`${pe}/remove`),{withTypes:()=>Qt}),Zt=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,en=e=>e.flatMap((e=>Zt(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),ye=Symbol.for("rtk-state-proxy-original"),tn=e=>!!e&&!!e[ye],nn=new WeakMap,rn=(e,t)=>le(nn,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===ye)return e;const o=Reflect.get(e,n,r);if(typeof o>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:qe()});if(typeof t>"u")throw new Error(g(24));return t}}return o}})}),on=e=>{if(!tn(e))throw new Error(g(25));return e[ye]},sn=(e={})=>e;function an(...e){const t=Object.fromEntries(en(e)),n=()=>Object.keys(t).length?Le(t):sn;let r=n();function o(e,t){return r(e,t)}o.withLazyLoadedSlices=()=>o;const i=Object.assign((function(e,n){return function(r,...o){return e(rn(n?n(r,...o):r,t),...o)}}),{original:on});return Object.assign(o,{inject:(e,i={})=>{const{reducerPath:a,reducer:s}=e,c=t[a];return!i.overrideExisting&&c&&c!==s||(t[a]=s,r=n()),o},selector:i})}function g(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Me={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!1,isAuthenticated:!1},cn=L({name:"auth",initialState:Me,reducers:{logout:()=>Me,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},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload,e.isPending=!1}},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}}),un={data:null,isPending:!1,isSuccess:!1},ln=L({name:"userNoHTML",initialState:un,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),Ne={data:null,isError:!1,isPending:!1,isSuccess:!1},dn=L({name:"user",initialState:Ne,reducers:{reset:e=>{Object.assign(e,Ne)},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},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)}}});function fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ce,re={};function mn(){return Ce||(Ce=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],n=[],r=[],o=[],i=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeBefore=e=>i(e,t),e.subscribeAfter=e=>i(e,n);const a=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeActionBefore=(e,t)=>a({action:e,listener:t},r),e.subscribeActionAfter=(e,t)=>a({action:e,listener:t},o),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{r.length=0},e.unsubscribeAfter=()=>{n.length=0},e.unsubscribeActionsAfter=()=>{o.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const s=(e,t)=>{const n=e.filter((({action:e})=>e!==t));e.length=0,e.concat(n)};e.unsubscribeActionBefore=e=>{s(r,e)},e.unsubscribeActionAfter=e=>{s(o,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r(e)}},u=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r.action===e.type&&r.listener(e)}};e.subscribeActionMiddleware=e=>e=>i=>{c(i,t),u(i,r);const a=e(i);return c(i,n),u(i,o),a},e.default=e.subscribeActionMiddleware}(re)),re}var _n=mn();const pn=fn(_n),be=e=>e,he=v(be,(e=>e.data)),yn=v(be,(e=>e.error)),bn=v(be,(e=>e.isPending)),z=v(he,(e=>null==e?void 0:e.configuration)),hn=v(z,(e=>null==e?void 0:e.media_attachments)),Ee=v(z,(e=>({IMAGE:null==e?void 0:e.media_attachments.image_extensions,VIDEO:null==e?void 0:e.media_attachments.video_extensions,AUDIO:null==e?void 0:e.media_attachments.audio_extensions,DOCUMENT:null==e?void 0:e.media_attachments.doc_extensions}))),En=v([Ee,(e,t)=>t],((e,t)=>e[t])),gn=v(Ee,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),vn=v(z,(e=>(null==e?void 0:e.posts.max_media_attachments)||0)),Tn=v(z,(e=>(null==e?void 0:e.posts.max_characters)||0)),wn=v(z,(e=>(null==e?void 0:e.posts.max_pins)||0)),Sn=v(he,(e=>null==e?void 0:e.rules)),An={data:null,isPending:!1},On=L({name:"instanceInfo",initialState:An,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:he,selectPostPinsLimit:wn,selectInstanceInfoError:yn,selectInstanceInfoPending:bn,selectPostSizeLimit:Tn,selectConfiguration:z,selectAttachmentsLimit:vn,selectSupportedExtensions:Ee,selectFullExtensionsList:gn,selectPlatformRules:Sn,selectMediaConfiguration:hn,selectSupportedExtensionsFor:En,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),In={data:null,isPending:!1,isSuccess:!1},Dn=L({name:"profileSettings",initialState:In,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),je={data:{userId:"",list:[]},count:{},isPending:!1},Rn=e=>e,Pn=e=>e.error,Mn=e=>e.isPending,Nn=e=>{var t;return null==(t=e.count)?void 0:t.total},Cn=e=>{var t;return null==(t=e.count)?void 0:t.unread},jn=e=>e.data.userId,ge=v(Rn,(e=>e.data.list)),kn=v(ge,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),Un=v(ge,(e=>null==e?void 0:e.at(-1))),Ln=L({name:"notifications",initialState:je,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setError:(e,t)=>{e.error=t.payload},setNotifications:(e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}},addNotification:(e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])},markNotification:(e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))},updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},setTotalCount:(e,t)=>{e.count.total=t.payload},setUnreadCount:(e,t)=>{e.count.unread=t.payload},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))},resetState:()=>je,undoNotitication:(e,t)=>{var n,r,o;const i=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===i)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(o=e.data.list)?void 0:o.filter((e=>e.id!==i)))||[]}},selectors:{selectError:Pn,selectIsPending:Mn,selectTotalCount:Nn,selectUnreadCount:Cn,selectNotifications:ge,selectUnreadNotifications:kn,selectLastNotification:Un,selectNotificationsOwner:jn}});var zn={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:"6a1bbbe9156fa4c249d681503a5a4a38683ddfc1",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/15202",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/store/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:"6a1bbbe9156fa4c249d681503a5a4a38683ddfc1",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1344",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:12308",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/store/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:/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:"c1d04ea3c84d4e05a7330e8007678ce9",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-2024.12-174504-jar-with-dependencies.jar"',TURBO_HASH:"bda5f3dc418c5894",npm_package_name:"@wellesley/store",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:"2024.12.2 (build 174504)",LANG:"en_US.UTF-8",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"2143",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",npm_lifecycle_event:"build",npm_package_version:"1.0.154",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)",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/store",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:"679780709992",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",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/store",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/store"};const Fn=an(ke,cn,dn,ln,On,Ln,Dn),xn=e=>kt({devTools:{name:zn.APP_NAME},reducer:Fn,preloadedState:e,middleware:e=>e().concat(ke.middleware,pn)});let W;const Hn=e=>W||(W=xn(e),W);export{xn as createStore,Hn as getStore,Fn as rootReducer};
|
|
1
|
+
var a0=Object.defineProperty,u0=(e,t,n)=>t in e?a0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Iu=(e,t,n)=>u0(e,"symbol"!=typeof t?t+"":t,n);function c0(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 ut(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 l0="function"==typeof Symbol&&Symbol.observable||"@@observable",zf=l0,wu=()=>Math.random().toString(36).substring(7).split("").join("."),d0={INIT:`@@redux/INIT${wu()}`,REPLACE:`@@redux/REPLACE${wu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${wu()}`},ko=d0;function an(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 Mh(e,t,n){if("function"!=typeof e)throw new Error(ut(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ut(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(ut(1));return n(Mh)(e,t)}let r=e,o=t,s=new Map,i=s,a=0,u=!1;function c(){i===s&&(i=new Map,s.forEach(((e,t)=>{i.set(t,e)})))}function l(){if(u)throw new Error(ut(3));return o}function d(e){if("function"!=typeof e)throw new Error(ut(4));if(u)throw new Error(ut(5));let t=!0;c();const n=a++;return i.set(n,e),function(){if(t){if(u)throw new Error(ut(6));t=!1,c(),i.delete(n),s=null}}}function p(e){if(!an(e))throw new Error(ut(7));if(typeof e.type>"u")throw new Error(ut(8));if("string"!=typeof e.type)throw new Error(ut(17));if(u)throw new Error(ut(9));try{u=!0,o=r(o,e)}finally{u=!1}return(s=i).forEach((e=>{e()})),e}return p({type:ko.INIT}),{dispatch:p,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ut(10));r=e,p({type:ko.REPLACE})},[zf]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ut(11));function n(){const e=t;e.next&&e.next(l())}return n(),{unsubscribe:e(n)}},[zf](){return this}}}}}function f0(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:ko.INIT})>"u")throw new Error(ut(12));if(typeof n(void 0,{type:ko.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ut(13))}))}function Cc(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{f0(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let s=!1;const i={};for(let o=0;o<r.length;o++){const a=r[o],u=n[a],c=e[a],l=u(c,t);if(typeof l>"u")throw t&&t.type,new Error(ut(14));i[a]=l,s=s||l!==c}return s=s||r.length!==Object.keys(e).length,s?i:e}}function To(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p0(...e){return t=>(n,r)=>{const o=t(n,r);let s=()=>{throw new Error(ut(15))};const i={getState:o.getState,dispatch:(e,...t)=>s(e,...t)},a=e.map((e=>e(i)));return s=To(...a)(o.dispatch),{...o,dispatch:s}}}function Ph(e){return an(e)&&"type"in e&&"string"==typeof e.type}var Oc=Symbol.for("immer-nothing"),Rs=Symbol.for("immer-draftable"),Tt=Symbol.for("immer-state");function ct(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var or=Object.getPrototypeOf;function Qt(e){return!!e&&!!e[Tt]}function Yt(e){var t;return!!e&&(Dh(e)||Array.isArray(e)||!!e[Rs]||!(null==(t=e.constructor)||!t[Rs])||Xs(e)||Js(e))}var h0=Object.prototype.constructor.toString();function Dh(e){if(!e||"object"!=typeof e)return!1;const t=or(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)===h0}function m0(e){return Qt(e)||ct(15,e),e[Tt].base_}function Vr(e,t){0===ar(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function ar(e){const t=e[Tt];return t?t.type_:Array.isArray(e)?1:Xs(e)?2:Js(e)?3:0}function Bs(e,t){return 2===ar(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ku(e,t){return 2===ar(e)?e.get(t):e[t]}function Lh(e,t,n){const r=ar(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y0(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Xs(e){return e instanceof Map}function Js(e){return e instanceof Set}function rr(e){return e.copy_||e.base_}function Xu(e,t){if(Xs(e))return new Map(e);if(Js(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Dh(e))return or(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Tt];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],s=n[o];!1===s.writable&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(or(e),n)}function Ac(e,t=!1){return $o(e)||Qt(e)||!Yt(e)||(ar(e)>1&&(e.set=e.add=e.clear=e.delete=_0),Object.freeze(e),t&&Vr(e,((e,t)=>Ac(t,!0)))),e}function _0(){ct(2)}function $o(e){return Object.isFrozen(e)}var Fs,Ju={};function ur(e){const t=Ju[e];return t||ct(0,e),t}function g0(e,t){Ju[e]||(Ju[e]=t)}function Nh(){return Fs}function v0(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Hf(e,t){t&&(ur("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Zu(e){ec(e),e.drafts_.forEach(S0),e.drafts_=null}function ec(e){e===Fs&&(Fs=e.parent_)}function qf(e){return Fs=v0(Fs,e)}function S0(e){const t=e[Tt];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Gf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Tt].modified_&&(Zu(t),ct(4)),Yt(e)&&(e=Ro(t,e),t.parent_||Co(t,e)),t.patches_&&ur("Patches").generateReplacementPatches_(n[Tt].base_,e,t.patches_,t.inversePatches_)):e=Ro(t,n,[]),Zu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Oc?e:void 0}function Ro(e,t,n){if($o(t))return t;const r=t[Tt];if(!r)return Vr(t,((o,s)=>Kf(e,r,t,o,s,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Co(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,s=!1;3===r.type_&&(o=new Set(t),t.clear(),s=!0),Vr(o,((o,i)=>Kf(e,r,t,o,i,n,s))),Co(e,t,!1),n&&e.patches_&&ur("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Kf(e,t,n,r,o,s,i){if(Qt(o)){const i=Ro(e,o,s&&t&&3!==t.type_&&!Bs(t.assigned_,r)?s.concat(r):void 0);if(Lh(n,r,i),!Qt(i))return;e.canAutoFreeze_=!1}else i&&n.add(o);if(Yt(o)&&!$o(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ro(e,o),(!t||!t.scope_.parent_)&&Co(e,o)}}function Co(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ac(t,n)}function E0(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Nh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=xc;n&&(o=[r],s=js);const{revoke:i,proxy:a}=Proxy.revocable(o,s);return r.draft_=a,r.revoke_=i,a}var xc={get(e,t){if(t===Tt)return e;const n=rr(e);if(!Bs(n,t))return b0(e,n,t);const r=n[t];return e.finalized_||!Yt(r)?r:r===Tu(e.base_,t)?(Ru(e),e.copy_[t]=nc(r,e)):r},has:(e,t)=>t in rr(e),ownKeys:e=>Reflect.ownKeys(rr(e)),set(e,t,n){const r=Uh(rr(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Tu(rr(e),t),o=null==r?void 0:r[Tt];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(y0(n,r)&&(void 0!==n||Bs(e.base_,t)))return!0;Ru(e),tc(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!==Tu(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ru(e),tc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=rr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){ct(11)},getPrototypeOf:e=>or(e.base_),setPrototypeOf(){ct(12)}},js={};function Tu(e,t){const n=e[Tt];return(n?rr(n):e)[t]}function b0(e,t,n){var r;const o=Uh(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function Uh(e,t){if(!(t in e))return;let n=or(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=or(n)}}function tc(e){e.modified_||(e.modified_=!0,e.parent_&&tc(e.parent_))}function Ru(e){e.copy_||(e.copy_=Xu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Vr(xc,((e,t)=>{js[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),js.deleteProperty=function(e,t){return js.set.call(this,e,t,void 0)},js.set=function(e,t,n){return xc.set.call(this,e[0],t,n,e[0])};var I0=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,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&ct(6),void 0!==n&&"function"!=typeof n&&ct(7),Yt(e)){const o=qf(this),s=nc(e,void 0);let i=!0;try{r=t(s),i=!1}finally{i?Zu(o):ec(o)}return Hf(o,n),Gf(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Oc&&(r=void 0),this.autoFreeze_&&Ac(r,!0),n){const t=[],o=[];ur("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}ct(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){Yt(e)||ct(8),Qt(e)&&(e=Bh(e));const t=qf(this),n=nc(e,void 0);return n[Tt].isManual_=!0,ec(t),n}finishDraft(e,t){const n=e&&e[Tt];(!n||!n.isManual_)&&ct(9);const{scope_:r}=n;return Hf(r,t),Gf(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=ur("Patches").applyPatches_;return Qt(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function nc(e,t){const n=Xs(e)?ur("MapSet").proxyMap_(e,t):Js(e)?ur("MapSet").proxySet_(e,t):E0(e,t);return(t?t.scope_:Nh()).drafts_.push(n),n}function Bh(e){return Qt(e)||ct(10,e),Fh(e)}function Fh(e){if(!Yt(e)||$o(e))return e;const t=e[Tt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Xu(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Xu(e,!0);return Vr(n,((e,t)=>{Lh(n,e,Fh(t))})),t&&(t.finalized_=!1),n}function w0(){const e="replace",t="add",n="remove";function r(e){if(!Yt(e))return e;if(Array.isArray(e))return e.map(r);if(Xs(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(Js(e))return new Set(Array.from(e).map(r));const t=Object.create(or(e));for(const n in e)t[n]=r(e[n]);return Bs(e,Rs)&&(t[Rs]=e[Rs]),t}function o(e){return Qt(e)?r(e):e}g0("Patches",{applyPatches_:function(o,s){return s.forEach((s=>{const{path:i,op:a}=s;let u=o;for(let e=0;e<i.length-1;e++){const t=ar(u);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&ct(19),"function"==typeof u&&"prototype"===n&&ct(19),u=ku(u,n),"object"!=typeof u&&ct(18,i.join("/"))}const c=ar(u),l=r(s.value),d=i[i.length-1];switch(a){case e:switch(c){case 2:return u.set(d,l);case 3:ct(16);default:return u[d]=l}case t:switch(c){case 1:return"-"===d?u.push(l):u.splice(d,0,l);case 2:return u.set(d,l);case 3:return u.add(l);default:return u[d]=l}case n:switch(c){case 1:return u.splice(d,1);case 2:return u.delete(d);case 3:return u.delete(s.value);default:return delete u[d]}default:ct(17,a)}})),o},generatePatches_:function(r,s,i,a){switch(r.type_){case 0:case 2:return function(r,s,i,a){const{base_:u,copy_:c}=r;Vr(r.assigned_,((r,l)=>{const d=ku(u,r),p=ku(c,r),f=l?Bs(u,r)?e:t:n;if(d===p&&f===e)return;const h=s.concat(r);i.push(f===n?{op:f,path:h}:{op:f,path:h,value:p}),a.push(f===t?{op:n,path:h}:f===n?{op:t,path:h,value:o(d)}:{op:e,path:h,value:o(d)})}))}(r,s,i,a);case 1:return function(r,s,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=s.concat([t]);i.push({op:e,path:n,value:o(l[t])}),a.push({op:e,path:n,value:o(u[t])})}for(let e=u.length;e<l.length;e++){const n=s.concat([e]);i.push({op:t,path:n,value:o(l[e])})}for(let e=l.length-1;u.length<=e;--e){const t=s.concat([e]);a.push({op:n,path:t})}}(r,s,i,a);case 3:return function(e,r,o,s){let{base_:i,copy_:a}=e,u=0;i.forEach((e=>{if(!a.has(e)){const i=r.concat([u]);o.push({op:n,path:i,value:e}),s.unshift({op:t,path:i,value:e})}u++})),u=0,a.forEach((e=>{if(!i.has(e)){const i=r.concat([u]);o.push({op:t,path:i,value:e}),s.unshift({op:n,path:i,value:e})}u++}))}(r,s,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===Oc?void 0:n}),o.push({op:e,path:[],value:t})}})}var xt=new I0,Zs=xt.produce,jh=xt.produceWithPatches.bind(xt);xt.setAutoFreeze.bind(xt),xt.setUseStrictShallowCopy.bind(xt);var Qf=xt.applyPatches.bind(xt);function k0(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function T0(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function R0(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}]`)}}xt.createDraft.bind(xt),xt.finishDraft.bind(xt);var Yf=e=>Array.isArray(e)?e:[e];function C0(e){const t=Array.isArray(e[0])?e[0]:e;return R0(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function O0(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var A0=class{constructor(e){this.value=e}deref(){return this.value}},x0=typeof WeakRef<"u"?WeakRef:A0,M0=0,Xf=1;function ro(){return{s:M0,v:void 0,o:null,p:null}}function Vs(e,t={}){let n=ro();const{resultEqualityCheck:r}=t;let o,s=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=ro(),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=ro(),e.set(t,i)):i=n}}const u=i;let c;if(i.s===Xf?c=i.v:(c=e.apply(null,arguments),s++),u.s=Xf,r){const e=(null==(t=null==o?void 0:o.deref)?void 0:t.call(o))??o;null!=e&&r(e,c)&&(c=e,0!==s&&s--),o="object"==typeof c&&null!==c||"function"==typeof c?new x0(c):c}return u.v=c,c}return i.clearCache=()=>{n=ro(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function Vh(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,s={},i=e.pop();"object"==typeof i&&(s=i,i=e.pop()),k0(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const a={...n,...s},{memoize:u,memoizeOptions:c=[],argsMemoize:l=Vs,argsMemoizeOptions:d=[],devModeChecks:p={}}=a,f=Yf(c),h=Yf(d),m=C0(e),y=u((function(){return r++,i.apply(null,arguments)}),...f),g=l((function(){o++;const e=O0(m,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var it=Vh(Vs),P0=Object.assign(((e,t=it)=>{T0(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});function $h(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var D0=$h(),L0=$h,N0={TERM_PROGRAM:"iTerm.app",NODE:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",TURBO_INVOCATION_DIR:"/Users/krasevych/Projects/Animatron/web-apps",NVM_CD_FLAGS:"-q",INIT_CWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/store",TERM:"xterm-256color",SHELL:"/bin/zsh",TMPDIR:"/var/folders/1y/vz19w_xj5xzb49lxmbmzk7dc0000gn/T/",DOMAIN_ENV:"dev",npm_config_global_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",TERM_PROGRAM_VERSION:"3.5.11",NODE_OPTIONS:"--max-old-space-size=8192",TERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",COLOR:"1",npm_config_noproxy:"",npm_config_local_prefix:"/Users/krasevych/Projects/Animatron/web-apps",USER:"krasevych",NVM_DIR:"/Users/krasevych/.nvm",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/Users/krasevych/.nvm/versions/node/v22.12.0/etc/npmrc",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.xn6U3pyr1k/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x0:0x2",npm_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/bin/npm-cli.js",TERM_FEATURES:"T3LrMSc7UUw9Ts3BFGsSyHNoSxF",TERMINFO_DIRS:"/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo",PATH:"/Users/krasevych/Projects/Animatron/web-apps/packages/store/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/packages/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/local/opt/postgresql@16/bin:/Users/krasevych/.yarn/bin:/Users/krasevych/.config/yarn/global/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Applications/Visual Studio Code.app/Contents/Resources/app/bin",npm_package_json:"/Users/krasevych/Projects/Animatron/web-apps/packages/store/package.json",LaunchInstanceID:"BC2D37FC-0469-4680-8D65-486E7C3C39CD",npm_config_userconfig:"/Users/krasevych/.npmrc",npm_config_init_module:"/Users/krasevych/.npm-init.js",__CFBundleIdentifier:"com.googlecode.iterm2",npm_command:"run-script",PWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/store",npm_lifecycle_event:"build",EDITOR:"vi",npm_package_name:"@wellesley/store",LANG:"en_GB.UTF-8",ITERM_PROFILE:"Roman",npm_config_npm_version:"10.9.0",XPC_FLAGS:"0x0",TURBO_HASH:"bccbe34fe9138aee",npm_package_engines_node:">=20.2.0",npm_config_node_gyp:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_version:"1.0.154",XPC_SERVICE_NAME:"0",SHLVL:"4",HOME:"/Users/krasevych",COLORFGBG:"7;0",LC_TERMINAL_VERSION:"3.5.11",ITERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",npm_config_cache:"/Users/krasevych/.npm",LOGNAME:"krasevych",npm_lifecycle_script:"tsc && vite build",NVM_BIN:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin",npm_config_user_agent:"npm/10.9.0 node/v22.12.0 darwin x64 workspaces/false",LC_TERMINAL:"iTerm2",SECURITYSESSIONID:"186a3",npm_node_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",npm_config_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",COLORTERM:"truecolor",_:"/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin/vite",NODE_ENV:"production",TEST_1_SERVER:"https://dust.allroads.social",TEST_2_SERVER:"https://meteor.allroads.social",DEV_API_URL:"https://dust.allroads.social",DEV_LOCAL_TEST_ME_URL:"http://dev.localtest.me",APP_NAME:"@wellesley/store"},U0=(...e)=>{const t=Vh(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Qt(e)?Bh(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};U0(Vs);var B0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?To:To.apply(null,arguments)},F0=e=>e&&"function"==typeof e.match;function gt(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(st(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=>Ph(t)&&t.type===e,n}var Wh=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Jf(e){return Yt(e)?Zs(e,(()=>{})):e}function rc(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(st(10));const r=n.insert(t,e);return e.set(t,r),r}function j0(e){return"boolean"==typeof e}var V0=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let s=new Wh;return t&&(j0(t)?s.push(D0):s.push(L0(t.extraArgument))),s},Lr="RTK_autoBatch",Ss=()=>e=>({payload:e,meta:{[Lr]:!0}}),zh=e=>t=>{setTimeout(t,e)},$0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zh(10),W0=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,s=!1,i=!1;const a=new Set,u="tick"===e.type?queueMicrotask:"raf"===e.type?$0:"callback"===e.type?e.queueNotification:zh(e.timeout),c=()=>{i=!1,s&&(s=!1,a.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){var t;try{return o=!(null!=(t=null==e?void 0:e.meta)&&t[Lr]),s=!o,s&&(i||(i=!0,u(c))),r.dispatch(e)}finally{o=!0}}})},z0=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new Wh(e);return n&&r.push(W0("object"==typeof n?n:void 0)),r},H0="production"===N0.NODE_ENV;function q0(e){const t=V0(),{reducer:n,middleware:r,devTools:o=!0,preloadedState:s,enhancers:i}=e;let a,u;if("function"==typeof n)a=n;else{if(!an(n))throw new Error(st(1));a=Cc(n)}u="function"==typeof r?r(t):t();let c=To;o&&(c=B0({trace:!H0,..."object"==typeof o&&o}));const l=p0(...u),d=z0(l);return Mh(a,s,c(..."function"==typeof i?i(d):d()))}function Hh(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(st(28));if(r in t)throw new Error(st(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}function G0(e){return"function"==typeof e}function K0(e,t){let n,[r,o,s]=Hh(t);if(G0(e))n=()=>Jf(e());else{const t=Jf(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[s]),i.reduce(((e,n)=>{if(n){if(Qt(e)){const r=n(e,t);return void 0===r?e:r}if(Yt(e))return Zs(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(st(9))}return r}}return e}),e)}return i.getInitialState=n,i}var Q0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wo=(e=21)=>{let t="",n=e;for(;n--;)t+=Q0[64*Math.random()|0];return t},qh=(e,t)=>F0(e)?e.match(t):e(t);function Wn(...e){return t=>e.some((e=>qh(e,t)))}function Cs(...e){return t=>e.every((e=>qh(e,t)))}function zo(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 ei(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Mc(...e){return 0===e.length?e=>zo(e,["pending"]):ei(e)?t=>Wn(...e.map((e=>e.pending)))(t):Mc()(e[0])}function $r(...e){return 0===e.length?e=>zo(e,["rejected"]):ei(e)?t=>Wn(...e.map((e=>e.rejected)))(t):$r()(e[0])}function Ho(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||ei(e)?n=>Cs($r(...e),t)(n):Ho()(e[0])}function zn(...e){return 0===e.length?e=>zo(e,["fulfilled"]):ei(e)?t=>Wn(...e.map((e=>e.fulfilled)))(t):zn()(e[0])}function sc(...e){return 0===e.length?e=>zo(e,["pending","fulfilled","rejected"]):ei(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return Wn(...n)(t)}:sc()(e[0])}var Y0=["name","message","stack","code"],Cu=class{constructor(e,t){Iu(this,"_type"),this.payload=e,this.meta=t}},Zf=class{constructor(e,t){Iu(this,"_type"),this.payload=e,this.meta=t}},X0=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of Y0)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},ep=(()=>{function e(e,t,n){const r=gt(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=gt(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),s=gt(e+"/rejected",((e,t,r,o,s)=>({payload:o,error:(n&&n.serializeError||X0)(e||"Rejected"),meta:{...s||{},arg:r,requestId:t,rejectedWithValue:!!o,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):Wo(),l=new AbortController;let d,p;function f(e){p=e,l.abort()}const h=async function(){var h,m;let y;try{let s=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:a,extra:u});if(Z0(s)&&(s=await s),!1===s||l.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:p||"Aborted"})},l.signal.addEventListener("abort",d)}));i(o(c,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.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 Cu(e,t),fulfillWithValue:(e,t)=>new Zf(e,t)})).then((t=>{if(t instanceof Cu)throw t;return t instanceof Zf?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(t){y=t instanceof Cu?s(null,c,e,t.payload,t.meta):s(t,c,e)}finally{d&&l.signal.removeEventListener("abort",d)}return n&&!n.dispatchConditionRejection&&s.match(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:f,requestId:c,arg:e,unwrap:()=>h.then(J0)})}}),{pending:o,rejected:s,fulfilled:r,settled:Wn(s,r),typePrefix:e})}return e.withTypes=()=>e,e})();function J0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Z0(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var eI=Symbol.for("rtk-slice-createasyncthunk");function tI(e,t){return`${e}/${t}`}function nI({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[eI];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(st(11));const o=("function"==typeof e.reducers?e.reducers(sI()):e.reducers)||{},s=Object.keys(o),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(st(12));if(n in i.sliceCaseReducersByType)throw new Error(st(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?Hh(e.extraReducers):[e.extraReducers],o={...t,...i.sliceCaseReducersByType};return K0(e.initialState,(e=>{for(let t in o)e.addCase(t,o[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)}))}s.forEach((r=>{const s=o[r],i={reducerName:r,type:tI(t,r),createNotation:"function"==typeof e.reducers};oI(s)?uI(i,s,a,n):iI(i,s,a)}));const c=e=>e,l=new Map;let d;function p(e,t){return d||(d=u()),d(e,t)}function f(){return d||(d=u()),d.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=f()),r}function o(t=c){const r=rc(l,n,{insert:()=>new WeakMap});return rc(r,t,{insert:()=>{const r={};for(const[o,s]of Object.entries(e.selectors??{}))r[o]=rI(s,t,f,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const m={name:t,reducer:p,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:f,...h(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:p},n),{...m,...h(o,!0)}}};return m}}function rI(e,t,n,r){function o(o,...s){let i=t(o);return typeof i>"u"&&r&&(i=n()),e(i,...s)}return o.unwrapped=e,o}var jt=nI();function sI(){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 iI({type:e,reducerName:t,createNotation:n},r,o){let s,i;if("reducer"in r){if(n&&!aI(r))throw new Error(st(17));s=r.reducer,i=r.prepare}else s=r;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,i?gt(e,i):gt(e))}function oI(e){return"asyncThunk"===e._reducerDefinitionType}function aI(e){return"reducerWithPrepare"===e._reducerDefinitionType}function uI({type:e,reducerName:t},n,r,o){if(!o)throw new Error(st(18));const{payloadCreator:s,fulfilled:i,pending:a,rejected:u,settled:c,options:l}=n,d=o(e,s,l);r.exposeAction(t,d),i&&r.addCase(d.fulfilled,i),a&&r.addCase(d.pending,a),u&&r.addCase(d.rejected,u),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:i||so,pending:a||so,rejected:u||so,settled:c||so})}function so(){}var cI=(e,t)=>{if("function"!=typeof e)throw new Error(st(32))},Pc="listenerMiddleware",lI=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:s}=e;if(t)o=gt(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(st(21));return cI(s),{predicate:o,type:t,effect:s}},dI=Object.assign((e=>{const{type:t,predicate:n,effect:r}=lI(e);return{id:Wo(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(st(22))}}}),{withTypes:()=>dI}),fI=Object.assign(gt(`${Pc}/add`),{withTypes:()=>fI});gt(`${Pc}/removeAll`);var pI=Object.assign(gt(`${Pc}/remove`),{withTypes:()=>pI}),hI=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,mI=e=>e.flatMap((e=>hI(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),Dc=Symbol.for("rtk-state-proxy-original"),yI=e=>!!e&&!!e[Dc],_I=new WeakMap,gI=(e,t)=>rc(_I,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===Dc)return e;const o=Reflect.get(e,n,r);if(typeof o>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Wo()});if(typeof t>"u")throw new Error(st(24));return t}}return o}})}),vI=e=>{if(!yI(e))throw new Error(st(25));return e[Dc]},SI=(e={})=>e;function EI(...e){const t=Object.fromEntries(mI(e)),n=()=>Object.keys(t).length?Cc(t):SI;let r=n();function o(e,t){return r(e,t)}o.withLazyLoadedSlices=()=>o;const s=Object.assign((function(e,n){return function(r,...o){return e(gI(n?n(r,...o):r,t),...o)}}),{original:vI});return Object.assign(o,{inject:(e,s={})=>{const{reducerPath:i,reducer:a}=e,u=t[i];return!s.overrideExisting&&u&&u!==a||(t[i]=a,r=n()),o},selector:s})}function st(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Gh="auth_token",tp={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!1,isAuthenticated:!1},Kh=jt({name:"auth",initialState:tp,reducers:{logout:()=>tp,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},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload,e.isPending=!1}},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}});var bI={TERM_PROGRAM:"iTerm.app",NODE:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",TURBO_INVOCATION_DIR:"/Users/krasevych/Projects/Animatron/web-apps",NVM_CD_FLAGS:"-q",INIT_CWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/store",TERM:"xterm-256color",SHELL:"/bin/zsh",TMPDIR:"/var/folders/1y/vz19w_xj5xzb49lxmbmzk7dc0000gn/T/",DOMAIN_ENV:"dev",npm_config_global_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",TERM_PROGRAM_VERSION:"3.5.11",NODE_OPTIONS:"--max-old-space-size=8192",TERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",COLOR:"1",npm_config_noproxy:"",npm_config_local_prefix:"/Users/krasevych/Projects/Animatron/web-apps",USER:"krasevych",NVM_DIR:"/Users/krasevych/.nvm",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/Users/krasevych/.nvm/versions/node/v22.12.0/etc/npmrc",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.xn6U3pyr1k/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x0:0x2",npm_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/bin/npm-cli.js",TERM_FEATURES:"T3LrMSc7UUw9Ts3BFGsSyHNoSxF",TERMINFO_DIRS:"/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo",PATH:"/Users/krasevych/Projects/Animatron/web-apps/packages/store/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/packages/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/local/opt/postgresql@16/bin:/Users/krasevych/.yarn/bin:/Users/krasevych/.config/yarn/global/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Applications/Visual Studio Code.app/Contents/Resources/app/bin",npm_package_json:"/Users/krasevych/Projects/Animatron/web-apps/packages/store/package.json",LaunchInstanceID:"BC2D37FC-0469-4680-8D65-486E7C3C39CD",npm_config_userconfig:"/Users/krasevych/.npmrc",npm_config_init_module:"/Users/krasevych/.npm-init.js",__CFBundleIdentifier:"com.googlecode.iterm2",npm_command:"run-script",PWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/store",npm_lifecycle_event:"build",EDITOR:"vi",npm_package_name:"@wellesley/store",LANG:"en_GB.UTF-8",ITERM_PROFILE:"Roman",npm_config_npm_version:"10.9.0",XPC_FLAGS:"0x0",TURBO_HASH:"bccbe34fe9138aee",npm_package_engines_node:">=20.2.0",npm_config_node_gyp:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_version:"1.0.154",XPC_SERVICE_NAME:"0",SHLVL:"4",HOME:"/Users/krasevych",COLORFGBG:"7;0",LC_TERMINAL_VERSION:"3.5.11",ITERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",npm_config_cache:"/Users/krasevych/.npm",LOGNAME:"krasevych",npm_lifecycle_script:"tsc && vite build",NVM_BIN:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin",npm_config_user_agent:"npm/10.9.0 node/v22.12.0 darwin x64 workspaces/false",LC_TERMINAL:"iTerm2",SECURITYSESSIONID:"186a3",npm_node_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",npm_config_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",COLORTERM:"truecolor",_:"/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin/vite",NODE_ENV:"production",TEST_1_SERVER:"https://dust.allroads.social",TEST_2_SERVER:"https://meteor.allroads.social",DEV_API_URL:"https://dust.allroads.social",DEV_LOCAL_TEST_ME_URL:"http://dev.localtest.me",APP_NAME:"@wellesley/store"},Qh=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Qh||{});function II(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function wI(e){return new RegExp("(^|:)//").test(e)}var kI=e=>e.replace(/\/$/,""),TI=e=>e.replace(/^\//,"");function RI(e,t){if(!e)return t;if(!t)return e;if(wI(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=kI(e)}${n}${t=TI(t)}`}var np=e=>[].concat(...e);function CI(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function OI(){return typeof document>"u"||"hidden"!==document.visibilityState}var rp=an;function Yh(e,t){if(e===t||!(rp(e)&&rp(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const s=Array.isArray(t)?[]:{};for(const r of n)s[r]=Yh(e[r],t[r]),o&&(o=e[r]===s[r]);return o?e:s}var sp=(...e)=>fetch(...e),AI=e=>e.status>=200&&e.status<=299,xI=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function ip(e){if(!an(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function MI({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=sp,paramsSerializer:r,isJsonContentType:o=xI,jsonContentType:s="application/json",jsonReplacer:i,timeout:a,responseHandler:u,validateStatus:c,...l}={}){return typeof fetch>"u"&&n===sp&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(p,f)=>{const{signal:h,getState:m,extra:y,endpoint:g,forced:v,type:_}=f;let b,{url:S,headers:k=new Headers(l.headers),params:I,responseHandler:w=u??"json",validateStatus:A=c??AI,timeout:E=a,...T}="string"==typeof p?{url:p}:p,C={...l,signal:h,...T};k=new Headers(ip(k)),C.headers=await t(k,{getState:m,extra:y,endpoint:g,forced:v,type:_})||k;const O=e=>"object"==typeof e&&(an(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!C.headers.has("content-type")&&O(C.body)&&C.headers.set("content-type",s),O(C.body)&&o(C.headers)&&(C.body=JSON.stringify(C.body,i)),I){const e=~S.indexOf("?")?"&":"?";S+=e+(r?r(I):new URLSearchParams(ip(I)))}S=RI(e,S);const x=new Request(S,C);b={request:new Request(S,C)};let R,M=!1,P=E&&setTimeout((()=>{M=!0,f.abort()}),E);try{R=await n(x)}catch(e){return{error:{status:M?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:b}}finally{P&&clearTimeout(P)}const D=R.clone();b.response=D;let q,U="";try{let e;if(await Promise.all([d(R,w).then((e=>q=e),(t=>e=t)),D.text().then((e=>U=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:U,error:String(e)},meta:b}}return A(R,q)?{data:q,meta:b}:{error:{status:R.status,data:q},meta:b}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var op=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Lc=gt("__rtkq/focused"),Xh=gt("__rtkq/unfocused"),Nc=gt("__rtkq/online"),Jh=gt("__rtkq/offline");function Zh(e){return"query"===e.type}function PI(e){return"mutation"===e.type}function Uc(e,t,n,r,o,s){return DI(e)?e(t,n,r,o).map(ic).map(s):Array.isArray(e)?e.map(ic).map(s):[]}function DI(e){return"function"==typeof e}function ic(e){return"string"==typeof e?{type:e}:e}function ap(e){return null!=e}function jr(e){let t=0;for(const n in e)t++;return t}function LI(e,t){return e.catch(t)}var $s=Symbol("forceQueryFn"),oc=e=>"function"==typeof e[$s];function NI({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const s=new Map,i=new Map,{unsubscribeQueryResult:a,removeMutationResult:u,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,o){const i=(u,{subscribe:l=!0,forceRefetch:d,subscriptionOptions:p,[$s]:f,...h}={})=>(m,y)=>{var g;const v=e({queryArgs:u,endpointDefinition:o,endpointName:n}),_=t({...h,type:"query",subscribe:l,forceRefetch:d,subscriptionOptions:p,endpointName:n,originalArgs:u,queryCacheKey:v,[$s]:f}),b=r.endpoints[n].select(u),S=m(_),k=b(y()),{requestId:I,abort:w}=S,A=k.requestId!==I,E=null==(g=s.get(m))?void 0:g[v],T=()=>b(y()),C=Object.assign(f?S.then(T):A&&!E?Promise.resolve(k):Promise.all([E,S]).then(T),{arg:u,requestId:I,subscriptionOptions:p,queryCacheKey:v,abort:w,async unwrap(){const e=await C;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){l&&m(a({queryCacheKey:v,requestId:I}))},updateSubscriptionOptions(e){C.subscriptionOptions=e,m(c({endpointName:n,requestId:I,queryCacheKey:v,options:e}))}});if(!E&&!A&&!f){const e=s.get(m)||{};e[v]=C,s.set(m,e),C.then((()=>{delete e[v],jr(e)||s.delete(m)}))}return C};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(s,a)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),l=s(c),{requestId:d,abort:p,unwrap:f}=l,h=LI(l.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:l.arg,requestId:d,abort:p,unwrap:f,reset:()=>{s(u({requestId:d,fixedCacheKey:o}))}}),y=i.get(s)||{};return i.set(s,y),y[d]=m,m.then((()=>{delete y[d],jr(y)||i.delete(s)})),o&&(y[o]=m,m.then((()=>{y[o]===m&&(delete y[o],jr(y)||i.delete(s))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const a=o.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:a,endpointName:t});return null==(i=s.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(s.get(e)||{}).filter(ap)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(ap)}}}function up(e){return e}function UI({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:s}){const i=async(e,{signal:r,abort:o,rejectWithValue:s,fulfillWithValue:i,dispatch:u,getState:c,extra:l})=>{const d=n[e.endpointName];try{let n,s=up;const p={signal:r,abort:o,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[$s]:void 0;if(f?n=f():d.query?(n=await t(d.query(e.originalArgs),p,d.extraOptions),d.transformResponse&&(s=d.transformResponse)):n=await d.queryFn(e.originalArgs,p,d.extraOptions,(e=>t(e,p,d.extraOptions))),typeof process<"u"&&bI.NODE_ENV,n.error)throw new op(n.error,n.meta);return i(await s(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[Lr]:!0})}catch(t){let n=t;if(n instanceof op){let t=up;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return s(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[Lr]:!0})}catch(e){n=e}}throw console.error(n),n}};function a(t,n){var r,o,s;const i=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],a=null==(s=n[e])?void 0:s.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=ep(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Lr]:!0}),condition(t,{getState:r}){var o,s,i;const u=r(),c=null==(s=null==(o=u[e])?void 0:o.queries)?void 0:s[t.queryCacheKey],l=null==c?void 0:c.fulfilledTimeStamp,d=t.originalArgs,p=null==c?void 0:c.originalArgs,f=n[t.endpointName];return!!oc(t)||"pending"!==(null==c?void 0:c.status)&&(!!(a(t,u)||Zh(f)&&null!=(i=null==f?void 0:f.forceRefetch)&&i.call(f,{currentArg:d,previousArg:p,endpointState:c,state:u}))||!l)},dispatchConditionRejection:!0}),c=ep(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Lr]:!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,s)=>{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 o.endpoints[e].initiate(t,r)},c=o.endpoints[e].select(t)(s());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)=>(s,i)=>{const a=o.endpoints[e].select(t)(i());let u,c={patches:[],inversePatches:[],undo:()=>s(o.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===a.status)return c;if("data"in a)if(Yt(a.data)){const[e,t,r]=jh(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 s(o.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[$s]:()=>({data:n})})),patchQueryData:(e,t,i,a)=>(u,c)=>{const l=n[e],d=r({queryArgs:t,endpointDefinition:l,endpointName:e});if(u(o.internalActions.queryResultPatched({queryCacheKey:d,patches:i})),!a)return;const p=o.endpoints[e].select(t)(c()),f=Uc(l.providesTags,p.data,void 0,t,{},s);u(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:f}))},buildMatchThunkActions:function(e,t){return{matchPending:Cs(Mc(e),l(t)),matchFulfilled:Cs(zn(e),l(t)),matchRejected:Cs($r(e),l(t))}}}}function em(e,t,n,r){return Uc(n[e.meta.arg.endpointName][t],zn(e)?e.payload:void 0,Ho(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function io(e,t,n){const r=e[t];r&&n(r)}function Ws(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function cp(e,t,n){const r=e[Ws(t)];r&&n(r)}var Es={};function BI({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:s,hasRehydrationInfo:i},assertTagType:a,config:u}){const c=gt(`${e}/resetApiState`),l=jt({name:`${e}/queries`,initialState:Es,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Ss()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){io(e,t,(e=>{e.data=Qf(e.data,n.concat())}))},prepare:Ss()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=oc(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),io(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&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})=>{io(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!oc(t.arg))return;const{merge:o}=r[t.arg.endpointName];if(e.status="fulfilled",o)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:s,baseQueryMeta:i,requestId:a}=t;let u=Zs(e.data,(e=>o(e,n,{arg:s.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:a})));e.data=u}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?Yh(Qt(e.data)?m0(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:o,payload:s})=>{io(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=s??o}}))})).addMatcher(i,((e,t)=>{const{queries:n}=s(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)}))}}),d=jt({name:`${e}/mutations`,initialState:Es,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Ws(t);n in e&&delete e[n]},prepare:Ss()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[Ws(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&cp(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&&cp(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=s(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)}))}}),p=jt({name:`${e}/invalidation`,initialState:Es,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:o,providedTags:s}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(o);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of s){const s=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);s.includes(o)||s.push(o)}},prepare:Ss()}},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:o}=s(t);for(const[t,s]of Object.entries(o))for(const[o,i]of Object.entries(s)){const s=(n=e[t]??(e[t]={}))[r=o||"__internal_without_id"]??(n[r]=[]);for(const e of i)s.includes(e)||s.push(e)}})).addMatcher(Wn(zn(t),Ho(t)),((e,t)=>{const n=em(t,"providesTags",r,a),{queryCacheKey:o}=t.meta.arg;p.caseReducers.updateProvidedBy(e,p.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),f=jt({name:`${e}/subscriptions`,initialState:Es,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=jt({name:`${e}/internalSubscriptions`,initialState:Es,reducers:{subscriptionsUpdated:{reducer:(e,t)=>Qf(e,t.payload),prepare:Ss()}}}),m=jt({name:`${e}/config`,initialState:{online:CI(),focused:OI(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(Nc,(e=>{e.online=!0})).addCase(Jh,(e=>{e.online=!1})).addCase(Lc,(e=>{e.focused=!0})).addCase(Xh,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=Cc({queries:l.reducer,mutations:d.reducer,provided:p.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>y(c.match(t)?void 0:e,t),actions:{...m.actions,...l.actions,...f.actions,...h.actions,...d.actions,...p.actions,resetApiState:c}}}var sr=Symbol.for("RTKQ/skipToken"),tm={status:"uninitialized"},lp=Zs(tm,(()=>{})),dp=Zs(tm,(()=>{}));function FI({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>lp,o=e=>dp;return{buildQuerySelector:function(t,o){return a=>{const u=e({queryArgs:a,endpointDefinition:o,endpointName:t});return n(a===sr?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[u])??lp},s)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Ws(e)??sr:e,n(t===sr?o:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??dp},s)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(ic)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:np(Object.values(t)))??[];for(const e of n)o.add(e)}return np(Array.from(o.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 s(e){return{...e,...II(e.status)}}function i(e){return e[t]}}var xr=WeakMap?new WeakMap:void 0,fp=({endpointName:e,queryArgs:t})=>{let n="";const r=null==xr?void 0:xr.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>an(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));an(t)&&(null==xr||xr.set(t,e)),n=e}return`${e}(${n})`};function jI(...e){return function(t){const n=Vs((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=fp;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:fp({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:Wo(),extractRehydrationInfo:n,hasRehydrationInfo:Vs((e=>null!=n(e)))},s={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 o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(st(39))}else{o.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return s},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(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return s}},i=e.map((e=>e.init(s,r,o)));return s.injectEndpoints({endpoints:t.endpoints})}}function VI(e){for(let t in e)return!1;return!0}var $I=2147482.647,WI=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:s}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!VI(t)}const a={};function u(e,t,r,s){const u=n.endpointDefinitions[t],c=(null==u?void 0:u.keepUnusedDataFor)??s.keepUnusedDataFor;if(c===1/0)return;const l=Math.max(0,Math.min(c,$I));if(!i(e)){const t=a[e];t&&clearTimeout(t),a[e]=setTimeout((()=>{i(e)||r.dispatch(o({queryCacheKey:e})),delete a[e]}),1e3*l)}}return(r,o,i)=>{var c;if(s.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;u(n,null==(c=t.queries[n])?void 0:c.endpointName,o,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=o.getState()[e],{queries:s}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(s))u(e,null==n?void 0:n.endpointName,o,t.config)}}},zI=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:s,assertTagType:i,refetchQuery:a,internalState:u})=>{const{removeQueryResult:c}=s.internalActions,l=Wn(zn(r),Ho(r)),d=Wn(zn(r,o),$r(r,o));let p=[];function f(n,r){const o=r.getState(),i=o[e];if(p.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=p;if(p=[],0===l.length)return;const d=s.util.selectInvalidatedBy(o,l);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=u.currentSubscriptions[t]??{};e&&(0===jr(n)?r.dispatch(c({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(a(e,t)))}}))}return(e,t)=>{l(e)?f(em(e,"invalidatesTags",n,i),t):d(e)?f([],t):s.util.invalidateTags.match(e)&&f(Uc(e.payload,void 0,void 0,void 0,void 0,i),t)}},HI=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const s={};function i({queryCacheKey:t},n){const a=n.getState()[e],u=a.queries[t],l=o.currentSubscriptions[t];if(!u||"uninitialized"===u.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:p}=c(l);if(!Number.isFinite(d))return;const f=s[t];null!=f&&f.timeout&&(clearTimeout(f.timeout),f.timeout=void 0);const h=Date.now()+d;s[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{(a.config.focused||!p)&&n.dispatch(r(u,t)),i({queryCacheKey:t},n)}),d)}}function a({queryCacheKey:t},n){const r=n.getState()[e].queries[t],a=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:l}=c(a);if(!Number.isFinite(l))return void u(t);const d=s[t],p=Date.now()+l;(!d||p<d.nextPollTimestamp)&&i({queryCacheKey:t},n)}function u(e){const t=s[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete s[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(s))u(e)}()}},qI=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:s}=n.internalActions;function i(n,i){const a=n.getState()[e],u=a.queries,c=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=u[e],o=c[e];o&&t&&((Object.values(o).some((e=>!0===e[i]))||Object.values(o).every((e=>void 0===e[i]))&&a.config[i])&&(0===jr(o)?n.dispatch(s({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{Lc.match(e)&&i(t,"refetchOnFocus"),Nc.match(e)&&i(t,"refetchOnReconnect")}},pp=new Error("Promise never resolved before cacheEntryRemoved."),GI=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:s})=>{const i=sc(r),a=sc(o),u=zn(r,o),c={};function l(t,r,o,s,i){const a=n.endpointDefinitions[t],u=null==a?void 0:a.onCacheEntryAdded;if(!u)return;let l={};const d=new Promise((e=>{l.cacheEntryRemoved=e})),p=Promise.race([new Promise((e=>{l.valueResolved=e})),d.then((()=>{throw pp}))]);p.catch((()=>{})),c[o]=l;const f=e.endpoints[t].select("query"===a.type?r:o),h=s.dispatch(((e,t,n)=>n)),m={...s,getCacheEntry:()=>f(s.getState()),requestId:i,extra:h,updateCachedData:"query"===a.type?n=>s.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:p,cacheEntryRemoved:d},y=u(r,m);Promise.resolve(y).catch((e=>{if(e!==pp)throw e}))}return(n,s,d)=>{const p=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)?Ws(t.payload):""}(n);if(r.pending.match(n)){const e=d[t].queries[p],r=s.getState()[t].queries[p];!e&&r&&l(n.meta.arg.endpointName,n.meta.arg.originalArgs,p,s,n.meta.requestId)}else if(o.pending.match(n))s.getState()[t].mutations[p]&&l(n.meta.arg.endpointName,n.meta.arg.originalArgs,p,s,n.meta.requestId);else if(u(n)){const e=c[p];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[p];e&&(delete c[p],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(c))delete c[e],t.cacheEntryRemoved()}},KI=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=Mc(n,r),s=$r(n,r),i=zn(n,r),a={};return(n,r)=>{var u,c;if(o(n)){const{requestId:o,arg:{endpointName:s,originalArgs:i}}=n.meta,u=t.endpointDefinitions[s],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[o]=t;const l=e.endpoints[s].select("query"===u.type?i:o),d=r.dispatch(((e,t,n)=>n)),p={...r,getCacheEntry:()=>l(r.getState()),requestId:o,extra:d,updateCachedData:"query"===u.type?t=>r.dispatch(e.util.updateQueryData(s,i,t)):void 0,queryFulfilled:n};c(i,p)}}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(s(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]}}},QI=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},YI=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,s=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:a}=e.internalActions,u=()=>n.currentSubscriptions,c={getSubscriptions:u,getSubscriptionCount:e=>jr(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(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(u))return o=n.currentSubscriptions={},s=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,c];const d=((n,r)=>{var o,s,u;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:s}=r.payload;return null!=(o=null==n?void 0:n[e])&&o[t]&&(n[e][t]=s),!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,o=n[s=e.queryCacheKey]??(n[s]={});return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[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:o}}=r;if(e&&t.subscribe){const e=n[u=t.queryCacheKey]??(n[u]={});e[o]=t.subscriptionOptions??e[o]??{},c=!0}}return c})(n.currentSubscriptions,u);let p=!0;if(d){s||(s=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=jh(o,(()=>t));l.next(e.internalActions.subscriptionsUpdated(r)),o=t,s=null}),500));const i="string"==typeof u.type&&!!u.type.startsWith(r),a=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;p=!i&&!a}return[p,!1]}};function XI(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:s}=o,i={invalidateTags:gt(`${t}/invalidateTags`)},a=e=>e.type.startsWith(`${t}/`),u=[QI,WI,zI,HI,GI,KI];return{middleware:n=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:a},d=u.map((e=>e(l))),p=YI(l),f=qI(l);return e=>u=>{if(!Ph(u))return e(u);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(s)));const c={...n,next:e},l=n.getState(),[h,m]=p(u,c,l);let y;if(y=h?e(u):m,n.getState()[t]&&(f(u,c,l),a(u)||o.hasRehydrationInfo(u)))for(let e of d)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 Un(e,...t){return Object.assign(e,...t)}var hp=Symbol(),JI=({createSelector:e=it}={})=>({name:hp,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:s,keepUnusedDataFor:i,refetchOnMountOrArgChange:a,refetchOnFocus:u,refetchOnReconnect:c,invalidationBehavior:l},d){w0();const p=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:Nc,onOffline:Jh,onFocus:Lc,onFocusLost:Xh},util:{}});const{queryThunk:f,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:_}=UI({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:s,assertTagType:p}),{reducer:b,actions:S}=BI({context:d,queryThunk:f,mutationThunk:h,reducerPath:o,assertTagType:p,config:{refetchOnFocus:u,refetchOnReconnect:c,refetchOnMountOrArgChange:a,keepUnusedDataFor:i,reducerPath:o,invalidationBehavior:l}});Un(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:S.resetApiState}),Un(t.internalActions,S);const{middleware:k,actions:I}=XI({reducerPath:o,context:d,queryThunk:f,mutationThunk:h,api:t,assertTagType:p});Un(t.util,I),Un(t,{reducer:b,middleware:k});const{buildQuerySelector:w,buildMutationSelector:A,selectInvalidatedBy:E,selectCachedArgsForQuery:T}=FI({serializeQueryArgs:s,reducerPath:o,createSelector:e});Un(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:T});const{buildInitiateQuery:C,buildInitiateMutation:O,getRunningMutationThunk:x,getRunningMutationsThunk:R,getRunningQueriesThunk:M,getRunningQueryThunk:P}=NI({queryThunk:f,mutationThunk:h,api:t,serializeQueryArgs:s,context:d});return Un(t.util,{getRunningMutationThunk:x,getRunningMutationsThunk:R,getRunningQueryThunk:P,getRunningQueriesThunk:M}),{name:hp,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),Zh(n)?Un(o.endpoints[e],{name:e,select:w(e,n),initiate:C(e,n)},_(f,e)):PI(n)&&Un(o.endpoints[e],{name:e,select:A(),initiate:O(e)},_(h,e))}}}}),oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mp,yp,Ou={exports:{}},Oe={};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/function ZI(){if(mp)return Oe;mp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var v=g.prototype=new y;v.constructor=g,f(v,m.prototype),v.isPureReactComponent=!0;var _=Array.isArray,b=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function I(t,n,r){var o,s={},i=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(i=""+n.key),n)b.call(n,o)&&!k.hasOwnProperty(o)&&(s[o]=n[o]);var u=arguments.length-2;if(1===u)s.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];s.children=c}if(t&&t.defaultProps)for(o in u=t.defaultProps)void 0===s[o]&&(s[o]=u[o]);return{$$typeof:e,type:t,key:i,ref:a,props:s,_owner:S.current}}function w(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var A=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(n,r,o,s,i){var a=typeof n;("undefined"===a||"boolean"===a)&&(n=null);var u=!1;if(null===n)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0}}if(u)return i=i(u=n),n=""===s?"."+E(u,0):s,_(i)?(o="",null!=n&&(o=n.replace(A,"$&/")+"/"),T(i,r,o,"",(function(e){return e}))):null!=i&&(w(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,o+(!i.key||u&&u.key===i.key?"":(""+i.key).replace(A,"$&/")+"/")+n)),r.push(i)),1;if(u=0,s=""===s?".":s+":",_(n))for(var c=0;c<n.length;c++){var l=s+E(a=n[c],c);u+=T(a,r,o,l,i)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof l)for(n=l.call(n),c=0;!(a=n.next()).done;)u+=T(a=a.value,r,o,l=s+E(a,c++),i);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return u}function C(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)}),(function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var x={current:null},R={transition:null},M={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};return Oe.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!w(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Oe.Component=m,Oe.Fragment=n,Oe.Profiler=o,Oe.PureComponent=g,Oe.StrictMode=r,Oe.Suspense=u,Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,Oe.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=f({},t.props),s=t.key,i=t.ref,a=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,a=S.current),void 0!==n.key&&(s=""+n.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(c in n)b.call(n,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==u?u[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];o.children=u}return{$$typeof:e,type:t.type,key:s,ref:i,props:o,_owner:a}},Oe.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},Oe.createElement=I,Oe.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(e){return{$$typeof:a,render:e}},Oe.isValidElement=w,Oe.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:O}},Oe.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},Oe.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},Oe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Oe.useCallback=function(e,t){return x.current.useCallback(e,t)},Oe.useContext=function(e){return x.current.useContext(e)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(e){return x.current.useDeferredValue(e)},Oe.useEffect=function(e,t){return x.current.useEffect(e,t)},Oe.useId=function(){return x.current.useId()},Oe.useImperativeHandle=function(e,t,n){return x.current.useImperativeHandle(e,t,n)},Oe.useInsertionEffect=function(e,t){return x.current.useInsertionEffect(e,t)},Oe.useLayoutEffect=function(e,t){return x.current.useLayoutEffect(e,t)},Oe.useMemo=function(e,t){return x.current.useMemo(e,t)},Oe.useReducer=function(e,t,n){return x.current.useReducer(e,t,n)},Oe.useRef=function(e){return x.current.useRef(e)},Oe.useState=function(e){return x.current.useState(e)},Oe.useSyncExternalStore=function(e,t,n){return x.current.useSyncExternalStore(e,t,n)},Oe.useTransition=function(){return x.current.useTransition()},Oe.version="18.2.0",Oe}function Bc(){return yp||(yp=1,Ou.exports=ZI()),Ou.exports}var be=Bc();const rm=nm(be),_p=c0({__proto__:null,default:rm},[be]);var gp,vp,Au={exports:{}},xu={};
|
|
11
|
+
/**
|
|
12
|
+
* @license React
|
|
13
|
+
* use-sync-external-store-with-selector.production.min.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/function ew(){if(gp)return xu;gp=1;var e=Bc();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,o=e.useEffect,s=e.useMemo,i=e.useDebugValue;return xu.useSyncExternalStoreWithSelector=function(e,a,u,c,l){var d=r(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s((function(){function e(e){if(!o){if(o=!0,n=e,e=c(e),void 0!==l&&p.hasValue){var s=p.value;if(l(s,e))return r=s}return r=e}if(s=r,t(n,e))return s;var i=c(e);return void 0!==l&&l(s,i)?s:(n=e,r=i)}var n,r,o=!1,s=void 0===u?null:u;return[function(){return e(a())},null===s?void 0:function(){return e(s())}]}),[a,u,c,l]);var f=n(e,d[0],d[1]);return o((function(){p.hasValue=!0,p.value=f}),[f]),i(f),f},xu}function tw(){return vp||(vp=1,Au.exports=ew()),Au.exports}var nw=tw(),sn="default"in _p?rm:_p,Sp=Symbol.for("react-redux-context"),Ep=typeof globalThis<"u"?globalThis:{};function rw(){if(!sn.createContext)return{};const e=Ep[Sp]??(Ep[Sp]=new Map);let t=e.get(sn.createContext);return t||(t=sn.createContext(null),e.set(sn.createContext,t)),t}var cr=rw(),sw=()=>{throw new Error("uSES not initialized!")};function Fc(e=cr){return function(){return sn.useContext(e)}}var sm=Fc(),im=sw,iw=e=>{im=e},ow=(e,t)=>e===t;function aw(e=cr){const t=e===cr?sm:Fc(e),n=(e,n={})=>{const{equalityFn:r=ow,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:s,subscription:i,getServerState:a,stabilityCheck:u,identityFunctionCheck:c}=t();sn.useRef(!0);const l=sn.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,o.stabilityCheck]),d=im(i.addNestedSub,s.getState,a||s.getState,l,r);return sn.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var uw=aw();function cw(e){e()}var lw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function bp(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Os(e,t){if(bp(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])||!bp(e[n[r]],t[n[r]]))return!1;return!0}function om(e=cr){const t=e===cr?sm:Fc(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}lw?sn.useLayoutEffect:sn.useEffect;var am=om();function dw(e=cr){const t=e===cr?am:om(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var fw=dw(),pw=cw;function hw(e){return"query"===e.type}function mw(e){return"mutation"===e.type}function ao(e,...t){return Object.assign(e,...t)}function Mu(e){return e.replace(e[0],e[0].toUpperCase())}iw(nw.useSyncExternalStoreWithSelector);var Mr=WeakMap?new WeakMap:void 0,yw=({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)=>an(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));an(t)&&(null==Mr||Mr.set(t,e)),n=e}return`${e}(${n})`},Pu=Symbol();function Ip(e,t,n,r){const o=be.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),s=be.useRef(o);return be.useEffect((()=>{s.current.serialized!==o.serialized&&(s.current=o)}),[o]),s.current.serialized===o.serialized?s.current.queryArgs:e}function Du(e){const t=be.useRef(e);return be.useEffect((()=>{Os(t.current,e)||(t.current=e)}),[e]),Os(t.current,e)?t.current:e}var _w=typeof window<"u"&&window.document&&window.document.createElement?be.useLayoutEffect:be.useEffect,gw=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:Qh.pending}:e;function vw({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:s,createSelector:i},serializeQueryArgs:a,context:u}){const c=s?e=>e():be.useEffect;return{buildQueryHooks:function(s){const d=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:i,skip:a=!1,pollingInterval:l=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:p}=e.endpoints[s],f=n(),h=be.useRef();if(!h.current){const t=f(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const m=Ip(a?sr:t,yw,u.endpointDefinitions[s],s),y=Du({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:l,skipPollingIfUnfocused:d}),g=be.useRef(!1),v=be.useRef();let{queryCacheKey:_,requestId:b}=v.current||{},S=!1;_&&b&&(S=h.current.isRequestSubscribed(_,b));const k=!S&&g.current;return c((()=>{g.current=S})),c((()=>{k&&(v.current=void 0)}),[k]),c((()=>{var e;const t=v.current;if(m===sr)return null==t||t.unsubscribe(),void(v.current=void 0);const n=null==(e=v.current)?void 0:e.subscriptionOptions;if(t&&t.arg===m)y!==n&&t.updateSubscriptionOptions(y);else{null==t||t.unsubscribe();const e=f(p(m,{subscriptionOptions:y,forceRefetch:i}));v.current=e}}),[f,p,i,m,y,k]),be.useEffect((()=>()=>{var e;null==(e=v.current)||e.unsubscribe(),v.current=void 0}),[]),be.useMemo((()=>({refetch:()=>{var e;if(!v.current)throw new Error(st(38));return null==(e=v.current)?void 0:e.refetch()}})),[])},p=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:u}=e.endpoints[s],l=n(),[d,p]=be.useState(Pu),f=be.useRef(),h=Du({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i,skipPollingIfUnfocused:a});c((()=>{var e,t;const n=null==(e=f.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=f.current)||t.updateSubscriptionOptions(h))}),[h]);const m=be.useRef(h);c((()=>{m.current=h}),[h]);const y=be.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=f.current)||t.unsubscribe(),f.current=r=l(u(e,{subscriptionOptions:m.current,forceRefetch:!n})),p(e)})),r}),[l,u]);return be.useEffect((()=>()=>{var e;null==(e=null==f?void 0:f.current)||e.unsubscribe()}),[]),be.useEffect((()=>{d!==Pu&&!f.current&&y(d,!0)}),[d,y]),be.useMemo((()=>[y,d]),[y,d])},f=(t,{skip:n=!1,selectFromResult:c}={})=>{const{select:d}=e.endpoints[s],p=Ip(n?sr:t,a,u.endpointDefinitions[s],s),f=be.useRef(),h=be.useMemo((()=>i([d(p),(e,t)=>t,e=>p],l,{memoizeOptions:{resultEqualityCheck:Os}})),[d,p]),m=be.useMemo((()=>c?i([h],c,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,c]),y=r((e=>m(e,f.current)),Os),g=o(),v=h(g.getState(),f.current);return _w((()=>{f.current=v}),[v]),y};return{useQueryState:f,useQuerySubscription:d,useLazyQuerySubscription:p,useLazyQuery(e){const[t,n]=p(e),r=f(n,{...e,skip:n===Pu}),o=be.useMemo((()=>({lastArg:n})),[n]);return be.useMemo((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=d(e,t),r=f(e,{selectFromResult:e===sr||null!=t&&t.skip?void 0:gw,...t}),{data:o,status:s,isLoading:i,isSuccess:a,isError:u,error:c}=r;return be.useDebugValue({data:o,status:s,isLoading:i,isSuccess:a,isError:u,error:c}),be.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:s,fixedCacheKey:a}={})=>{const{select:u,initiate:c}=e.endpoints[o],l=n(),[d,p]=be.useState();be.useEffect((()=>()=>{null!=d&&d.arg.fixedCacheKey||null==d||d.reset()}),[d]);const f=be.useCallback((function(e){const t=l(c(e,{fixedCacheKey:a}));return p(t),t}),[l,c,a]),{requestId:h}=d||{},m=be.useMemo((()=>u({fixedCacheKey:a,requestId:null==d?void 0:d.requestId})),[a,d,u]),y=be.useMemo((()=>s?i([m],s):m),[s,m]),g=r(y,Os),v=null==a?null==d?void 0:d.arg.originalArgs:void 0,_=be.useCallback((()=>{t((()=>{d&&p(void 0),a&&l(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:a}))}))}),[l,a,d,h]),{endpointName:b,data:S,status:k,isLoading:I,isSuccess:w,isError:A,error:E}=g;be.useDebugValue({endpointName:b,data:S,status:k,isLoading:I,isSuccess:w,isError:A,error:E});const T=be.useMemo((()=>({...g,originalArgs:v,reset:_})),[g,v,_]);return be.useMemo((()=>[f,T]),[f,T])}},usePrefetch:function(t,r){const o=n(),s=Du(r);return be.useCallback(((n,r)=>o(e.util.prefetch(t,n,{...s,...r}))),[t,o,s])}};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 o=void 0!==r,s=e.isLoading,i=!o&&s,c=e.isSuccess||s&&o;return{...e,data:r,currentData:e.data,isFetching:s,isLoading:i,isSuccess:c}}}var Sw=Symbol(),Ew=({batch:e=pw,hooks:t={useDispatch:fw,useSelector:uw,useStore:am},createSelector:n=it,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:Sw,init(o,{serializeQueryArgs:s},i){const a=o,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:l}=vw({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:s,context:i});return ao(a,{usePrefetch:l}),ao(i,{batch:e}),{injectEndpoint(e,t){if(hw(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:s,useQuerySubscription:i}=u(e);ao(a.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:s,useQuerySubscription:i}),o[`use${Mu(e)}Query`]=t,o[`useLazy${Mu(e)}Query`]=n}else if(mw(t)){const t=c(e);ao(a.endpoints[e],{useMutation:t}),o[`use${Mu(e)}Mutation`]=t}}}}}),bw=jI(JI(),Ew());const ti=()=>"object"!=typeof window,um=()=>dm()?location.hostname:location.hostname.replace(/\w\w\w\.|^/,"."),cm=e=>{const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},lm=e=>Object.keys(e).reduce(((t,n)=>`${t}${n}${!0===e[n]?"":`=${e[n]}`};`),""),Iw=(e,t)=>{const n=ti()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},ww=(e,t)=>{ti()||(document.cookie=lm({[e]:"",path:"/",domain:t||um(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},kw=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],dm=()=>kw.includes(location.hostname),Tw=(e,t="",n=10,r)=>{ti()||(document.cookie=lm({[e]:t,path:"/",domain:r||um(),expires:cm(n),...!dm()&&{SameSite:"None",Secure:!0}}))},fm={set:Tw,remove:ww,get:Iw,getExpireDate:cm},Rw=()=>{fm.remove(Gh)},Cw=e=>async(t,n,r)=>{const o=await e(t,n,r);return o.error&&[401].includes(o.error.status)&&(Rw(),n.dispatch(Kh.actions.logout())),o},jc=e=>"number"==typeof e&&!isNaN(e),As=e=>"string"==typeof e,pm=e=>"function"==typeof e,Ow=e=>be.isValidElement(e)||As(e)||pm(e)||jc(e),rn=new Map;let ac=[];const wp=new Set,hm=()=>rn.size>0;function Aw(e,t){var n;if(t)return!(null==(n=rn.get(t))||!n.isToastActive(e));let r=!1;return rn.forEach((t=>{t.isToastActive(e)&&(r=!0)})),r}function xw(e,t){Ow(e)&&(hm()||ac.push({content:e,options:t}),rn.forEach((n=>{n.buildToast(e,t)})))}function kp(e,t){rn.forEach((n=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===n.id&&n.toggle(e,null==t?void 0:t.id):n.toggle(e,null==t?void 0:t.id)}))}let Mw=1;const mm=()=>""+Mw++;function Pw(e){return e&&(As(e.toastId)||jc(e.toastId))?e.toastId:mm()}function xs(e,t){return xw(e,t),t.toastId}function Oo(e,t){return{...t,type:t&&t.type||e,toastId:Pw(t)}}function uo(e){return(t,n)=>xs(t,Oo(e,n))}function qe(e,t){return xs(e,Oo("default",t))}qe.loading=(e,t)=>xs(e,Oo("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),qe.promise=function(e,t,n){let r,{pending:o,error:s,success:i}=t;o&&(r=As(o)?qe.loading(o,n):qe.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,o)=>{if(null==t)return void qe.dismiss(r);const s={type:e,...a,...n,data:o},i=As(t)?{render:t}:t;return r?qe.update(r,{...s,...i}):qe(i.render,{...s,...i}),o},c=pm(e)?e():e;return c.then((e=>u("success",i,e))).catch((e=>u("error",s,e))),c},qe.success=uo("success"),qe.info=uo("info"),qe.error=uo("error"),qe.warning=uo("warning"),qe.warn=qe.warning,qe.dark=(e,t)=>xs(e,Oo("default",{theme:"dark",...t})),qe.dismiss=function(e){!function(e){var t;if(hm()){if(null==e||As(t=e)||jc(t))rn.forEach((t=>{t.removeToast(e)}));else if(e&&("containerId"in e||"id"in e)){const t=rn.get(e.containerId);t?t.removeToast(e.id):rn.forEach((t=>{t.removeToast(e.id)}))}}else ac=ac.filter((t=>null!=e&&t.options.toastId!==e))}(e)},qe.clearWaitingQueue=function(e){void 0===e&&(e={}),rn.forEach((t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()}))},qe.isActive=Aw,qe.update=function(e,t){void 0===t&&(t={});const n=((e,t)=>{var n;let{containerId:r}=t;return null==(n=rn.get(r||1))?void 0:n.toasts.get(e)})(e,t);if(n){const{props:r,content:o}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:mm()};s.toastId!==e&&(s.staleId=e);const i=s.render||o;delete s.render,xs(i,s)}},qe.done=e=>{qe.update(e,{progress:1})},qe.onChange=function(e){return wp.add(e),()=>{wp.delete(e)}},qe.play=e=>kp(!0,e),qe.pause=e=>kp(!1,e);const Dw=5,Lw=e=>t=>!!e&&t.includes(e.status),Tp=e=>new Promise((t=>setTimeout(t,1e3*e))),Nw=e=>async(t,n,r)=>{let o=0;const s=async()=>{var i,a,u,c;const l=await e(t,n,r),d=l.error;if(o>=5)return navigator.onLine||qe.error("Offline"),l;o>0&&await Tp(Math.pow(2,o)),o++;const p=Lw(d);switch(!0){case"mutation"===n.type:return l;case!navigator.onLine:case p([408,404]):case d&&"FETCH_ERROR"===(null==d?void 0:d.status):case d&&d.status>=500:return await s();case 429===(null==(i=null==l?void 0:l.error)?void 0:i.status):{const e=null==(c=null==(u=null==(a=l.meta)?void 0:a.response)?void 0:u.headers)?void 0:c.get("Retry-After");return await Tp(+(e||"0")),await s()}default:return l}};return await s()};var Uw={TERM_PROGRAM:"iTerm.app",NODE:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",TURBO_INVOCATION_DIR:"/Users/krasevych/Projects/Animatron/web-apps",NVM_CD_FLAGS:"-q",INIT_CWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/store",TERM:"xterm-256color",SHELL:"/bin/zsh",TMPDIR:"/var/folders/1y/vz19w_xj5xzb49lxmbmzk7dc0000gn/T/",DOMAIN_ENV:"dev",npm_config_global_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",TERM_PROGRAM_VERSION:"3.5.11",NODE_OPTIONS:"--max-old-space-size=8192",TERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",COLOR:"1",npm_config_noproxy:"",npm_config_local_prefix:"/Users/krasevych/Projects/Animatron/web-apps",USER:"krasevych",NVM_DIR:"/Users/krasevych/.nvm",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/Users/krasevych/.nvm/versions/node/v22.12.0/etc/npmrc",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.xn6U3pyr1k/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x0:0x2",npm_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/bin/npm-cli.js",TERM_FEATURES:"T3LrMSc7UUw9Ts3BFGsSyHNoSxF",TERMINFO_DIRS:"/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo",PATH:"/Users/krasevych/Projects/Animatron/web-apps/packages/store/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/packages/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/local/opt/postgresql@16/bin:/Users/krasevych/.yarn/bin:/Users/krasevych/.config/yarn/global/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Applications/Visual Studio Code.app/Contents/Resources/app/bin",npm_package_json:"/Users/krasevych/Projects/Animatron/web-apps/packages/store/package.json",LaunchInstanceID:"BC2D37FC-0469-4680-8D65-486E7C3C39CD",npm_config_userconfig:"/Users/krasevych/.npmrc",npm_config_init_module:"/Users/krasevych/.npm-init.js",__CFBundleIdentifier:"com.googlecode.iterm2",npm_command:"run-script",PWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/store",npm_lifecycle_event:"build",EDITOR:"vi",npm_package_name:"@wellesley/store",LANG:"en_GB.UTF-8",ITERM_PROFILE:"Roman",npm_config_npm_version:"10.9.0",XPC_FLAGS:"0x0",TURBO_HASH:"bccbe34fe9138aee",npm_package_engines_node:">=20.2.0",npm_config_node_gyp:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_version:"1.0.154",XPC_SERVICE_NAME:"0",SHLVL:"4",HOME:"/Users/krasevych",COLORFGBG:"7;0",LC_TERMINAL_VERSION:"3.5.11",ITERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",npm_config_cache:"/Users/krasevych/.npm",LOGNAME:"krasevych",npm_lifecycle_script:"tsc && vite build",NVM_BIN:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin",npm_config_user_agent:"npm/10.9.0 node/v22.12.0 darwin x64 workspaces/false",LC_TERMINAL:"iTerm2",SECURITYSESSIONID:"186a3",npm_node_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",npm_config_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",COLORTERM:"truecolor",_:"/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin/vite",NODE_ENV:"production",TEST_1_SERVER:"https://dust.allroads.social",TEST_2_SERVER:"https://meteor.allroads.social",DEV_API_URL:"https://dust.allroads.social",DEV_LOCAL_TEST_ME_URL:"http://dev.localtest.me",APP_NAME:"@wellesley/store"};const Bw=Uw.DEV_API_URL,Fw=MI({baseUrl:Bw,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=fm.get(Gh);return t&&e.set("authorization",`Bearer ${t}`),e}}),jw=Cw(Nw(Fw)),Vw=bw({tagTypes:["Secure","Post","Follow","Like","Settings","Admin_Apps","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks"],reducerPath:"openapi",baseQuery:jw,endpoints:()=>({})}),ym=Vw.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}})}),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})}),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}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,after:e.after,appId:e.appId,group:e.group,limit:e.limit,ruleId:e.ruleId,userId:e.userId}})}),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"})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{protocol:e.protocol,userId:e.userId,username:e.username}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{protocol:e.protocol,userId:e.userId,username:e.username}})}),getApiV1AdminList:e.query({query:e=>({url:"/api/v1/admin/list",params:{accId:e.accId,email:e.email,name:e.name,role:e.role,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),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}})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminShow:e.query({query:e=>({url:"/api/v1/admin/show",params:{email:e.email,id:e.id,htmlContent:e.htmlContent}})}),getApiV1AdminShowUser:e.query({query:e=>({url:"/api/v1/admin/show/user",params:{id:e.id,username:e.username,htmlContent:e.htmlContent}})}),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}})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsFeatured:e.query({query:()=>({url:"/api/v1/apps/featured"})}),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",params:{pin:e.pin}})}),deleteApiV1AppsGroupByGroupIdAndAppIdPin:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}/pin`,method:"DELETE"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsPinned:e.query({query:()=>({url:"/api/v1/apps/pinned"})}),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",params:{pin:e.pin}})}),deleteApiV1AppsUserByAppIdPin:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}/pin`,method:"DELETE"})}),putApiV1AppsUserByAppIdReorder:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}/reorder`,method:"PUT",params:{before:e.before,markerAppId:e.markerAppId}})}),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"})}),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"})}),putApiV1AppsByAppIdFeatured:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/featured`,method:"PUT"})}),deleteApiV1AppsByAppIdFeatured:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/featured`,method:"DELETE"})}),putApiV1AppsByAppIdFeaturedReorder:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/featured/reorder`,method:"PUT",params:{before:e.before,markerAppId:e.markerAppId}})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdAndTypeDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/${e.type}/default`,method:"PUT"})}),putApiV1AppsByAppIdAndTypeUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/${e.type}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdAndTypeUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/${e.type}/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.createCategory})}),putApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"PUT",body:e.createCategory})}),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:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`})}),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}})}),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}})}),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",body:e.createForum})}),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,protocol:e.protocol}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),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,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,pinned:e.pinned,protocol:e.protocol,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withTranslation:e.withTranslation,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,protocol:e.protocol,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,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,protocol:e.protocol,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,private:e.private,protocol:e.protocol,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,protocol:e.protocol,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation,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,withTranslation:e.withTranslation,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"})}),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}})}),getApiV1Reports:e.query({query:e=>({url:"/api/v1/reports",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),getApiV1ReportsByReportId:e.query({query:e=>({url:`/api/v1/reports/${e.reportId}`})}),postApiV1ReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1ReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1ReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1ReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1ReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1ReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1ReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/reports/${e.reportId}/unassign`,method:"POST"})}),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}})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,lastId:e.lastId,limit:e.limit,offset:e.offset,protocol:e.protocol,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:e=>({url:"/api/v1/sessions/list",params:{state:e.state}})}),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.body})}),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.body})}),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",params:{protocol:e.protocol}})}),getApiV1TagsFollowed:e.query({query:e=>({url:"/api/v1/tags/followed",params:{protocol:e.protocol}})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST",params:{protocol:e.protocol}})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince,protocol:e.protocol}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.request1})}),deleteApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"DELETE",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.request})}),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.request2})}),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:{domain:e.domain,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}})}),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:{full:e.full,htmlContent:e.htmlContent}})}),deleteApiV1UsersByUserIdDelete:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/delete`,method:"DELETE"})}),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}})}),putApiV1UsersByUserIdState:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/state`,method:"PUT",body:e.userState})})}),overrideExisting:!1});var Rp,Cp,Lu={exports:{}},bs={};
|
|
20
|
+
/**
|
|
21
|
+
* @license React
|
|
22
|
+
* react-jsx-runtime.production.min.js
|
|
23
|
+
*
|
|
24
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the MIT license found in the
|
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/function $w(){if(Rp)return bs;Rp=1;var e=Bc(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(e,n,i){var a,u={},c=null,l=null;for(a in void 0!==i&&(c=""+i),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(l=n.ref),n)r.call(n,a)&&!s.hasOwnProperty(a)&&(u[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===u[a]&&(u[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:l,props:u,_owner:o.current}}return bs.Fragment=n,bs.jsx=i,bs.jsxs=i,bs}function Ww(){return Cp||(Cp=1,Lu.exports=$w()),Lu.exports}Ww();const Vc=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ms="8.48.0",pt=globalThis;function qo(e,t,n){const r=pt,o=r.__SENTRY__=r.__SENTRY__||{},s=o[Ms]=o[Ms]||{};return s[e]||(s[e]=t())}const ni=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,zw="Sentry Logger ",Op=["debug","info","warn","error","log","assert","trace"],Ap={};function $c(e){if(!("console"in pt))return e();const t=pt.console,n={},r=Object.keys(Ap);r.forEach((e=>{const r=Ap[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function Hw(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ni?Op.forEach((n=>{t[n]=(...t)=>{e&&$c((()=>{pt.console[n](`${zw}[${n}]:`,...t)}))}})):Op.forEach((e=>{t[e]=()=>{}})),t}const vt=qo("logger",Hw),Nu="<anonymous>";function Tn(e){try{return e&&"function"==typeof e&&e.name||Nu}catch{return Nu}}function xp(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 bo={},Mp={};function _m(e,t){bo[e]=bo[e]||[],bo[e].push(t)}function gm(e,t){if(!Mp[e]){Mp[e]=!0;try{t()}catch(t){ni&&vt.error(`Error while instrumenting ${e}`,t)}}}function uc(e,t){const n=e&&bo[e];if(n)for(const r of n)try{r(t)}catch(t){ni&&vt.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Tn(r)}\nError:`,t)}}function ri(){return Wc(pt),pt}function Wc(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ms,t[Ms]=t[Ms]||{}}const vm=Object.prototype.toString;function qw(e){switch(vm.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Go(e,Error)}}function zc(e,t){return vm.call(e)===`[object ${t}]`}function Ao(e){return zc(e,"String")}function Hc(e){return zc(e,"Object")}function Gw(e){return typeof Event<"u"&&Go(e,Event)}function Kw(e){return typeof Element<"u"&&Go(e,Element)}function Qw(e){return zc(e,"RegExp")}function qc(e){return!(!e||!e.then||"function"!=typeof e.then)}function Yw(e){return Hc(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Go(e,t){try{return e instanceof t}catch{return!1}}function Xw(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const Sm=pt,Jw=80;function Gc(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,i=0;const a=" > ",u=a.length;let c;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<r&&(c=Zw(n,l),!("html"===c||s>1&&i+o.length*u+c.length>=d));)o.push(c),i+=c.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Zw(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Sm.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 o=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(o&&o.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&Ao(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"];for(const e of s){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function ek(){try{return Sm.document.location.href}catch{return""}}function Uu(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function tk(e,t,n=!1){return!!Ao(e)&&(Qw(t)?t.test(e):!!Ao(t)&&(n?e===t:e.includes(t)))}function nk(e,t=[],n=!1){return t.some((t=>tk(e,t,n)))}function Vt(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&Em(o,r);try{e[t]=o}catch{ni&&vt.log(`Failed to replace method "${t}" in object`,e)}}function zs(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ni&&vt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Em(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,zs(e,"__sentry_original__",t)}catch{}}function bm(e){return e.__sentry_original__}function rk(e){if(qw(e))return{message:e.message,name:e.name,stack:e.stack,...Dp(e)};if(Gw(e)){const t={type:e.type,target:Pp(e.target),currentTarget:Pp(e.currentTarget),...Dp(e)};return typeof CustomEvent<"u"&&Go(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Pp(e){try{return Kw(e)?Gc(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Dp(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 Kt(e){return cc(e,new Map)}function cc(e,t){if(sk(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]=cc(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(cc(e,t))})),r}return e}function sk(e){if(!Hc(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const Im=1e3;function Ko(){return Date.now()/Im}function ik(){const{performance:e}=pt;if(!e||!e.now)return Ko;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/Im}const wm=ik(),ok=(()=>{const{performance:e}=pt;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):t;return s||a<t?o<=a?e.timeOrigin:i:r})();function wn(){const e=pt,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 ak(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function uk(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=""),s.type||(s.type="Error")}function km(e,t){const n=ak(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 Sn;function Lp(e){return new In((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Sn||(Sn={}));class In{constructor(e){In.prototype.__init.call(this),In.prototype.__init2.call(this),In.prototype.__init3.call(this),In.prototype.__init4.call(this),this._state=Sn.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new In(((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 In(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(Sn.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Sn.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===Sn.PENDING){if(qc(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Sn.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Sn.RESOLVED&&e[1](this._value),this._state===Sn.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function ck(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||wm(),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:wn()),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 Np(){return wn()}function lc(){return wn().substring(16)}function Qo(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]=Qo(r[e],t[e],n-1));return r}const dc="_sentrySpan";function Up(e,t){t?zs(e,dc,t):delete e[dc]}function fc(e){return e[dc]}const lk=100;class Kc{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:Np(),spanId:lc()}}clone(){const e=new Kc;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,Up(e,fc(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&&ck(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 lr?[t.getScopeData(),t.getRequestSession()]:Hc(t)?[e,e.requestSession]:[],{tags:o,extra:s,user:i,contexts:a,level:u,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},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,Up(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Np()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:lk;if(n<=0)return this;const r={timestamp:Ko(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,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:fc(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Qo(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:lc(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:wn();if(!this._client)return vt.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:wn();if(!this._client)return vt.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:wn();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(vt.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 lr=Kc;function dk(){return qo("defaultCurrentScope",(()=>new lr))}function fk(){return qo("defaultIsolationScope",(()=>new lr))}class pk{constructor(e,t){let n,r;n=e||new lr,r=t||new lr,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 qc(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 Wr(){const e=Wc(ri());return e.stack=e.stack||new pk(dk(),fk())}function hk(e){return Wr().withScope(e)}function mk(e,t){const n=Wr();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function Bp(e){return Wr().withScope((()=>e(Wr().getIsolationScope())))}function yk(){return{withIsolationScope:Bp,withScope:hk,withSetScope:mk,withSetIsolationScope:(e,t)=>Bp(t),getCurrentScope:()=>Wr().getScope(),getIsolationScope:()=>Wr().getIsolationScope()}}function Yo(e){const t=Wc(e);return t.acs?t.acs:yk()}function Qr(){return Yo(ri()).getCurrentScope()}function si(){return Yo(ri()).getIsolationScope()}function _k(){return qo("globalScope",(()=>new lr))}function gk(...e){const t=Yo(ri());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function un(){return Qr().getClient()}const vk="_sentryMetrics";function Sk(e){const t=e[vk];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(Kt(r));return n}const Tm="sentry.source",Ek="sentry.sample_rate",bk="sentry.op",Ik="sentry.origin",wk=0,kk=1,Tk="sentry-",Rk=/^sentry-/;function Ck(e){const t=Ok(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(Rk)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function Ok(e){if(e&&(Ao(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Fp(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Fp(e)}function Fp(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const Ak=1;function xk(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Kt({parent_span_id:r?t:Hs(e).parent_span_id,span_id:r?lc():t,trace_id:n})}function jp(e){return"number"==typeof e?Vp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Vp(e.getTime()):wm()}function Vp(e){return e>9999999999?e/1e3:e}function Hs(e){if(Pk(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Mk(e)){const{attributes:r,startTime:o,name:s,endTime:i,parentSpanId:a,status:u}=e;return Kt({span_id:t,trace_id:n,data:r,description:s,parent_span_id:a,start_timestamp:jp(o),timestamp:jp(i)||void 0,status:Lk(u),op:r[bk],origin:r[Ik],_metrics_summary:Sk(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Mk(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function Pk(e){return"function"==typeof e.getSpanJSON}function Dk(e){const{traceFlags:t}=e.spanContext();return 1===t}function Lk(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const Nk="_sentryRootSpan";function Qc(e){return e[Nk]||e}function Rm(){const e=Yo(ri());return e.getActiveSpan?e.getActiveSpan():fc(Qr())}function Uk(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=un(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const Cm="production",Bk="_frozenDsc";function Fk(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=Kt({environment:n.environment||Cm,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Om(e){const t=un();if(!t)return{};const n=Qc(e),r=n[Bk];if(r)return r;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),i=s&&Ck(s);if(i)return i;const a=Fk(e.spanContext().traceId,t),u=Hs(n),c=u.data||{},l=c[Ek];null!=l&&(a.sample_rate=`${l}`);const d=c[Tm],p=u.description;return"url"!==d&&p&&(a.transaction=p),Uk()&&(a.sampled=String(Dk(n))),t.emit("createDsc",a,n),a}function $p(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;Vc&&vt.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 jk(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:u}=e;return`${a}://${u}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${i}`}function Vk(){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 En(e,t=100,n=1/0){try{return pc("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function pc(e,t,n=1/0,r=1/0,o=Vk()){const[s,i]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=$k(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(s(t))return"[Circular ~]";const c=t;if(c&&"function"==typeof c.toJSON)try{return pc("",c.toJSON(),u-1,r,o)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const p=rk(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(d>=r){l[e]="[MaxProperties ~]";break}const t=p[e];l[e]=pc(e,t,u-1,r,o),d++}return i(t),l}function $k(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(Xw(t))return"[VueViewModel]";if(Yw(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${Tn(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=Wk(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Wk(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function zk(e,t=[]){return[e,t]}function Hk(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function qk(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:jk(r)},...o&&{trace:Kt({...o})}}}function hc(e,t,n,r=0){return new In(((o,s)=>{const i=e[r];if(null===t||"function"!=typeof i)o(t);else{const a=i({...t},n);Vc&&i.id&&null===a&&vt.log(`Event processor "${i.id}" dropped event`),qc(a)?a.then((t=>hc(e,t,n,r+1).then(o))).then(null,s):hc(e,a,n,r+1).then(o).then(null,s)}}))}let co,Wp,lo;function Gk(e){const t=pt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return lo&&n.length===Wp||(Wp=n.length,lo=n.reduce(((n,r)=>{co||(co={});const o=co[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const s=o[e],i=s&&s.filename,a=t[r];if(i&&a){n[i]=a,co[r]=[i,a];break}}}return n}),{})),lo}function Kk(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;Qk(e,t),r&&Jk(e,r),Zk(e,n),Yk(e,o),Xk(e,s)}function zp(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:d,propagationContext:p,transactionName:f,span:h}=t;fo(e,"extra",n),fo(e,"tags",r),fo(e,"user",o),fo(e,"contexts",s),e.sdkProcessingMetadata=Qo(e.sdkProcessingMetadata,a,2),i&&(e.level=i),f&&(e.transactionName=f),h&&(e.span=h),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function fo(e,t,n){e[t]=Qo(e[t],n,1)}function Qk(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=t,u=Kt(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=Kt(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=Kt(o);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=Kt(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),i&&(e.level=i),a&&"transaction"!==e.type&&(e.transaction=a)}function Yk(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Xk(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Jk(e,t){e.contexts={trace:xk(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Om(t),...e.sdkProcessingMetadata};const n=Hs(Qc(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function Zk(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 eT(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,u={...t,event_id:t.event_id||n.event_id||wn(),timestamp:t.timestamp||Ko()},c=n.integrations||e.integrations.map((e=>e.name));tT(u,e),sT(u,c),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&nT(u,e.stackParser);const l=oT(r,n.captureContext);n.mechanism&&km(u,n.mechanism);const d=o?o.getEventProcessors():[],p=_k().getScopeData();if(s){zp(p,s.getScopeData())}if(l){zp(p,l.getScopeData())}const f=[...n.attachments||[],...p.attachments];f.length&&(n.attachments=f),Kk(u,p);return hc([...d,...p.eventProcessors],u,n).then((e=>(e&&rT(e),"number"==typeof i&&i>0?iT(e,i,a):e)))}function tT(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||Cm,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o),e.message&&(e.message=Uu(e.message,s));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=Uu(i.value,s));const a=e.request;a&&a.url&&(a.url=Uu(a.url,s))}function nT(e,t){const n=Gk(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function rT(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 sT(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function iT(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:En(e.data,t,n)}})))},...e.user&&{user:En(e.user,t,n)},...e.contexts&&{contexts:En(e.contexts,t,n)},...e.extra&&{extra:En(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=En(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:En(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=En(e.contexts.flags,3,n)),r}function oT(e,t){if(!t)return e;const n=e?e.clone():new lr;return n.update(t),n}function Yc(e,t){return Qr().captureException(e,void 0)}function aT(e,t){const n={captureContext:t};return Qr().captureMessage(e,void 0,n)}function uT(e,t){si().setContext(e,t)}function cT(e,t){si().setExtra(e,t)}function lT(e){si().addEventProcessor(e)}const dT=6e4;function fT(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?dT:r-t}function pT(e,t){return e[t]||e.all||0}function hT(e,t,n=Date.now()){return pT(e,t)>n}function mT(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,s]=e.split(":",5),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(o[e]=r+a):o[e]=r+a;else o.all=r+a}else i?o.all=r+fT(i,r):429===t&&(o.all=r+6e4);return o}function yT(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return gT(e,n)||_T(e,r)}function _T(e,t){return!!t&&Hp(e)===Hp(t)}function gT(e,t){return!!t&&e.includes(t.host)}function Hp(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const vT=100;function ST(e,t){const n=un(),r=si();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=vT}=n.getOptions();if(s<=0)return;const i={timestamp:Ko(),...e},a=o?$c((()=>o(i,t))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,s))}function ET(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const bT="Dedupe",IT=()=>{let e;return{name:bT,processEvent(t){if(t.type)return t;try{if(kT(t,e))return Vc&&vt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},wT=IT;function kT(e,t){return!!t&&!(!TT(e,t)&&!RT(e,t))}function TT(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!xm(e,t)||!Am(e,t))}function RT(e,t){const n=qp(t),r=qp(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&xm(e,t)&&Am(e,t))}function Am(e,t){let n=xp(e),r=xp(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],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function xm(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 qp(e){return e.exception&&e.exception.values&&e.exception.values[0]}function CT(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function OT(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function AT(){return!OT()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function Gp(){return typeof window<"u"&&(!AT()||xT())}function xT(){const e=pt.process;return!!e&&"renderer"===e.type}const po=pt;function MT(){const e=po.chrome,t=e&&e.app&&e.app.runtime,n="history"in po&&!!po.history.pushState&&!!po.history.replaceState;return!t&&n}function PT(e,t){return e??t()}function Io(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}const ks=pt;function DT(){setTimeout((()=>{}))}function zr(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(bm(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>zr(e,t)));return e.apply(this,r)}catch(e){throw DT(),gk((r=>{r.addEventProcessor((e=>(t.mechanism&&(uk(e),km(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),Yc(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}Em(n,e),zs(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const Mm=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,LT=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ii=(e,t,n,r)=>{let o,s;return i=>{t.value>=0&&(i||r)&&(s=t.value-(o||0),(s||void 0===o)&&(o=t.value,t.delta=s,t.rating=LT(t.value,n),e(t)))}},Me=pt,NT=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,Pm=(e=!0)=>{const t=Me.performance&&Me.performance.getEntriesByType&&Me.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Xc=()=>{const e=Pm();return e&&e.activationStart||0},oi=(e,t)=>{const n=Pm();let r="navigate";return n&&(Me.document&&Me.document.prerendering||Xc()>0?r="prerender":Me.document&&Me.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:NT(),navigationType:r}},dr=(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{}},ai=e=>{const t=t=>{("pagehide"===t.type||Me.document&&"hidden"===Me.document.visibilityState)&&e(t)};Me.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Xo=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Ps=-1;const UT=()=>"hidden"!==Me.document.visibilityState||Me.document.prerendering?1/0:0,xo=e=>{"hidden"===Me.document.visibilityState&&Ps>-1&&(Ps="visibilitychange"===e.type?e.timeStamp:0,FT())},BT=()=>{addEventListener("visibilitychange",xo,!0),addEventListener("prerenderingchange",xo,!0)},FT=()=>{removeEventListener("visibilitychange",xo,!0),removeEventListener("prerenderingchange",xo,!0)},Jc=()=>(Me.document&&Ps<0&&(Ps=UT(),BT()),{get firstHiddenTime(){return Ps}}),Jo=e=>{Me.document&&Me.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},jT=[1800,3e3],VT=(e,t={})=>{Jo((()=>{const n=Jc(),r=oi("FCP");let o;const s=dr("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-Xc(),0),r.entries.push(e),o(!0)))}))}));s&&(o=ii(e,r,jT,t.reportAllChanges))}))},$T=[.1,.25],WT=(e,t={})=>{VT(Xo((()=>{const n=oi("CLS",0);let r,o=0,s=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=s[0],n=s[s.length-1];o&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e])}})),o>n.value&&(n.value=o,n.entries=s,r())},a=dr("layout-shift",i);a&&(r=ii(e,n,$T,t.reportAllChanges),ai((()=>{i(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},zT=[100,300],HT=(e,t={})=>{Jo((()=>{const n=Jc(),r=oi("FID");let o;const s=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),o(!0))},i=e=>{e.forEach(s)},a=dr("first-input",i);o=ii(e,r,zT,t.reportAllChanges),a&&ai(Xo((()=>{i(a.takeRecords()),a.disconnect()})))}))};let Dm=0,Bu=1/0,ho=0;const qT=e=>{e.forEach((e=>{e.interactionId&&(Bu=Math.min(Bu,e.interactionId),ho=Math.max(ho,e.interactionId),Dm=ho?(ho-Bu)/7+1:0)}))};let mc;const GT=()=>mc?Dm:performance.interactionCount||0,KT=()=>{"interactionCount"in performance||mc||(mc=dr("event",qT,{type:"event",buffered:!0,durationThreshold:0}))},bn=[],Fu=new Map,QT=40;let YT=0;const XT=()=>GT()-YT,JT=()=>{const e=Math.min(bn.length-1,Math.floor(XT()/50));return bn[e]},ju=10,ZT=[],eR=e=>{if(ZT.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=bn[bn.length-1],n=Fu.get(e.interactionId);if(n||bn.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]};Fu.set(t.id,t),bn.push(t)}bn.sort(((e,t)=>t.latency-e.latency)),bn.length>10&&bn.splice(10).forEach((e=>Fu.delete(e.id)))}},Lm=e=>{const t=Me.requestIdleCallback||Me.setTimeout;let n=-1;return e=Xo(e),Me.document&&"hidden"===Me.document.visibilityState?e():(n=t(e),ai(e)),n},tR=[200,500],nR=(e,t={})=>{"PerformanceEventTiming"in Me&&"interactionId"in PerformanceEventTiming.prototype&&Jo((()=>{KT();const n=oi("INP");let r;const o=e=>{Lm((()=>{e.forEach(eR);const t=JT();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},s=dr("event",o,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=ii(e,n,tR,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),ai((()=>{o(s.takeRecords()),r(!0)})))}))},rR=[2500,4e3],Kp={},sR=(e,t={})=>{Jo((()=>{const n=Jc(),r=oi("LCP");let o;const s=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-Xc(),0),r.entries=[e],o())}))},i=dr("largest-contentful-paint",s);if(i){o=ii(e,r,rR,t.reportAllChanges);const n=Xo((()=>{Kp[r.id]||(s(i.takeRecords()),i.disconnect(),Kp[r.id]=!0,o(!0))}));["keydown","click"].forEach((e=>{Me.document&&addEventListener(e,(()=>Lm(n)),{once:!0,capture:!0})})),ai(n)}}))},Ds={},Mo={};let Nm,Um,Bm,Fm;function iR(e,t=!1){return Zo("cls",e,lR,Nm,t)}function oR(e,t=!1){return Zo("lcp",e,fR,Bm,t)}function aR(e){return Zo("fid",e,dR,Um)}function uR(e){return Zo("inp",e,pR,Fm)}function cR(e,t){return jm(e,t),Mo[e]||(hR(e),Mo[e]=!0),Vm(e,t)}function ui(e,t){const n=Ds[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){Mm&&vt.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Tn(r)}\nError:`,t)}}function lR(){return WT((e=>{ui("cls",{metric:e}),Nm=e}),{reportAllChanges:!0})}function dR(){return HT((e=>{ui("fid",{metric:e}),Um=e}))}function fR(){return sR((e=>{ui("lcp",{metric:e}),Bm=e}),{reportAllChanges:!0})}function pR(){return nR((e=>{ui("inp",{metric:e}),Fm=e}))}function Zo(e,t,n,r,o=!1){let s;return jm(e,t),Mo[e]||(s=n(),Mo[e]=!0),r&&t({metric:r}),Vm(e,t,o?s:void 0)}function hR(e){const t={};"event"===e&&(t.durationThreshold=0),dr(e,(t=>{ui(e,{entries:t})}),t)}function jm(e,t){Ds[e]=Ds[e]||[],Ds[e].push(t)}function Vm(e,t,n){return()=>{n&&n();const r=Ds[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}const mR=1e3;let Qp,yc,_c,mo;function yR(e){_m("dom",e),gm("dom",_R)}function _R(){if(!Me.document)return;const e=uc.bind(null,"dom"),t=Yp(e,!0);Me.document.addEventListener("click",t,!1),Me.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Me[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Vt(r,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){const r=Yp(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch{}return t.call(this,n,r,o)}})),Vt(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.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 gR(e){if(e.type!==yc)return!1;try{if(!e.target||e.target._sentryId!==_c)return!1}catch{}return!0}function vR(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function Yp(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=SR(n);if(vR(n.type,r))return;zs(n,"_sentryCaptured",!0),r&&!r._sentryId&&zs(r,"_sentryId",wn());const o="keypress"===n.type?"input":n.type;gR(n)||(e({event:n,name:o,global:t}),yc=n.type,_c=r?r._sentryId:void 0),clearTimeout(Qp),Qp=Me.setTimeout((()=>{_c=void 0,yc=void 0}),mR)}}function SR(e){try{return e.target}catch{return null}}function ER(e){const t="history";_m(t,e),gm(t,bR)}function bR(){if(!MT())return;const e=Me.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=mo,t=String(n);mo=t,uc("history",{from:e,to:t})}return e.apply(this,t)}}Me.onpopstate=function(...t){const n=Me.location.href,r=mo;if(mo=n,uc("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Vt(Me.history,"pushState",t),Vt(Me.history,"replaceState",t)}const Vu={};function IR(e){const t=Vu[e];if(t)return t;let n=Me[e];if(CT(n))return Vu[e]=n.bind(Me);const r=Me.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){Mm&&vt.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Vu[e]=n.bind(Me))}function Hr(...e){return IR("setTimeout")(...e)}const wR="__sentry_xhr_v3__",kR=["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"],TR="BrowserApiErrors",RR=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:TR,setupOnce(){t.setTimeout&&Vt(ks,"setTimeout",Xp),t.setInterval&&Vt(ks,"setInterval",Xp),t.requestAnimationFrame&&Vt(ks,"requestAnimationFrame",OR),t.XMLHttpRequest&&"XMLHttpRequest"in ks&&Vt(XMLHttpRequest.prototype,"send",AR);const e=t.eventTarget;e&&(Array.isArray(e)?e:kR).forEach(xR)}}},CR=RR;function Xp(e){return function(...t){const n=t[0];return t[0]=zr(n,{mechanism:{data:{function:Tn(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function OR(e){return function(t){return e.apply(this,[zr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Tn(e)},handled:!1,type:"instrument"}})])}}function AR(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Vt(n,e,(function(t){const n={mechanism:{data:{function:e,handler:Tn(t)},handled:!1,type:"instrument"}},r=bm(t);return r&&(n.mechanism.data.handler=Tn(r)),zr(t,n)}))})),e.apply(this,t)}}function xR(e){const t=ks[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Vt(n,"addEventListener",(function(t){return function(n,r,o){try{MR(r)&&(r.handleEvent=zr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Tn(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,zr(r,{mechanism:{data:{function:"addEventListener",handler:Tn(r),target:e},handled:!1,type:"instrument"}}),o])}})),Vt(n,"removeEventListener",(function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch{}return e.call(this,t,n,r)}})))}function MR(e){return"function"==typeof e.handleEvent}const $e=pt,Zc="sentryReplaySession",PR="replay_event",el="Unable to send Replay",DR=3e5,LR=9e5,NR=5e3,UR=5500,BR=6e4,FR=5e3,jR=3,Jp=15e4,yo=5e3,VR=3e3,$R=300,tl=2e7,WR=4999,zR=15e3,Zp=36e5;function gc(e,t){return e??t()}function qs(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}var nt;function HR(e){return e.nodeType===e.ELEMENT_NODE}function Ls(e){const t=qs([e,"optionalAccess",e=>e.host]);return qs([t,"optionalAccess",e=>e.shadowRoot])===e}function Ns(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function qR(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 GR(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 Po(e){try{const t=e.rules||e.cssRules;return t?qR(Array.from(t,$m).join("")):null}catch{return null}}function KR(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],s=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}function $m(e){let t;if(YR(e))try{t=Po(e.styleSheet)||GR(e)}catch{}else if(XR(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=KR(e)),n&&(t=QR(t)),n||r)return t}return t||e.cssText}function QR(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function YR(e){return"styleSheet"in e}function XR(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 Wm{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return gc(qs([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 JR(){return new Wm}function ea({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 Gs({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function qr(e){return e.toLowerCase()}function vc(e){return e.toUpperCase()}const eh="__rrweb_original__";function ZR(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 o=t.getImageData,s=eh in o?o[eh]:o;if(new Uint32Array(s.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 nl(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?qr(t):null}function Do(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function zm(e,t){let n;try{n=new URL(e,gc(t,(()=>window.location.href)))}catch{return null}return gc(qs([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const th={};function Hm(e){const t=th[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 o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch{}return th[e]=r.bind(window)}function Sc(...e){return Hm("setTimeout")(...e)}function qm(...e){return Hm("clearTimeout")(...e)}function Gm(e){try{return e.contentDocument}catch{}}let eC=1;const tC=new RegExp("[^a-z0-9-_:]"),Ks=-2;function rl(){return eC++}function nC(e){if(e instanceof HTMLFormElement)return"form";const t=qr(e.tagName);return tC.test(t)?"div":t}function rC(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let Pr,nh;const sC=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,iC=/^(?:[a-z+]+:)?\/\//i,oC=/^www\..*/i,aC=/^(data:)([^,]*),(.*)/i;function Lo(e,t){return(e||"").replace(sC,((e,n,r,o,s,i)=>{const a=r||s||i,u=n||o||"";if(!a)return e;if(iC.test(a)||oC.test(a))return`url(${u}${a}${u})`;if(aC.test(a))return`url(${u}${a}${u})`;if("/"===a[0])return`url(${u}${rC(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 uC=/^[^ \t\n\r\u000c]+/,cC=/^[, \t\n\r\u000c]+/;function lC(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(cC),!(n>=t.length);){let s=r(uC);if(","===s.slice(-1))s=Nr(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=Nr(e,s);let i=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}const rh=new WeakMap;function Nr(e,t){return t&&""!==t.trim()?ta(e,t):t}function dC(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function ta(e,t){let n=rh.get(e);if(n||(n=e.createElement("a"),rh.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Km(e,t,n,r,o,s){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?Nr(e,r):"srcset"===n?lC(e,r):"style"===n?Lo(r,ta(e)):"object"===t&&"data"===n?Nr(e,r):"function"==typeof s?s(n,r,o):r)}function Qm(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function fC(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 pC(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function ir(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ir(e.parentNode,t,n,r+1)}function Ur(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(pC(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function Gr(e,t,n,r,o,s){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(s){if(u=ir(i,Ur(r,o)),u<0)return!0;a=ir(i,Ur(t,n),u>=0?u:1/0)}else{if(a=ir(i,Ur(t,n)),a<0)return!1;u=ir(i,Ur(r,o),a>=0?a:1/0)}return a>=0?!(u>=0)||a<=u:!(u>=0)&&!!s}catch{}return!!s}function hC(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch{return}if("complete"!==o){const r=Sc((()=>{s||(t(),s=!0)}),n);return void e.addEventListener("load",(()=>{qm(r),s=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return Sc(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function mC(e,t,n){let r,o=!1;try{r=e.sheet}catch{return}if(r)return;const s=Sc((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{qm(s),o=!0,t()}))}function yC(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:S=!1}=t,k=_C(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:k};case e.ELEMENT_NODE:return vC(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:f,maskAttributeFn:u,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:S,rootId:k,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return gC(e,{doc:n,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:y,rootId:k});case e.CDATA_SECTION_NODE:return{type:nt.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:nt.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function _C(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function gC(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:u,maskInputFn:c,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||qs([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=Po(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Lo(p,ta(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");const y=Gr(e,r,s,o,i,n);if(!f&&!h&&!m&&p&&y&&(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(u.textarea||y)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p){p=Gs({isMasked:Gr(e,r,s,o,i,ea({type:null,tagName:d,maskInputOptions:u})),element:e,value:p,maskInputFn:c})}return{type:nt.Text,textContent:p||"",isStyle:f,rootId:l}}function vC(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:_,unmaskTextSelector:b}=t,S=fC(e,r,o,s),k=nC(e);let I={};const w=e.attributes.length;for(let t=0;t<w;t++){const r=e.attributes[t];r.name&&!Qm(k,r.name,r.value)&&(I[r.name]=Km(n,k,qr(r.name),r.value,e,u))}if("link"===k&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Po(t)),r&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=Lo(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Po(e.sheet);t&&(I._cssText=Lo(t,ta(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=nl(t),r=Do(t,vc(k),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Gr(t,g,_,v,b,ea({type:n,tagName:vc(k),maskInputOptions:a}));I.value=Gs({isMasked:e,element:t,value:r,maskInputFn:c})}o&&(I.checked=o)}if("option"===k&&(e.selected&&!a.select?I.selected=!0:delete I.selected),"canvas"===k&&p)if("2d"===e.__context)ZR(e)||(I.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)&&(I.rr_dataURL=t)}if("img"===k&&d){Pr||(Pr=n.createElement("canvas"),nh=Pr.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,s=()=>{t.removeEventListener("load",s);try{Pr.width=t.naturalWidth,Pr.height=t.naturalHeight,nh.drawImage(t,0,0),I.rr_dataURL=Pr.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?I.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}if(("audio"===k||"video"===k)&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),S){const{width:t,height:n}=e.getBoundingClientRect();I={class:I.class,rr_width:`${t}px`,rr_height:`${n}px`}}let A;"iframe"===k&&!f(I.src)&&(!S&&!Gm(e)&&(I.rr_src=I.src),delete I.src);try{customElements.get(k)&&(A=!0)}catch{}return{type:nt.Element,tagName:k,attributes:I,childNodes:[],isSVG:dC(e)||void 0,needBlock:S,rootId:m,isCustom:A}}function Ve(e){return null==e?"":e.toLowerCase()}function SC(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"===zm(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Ve(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ve(e.attributes.name)||"icon"===Ve(e.attributes.rel)||"apple-touch-icon"===Ve(e.attributes.rel)||"shortcut icon"===Ve(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Ve(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ve(e.attributes.property).match(/^(og|twitter|fb):/)||Ve(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ve(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Ve(e.attributes.name)||"googlebot"===Ve(e.attributes.name)||"bingbot"===Ve(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Ve(e.attributes.name)||"generator"===Ve(e.attributes.name)||"framework"===Ve(e.attributes.name)||"publisher"===Ve(e.attributes.name)||"progid"===Ve(e.attributes.name)||Ve(e.attributes.property).match(/^article:/)||Ve(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Ve(e.attributes.name)||"yandex-verification"===Ve(e.attributes.name)||"csrf-token"===Ve(e.attributes.name)||"p:domain_verify"===Ve(e.attributes.name)||"verify-v1"===Ve(e.attributes.name)||"verification"===Ve(e.attributes.name)||"shopify-checkout-api-token"===Ve(e.attributes.name)))return!0}}return!1}function Br(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:w=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:C=!1}=t;let{preserveWhiteSpace:O=!0}=t;const x=yC(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:C});if(!x)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):SC(x,v)||!O&&x.type===nt.Text&&!x.isStyle&&!x.textContent.replace(/^\s+|\s+$/gm,"").length?-2:rl();const M=Object.assign(x,{id:R});if(r.add(e,M),-2===R)return null;k&&k(e);let P=!p;if(M.type===nt.Element){P=P&&!M.needBlock,delete M.needBlock;const t=e.shadowRoot;t&&Ns(t)&&(M.isShadowHost=!0)}if((M.type===nt.Document||M.type===nt.Element)&&P){v.headWhitespace&&M.type===nt.Element&&"head"===M.tagName&&(O=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:w,onStylesheetLoad:A,stylesheetLoadTimeout:E,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=Br(n,t);e&&M.childNodes.push(e)}if(HR(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Br(n,t);r&&(Ns(e.shadowRoot)&&(r.isShadow=!0),M.childNodes.push(r))}}return e.parentNode&&Ls(e.parentNode)&&Ns(e.parentNode)&&(M.isShadow=!0),M.type===nt.Element&&"iframe"===M.tagName&&hC(e,(()=>{const t=Gm(e);if(t&&I){const n=Br(t,{doc:t,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:w,onStylesheetLoad:A,stylesheetLoadTimeout:E,keepIframeSrcFn:T});n&&I(e,n)}}),w),M.type===nt.Element&&"link"===M.tagName&&"string"==typeof M.attributes.rel&&("stylesheet"===M.attributes.rel||"preload"===M.attributes.rel&&"string"==typeof M.attributes.href&&"css"===zm(M.attributes.href))&&mC(e,(()=>{if(A){const t=Br(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:w,onStylesheetLoad:A,stylesheetLoadTimeout:E,keepIframeSrcFn:T});t&&A(e,t)}}),E),M}function EC(e,t){const{mirror:n=new Wm,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:I,onStylesheetLoad:w,stylesheetLoadTimeout:A,keepIframeSrcFn:E=()=>!1}=t;return Br(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:_,inlineImages:p,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:I,onStylesheetLoad:w,stylesheetLoadTimeout:A,keepIframeSrcFn:E,newlyAddedElement:!1})}function Bn(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function _t(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Dr="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 sh={map:{},getId:()=>(console.error(Dr),-1),getNode:()=>(console.error(Dr),null),removeNodeFromMap(){console.error(Dr)},has:()=>(console.error(Dr),!1),reset(){console.error(Dr)}};function Qs(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();!o&&!1===n.leading&&(o=i);const a=t-(i-o),u=this;a<=0||a>t?(r&&(CC(r),r=null),o=i,e.apply(u,s)):!r&&!1!==n.trailing&&(r=na((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(u,s)}),a))}}function Ym(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){na((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>Ym(e,t,s||{},!0)}function sl(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(sh=new Proxy(sh,{get:(e,t,n)=>("map"===t&&console.error(Dr),Reflect.get(e,t,n))}));let No=Date.now;function Xm(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 Jm(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Zm(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ey(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function At(e,t,n,r,o){if(!e)return!1;const s=ey(e);if(!s)return!1;const i=Ur(t,n);if(!o){const e=r&&s.matches(r);return i(s)&&!e}const a=ir(s,i);let u=-1;return!(a<0)&&(r&&(u=ir(s,Ur(null,r))),a>-1&&u<0||a<u)}function bC(e,t){return-1!==t.getId(e)}function $u(e,t){return-2===t.getId(e)}function ty(e,t){if(Ls(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||ty(e.parentNode,t))}function Ec(e){return!!e.changedTouches}function IC(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 ny(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function ry(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function bc(e){return!!Bn([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(No=()=>(new Date).getTime());class wC{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return PT(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 sy(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 kC(e){let t,n=e;for(;t=sy(n);)n=t;return n}function TC(e){const t=e.ownerDocument;if(!t)return!1;const n=kC(e);return t.contains(n)}function iy(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||TC(e))}const ih={};function il(e){const t=ih[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 o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch{}return ih[e]=r.bind(window)}function RC(...e){return il("requestAnimationFrame")(...e)}function na(...e){return il("setTimeout")(...e)}function CC(...e){return il("clearTimeout")(...e)}var oh,ah,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||{}),ge=(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))(ge||{}),yt=(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))(yt||{}),vn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(vn||{});function ol(e){try{return e.contentDocument}catch{}}function OC(e){try{return e.contentWindow}catch{}}function AC(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function uh(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"}(oh||(oh={})),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"}(ah||(ah={}));class xC{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=AC([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&uh(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&&uh(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 ch=(e,t)=>`${e}@${t}`;class MC{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 xC,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!iy(o))return;const s=Ls(o.parentNode)?this.mirror.getId(sy(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=Br(o,{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=>{ny(e,this.mirror)&&!At(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),ry(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),bc(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{At(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:s,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)lh(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)!dh(this.droppedSet,e)&&!lh(this.removes,e,this.mirror)||dh(this.movedSet,e)?o(e):this.droppedSet.add(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}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}s=e.previous,n.removeNode(e.value),o(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(!$u(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!At(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Gr(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ey(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=nl(t),o=t.tagName;r=Do(t,o,n);const s=ea({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=Gs({isMasked:Gr(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(At(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(ol(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Qm(t.tagName,n)&&(o.attributes[n]=Km(this.doc,qr(t.tagName),qr(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),s=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?r:[r,s]:o._unchangedStyles[e]=[r,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(At(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=Ls(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);At(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||$u(t,this.mirror)||!bC(t,this.mirror)||(this.addedSet.has(t)?(Ic(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||ty(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ch(n,r)]?Ic(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Ls(e.target)||!Ns(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($u(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[ch(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);At(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),bc(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 Ic(e,t){e.delete(t),t.childNodes.forEach((t=>Ic(e,t)))}function lh(e,t,n){return 0!==e.length&&PC(e,t,n)}function PC(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 dh(e,t){return 0!==e.size&&oy(e,t)}function oy(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||oy(e,n))}let Us;function DC(e){Us=e}function LC(){Us=void 0}const Pe=e=>Us?(...t)=>{try{return e(...t)}catch(e){if(Us&&!0===Us(e))return()=>{};throw e}}:e;function Gt(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}const Fr=[];function ci(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 ay(e,t){const n=new MC;Fr.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Gt([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const s=new r(Pe((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function NC({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const u=Qs(Pe((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),s),c=Pe(Qs(Pe((e=>{const t=ci(e),{clientX:n,clientY:o}=Ec(e)?e.changedTouches[0]:e;i||(i=No()),a.push({x:n,y:o,id:r.getId(t),timeOffset:No()-i}),u(typeof DragEvent<"u"&&e instanceof DragEvent?ge.Drag:e instanceof MouseEvent?ge.MouseMove:ge.TouchMove)})),o,{trailing:!1})),l=[_t("mousemove",c,n),_t("touchmove",c,n),_t("drag",c,n)];return Pe((()=>{l.forEach((e=>e()))}))}function UC({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,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(yt).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=qr(i);const l=(t=>i=>{const a=ci(i);if(At(a,r,o,s,!0))return;let u=null,l=t;if("pointerType"in i){switch(i.pointerType){case"mouse":u=vn.Mouse;break;case"touch":u=vn.Touch;break;case"pen":u=vn.Pen}u===vn.Touch?yt[t]===yt.MouseDown?l="TouchStart":yt[t]===yt.MouseUp&&(l="TouchEnd"):vn.Pen}else Ec(i)&&(u=vn.Touch);null!==u?(c=u,(l.startsWith("Touch")&&u===vn.Touch||l.startsWith("Mouse")&&u===vn.Mouse)&&(u=null)):yt[t]===yt.Click&&(u=c,c=null);const d=Ec(i)?i.changedTouches[0]:i;if(!d)return;const p=n.getId(a),{clientX:f,clientY:h}=d;Pe(e)({type:yt[l],id:p,x:f,y:h,...null!==u&&{pointerType:u}})})(i);if(window.PointerEvent)switch(yt[i]){case yt.MouseDown:case yt.MouseUp:a=a.replace("mouse","pointer");break;case yt.TouchStart:case yt.TouchEnd:return}u.push(_t(a,l,t))})),Pe((()=>{u.forEach((e=>e()))}))}function uy({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){return _t("scroll",Pe(Qs(Pe((i=>{const a=ci(i);if(!a||At(a,r,o,s,!0))return;const u=n.getId(a);if(a===t&&t.defaultView){const n=Xm(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 BC({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return _t("resize",Pe(Qs(Pe((()=>{const t=Jm(),o=Zm();(n!==t||r!==o)&&(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}const FC=["INPUT","TEXTAREA","SELECT"],fh=new WeakMap;function jC({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function y(e){let n=ci(e);const l=e.isTrusted,y=n&&vc(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||FC.indexOf(y)<0||At(n,r,o,s,!0))return;const v=n;if(v.classList.contains(i)||a&&v.matches(a))return;const _=nl(n);let b=Do(v,y,_),S=!1;const k=ea({maskInputOptions:u,tagName:y,type:_}),I=Gr(n,p,h,f,m,k);("radio"===_||"checkbox"===_)&&(S=n.checked),b=Gs({isMasked:I,element:n,value:b,maskInputFn:c}),g(n,d?{text:b,isChecked:S,userTriggered:l}:{text:b,isChecked:S});const w=n.name;"radio"===_&&w&&S&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach((e=>{if(e!==n){const t=Gs({isMasked:I,element:e,value:Do(e,y,_),maskInputFn:c});g(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function g(t,r){const o=fh.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){fh.set(t,r);const o=n.getId(t);Pe(e)({...r,id:o})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>_t(e,Pe(y),t))),_=t.defaultView;if(!_)return()=>{v.forEach((e=>e()))};const b=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),S=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(...S.map((e=>Ym(e[0],e[1],{set(){Pe(y)({target:this,isTrusted:!1})}},!1,_)))),Pe((()=>{v.forEach((e=>e()))}))}function Uo(e){return function(e,t){if(_o("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||_o("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||_o("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||_o("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 Fn(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function VC({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Pe(((r,o,s)=>{const[i,a]=s,{id:u,styleId:c}=Fn(o,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:i,index:a}]}),r.apply(o,s)}))});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:Pe(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=Fn(o,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:i}]}),r.apply(o,s)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Pe(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=Fn(o,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replace:i}),r.apply(o,s)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Pe(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=Fn(o,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replaceSync:i}),r.apply(o,s)}))}));const u={};go("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(go("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),go("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),go("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach((([r,o])=>{c[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[r].insertRule,{apply:Pe(((r,o,s)=>{const[i,a]=s,{id:u,styleId:c}=Fn(o.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:i,index:[...Uo(o),a||0]}]}),r.apply(o,s)}))}),o.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:Pe(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=Fn(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:[...Uo(o),i]}]}),r.apply(o,s)}))})})),Pe((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,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 cy({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?Gt([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Gt([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=Gt([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Gt([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return Gt([s,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Gt([s,"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}}),Pe((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))):()=>{}}function $C({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Pe(((o,i,a)=>{const[u,c,l]=a;if(n.has(u))return s.apply(i,[u,c,l]);const{id:d,styleId:p}=Fn(Gt([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:u,value:c,priority:l},index:Uo(i.parentRule)}),o.apply(i,a)}))});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Pe(((o,s,a)=>{const[u]=a;if(n.has(u))return i.apply(s,[u]);const{id:c,styleId:l}=Fn(Gt([s,"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:Uo(s.parentRule)}),o.apply(s,a)}))}),Pe((()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i}))}function WC({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=Pe((i=>Qs(Pe((s=>{const a=ci(s);if(!a||At(a,t,n,r,!0))return;const{currentTime:u,volume:c,muted:l,playbackRate:d}=a;e({type:i,id:o.getId(a),currentTime:u,volume:c,muted:l,playbackRate:d})})),s.media||500))),u=[_t("play",a(0),i),_t("pause",a(1),i),_t("seeked",a(2),i),_t("volumechange",a(3),i),_t("ratechange",a(4),i)];return Pe((()=>{u.forEach((e=>e()))}))}function zC({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return o.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=sl(t.fonts,"add",(function(t){return function(n){return na(Pe((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=s})),r.push(i),Pe((()=>{r.forEach((e=>e()))}))}function HC(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e;let a=!0;const u=Pe((()=>{const e=t.getSelection();if(!e||a&&Gt([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:d}=i;At(a,r,o,s,!0)||At(l,r,o,s,!0)||u.push({start:n.getId(a),startOffset:c,end:n.getId(l),endOffset:d})}i({ranges:u})}));return u(),_t("selectionchange",u)}function qC({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?sl(n.customElements,"define",(function(e){return function(n,r,o){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,o])}})):()=>{}}function GC(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=ay(e,e.doc));const o=NC(e),s=UC(e),i=uy(e),a=BC(e,{win:n}),u=jC(e),c=WC(e);let l=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(l=VC(e,{win:n}),d=cy(e,e.doc),p=$C(e,{win:n}),e.collectFonts&&(f=zC(e)));const h=HC(e),m=qC(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return Pe((()=>{Fr.forEach((e=>e.reset())),Gt([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),o(),s(),i(),a(),u(),c(),l(),d(),p(),f(),h(),m(),y.forEach((e=>e()))}))}function _o(e){return typeof window[e]<"u"}function go(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class wc{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e);let i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),s.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 ph(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}class KC{constructor(){this.crossOriginIframeMirror=new wc(rl),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class QC{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new wc(rl),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new wc(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}),ph([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=ol(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:ge.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 ge.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 ge.Drag:case ge.TouchMove:case ge.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case ge.ViewportResize:return!1;case ge.MediaInteraction:case ge.MouseInteraction:case ge.Scroll:case ge.CanvasMutation:case ge.Input:return this.replaceIds(t.data,e,["id"]),t;case ge.StyleSheetRule:case ge.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ge.Font:return t;case ge.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case ge.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),ph([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 o of r)!Array.isArray(t[o])&&"number"!=typeof t[o]||(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));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 YC{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class XC{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(!Ns(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=ay({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(uy({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),na((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(cy({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=ol(e),n=OC(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(sl(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&iy(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class hh{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class JC{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new wC,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:$m(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 ZC{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,RC((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Xe,Bo;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Io([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 qt=JR();function kn(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,maxCanvasSize:S=null,packFn:k,sampling:I={},dataURLOptions:w={},mousemoveWait:A,recordDOM:E=!0,recordCanvas:T=!1,recordCrossOriginIframes:C=!1,recordAfter:O=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:x=!1,collectFonts:R=!1,inlineImages:M=!1,plugins:P,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:q=new Set([]),errorHandler:U,onMutation:N,getCanvasManager:L}=e;DC(U);const j=!C||window.parent===window;let B=!1;if(!j)try{window.parent.document&&(B=!1)}catch{B=!0}if(j&&!t)throw new Error("emit function is required");if(!j&&!B)return()=>{};void 0!==A&&void 0===I.mousemove&&(I.mousemove=A),qt.reset();const F=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},V=!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||{};IC();let $,z=0;const W=e=>{for(const t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!B&&(e=k(e)),e};Xe=(e,o)=>{const s=e;if(s.timestamp=No(),Io([Fr,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&s.type!==we.FullSnapshot&&!(s.type===we.IncrementalSnapshot&&s.data.source===ge.Mutation)&&Fr.forEach((e=>e.unfreeze())),j)Io([t,"optionalCall",e=>e(W(s),o)]);else if(B){const e={type:"rrweb",event:W(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(s.type===we.FullSnapshot)$=s,z=0;else if(s.type===we.IncrementalSnapshot){if(s.data.source===ge.Mutation&&s.data.isAttachIframe)return;z++;const e=r&&z>=r,t=n&&$&&s.timestamp-$.timestamp>n;(e||t)&&ee(!0)}};const H=e=>{Xe({type:we.IncrementalSnapshot,data:{source:ge.Mutation,...e}})},G=e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.Scroll,...e}}),K=e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.CanvasMutation,...e}}),Q=new JC({mutationCb:H,adoptedStyleSheetCb:e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new KC:new QC({mirror:qt,mutationCb:H,stylesheetManager:Q,recordCrossOriginIframes:C,wrappedEmit:Xe});for(const e of P||[])e.getMirror&&e.getMirror({nodeMirror:qt,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Y=new ZC,J=tO(L,{mirror:qt,win:window,mutationCb:e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.CanvasMutation,...e}}),recordCanvas:T,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:S,sampling:I.canvas,dataURLOptions:w,errorHandler:U}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new YC:new XC({mutationCb:H,scrollCb:G,bypassOptions:{onMutation:N,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:F,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:_,recordCanvas:T,inlineImages:M,sampling:I,slimDOMOptions:V,iframeManager:X,stylesheetManager:Q,canvasManager:J,keepIframeSrcFn:D,processedNodeManager:Y},mirror:qt}),ee=(e=!1)=>{if(!E)return;Xe({type:we.Meta,data:{href:window.location.href,width:Zm(),height:Jm()}},e),Q.reset(),Z.init(),Fr.forEach((e=>e.lock()));const t=EC(document,{mirror:qt,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:F,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,slimDOM:V,dataURLOptions:w,recordCanvas:T,inlineImages:M,onSerialize:e=>{ny(e,qt)&&X.addIframe(e),ry(e,qt)&&Q.trackLinkElement(e),bc(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),e.contentWindow&&J.addWindow(e.contentWindow),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},keepIframeSrcFn:D});if(!t)return console.warn("Failed to snapshot the document");Xe({type:we.FullSnapshot,data:{node:t,initialOffset:Xm(window)}}),Fr.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,qt.getId(document))};Bo=ee;try{const e=[],t=e=>Pe(GC)({onMutation:N,mutationCb:H,mousemoveCb:(e,t)=>Xe({type:we.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.ViewportResize,...e}}),inputCb:e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.Input,...e}}),mediaInteractionCb:e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.MediaInteraction,...e}}),styleSheetRuleCb:e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.StyleSheetRule,...e}}),styleDeclarationCb:e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>Xe({type:we.IncrementalSnapshot,data:{source:ge.Font,...e}}),selectionCb:e=>{Xe({type:we.IncrementalSnapshot,data:{source:ge.Selection,...e}})},customElementCb:e=>{Xe({type:we.IncrementalSnapshot,data:{source:ge.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:u,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:F,inlineStylesheet:h,sampling:I,recordDOM:E,recordCanvas:T,inlineImages:M,userTriggeredOnInput:x,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:D,blockSelector:s,unblockSelector:i,slimDOMOptions:V,dataURLOptions:w,mirror:qt,iframeManager:X,stylesheetManager:Q,shadowDomManager:Z,processedNodeManager:Y,canvasManager:J,ignoreCSSAttributes:q,plugins:Io([P,"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=>Xe({type:we.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});X.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(_t("DOMContentLoaded",(()=>{Xe({type:we.DomContentLoaded,data:{}}),"DOMContentLoaded"===O&&n()}))),e.push(_t("load",(()=>{Xe({type:we.Load,data:{}}),"load"===O&&n()}),window))),()=>{e.forEach((e=>e())),Y.destroy(),Bo=void 0,LC()}}catch(e){console.warn(e)}}function eO(e){if(!Bo)throw new Error("please take full snapshot after start recording");Bo(e)}function tO(e,t){try{return e?e(t):new hh}catch{return console.warn("Unable to initialize CanvasManager"),new hh}}kn.mirror=qt,kn.takeFullSnapshot=eO;const nO=3,rO=5;function al(e){return e>9999999999?e:1e3*e}function Wu(e){return e>9999999999?e/1e3:e}function li(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:En(t,10,1e3)}}),"console"===t.category))))}const sO="button,a";function ly(e){return e.closest(sO)||e}function dy(e){const t=fy(e);return t&&t instanceof Element?ly(t):t}function fy(e){return iO(e)?e.target:e}function iO(e){return"object"==typeof e&&!!e&&"target"in e}let jn;function oO(e){return jn||(jn=[],aO()),jn.push(e),()=>{const t=jn?jn.indexOf(e):-1;t>-1&&jn.splice(t,1)}}function aO(){Vt($e,"open",(function(e){return function(...t){if(jn)try{jn.forEach((e=>e()))}catch{}return e.apply($e,t)}}))}const uO=new Set([ge.Mutation,ge.StyleSheetRule,ge.StyleDeclaration,ge.AdoptedStyleSheet,ge.CanvasMutation,ge.Selection,ge.MediaInteraction]);function cO(e,t,n){e.handleClick(t,n)}class lO{constructor(e,t,n=li){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=oO((()=>{this._lastMutation=mh()}));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(fO(t,this._ignoreSelector)||!pO(e))return;const n={timestamp:Wu(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=Wu(e)}registerScroll(e=Date.now()){this._lastScroll=Wu(e)}registerClick(e){const t=ly(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=mh();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,o=!n&&!r,{clickCount:s,clickBreadcrumb:i}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={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:s||1}};this._addBreadcrumbEvent(t,o)}else if(s>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:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Hr((()=>this._checkClicks()),1e3)}}const dO=["A","BUTTON","INPUT"];function fO(e,t){return!!(!dO.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 pO(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function mh(){return Date.now()/1e3}function hO(e,t){try{if(!mO(t))return;const{source:n}=t.data;if(uO.has(n)&&e.registerMutation(t.timestamp),n===ge.Scroll&&e.registerScroll(t.timestamp),yO(t)){const{type:n,id:r}=t.data,o=kn.mirror.getNode(r);o instanceof HTMLElement&&n===yt.Click&&e.registerClick(o)}}catch{}}function mO(e){return 3===e.type}function yO(e){return e.data.source===ge.MouseInteraction}function on(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Fo;!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"}(Fo||(Fo={}));const _O=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function gO(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(_O.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const vO=e=>t=>{if(!e.isEnabled())return;const n=SO(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&cO(e.clickDetector,n,dy(t.event)),li(e,n)};function py(e,t){const n=kn.mirror.getId(e),r=n&&kn.mirror.getNode(n),o=r&&kn.mirror.getMeta(r),s=o&&bO(o)?o:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map((e=>e.type===Fo.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:gO(s.attributes)}}:{}}}function SO(e){const{target:t,message:n}=EO(e);return on({category:`ui.${e.name}`,...py(t,n)})}function EO(e){const t="click"===e.name;let n,r=null;try{r=t?dy(e.event):fy(e.event),n=Gc(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function bO(e){return e.type===Fo.Element}function IO(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=wO(t);n&&li(e,n)}function wO(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=e;if(!i||kO(i)||!s)return null;const a=t||r||o,u=1===s.length;if(!a&&u)return null;const c=Gc(i,{maxStringLength:200})||"<unknown>";return on({category:"ui.keyDown",message:c,data:{...py(i,c).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}function kO(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const TO={resource:xO,paint:OO,navigation:AO};function vo(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function RO(e){return e.map(CO).filter(Boolean)}function CO(e){const t=TO[e.entryType];return t?t(e):null}function Kr(e){return((ok||$e.performance.timeOrigin)+e)/1e3}function OO(e){const{duration:t,entryType:n,name:r,startTime:o}=e,s=Kr(o);return{type:n,name:r,start:s,end:s+t,data:void 0}}function AO(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===o?null:{type:`${t}.${m}`,start:Kr(f),end:Kr(s),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:d,domComplete:s,redirectCount:p}}}function xO(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:u,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Kr(s),end:Kr(o),name:r,data:{size:c,statusCode:u,decodedBodySize:i,encodedBodySize:a}}}function MO(e){const t=e.entries[e.entries.length-1];return ra(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function PO(e){return void 0!==e.sources}function DO(e){const t=[],n=[];for(const r of e.entries)if(PO(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=kn.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return ra(e,"cumulative-layout-shift",n,t)}function LO(e){const t=e.entries[e.entries.length-1];return ra(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function NO(e){const t=e.entries[e.entries.length-1];return ra(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function ra(e,t,n,r){const o=e.value,s=e.rating,i=Kr(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map((e=>kn.mirror.getId(e))):void 0,attributions:r}}}function UO(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(cR(e,n))})),r.push(oR(vo(MO,e)),iR(vo(DO,e)),aR(vo(LO,e)),uR(vo(NO,e))),()=>{r.forEach((e=>e()))}}const me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,BO='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 FO(){const e=new Blob([BO]);return URL.createObjectURL(e)}const yh=["info","warn","error","log"],wo="[Replay] ";function zu(e,t="info"){ST({category:"console",data:{logger:"replay"},level:t,message:`${wo}${e}`},{level:t})}function jO(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return me?(yh.forEach((e=>{n[e]=(...n)=>{vt[e](wo,...n),t&&zu(n.join(""),ET(e))}})),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),vt.error(wo,r),e?Yc(r):t&&zu(r,"error")},n.infoTick=(...e)=>{vt.info(wo,...e),t&&setTimeout((()=>zu(e[0])),0)}):yh.forEach((e=>{n[e]=()=>{}})),n}const _e=jO();class ul extends Error{constructor(){super(`Event buffer exceeded maximum size of ${tl}.`)}}class hy{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>tl)throw new ul;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?al(e):null}}class VO{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&&_e.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const s=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",s),!i.success)return me&&_e.error("Error in compression worker: ",i.response),void o(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class $O{constructor(e){this._worker=new VO(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=al(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>tl?Promise.reject(new ul):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&&_e.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 WO{constructor(e){this._fallback=new hy,this._compression=new $O(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&&_e.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&&_e.exception(e,"Failed to add events when switching buffers.")}}}function zO({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=HO(t);if(e)return e}return me&&_e.info("Using simple buffer"),new hy}function HO(e){try{const t=e||qO();if(!t)return;me&&_e.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new WO(n)}catch(e){me&&_e.exception(e,"Failed to create compression worker")}}function qO(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?FO():""}function cl(){try{return"sessionStorage"in $e&&!!$e.sessionStorage}catch{return!1}}function GO(e){KO(),e.session=void 0}function KO(){if(cl())try{$e.sessionStorage.removeItem(Zc)}catch{}}function my(e){return void 0!==e&&Math.random()<e}function yy(e){const t=Date.now();return{id:e.id||wn(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function ll(e){if(cl())try{$e.sessionStorage.setItem(Zc,JSON.stringify(e))}catch{}}function QO(e,t){return my(e)?"session":!!t&&"buffer"}function _h({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=yy({sampled:QO(e,t),previousSessionId:r});return n&&ll(o),o}function YO(){if(!cl())return null;try{const e=$e.sessionStorage.getItem(Zc);if(!e)return null;const t=JSON.parse(e);return me&&_e.infoTick("Loading existing session"),yy(t)}catch{return null}}function kc(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function _y(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return kc(e.started,t,r)||kc(e.lastActivity,n,r)}function gy(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!_y(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function Hu({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&YO();return o?gy(o,{sessionIdleExpire:e,maxReplayDuration:t})?(me&&_e.infoTick("Session in sessionStorage is expired, creating new one..."),_h(r,{previousSessionId:o.id})):o:(me&&_e.infoTick("Creating new session"),_h(r,{previousSessionId:n}))}function XO(e){return e.type===we.Custom}function dl(e,t,n){return!!Sy(e,t)&&(vy(e,t,n),!0)}function JO(e,t,n){return Sy(e,t)?vy(e,t,n):Promise.resolve(null)}async function vy(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=ZO(t,e.getOptions().beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(t){const n=t&&t instanceof ul,s=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:s});const i=un();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Sy(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=al(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(me&&_e.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function ZO(e,t){try{if("function"==typeof t&&XO(e))return t(e)}catch(e){return me&&_e.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function fl(e){return!e.type}function Tc(e){return"transaction"===e.type}function eA(e){return"replay_event"===e.type}function gh(e){return"feedback"===e.type}function tA(e){return(t,n)=>{if(!e.isEnabled()||!fl(t)&&!Tc(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Tc(t))return void nA(e,t);rA(e,t)}}}function nA(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 rA(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)||Hr((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function sA(e){return t=>{!e.isEnabled()||!fl(t)||iA(e,t)}}function iA(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))){li(e,on({category:"replay.hydrate-error",data:{url:ek()}}))}}function oA(e){const t=un();t&&t.on("beforeAddBreadcrumb",(t=>aA(e,t)))}function aA(e,t){if(!e.isEnabled()||!Ey(t))return;const n=uA(t);n&&li(e,n)}function uA(e){return!Ey(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?cA(e):on(e)}function cA(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return on(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>yo?(n=!0,`${e.slice(0,yo)}…`):e;if("object"==typeof e)try{const t=En(e,7);return JSON.stringify(t).length>yo?(n=!0,`${JSON.stringify(t,null,2).slice(0,yo)}…`):t}catch{}return e}));return on({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Ey(e){return!!e.category}function lA(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function by(){const e=Qr().getPropagationContext().dsc;e&&delete e.replay_id;const t=Rm();if(t){delete Om(t).replay_id}}function dA(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 fA(e,t){return!("buffer"!==e.recordingMode||t.message===el||!t.exception||t.type)&&my(e.getOptions().errorSampleRate)}function pA(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:eA(t)?(delete t.breadcrumbs,t):fl(t)||Tc(t)||gh(t)?e.checkAndHandleExpiredSession()?gh(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),dA(e,t),t):lA(t,n)&&!e.getOptions()._experiments.captureExceptions?(me&&_e.log("Ignoring error from rrweb internals",t),null):((fA(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(by(),t):t),{id:"Replay"})}function sa(e,t){return t.map((({type:t,start:n,end:r,name:o,data:s})=>{const i=e.throttledAddEvent({type:we.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof i?Promise.resolve(null):i}))}function hA(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 mA(e){return t=>{if(!e.isEnabled())return;const n=hA(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(sa(e,[n]),!1))))}}function yA(e,t){return(!me||!e.getOptions()._experiments.traceInternals)&&yT(t,un())}function Iy(e,t){e.isEnabled()&&null!==t&&(yA(e,t.name)||e.addUpdate((()=>(sa(e,[t]),!0))))}function ia(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=Ry(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function wy(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ky(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Ry(e)];if(!e)return[void 0]}catch(t){return me&&_e.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return me&&_e.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function jo(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 Ty(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:Kt({method:s,statusCode:i,request:a,response:u})}}function Ys(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function $n(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:o,warnings:s}=_A(n);return r.body=o,s&&s.length>0&&(r._meta={warnings:s}),r}function Rc(e,t){return Object.entries(e).reduce(((n,[r,o])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=o),n}),{})}function Ry(e){return new URLSearchParams(e).toString()}function _A(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>Jp,n=gA(e);if(t){const t=e.slice(0,Jp);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 gA(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function Vo(e,t){return nk(vA(e),t)}function vA(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 SA(e,t,n){try{const r=Ty("resource.fetch",await bA(e,t,n));Iy(n.replay,r)}catch(e){me&&_e.exception(e,"Failed to capture fetch breadcrumb")}}function EA(e,t){const{input:n,response:r}=t,o=ia(n?Cy(n):void 0),s=r?wy(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}async function bA(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=t,{url:i,method:a,status_code:u=0,request_body_size:c,response_body_size:l}=e.data,d=Vo(i,n.networkDetailAllowUrls)&&!Vo(i,n.networkDetailDenyUrls);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:u,request:d?IA(n,t.input,c):Ys(c),response:await wA(d,n,t.response,l)}}function IA({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?RA(n,t):{};if(!e)return $n(o,r,void 0);const s=Cy(n),[i,a]=ky(s),u=$n(o,r,i);return a?jo(u,a):u}async function wA(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return Ys(o);const s=r?Oy(r.headers,n):{};if(!r||!t&&void 0!==o)return $n(s,o,void 0);const[i,a]=await TA(r),u=kA(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:s});return a?jo(u,a):u}function kA(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const s=e&&e.length&&void 0===n?ia(e):n;return r?$n(o,s,t?e:void 0):Ys(s)}catch(e){return me&&_e.exception(e,"Failed to serialize response body"),$n(o,n,void 0)}}async function TA(e){const t=CA(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await OA(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(me&&_e.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(me&&_e.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Cy(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Oy(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function RA(e,t){return 1===e.length&&"string"!=typeof e[0]?vh(e[0],t):2===e.length?vh(e[1],t):{}}function vh(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Oy(n,t):Array.isArray(n)?{}:Rc(n,t):{}}function CA(e){try{return e.clone()}catch(e){me&&_e.exception(e,"Failed to clone response body")}}function OA(e){return new Promise(((t,n)=>{const r=Hr((()=>n(new Error("Timeout while trying to read response body"))),500);AA(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function AA(e){return await e.text()}async function xA(e,t,n){try{const r=Ty("resource.xhr",PA(e,t,n));Iy(n.replay,r)}catch(e){me&&_e.exception(e,"Failed to capture xhr breadcrumb")}}function MA(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=ia(r),s=n.getResponseHeader("content-length")?wy(n.getResponseHeader("content-length")):UA(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}function PA(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:a}=t,{url:u,method:c,status_code:l=0,request_body_size:d,response_body_size:p}=e.data;if(!u)return null;if(!a||!Vo(u,n.networkDetailAllowUrls)||Vo(u,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:s,url:u,method:c,statusCode:l,request:Ys(d),response:Ys(p)}}const f=a[wR],h=f?Rc(f.request_headers,n.networkRequestHeaders):{},m=Rc(DA(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?ky(i):[void 0],[v,_]=n.networkCaptureBodies?LA(a):[void 0],b=$n(h,d,y),S=$n(m,p,v);return{startTimestamp:o,endTimestamp:s,url:u,method:c,statusCode:l,request:g?jo(b,g):b,response:_?jo(S,_):S}}function DA(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 LA(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return NA(e.response,e.responseType)}catch(e){t.push(e)}return me&&_e.warn("Failed to get xhr response body",...t),[void 0]}function NA(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&&_e.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return me&&_e.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function UA(e,t){try{return ia("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function BA(e){const t=un();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>FA(a,e,t)))}catch{}}function FA(e,t,n){if(t.data)try{jA(t)&&$A(n)&&(MA(t,n),xA(t,n,e)),VA(t)&&WA(n)&&(EA(t,n),SA(t,n,e))}catch(e){me&&_e.exception(e,"Error when enriching network breadcrumb")}}function jA(e){return"xhr"===e.category}function VA(e){return"fetch"===e.category}function $A(e){return e&&e.xhr}function WA(e){return e&&e.response}function zA(e){const t=un();yR(vO(e)),ER(mA(e)),oA(e),BA(e);lT(pA(e)),t&&(t.on("beforeSendEvent",sA(e)),t.on("afterSendEvent",tA(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 HA(e){try{return Promise.all(sa(e,[qA($e.performance.memory)]))}catch{return[]}}function qA(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function GA(e,t,n){let r,o,s;const i=n.maxWait?Math.max(n.maxWait,t):0;function a(){return u(),r=e(),r}function u(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function c(){return o&&clearTimeout(o),o=Hr(a,t),i&&void 0===s&&(s=Hr(a,i)),r}return c.cancel=u,c.flush=function(){return void 0!==o||void 0!==s?a():r},c}function KA(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(me&&_e.warn("Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&hO(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!dl(e,n,o))return!0;if(!o)return!1;const t=e.session;if(YA(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(me&&_e.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&ll(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function QA(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 YA(e,t){!t||!e.session||0!==e.session.segmentId||dl(e,QA(e),!1)}function XA(e,t,n,r){return zk(qk(e,Hk(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function JA({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 ZA({client:e,scope:t,replayId:n,event:r}){const o={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,o);const s=await eT(e.getOptions(),r,o,t,e,si());if(!s)return null;s.platform=s.platform||"javascript";const i=e.getSdkMetadata(),{name:a,version:u}=i&&i.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function ex({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=JA({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:u,traceIds:c,initialTimestamp:l}=r,d=un(),p=Qr(),f=d&&d.getTransport(),h=d&&d.getDsn();if(!(d&&f&&h&&s.sampled))return Lp({});const m={type:PR,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:u,trace_ids:c,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},y=await ZA({scope:p,client:d,replayId:t,event:m});if(!y)return d.recordDroppedEvent("event_processor","replay",m),me&&_e.info("An event processor returned `null`, will not send event."),Lp({});delete y.sdkProcessingMetadata;const g=XA(y,i,h,d.getOptions().tunnel);let v;try{v=await f.send(g)}catch(e){const t=new Error(el);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new Ay(v.statusCode);const _=mT({},v);if(hT(_,"replay"))throw new pl(_);return v}class Ay extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class pl extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function xy(e,t={count:0,interval:FR}){const{recordingData:n,onError:r}=e;if(n.length)try{return await ex(e),!0}catch(n){if(n instanceof Ay||n instanceof pl)throw n;if(uT("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${el} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{Hr((async()=>{try{await xy(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const My="__THROTTLED",tx="__SKIPPED";function nx(e,t,n){const r=new Map;let o=!1;return(...s)=>{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=o;return o=!0,e?tx:My}o=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...s)}}class Vn{constructor({options:e,recordingOptions:t}){Vn.prototype.__init.call(this),Vn.prototype.__init2.call(this),Vn.prototype.__init3.call(this),Vn.prototype.__init4.call(this),Vn.prototype.__init5.call(this),Vn.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:DR,sessionIdleExpire:LR},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=GA((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=nx(((e,t)=>JO(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(VR,n),timeout:n,scrollTimeout:$R,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new lO(this,o)),me){const t=e._experiments;_e.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&&_e.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&&_e.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&&_e.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(me&&_e.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(me&&_e.info("Buffering is in progress, call `flush()` to save the replay"));me&&_e.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Hu({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&&_e.info("Buffering is in progress, call `flush()` to save the replay"));me&&_e.infoTick("Starting replay in buffer mode");const e=Hu({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=kn({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:BR}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:KA(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&&_e.info("Stopping Replay"+(t?` triggered by ${t}`:"")),by(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,GO(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),me&&_e.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),me&&_e.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();me&&_e.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&&kc(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===My){const e=on({category:"replay.throttled"});this.addUpdate((()=>!dl(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||Rm(),t=e&&Qc(e),n=(t&&Hs(t).data||{})[Tm];if(t&&n&&["route","custom"].includes(n))return Hs(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=zO({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=Hu({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!gy(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||(zA(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=UO(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=on({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=on({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{IO(this,e)}}_doChangeToBackgroundTasks(e){!this.session||_y(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&&_e.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=RO(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(sa(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 HA(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 o=await this.eventBuffer.finish();await xy({replayId:e,recordingData:o,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=un();if(t){const n=e instanceof pl?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else me&&_e.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&&_e.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,o=n>this._options.maxReplayDuration+5e3;if(r||o)return me&&_e.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&me&&_e.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&&ll(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=on({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Is(e,t){return[...e,...t].join(",")}function rx({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:Is(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Is(t,[]),blockSelector:Is(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Is(r,[]),ignoreSelector:Is(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function sx({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const Sh='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ix=["content-length","content-type","accept"];let Eh=!1;const ox=e=>new oa(e);class oa{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=NR,flushMaxDelay:t=UR,minReplayDuration:n=WR,maxReplayDuration:r=Zp,stickySession:o=!0,useCompression:s=!0,workerUrl:i,_experiments:a={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:_=[],mask:b=[],maskAttributes:S=["title","placeholder"],unmask:k=[],block:I=[],unblock:w=[],ignore:A=[],maskFn:E,beforeAddRecordingEvent:T,beforeErrorSampling:C,onError:O}={}){this.name=oa.id;const x=rx({mask:b,unmask:k,block:I,unblock:w,ignore:A});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>sx({maskAttributes:S,maskAllText:u,privacyOptions:x,key:e,value:t,el:n}),...x,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,zR),maxReplayDuration:Math.min(r,Zp),stickySession:o,useCompression:s,workerUrl:i,blockAllMedia:l,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:bh(v),networkResponseHeaders:bh(_),beforeAddRecordingEvent:T,beforeErrorSampling:C,onError:O,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Sh}`:Sh),this._isInitialized&&Gp())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Eh}set _isInitialized(e){Eh=e}afterAllSetup(e){!Gp()||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=ax(this._initialOptions,e);this._replay=new Vn({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function ax(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Kt(e)},o=$p(n.replaysSessionSampleRate),s=$p(n.replaysOnErrorSampleRate);return null==o&&null==s&&$c((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=o&&(r.sessionSampleRate=o),null!=s&&(r.errorSampleRate=s),r}function bh(e){return[...ix,...e.map((e=>e.toLowerCase()))]}oa.__initStatic();var ux={TERM_PROGRAM:"iTerm.app",NODE:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",TURBO_INVOCATION_DIR:"/Users/krasevych/Projects/Animatron/web-apps",NVM_CD_FLAGS:"-q",INIT_CWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/store",TERM:"xterm-256color",SHELL:"/bin/zsh",TMPDIR:"/var/folders/1y/vz19w_xj5xzb49lxmbmzk7dc0000gn/T/",DOMAIN_ENV:"dev",npm_config_global_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",TERM_PROGRAM_VERSION:"3.5.11",NODE_OPTIONS:"--max-old-space-size=8192",TERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",COLOR:"1",npm_config_noproxy:"",npm_config_local_prefix:"/Users/krasevych/Projects/Animatron/web-apps",USER:"krasevych",NVM_DIR:"/Users/krasevych/.nvm",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/Users/krasevych/.nvm/versions/node/v22.12.0/etc/npmrc",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.xn6U3pyr1k/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x0:0x2",npm_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/bin/npm-cli.js",TERM_FEATURES:"T3LrMSc7UUw9Ts3BFGsSyHNoSxF",TERMINFO_DIRS:"/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo",PATH:"/Users/krasevych/Projects/Animatron/web-apps/packages/store/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/packages/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/local/opt/postgresql@16/bin:/Users/krasevych/.yarn/bin:/Users/krasevych/.config/yarn/global/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Applications/Visual Studio Code.app/Contents/Resources/app/bin",npm_package_json:"/Users/krasevych/Projects/Animatron/web-apps/packages/store/package.json",LaunchInstanceID:"BC2D37FC-0469-4680-8D65-486E7C3C39CD",npm_config_userconfig:"/Users/krasevych/.npmrc",npm_config_init_module:"/Users/krasevych/.npm-init.js",__CFBundleIdentifier:"com.googlecode.iterm2",npm_command:"run-script",PWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/store",npm_lifecycle_event:"build",EDITOR:"vi",npm_package_name:"@wellesley/store",LANG:"en_GB.UTF-8",ITERM_PROFILE:"Roman",npm_config_npm_version:"10.9.0",XPC_FLAGS:"0x0",TURBO_HASH:"bccbe34fe9138aee",npm_package_engines_node:">=20.2.0",npm_config_node_gyp:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_version:"1.0.154",XPC_SERVICE_NAME:"0",SHLVL:"4",HOME:"/Users/krasevych",COLORFGBG:"7;0",LC_TERMINAL_VERSION:"3.5.11",ITERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",npm_config_cache:"/Users/krasevych/.npm",LOGNAME:"krasevych",npm_lifecycle_script:"tsc && vite build",NVM_BIN:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin",npm_config_user_agent:"npm/10.9.0 node/v22.12.0 darwin x64 workspaces/false",LC_TERMINAL:"iTerm2",SECURITYSESSIONID:"186a3",npm_node_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",npm_config_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",COLORTERM:"truecolor",_:"/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin/vite",NODE_ENV:"production",TEST_1_SERVER:"https://dust.allroads.social",TEST_2_SERVER:"https://meteor.allroads.social",DEV_API_URL:"https://dust.allroads.social",DEV_LOCAL_TEST_ME_URL:"http://dev.localtest.me",APP_NAME:"@wellesley/store"};ti()||(window.build=ux.BUILD_NUMBER),ox(),CR(),wT();const Ih={data:null,isError:!1,isPending:!1,isSuccess:!1},cx=jt({name:"user",initialState:Ih,reducers:{reset:e=>{Object.assign(e,Ih)},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},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)}}}),lx=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return cT("exceptionMessage",t),void Yc(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}aT(t)},wh=["debug","info","warn","error"],dx=(e,t)=>{const n=wh.indexOf(e);return wh.indexOf(t)>=n},So=(e,t,n,...r)=>{dx(t,e)&&console.log(`[${e}] ${n}`,...r)},fx=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),px=(e=!ti()&&fx()||"warn")=>{let t=e;return{debug:(e,...n)=>So("debug",t,e,...n),info:(e,...n)=>So("info",t,e,...n),warn:(e,...n)=>So("warn",t,e,...n),error:(e,...n)=>(lx(e,...n),So("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}};px();var kh,Ts={exports:{}},hx=Ts.exports;
|
|
29
|
+
/**
|
|
30
|
+
* @license
|
|
31
|
+
* Lodash <https://lodash.com/>
|
|
32
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
33
|
+
* Released under MIT license <https://lodash.com/license>
|
|
34
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
35
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
36
|
+
*/function mx(){return kh||(kh=1,e=Ts,t=Ts.exports,function(){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var o=-1,s=null==e?0:e.length;++o<s;){var i=e[o];t(r,i,n(i),e)}return r}function o(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function s(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function i(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function a(e,t){for(var n=-1,r=null==e?0:e.length,o=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[o++]=i)}return s}function u(e,t){return!(null==e||!e.length)&&g(e,t,0)>-1}function c(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function l(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function d(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function p(e,t,n,r){var o=-1,s=null==e?0:e.length;for(r&&s&&(n=e[++o]);++o<s;)n=t(n,e[o],o,e);return n}function f(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function h(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function m(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function y(e,t,n,r){for(var o=e.length,s=n+(r?1:-1);r?s--:++s<o;)if(t(e[s],s,e))return s;return-1}function g(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):y(e,_,n)}function v(e,t,n,r){for(var o=n-1,s=e.length;++o<s;)if(r(e[o],t))return o;return-1}function _(e){return e!=e}function b(e,t){var n=null==e?0:e.length;return n?w(e,t)/n:J}function S(e){return function(t){return null==t?F:t[e]}}function k(e){return function(t){return null==e?F:e[t]}}function I(e,t,n,r,o){return o(e,(function(e,o,s){n=r?(r=!1,e):t(n,e,o,s)})),n}function w(e,t){for(var n,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==F&&(n=n===F?s:n+s)}return n}function A(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function E(e){return e&&e.slice(0,B(e)+1).replace(We,"")}function T(e){return function(t){return e(t)}}function C(e,t){return l(t,(function(t){return e[t]}))}function O(e,t){return e.has(t)}function x(e,t){for(var n=-1,r=e.length;++n<r&&g(t,e[n],0)>-1;);return n}function R(e,t){for(var n=e.length;n--&&g(t,e[n],0)>-1;);return n}function M(e){return"\\"+Qt[e]}function P(e){return $t.test(e)}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function q(e,t){return function(n){return e(t(n))}}function U(e,t){for(var n=-1,r=e.length,o=0,s=[];++n<r;){var i=e[n];i!==t&&i!==z||(e[n]=z,s[o++]=n)}return s}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function L(e){return P(e)?function(e){for(var t=Ft.lastIndex=0;Ft.test(e);)++t;return t}(e):fn(e)}function j(e){return P(e)?function(e){return e.match(Ft)||[]}(e):function(e){return e.split("")}(e)}function B(e){for(var t=e.length;t--&&He.test(e.charAt(t)););return t}var F,V="Expected a function",$="__lodash_hash_undefined__",z="__lodash_placeholder__",W=16,H=32,G=64,K=128,Q=256,X=1/0,Y=9007199254740991,J=NaN,Z=4294967295,ee=Z-1,te=Z>>>1,ne=[["ary",K],["bind",1],["bindKey",2],["curry",8],["curryRight",W],["flip",512],["partial",H],["partialRight",G],["rearg",Q]],re="[object Arguments]",oe="[object Array]",se="[object Boolean]",ie="[object Date]",ae="[object Error]",ue="[object Function]",ce="[object GeneratorFunction]",le="[object Map]",de="[object Number]",pe="[object Object]",fe="[object Promise]",he="[object RegExp]",me="[object Set]",ye="[object String]",ge="[object Symbol]",ve="[object WeakMap]",_e="[object ArrayBuffer]",be="[object DataView]",Se="[object Float32Array]",ke="[object Float64Array]",Ie="[object Int8Array]",we="[object Int16Array]",Ae="[object Int32Array]",Ee="[object Uint8Array]",Te="[object Uint8ClampedArray]",Ce="[object Uint16Array]",Oe="[object Uint32Array]",xe=/\b__p \+= '';/g,Re=/\b(__p \+=) '' \+/g,Me=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pe=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,qe=RegExp(Pe.source),Ue=RegExp(De.source),Ne=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,je=/<%=([\s\S]+?)%>/g,Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fe=/^\w*$/,Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$e=/[\\^$.*+?()[\]{}|]/g,ze=RegExp($e.source),We=/^\s+/,He=/\s/,Ge=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ke=/\{\n\/\* \[wrapped with (.+)\] \*/,Qe=/,? & /,Xe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ye=/[()=,{}\[\]\/\s]/,Je=/\\(\\)?/g,Ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,ot=/^0o[0-7]+$/i,st=/^(?:0|[1-9]\d*)$/,it=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,at=/($^)/,ut=/['\n\r\u2028\u2029\\]/g,ct="\\ud800-\\udfff",lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\u2700-\\u27bf",pt="a-z\\xdf-\\xf6\\xf8-\\xff",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",ht="\\ufe0e\\ufe0f",mt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yt="['’]",gt="["+ct+"]",vt="["+mt+"]",_t="["+lt+"]",bt="\\d+",St="["+dt+"]",kt="["+pt+"]",It="[^"+ct+mt+bt+dt+pt+ft+"]",wt="\\ud83c[\\udffb-\\udfff]",At="[^"+ct+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ct="["+ft+"]",Ot="\\u200d",xt="(?:"+kt+"|"+It+")",Rt="(?:"+Ct+"|"+It+")",Mt="(?:['’](?:d|ll|m|re|s|t|ve))?",Pt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Dt="(?:"+_t+"|"+wt+")?",qt="["+ht+"]?",Ut=qt+Dt+"(?:"+Ot+"(?:"+[At,Et,Tt].join("|")+")"+qt+Dt+")*",Nt="(?:"+[St,Et,Tt].join("|")+")"+Ut,Lt="(?:"+[At+_t+"?",_t,Et,Tt,gt].join("|")+")",jt=RegExp(yt,"g"),Bt=RegExp(_t,"g"),Ft=RegExp(wt+"(?="+wt+")|"+Lt+Ut,"g"),Vt=RegExp([Ct+"?"+kt+"+"+Mt+"(?="+[vt,Ct,"$"].join("|")+")",Rt+"+"+Pt+"(?="+[vt,Ct+xt,"$"].join("|")+")",Ct+"?"+xt+"+"+Mt,Ct+"+"+Pt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bt,Nt].join("|"),"g"),$t=RegExp("["+Ot+ct+lt+ht+"]"),zt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ht=-1,Gt={};Gt[Se]=Gt[ke]=Gt[Ie]=Gt[we]=Gt[Ae]=Gt[Ee]=Gt[Te]=Gt[Ce]=Gt[Oe]=!0,Gt[re]=Gt[oe]=Gt[_e]=Gt[se]=Gt[be]=Gt[ie]=Gt[ae]=Gt[ue]=Gt[le]=Gt[de]=Gt[pe]=Gt[he]=Gt[me]=Gt[ye]=Gt[ve]=!1;var Kt={};Kt[re]=Kt[oe]=Kt[_e]=Kt[be]=Kt[se]=Kt[ie]=Kt[Se]=Kt[ke]=Kt[Ie]=Kt[we]=Kt[Ae]=Kt[le]=Kt[de]=Kt[pe]=Kt[he]=Kt[me]=Kt[ye]=Kt[ge]=Kt[Ee]=Kt[Te]=Kt[Ce]=Kt[Oe]=!0,Kt[ae]=Kt[ue]=Kt[ve]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xt=parseFloat,Yt=parseInt,Jt="object"==typeof oo&&oo&&oo.Object===Object&&oo,Zt="object"==typeof self&&self&&self.Object===Object&&self,en=Jt||Zt||Function("return this")(),tn=t&&!t.nodeType&&t,nn=tn&&e&&!e.nodeType&&e,rn=nn&&nn.exports===tn,on=rn&&Jt.process,sn=function(){try{return nn&&nn.require&&nn.require("util").types||on&&on.binding&&on.binding("util")}catch{}}(),an=sn&&sn.isArrayBuffer,un=sn&&sn.isDate,cn=sn&&sn.isMap,ln=sn&&sn.isRegExp,dn=sn&&sn.isSet,pn=sn&&sn.isTypedArray,fn=S("length"),hn=k({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),mn=k({"&":"&","<":"<",">":">",'"':""","'":"'"}),yn=k({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function e(t){function k(e){if(Lo(e)&&!Ca(e)&&!(e instanceof lt)){if(e instanceof ct)return e;if(Cs.call(e,"__wrapped__"))return co(e)}return new ct(e)}function He(){}function ct(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=F}function lt(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function dt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ht(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ft;++t<n;)this.add(e[t])}function mt(e){this.size=(this.__data__=new pt(e)).size}function yt(e,t){var n=Ca(e),r=!n&&Ta(e),o=!n&&!r&&xa(e),s=!n&&!r&&!o&&qa(e),i=n||r||o||s,a=i?A(e.length,Ss):[],u=a.length;for(var c in e)!t&&!Cs.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Kr(c,u))||a.push(c);return a}function gt(e){var t=e.length;return t?e[Pn(0,t-1)]:F}function vt(e,t){return io(lr(e),Tt(t,0,e.length))}function _t(e){return io(lr(e))}function bt(e,t,n){(n===F||xo(e[t],n))&&(n!==F||t in e)||At(e,t,n)}function St(e,t,n){var r=e[t];Cs.call(e,t)&&xo(r,n)&&(n!==F||t in e)||At(e,t,n)}function kt(e,t){for(var n=e.length;n--;)if(xo(e[n][0],t))return n;return-1}function It(e,t,n,r){return Ei(e,(function(e,o,s){t(r,e,n(e),s)})),r}function wt(e,t){return e&&dr(t,Jo(t),e)}function At(e,t,n){"__proto__"==t&&Hs?Hs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Et(e,t){for(var n=-1,r=t.length,o=hs(r),s=null==e;++n<r;)o[n]=s?F:Xo(e,t[n]);return o}function Tt(e,t,n){return e==e&&(n!==F&&(e=e<=n?e:n),t!==F&&(e=e>=t?e:t)),e}function Ct(e,t,n,r,s,i){var a,u=1&t,c=2&t,l=4&t;if(n&&(a=s?n(e,r,s,i):n(e)),a!==F)return a;if(!No(e))return e;var d=Ca(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Cs.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return lr(e,a)}else{var p=Li(e),f=p==ue||p==ce;if(xa(e))return or(e,u);if(p==pe||p==re||f&&!s){if(a=c||f?{}:Hr(e),!u)return c?function(e,t){return dr(e,Ni(e),t)}(e,function(e,t){return e&&dr(t,Zo(t),e)}(a,e)):function(e,t){return dr(e,Ui(e),t)}(e,wt(a,e))}else{if(!Kt[p])return s?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case _e:return sr(e);case se:case ie:return new r(+e);case be:return function(e,t){return new e.constructor(t?sr(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case Se:case ke:case Ie:case we:case Ae:case Ee:case Te:case Ce:case Oe:return ir(e,n);case le:return new r;case de:case ye:return new r(e);case he:return function(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}(e);case me:return new r;case ge:return function(e){return Ii?_s(Ii.call(e)):{}}(e)}}(e,p,u)}}i||(i=new mt);var h=i.get(e);if(h)return h;i.set(e,a),Da(e)?e.forEach((function(r){a.add(Ct(r,t,n,r,e,i))})):Ma(e)&&e.forEach((function(r,o){a.set(o,Ct(r,t,n,o,e,i))}));var m=d?F:(l?c?Lr:Nr:c?Zo:Jo)(e);return o(m||e,(function(r,o){m&&(r=e[o=r]),St(a,o,Ct(r,t,n,o,e,i))})),a}function Ot(e,t,n){var r=n.length;if(null==e)return!r;for(e=_s(e);r--;){var o=n[r],s=t[o],i=e[o];if(i===F&&!(o in e)||!s(i))return!1}return!0}function xt(e,t,n){if("function"!=typeof e)throw new ks(V);return Fi((function(){e.apply(F,n)}),t)}function Rt(e,t,n,r){var o=-1,s=u,i=!0,a=e.length,d=[],p=t.length;if(!a)return d;n&&(t=l(t,T(n))),r?(s=c,i=!1):t.length>=200&&(s=O,i=!1,t=new ht(t));e:for(;++o<a;){var f=e[o],h=null==n?f:n(f);if(f=r||0!==f?f:0,i&&h==h){for(var m=p;m--;)if(t[m]===h)continue e;d.push(f)}else s(t,h,r)||d.push(f)}return d}function Mt(e,t){var n=!0;return Ei(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function Pt(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],i=t(s);if(null!=i&&(a===F?i==i&&!Vo(i):n(i,a)))var a=i,u=s}return u}function Dt(e,t){var n=[];return Ei(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function qt(e,t,n,r,o){var s=-1,i=e.length;for(n||(n=Gr),o||(o=[]);++s<i;){var a=e[s];t>0&&n(a)?t>1?qt(a,t-1,n,r,o):d(o,a):r||(o[o.length]=a)}return o}function Ut(e,t){return e&&Ci(e,t,Jo)}function Nt(e,t){return e&&Oi(e,t,Jo)}function Lt(e,t){return a(t,(function(t){return Do(e[t])}))}function Ft(e,t){for(var n=0,r=(t=nr(t,e)).length;null!=e&&n<r;)e=e[ao(t[n++])];return n&&n==r?e:F}function $t(e,t,n){var r=t(e);return Ca(e)?r:d(r,n(e))}function Qt(e){return null==e?e===F?"[object Undefined]":"[object Null]":Ws&&Ws in _s(e)?function(e){var t=Cs.call(e,Ws),n=e[Ws];try{e[Ws]=F;var r=!0}catch{}var o=Rs.call(e);return r&&(t?e[Ws]=n:delete e[Ws]),o}(e):function(e){return Rs.call(e)}(e)}function Jt(e,t){return e>t}function Zt(e,t){return null!=e&&Cs.call(e,t)}function tn(e,t){return null!=e&&t in _s(e)}function nn(e,t,n){for(var r=n?c:u,o=e[0].length,s=e.length,i=s,a=hs(s),d=1/0,p=[];i--;){var f=e[i];i&&t&&(f=l(f,T(t))),d=oi(f.length,d),a[i]=!n&&(t||o>=120&&f.length>=120)?new ht(i&&f):F}f=e[0];var h=-1,m=a[0];e:for(;++h<o&&p.length<d;){var y=f[h],g=t?t(y):y;if(y=n||0!==y?y:0,!(m?O(m,g):r(p,g,n))){for(i=s;--i;){var v=a[i];if(!(v?O(v,g):r(e[i],g,n)))continue e}m&&m.push(g),p.push(y)}}return p}function on(e,t,r){var o=null==(e=no(e,t=nr(t,e)))?e:e[ao(mo(t))];return null==o?F:n(o,e,r)}function sn(e){return Lo(e)&&Qt(e)==re}function fn(e,t,n,r,o){return e===t||(null==e||null==t||!Lo(e)&&!Lo(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var i=Ca(e),a=Ca(t),u=i?oe:Li(e),c=a?oe:Li(t),l=(u=u==re?pe:u)==pe,d=(c=c==re?pe:c)==pe,p=u==c;if(p&&xa(e)){if(!xa(t))return!1;i=!0,l=!1}if(p&&!l)return s||(s=new mt),i||qa(e)?qr(e,t,n,r,o,s):function(e,t,n,r,o,s,i){switch(n){case be:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _e:return!(e.byteLength!=t.byteLength||!s(new Ns(e),new Ns(t)));case se:case ie:case de:return xo(+e,+t);case ae:return e.name==t.name&&e.message==t.message;case he:case ye:return e==t+"";case le:var a=D;case me:var u=1&r;if(a||(a=N),e.size!=t.size&&!u)return!1;var c=i.get(e);if(c)return c==t;r|=2,i.set(e,t);var l=qr(a(e),a(t),r,o,s,i);return i.delete(e),l;case ge:if(Ii)return Ii.call(e)==Ii.call(t)}return!1}(e,t,u,n,r,o,s);if(!(1&n)){var f=l&&Cs.call(e,"__wrapped__"),h=d&&Cs.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,y=h?t.value():t;return s||(s=new mt),o(m,y,n,r,s)}}return!!p&&(s||(s=new mt),function(e,t,n,r,o,s){var i=1&n,a=Nr(e),u=a.length;if(u!=Nr(t).length&&!i)return!1;for(var c=u;c--;){var l=a[c];if(!(i?l in t:Cs.call(t,l)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var f=!0;s.set(e,t),s.set(t,e);for(var h=i;++c<u;){var m=e[l=a[c]],y=t[l];if(r)var g=i?r(y,m,l,t,e,s):r(m,y,l,e,t,s);if(!(g===F?m===y||o(m,y,n,r,s):g)){f=!1;break}h||(h="constructor"==l)}if(f&&!h){var v=e.constructor,_=t.constructor;v!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof _&&_ instanceof _)&&(f=!1)}return s.delete(e),s.delete(t),f}(e,t,n,r,o,s))}(e,t,n,r,fn,o))}function vn(e,t,n,r){var o=n.length,s=o,i=!r;if(null==e)return!s;for(e=_s(e);o--;){var a=n[o];if(i&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<s;){var u=(a=n[o])[0],c=e[u],l=a[1];if(i&&a[2]){if(c===F&&!(u in e))return!1}else{var d=new mt;if(r)var p=r(c,l,u,e,t,d);if(!(p===F?fn(l,c,3,r,d):p))return!1}}return!0}function _n(e){return!(!No(e)||function(e){return!!xs&&xs in e}(e))&&(Do(e)?Ds:rt).test(uo(e))}function bn(e){return"function"==typeof e?e:null==e?is:"object"==typeof e?Ca(e)?En(e[0],e[1]):An(e):ls(e)}function Sn(e){if(!Jr(e))return ni(e);var t=[];for(var n in _s(e))Cs.call(e,n)&&"constructor"!=n&&t.push(n);return t}function kn(e){if(!No(e))return function(e){var t=[];if(null!=e)for(var n in _s(e))t.push(n);return t}(e);var t=Jr(e),n=[];for(var r in e)("constructor"!=r||!t&&Cs.call(e,r))&&n.push(r);return n}function In(e,t){return e<t}function wn(e,t){var n=-1,r=Ro(e)?hs(e.length):[];return Ei(e,(function(e,o,s){r[++n]=t(e,o,s)})),r}function An(e){var t=$r(e);return 1==t.length&&t[0][2]?eo(t[0][0],t[0][1]):function(n){return n===e||vn(n,e,t)}}function En(e,t){return Xr(e)&&Zr(t)?eo(ao(e),t):function(n){var r=Xo(n,e);return r===F&&r===t?Yo(n,e):fn(t,r,3)}}function Tn(e,t,n,r,o){e!==t&&Ci(t,(function(s,i){if(o||(o=new mt),No(s))!function(e,t,n,r,o,s,i){var a=ro(e,n),u=ro(t,n),c=i.get(u);if(c)return bt(e,n,c),F;var l=s?s(a,u,n+"",e,t,i):F,d=l===F;if(d){var p=Ca(u),f=!p&&xa(u),h=!p&&!f&&qa(u);l=u,p||f||h?Ca(a)?l=a:Mo(a)?l=lr(a):f?(d=!1,l=or(u,!0)):h?(d=!1,l=ir(u,!0)):l=[]:Bo(u)||Ta(u)?(l=a,Ta(a)?l=Ko(a):No(a)&&!Do(a)||(l=Hr(u))):d=!1}d&&(i.set(u,l),o(l,u,r,s,i),i.delete(u)),bt(e,n,l)}(e,t,i,n,Tn,r,o);else{var a=r?r(ro(e,i),s,i+"",e,t,o):F;a===F&&(a=s),bt(e,i,a)}}),Zo)}function Cn(e,t){var n=e.length;if(n)return Kr(t+=t<0?n:0,n)?e[t]:F}function On(e,t,n){t=t.length?l(t,(function(e){return Ca(e)?function(t){return Ft(t,1===e.length?e[0]:e)}:e})):[is];var r=-1;return t=l(t,T(Fr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(wn(e,(function(e,n,o){return{criteria:l(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,s=t.criteria,i=o.length,a=n.length;++r<i;){var u=ar(o[r],s[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function xn(e,t,n){for(var r=-1,o=t.length,s={};++r<o;){var i=t[r],a=Ft(e,i);n(a,i)&&Ln(s,nr(i,e),a)}return s}function Rn(e,t,n,r){var o=r?v:g,s=-1,i=t.length,a=e;for(e===t&&(t=lr(t)),n&&(a=l(e,T(n)));++s<i;)for(var u=0,c=t[s],d=n?n(c):c;(u=o(a,d,u,r))>-1;)a!==e&&Vs.call(a,u,1),Vs.call(e,u,1);return e}function Mn(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==s){var s=o;Kr(o)?Vs.call(e,o,1):Kn(e,o)}}return e}function Pn(e,t){return e+Ys(ai()*(t-e+1))}function Dn(e,t){var n="";if(!e||t<1||t>Y)return n;do{t%2&&(n+=e),(t=Ys(t/2))&&(e+=e)}while(t);return n}function qn(e,t){return Vi(to(e,t,is),e+"")}function Un(e){return gt(ts(e))}function Nn(e,t){var n=ts(e);return io(n,Tt(t,0,n.length))}function Ln(e,t,n,r){if(!No(e))return e;for(var o=-1,s=(t=nr(t,e)).length,i=s-1,a=e;null!=a&&++o<s;){var u=ao(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=i){var l=a[u];(c=r?r(l,u,a):F)===F&&(c=No(l)?l:Kr(t[o+1])?[]:{})}St(a,u,c),a=a[u]}return e}function jn(e){return io(ts(e))}function Bn(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=hs(o);++r<o;)s[r]=e[r+t];return s}function Fn(e,t){var n;return Ei(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Vn(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=te){for(;r<o;){var s=r+o>>>1,i=e[s];null!==i&&!Vo(i)&&(n?i<=t:i<t)?r=s+1:o=s}return o}return $n(e,t,is,n)}function $n(e,t,n,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var i=(t=n(t))!=t,a=null===t,u=Vo(t),c=t===F;o<s;){var l=Ys((o+s)/2),d=n(e[l]),p=d!==F,f=null===d,h=d==d,m=Vo(d);if(i)var y=r||h;else y=c?h&&(r||p):a?h&&p&&(r||!f):u?h&&p&&!f&&(r||!m):!f&&!m&&(r?d<=t:d<t);y?o=l+1:s=l}return oi(s,ee)}function zn(e,t){for(var n=-1,r=e.length,o=0,s=[];++n<r;){var i=e[n],a=t?t(i):i;if(!n||!xo(a,u)){var u=a;s[o++]=0===i?0:i}}return s}function Wn(e){return"number"==typeof e?e:Vo(e)?J:+e}function Hn(e){if("string"==typeof e)return e;if(Ca(e))return l(e,Hn)+"";if(Vo(e))return wi?wi.call(e):"";var t=e+"";return"0"==t&&1/e==-X?"-0":t}function Gn(e,t,n){var r=-1,o=u,s=e.length,i=!0,a=[],l=a;if(n)i=!1,o=c;else if(s>=200){var d=t?null:Di(e);if(d)return N(d);i=!1,o=O,l=new ht}else l=t?[]:a;e:for(;++r<s;){var p=e[r],f=t?t(p):p;if(p=n||0!==p?p:0,i&&f==f){for(var h=l.length;h--;)if(l[h]===f)continue e;t&&l.push(f),a.push(p)}else o(l,f,n)||(l!==a&&l.push(f),a.push(p))}return a}function Kn(e,t){return null==(e=no(e,t=nr(t,e)))||delete e[ao(mo(t))]}function Qn(e,t,n,r){return Ln(e,t,n(Ft(e,t)),r)}function Xn(e,t,n,r){for(var o=e.length,s=r?o:-1;(r?s--:++s<o)&&t(e[s],s,e););return n?Bn(e,r?0:s,r?s+1:o):Bn(e,r?s+1:0,r?o:s)}function Yn(e,t){var n=e;return n instanceof lt&&(n=n.value()),p(t,(function(e,t){return t.func.apply(t.thisArg,d([e],t.args))}),n)}function Jn(e,t,n){var r=e.length;if(r<2)return r?Gn(e[0]):[];for(var o=-1,s=hs(r);++o<r;)for(var i=e[o],a=-1;++a<r;)a!=o&&(s[o]=Rt(s[o]||i,e[a],t,n));return Gn(qt(s,1),t,n)}function Zn(e,t,n){for(var r=-1,o=e.length,s=t.length,i={};++r<o;)n(i,e[r],r<s?t[r]:F);return i}function er(e){return Mo(e)?e:[]}function tr(e){return"function"==typeof e?e:is}function nr(e,t){return Ca(e)?e:Xr(e,t)?[e]:$i(Qo(e))}function rr(e,t,n){var r=e.length;return n=n===F?r:n,!t&&n>=r?e:Bn(e,t,n)}function or(e,t){if(t)return e.slice();var n=e.length,r=Ls?Ls(n):new e.constructor(n);return e.copy(r),r}function sr(e){var t=new e.constructor(e.byteLength);return new Ns(t).set(new Ns(e)),t}function ir(e,t){return new e.constructor(t?sr(e.buffer):e.buffer,e.byteOffset,e.length)}function ar(e,t){if(e!==t){var n=e!==F,r=null===e,o=e==e,s=Vo(e),i=t!==F,a=null===t,u=t==t,c=Vo(t);if(!a&&!c&&!s&&e>t||s&&i&&u&&!a&&!c||r&&i&&u||!n&&u||!o)return 1;if(!r&&!s&&!c&&e<t||c&&n&&o&&!r&&!s||a&&n&&o||!i&&o||!u)return-1}return 0}function ur(e,t,n,r){for(var o=-1,s=e.length,i=n.length,a=-1,u=t.length,c=ri(s-i,0),l=hs(u+c),d=!r;++a<u;)l[a]=t[a];for(;++o<i;)(d||o<s)&&(l[n[o]]=e[o]);for(;c--;)l[a++]=e[o++];return l}function cr(e,t,n,r){for(var o=-1,s=e.length,i=-1,a=n.length,u=-1,c=t.length,l=ri(s-a,0),d=hs(l+c),p=!r;++o<l;)d[o]=e[o];for(var f=o;++u<c;)d[f+u]=t[u];for(;++i<a;)(p||o<s)&&(d[f+n[i]]=e[o++]);return d}function lr(e,t){var n=-1,r=e.length;for(t||(t=hs(r));++n<r;)t[n]=e[n];return t}function dr(e,t,n,r){var o=!n;n||(n={});for(var s=-1,i=t.length;++s<i;){var a=t[s],u=r?r(n[a],e[a],a,n,e):F;u===F&&(u=e[a]),o?At(n,a,u):St(n,a,u)}return n}function pr(e,t){return function(n,o){var s=Ca(n)?r:It,i=t?t():{};return s(n,e,Fr(o,2),i)}}function fr(e){return qn((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:F,i=o>2?n[2]:F;for(s=e.length>3&&"function"==typeof s?(o--,s):F,i&&Qr(n[0],n[1],i)&&(s=o<3?F:s,o=1),t=_s(t);++r<o;){var a=n[r];a&&e(t,a,r,s)}return t}))}function hr(e,t){return function(n,r){if(null==n)return n;if(!Ro(n))return e(n,r);for(var o=n.length,s=t?o:-1,i=_s(n);(t?s--:++s<o)&&!1!==r(i[s],s,i););return n}}function mr(e){return function(t,n,r){for(var o=-1,s=_s(t),i=r(t),a=i.length;a--;){var u=i[e?a:++o];if(!1===n(s[u],u,s))break}return t}}function yr(e){return function(t){var n=P(t=Qo(t))?j(t):F,r=n?n[0]:t.charAt(0),o=n?rr(n,1).join(""):t.slice(1);return r[e]()+o}}function gr(e){return function(t){return p(os(rs(t).replace(jt,"")),e,"")}}function vr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ai(e.prototype),r=e.apply(n,t);return No(r)?r:n}}function _r(e){return function(t,n,r){var o=_s(t);if(!Ro(t)){var s=Fr(n,3);t=Jo(t),n=function(e){return s(o[e],e,o)}}var i=e(t,n,r);return i>-1?o[s?t[i]:i]:F}}function br(e){return Ur((function(t){var n=t.length,r=n,o=ct.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ks(V);if(o&&!i&&"wrapper"==jr(s))var i=new ct([],!0)}for(r=i?r:n;++r<n;){var a=jr(s=t[r]),u="wrapper"==a?qi(s):F;i=u&&Yr(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?i[jr(u[0])].apply(i,u[3]):1==s.length&&Yr(s)?i[a]():i.thru(s)}return function(){var e=arguments,r=e[0];if(i&&1==e.length&&Ca(r))return i.plant(r).value();for(var o=0,s=n?t[o].apply(this,e):r;++o<n;)s=t[o].call(this,s);return s}}))}function Sr(e,t,n,r,o,s,i,a,u,c){var l=t&K,d=1&t,p=2&t,f=24&t,h=512&t,m=p?F:vr(e);return function y(){for(var g=arguments.length,v=hs(g),_=g;_--;)v[_]=arguments[_];if(f)var b=Br(y),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(v,b);if(r&&(v=ur(v,r,o,f)),s&&(v=cr(v,s,i,f)),g-=S,f&&g<c)return Cr(e,t,Sr,y.placeholder,n,v,U(v,b),a,u,c-g);var k=d?n:this,I=p?k[e]:e;return g=v.length,a?v=function(e,t){for(var n=e.length,r=oi(t.length,n),o=lr(e);r--;){var s=t[r];e[r]=Kr(s,n)?o[s]:F}return e}(v,a):h&&g>1&&v.reverse(),l&&u<g&&(v.length=u),this&&this!==en&&this instanceof y&&(I=m||vr(I)),I.apply(k,v)}}function kr(e,t){return function(n,r){return function(e,t,n,r){return Ut(e,(function(e,o,s){t(r,n(e),o,s)})),r}(n,e,t(r),{})}}function Ir(e,t){return function(n,r){var o;if(n===F&&r===F)return t;if(n!==F&&(o=n),r!==F){if(o===F)return r;"string"==typeof n||"string"==typeof r?(n=Hn(n),r=Hn(r)):(n=Wn(n),r=Wn(r)),o=e(n,r)}return o}}function wr(e){return Ur((function(t){return t=l(t,T(Fr())),qn((function(r){var o=this;return e(t,(function(e){return n(e,o,r)}))}))}))}function Ar(e,t){var n=(t=t===F?" ":Hn(t)).length;if(n<2)return n?Dn(t,e):t;var r=Dn(t,Xs(e/L(t)));return P(t)?rr(j(r),0,e).join(""):r.slice(0,e)}function Er(e){return function(t,n,r){return r&&"number"!=typeof r&&Qr(t,n,r)&&(n=r=F),t=zo(t),n===F?(n=t,t=0):n=zo(n),function(e,t,n,r){for(var o=-1,s=ri(Xs((t-e)/(n||1)),0),i=hs(s);s--;)i[r?s:++o]=e,e+=n;return i}(t,n,r=r===F?t<n?1:-1:zo(r),e)}}function Tr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Go(t),n=Go(n)),e(t,n)}}function Cr(e,t,n,r,o,s,i,a,u,c){var l=8&t;t|=l?H:G,4&(t&=~(l?G:H))||(t&=-4);var d=[e,t,o,l?s:F,l?i:F,l?F:s,l?F:i,a,u,c],p=n.apply(F,d);return Yr(e)&&Bi(p,d),p.placeholder=r,oo(p,e,t)}function Or(e){var t=vs[e];return function(e,n){if(e=Go(e),(n=null==n?0:oi(Wo(n),292))&&ei(e)){var r=(Qo(e)+"e").split("e");return+((r=(Qo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function xr(e){return function(t){var n=Li(t);return n==le?D(t):n==me?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return l(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Rr(e,t,r,o,s,i,a,u){var c=2&t;if(!c&&"function"!=typeof e)throw new ks(V);var l=o?o.length:0;if(l||(t&=-97,o=s=F),a=a===F?a:ri(Wo(a),0),u=u===F?u:Wo(u),l-=s?s.length:0,t&G){var d=o,p=s;o=s=F}var f=c?F:qi(e),h=[e,t,r,o,s,d,p,i,a,u];if(f&&function(e,t){var n=e[1],r=t[1],o=n|r,s=o<131,i=r==K&&8==n||r==K&&n==Q&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!s&&!i)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var a=t[3];if(a){var u=e[3];e[3]=u?ur(u,a,t[4]):a,e[4]=u?U(e[3],z):t[4]}(a=t[5])&&(u=e[5],e[5]=u?cr(u,a,t[6]):a,e[6]=u?U(e[5],z):t[6]),(a=t[7])&&(e[7]=a),r&K&&(e[8]=null==e[8]?t[8]:oi(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(h,f),e=h[0],t=h[1],r=h[2],o=h[3],s=h[4],!(u=h[9]=h[9]===F?c?0:e.length:ri(h[9]-l,0))&&24&t&&(t&=-25),t&&1!=t)m=8==t||t==W?function(e,t,r){var o=vr(e);return function s(){for(var i=arguments.length,a=hs(i),u=i,c=Br(s);u--;)a[u]=arguments[u];var l=i<3&&a[0]!==c&&a[i-1]!==c?[]:U(a,c);return(i-=l.length)<r?Cr(e,t,Sr,s.placeholder,F,a,l,F,F,r-i):n(this&&this!==en&&this instanceof s?o:e,this,a)}}(e,t,u):t!=H&&33!=t||s.length?Sr.apply(F,h):function(e,t,r,o){var s=1&t,i=vr(e);return function t(){for(var a=-1,u=arguments.length,c=-1,l=o.length,d=hs(l+u),p=this&&this!==en&&this instanceof t?i:e;++c<l;)d[c]=o[c];for(;u--;)d[c++]=arguments[++a];return n(p,s?r:this,d)}}(e,t,r,o);else var m=function(e,t,n){var r=1&t,o=vr(e);return function t(){return(this&&this!==en&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return oo((f?xi:Bi)(m,h),e,t)}function Mr(e,t,n,r){return e===F||xo(e,As[n])&&!Cs.call(r,n)?t:e}function Pr(e,t,n,r,o,s){return No(e)&&No(t)&&(s.set(t,e),Tn(e,t,F,Pr,s),s.delete(t)),e}function Dr(e){return Bo(e)?F:e}function qr(e,t,n,r,o,s){var i=1&n,a=e.length,u=t.length;if(a!=u&&!(i&&u>a))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var d=-1,p=!0,f=2&n?new ht:F;for(s.set(e,t),s.set(t,e);++d<a;){var m=e[d],y=t[d];if(r)var g=i?r(y,m,d,t,e,s):r(m,y,d,e,t,s);if(g!==F){if(g)continue;p=!1;break}if(f){if(!h(t,(function(e,t){if(!O(f,t)&&(m===e||o(m,e,n,r,s)))return f.push(t)}))){p=!1;break}}else if(m!==y&&!o(m,y,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Ur(e){return Vi(to(e,F,fo),e+"")}function Nr(e){return $t(e,Jo,Ui)}function Lr(e){return $t(e,Zo,Ni)}function jr(e){for(var t=e.name+"",n=yi[t],r=Cs.call(yi,t)?n.length:0;r--;){var o=n[r],s=o.func;if(null==s||s==e)return o.name}return t}function Br(e){return(Cs.call(k,"placeholder")?k:e).placeholder}function Fr(){var e=k.iteratee||as;return e=e===as?bn:e,arguments.length?e(arguments[0],arguments[1]):e}function Vr(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function $r(e){for(var t=Jo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Zr(o)]}return t}function zr(e,t){var n=function(e,t){return null==e?F:e[t]}(e,t);return _n(n)?n:F}function Wr(e,t,n){for(var r=-1,o=(t=nr(t,e)).length,s=!1;++r<o;){var i=ao(t[r]);if(!(s=null!=e&&n(e,i)))break;e=e[i]}return s||++r!=o?s:!!(o=null==e?0:e.length)&&Uo(o)&&Kr(i,o)&&(Ca(e)||Ta(e))}function Hr(e){return"function"!=typeof e.constructor||Jr(e)?{}:Ai(js(e))}function Gr(e){return Ca(e)||Ta(e)||!!($s&&e&&e[$s])}function Kr(e,t){var n=typeof e;return!!(t=t??Y)&&("number"==n||"symbol"!=n&&st.test(e))&&e>-1&&e%1==0&&e<t}function Qr(e,t,n){if(!No(n))return!1;var r=typeof t;return!!("number"==r?Ro(n)&&Kr(t,n.length):"string"==r&&t in n)&&xo(n[t],e)}function Xr(e,t){if(Ca(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Vo(e))||Fe.test(e)||!Be.test(e)||null!=t&&e in _s(t)}function Yr(e){var t=jr(e),n=k[t];if("function"!=typeof n||!(t in lt.prototype))return!1;if(e===n)return!0;var r=qi(n);return!!r&&e===r[0]}function Jr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||As)}function Zr(e){return e==e&&!No(e)}function eo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==F||e in _s(n))}}function to(e,t,r){return t=ri(t===F?e.length-1:t,0),function(){for(var o=arguments,s=-1,i=ri(o.length-t,0),a=hs(i);++s<i;)a[s]=o[t+s];s=-1;for(var u=hs(t+1);++s<t;)u[s]=o[s];return u[t]=r(a),n(e,this,u)}}function no(e,t){return t.length<2?e:Ft(e,Bn(t,0,-1))}function ro(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function oo(e,t,n){var r=t+"";return Vi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ge,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return o(ne,(function(n){var r="_."+n[0];t&n[1]&&!u(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Ke);return t?t[1].split(Qe):[]}(r),n)))}function so(e){var t=0,n=0;return function(){var r=si(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(F,arguments)}}function io(e,t){var n=-1,r=e.length,o=r-1;for(t=t===F?r:t;++n<t;){var s=Pn(n,o),i=e[s];e[s]=e[n],e[n]=i}return e.length=t,e}function ao(e){if("string"==typeof e||Vo(e))return e;var t=e+"";return"0"==t&&1/e==-X?"-0":t}function uo(e){if(null!=e){try{return Ts.call(e)}catch{}try{return e+""}catch{}}return""}function co(e){if(e instanceof lt)return e.clone();var t=new ct(e.__wrapped__,e.__chain__);return t.__actions__=lr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function lo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Wo(n);return o<0&&(o=ri(r+o,0)),y(e,Fr(t,3),o)}function po(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==F&&(o=Wo(n),o=n<0?ri(r+o,0):oi(o,r-1)),y(e,Fr(t,3),o,!0)}function fo(e){return null!=e&&e.length?qt(e,1):[]}function ho(e){return e&&e.length?e[0]:F}function mo(e){var t=null==e?0:e.length;return t?e[t-1]:F}function yo(e,t){return e&&e.length&&t&&t.length?Rn(e,t):e}function go(e){return null==e?e:ui.call(e)}function vo(e){if(!e||!e.length)return[];var t=0;return e=a(e,(function(e){if(Mo(e))return t=ri(e.length,t),!0})),A(t,(function(t){return l(e,S(t))}))}function _o(e,t){if(!e||!e.length)return[];var r=vo(e);return null==t?r:l(r,(function(e){return n(t,F,e)}))}function bo(e){var t=k(e);return t.__chain__=!0,t}function So(e,t){return t(e)}function ko(e,t){return(Ca(e)?o:Ei)(e,Fr(t,3))}function Io(e,t){return(Ca(e)?s:Ti)(e,Fr(t,3))}function wo(e,t){return(Ca(e)?l:wn)(e,Fr(t,3))}function Ao(e,t,n){return t=n?F:t,t=e&&null==t?e.length:t,Rr(e,K,F,F,F,F,t)}function Eo(e,t){var n;if("function"!=typeof t)throw new ks(V);return e=Wo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=F),n}}function To(e,t,n){function r(t){var n=u,r=c;return u=c=F,h=t,d=e.apply(r,n)}function o(e){var n=e-f;return f===F||n>=t||n<0||y&&e-h>=l}function s(){var e=ya();return o(e)?i(e):(p=Fi(s,function(e){var n=t-(e-f);return y?oi(n,l-(e-h)):n}(e)),F)}function i(e){return p=F,g&&u?r(e):(u=c=F,d)}function a(){var e=ya(),n=o(e);if(u=arguments,c=this,f=e,n){if(p===F)return function(e){return h=e,p=Fi(s,t),m?r(e):d}(f);if(y)return Pi(p),p=Fi(s,t),r(f)}return p===F&&(p=Fi(s,t)),d}var u,c,l,d,p,f,h=0,m=!1,y=!1,g=!0;if("function"!=typeof e)throw new ks(V);return t=Go(t)||0,No(n)&&(m=!!n.leading,l=(y="maxWait"in n)?ri(Go(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g),a.cancel=function(){p!==F&&Pi(p),h=0,u=f=c=p=F},a.flush=function(){return p===F?d:i(ya())},a}function Co(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ks(V);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(Co.Cache||ft),n}function Oo(e){if("function"!=typeof e)throw new ks(V);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function xo(e,t){return e===t||e!=e&&t!=t}function Ro(e){return null!=e&&Uo(e.length)&&!Do(e)}function Mo(e){return Lo(e)&&Ro(e)}function Po(e){if(!Lo(e))return!1;var t=Qt(e);return t==ae||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Bo(e)}function Do(e){if(!No(e))return!1;var t=Qt(e);return t==ue||t==ce||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qo(e){return"number"==typeof e&&e==Wo(e)}function Uo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Y}function No(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Lo(e){return null!=e&&"object"==typeof e}function jo(e){return"number"==typeof e||Lo(e)&&Qt(e)==de}function Bo(e){if(!Lo(e)||Qt(e)!=pe)return!1;var t=js(e);if(null===t)return!0;var n=Cs.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ts.call(n)==Ms}function Fo(e){return"string"==typeof e||!Ca(e)&&Lo(e)&&Qt(e)==ye}function Vo(e){return"symbol"==typeof e||Lo(e)&&Qt(e)==ge}function $o(e){if(!e)return[];if(Ro(e))return Fo(e)?j(e):lr(e);if(zs&&e[zs])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[zs]());var t=Li(e);return(t==le?D:t==me?N:ts)(e)}function zo(e){return e?(e=Go(e))===X||e===-X?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Wo(e){var t=zo(e),n=t%1;return t==t?n?t-n:t:0}function Ho(e){return e?Tt(Wo(e),0,Z):0}function Go(e){if("number"==typeof e)return e;if(Vo(e))return J;if(No(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=No(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=E(e);var n=nt.test(e);return n||ot.test(e)?Yt(e.slice(2),n?2:8):tt.test(e)?J:+e}function Ko(e){return dr(e,Zo(e))}function Qo(e){return null==e?"":Hn(e)}function Xo(e,t,n){var r=null==e?F:Ft(e,t);return r===F?n:r}function Yo(e,t){return null!=e&&Wr(e,t,tn)}function Jo(e){return Ro(e)?yt(e):Sn(e)}function Zo(e){return Ro(e)?yt(e,!0):kn(e)}function es(e,t){if(null==e)return{};var n=l(Lr(e),(function(e){return[e]}));return t=Fr(t),xn(e,n,(function(e,n){return t(e,n[0])}))}function ts(e){return null==e?[]:C(e,Jo(e))}function ns(e){return au(Qo(e).toLowerCase())}function rs(e){return(e=Qo(e))&&e.replace(it,hn).replace(Bt,"")}function os(e,t,n){return e=Qo(e),(t=n?F:t)===F?function(e){return zt.test(e)}(e)?function(e){return e.match(Vt)||[]}(e):function(e){return e.match(Xe)||[]}(e):e.match(t)||[]}function ss(e){return function(){return e}}function is(e){return e}function as(e){return bn("function"==typeof e?e:Ct(e,1))}function us(e,t,n){var r=Jo(t),s=Lt(t,r);null!=n||No(t)&&(s.length||!r.length)||(n=t,t=e,e=this,s=Lt(t,Jo(t)));var i=!(No(n)&&"chain"in n&&!n.chain),a=Do(e);return o(s,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=lr(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,d([this.value()],arguments))})})),e}function cs(){}function ls(e){return Xr(e)?S(ao(e)):function(e){return function(t){return Ft(t,e)}}(e)}function ds(){return[]}function ps(){return!1}var fs,hs=(t=null==t?en:gn.defaults(en.Object(),t,gn.pick(en,Wt))).Array,ms=t.Date,ys=t.Error,gs=t.Function,vs=t.Math,_s=t.Object,bs=t.RegExp,Ss=t.String,ks=t.TypeError,Is=hs.prototype,ws=gs.prototype,As=_s.prototype,Es=t["__core-js_shared__"],Ts=ws.toString,Cs=As.hasOwnProperty,Os=0,xs=(fs=/[^.]+$/.exec(Es&&Es.keys&&Es.keys.IE_PROTO||""))?"Symbol(src)_1."+fs:"",Rs=As.toString,Ms=Ts.call(_s),Ps=en._,Ds=bs("^"+Ts.call(Cs).replace($e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qs=rn?t.Buffer:F,Us=t.Symbol,Ns=t.Uint8Array,Ls=qs?qs.allocUnsafe:F,js=q(_s.getPrototypeOf,_s),Bs=_s.create,Fs=As.propertyIsEnumerable,Vs=Is.splice,$s=Us?Us.isConcatSpreadable:F,zs=Us?Us.iterator:F,Ws=Us?Us.toStringTag:F,Hs=function(){try{var e=zr(_s,"defineProperty");return e({},"",{}),e}catch{}}(),Gs=t.clearTimeout!==en.clearTimeout&&t.clearTimeout,Ks=ms&&ms.now!==en.Date.now&&ms.now,Qs=t.setTimeout!==en.setTimeout&&t.setTimeout,Xs=vs.ceil,Ys=vs.floor,Js=_s.getOwnPropertySymbols,Zs=qs?qs.isBuffer:F,ei=t.isFinite,ti=Is.join,ni=q(_s.keys,_s),ri=vs.max,oi=vs.min,si=ms.now,ii=t.parseInt,ai=vs.random,ui=Is.reverse,ci=zr(t,"DataView"),li=zr(t,"Map"),di=zr(t,"Promise"),pi=zr(t,"Set"),fi=zr(t,"WeakMap"),hi=zr(_s,"create"),mi=fi&&new fi,yi={},gi=uo(ci),vi=uo(li),_i=uo(di),bi=uo(pi),Si=uo(fi),ki=Us?Us.prototype:F,Ii=ki?ki.valueOf:F,wi=ki?ki.toString:F,Ai=function(){function e(){}return function(t){if(!No(t))return{};if(Bs)return Bs(t);e.prototype=t;var n=new e;return e.prototype=F,n}}();k.templateSettings={escape:Ne,evaluate:Le,interpolate:je,variable:"",imports:{_:k}},k.prototype=He.prototype,k.prototype.constructor=k,ct.prototype=Ai(He.prototype),ct.prototype.constructor=ct,lt.prototype=Ai(He.prototype),lt.prototype.constructor=lt,dt.prototype.clear=function(){this.__data__=hi?hi(null):{},this.size=0},dt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},dt.prototype.get=function(e){var t=this.__data__;if(hi){var n=t[e];return n===$?F:n}return Cs.call(t,e)?t[e]:F},dt.prototype.has=function(e){var t=this.__data__;return hi?t[e]!==F:Cs.call(t,e)},dt.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hi&&t===F?$:t,this},pt.prototype.clear=function(){this.__data__=[],this.size=0},pt.prototype.delete=function(e){var t=this.__data__,n=kt(t,e);return!(n<0||(n==t.length-1?t.pop():Vs.call(t,n,1),--this.size,0))},pt.prototype.get=function(e){var t=this.__data__,n=kt(t,e);return n<0?F:t[n][1]},pt.prototype.has=function(e){return kt(this.__data__,e)>-1},pt.prototype.set=function(e,t){var n=this.__data__,r=kt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ft.prototype.clear=function(){this.size=0,this.__data__={hash:new dt,map:new(li||pt),string:new dt}},ft.prototype.delete=function(e){var t=Vr(this,e).delete(e);return this.size-=t?1:0,t},ft.prototype.get=function(e){return Vr(this,e).get(e)},ft.prototype.has=function(e){return Vr(this,e).has(e)},ft.prototype.set=function(e,t){var n=Vr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ht.prototype.add=ht.prototype.push=function(e){return this.__data__.set(e,$),this},ht.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.clear=function(){this.__data__=new pt,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof pt){var r=n.__data__;if(!li||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ft(r)}return n.set(e,t),this.size=n.size,this};var Ei=hr(Ut),Ti=hr(Nt,!0),Ci=mr(),Oi=mr(!0),xi=mi?function(e,t){return mi.set(e,t),e}:is,Ri=Hs?function(e,t){return Hs(e,"toString",{configurable:!0,enumerable:!1,value:ss(t),writable:!0})}:is,Mi=qn,Pi=Gs||function(e){return en.clearTimeout(e)},Di=pi&&1/N(new pi([,-0]))[1]==X?function(e){return new pi(e)}:cs,qi=mi?function(e){return mi.get(e)}:cs,Ui=Js?function(e){return null==e?[]:(e=_s(e),a(Js(e),(function(t){return Fs.call(e,t)})))}:ds,Ni=Js?function(e){for(var t=[];e;)d(t,Ui(e)),e=js(e);return t}:ds,Li=Qt;(ci&&Li(new ci(new ArrayBuffer(1)))!=be||li&&Li(new li)!=le||di&&Li(di.resolve())!=fe||pi&&Li(new pi)!=me||fi&&Li(new fi)!=ve)&&(Li=function(e){var t=Qt(e),n=t==pe?e.constructor:F,r=n?uo(n):"";if(r)switch(r){case gi:return be;case vi:return le;case _i:return fe;case bi:return me;case Si:return ve}return t});var ji=Es?Do:ps,Bi=so(xi),Fi=Qs||function(e,t){return en.setTimeout(e,t)},Vi=so(Ri),$i=function(e){var t=Co(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ve,(function(e,n,r,o){t.push(r?o.replace(Je,"$1"):n||e)})),t})),zi=qn((function(e,t){return Mo(e)?Rt(e,qt(t,1,Mo,!0)):[]})),Wi=qn((function(e,t){var n=mo(t);return Mo(n)&&(n=F),Mo(e)?Rt(e,qt(t,1,Mo,!0),Fr(n,2)):[]})),Hi=qn((function(e,t){var n=mo(t);return Mo(n)&&(n=F),Mo(e)?Rt(e,qt(t,1,Mo,!0),F,n):[]})),Gi=qn((function(e){var t=l(e,er);return t.length&&t[0]===e[0]?nn(t):[]})),Ki=qn((function(e){var t=mo(e),n=l(e,er);return t===mo(n)?t=F:n.pop(),n.length&&n[0]===e[0]?nn(n,Fr(t,2)):[]})),Qi=qn((function(e){var t=mo(e),n=l(e,er);return(t="function"==typeof t?t:F)&&n.pop(),n.length&&n[0]===e[0]?nn(n,F,t):[]})),Xi=qn(yo),Yi=Ur((function(e,t){var n=null==e?0:e.length,r=Et(e,t);return Mn(e,l(t,(function(e){return Kr(e,n)?+e:e})).sort(ar)),r})),Ji=qn((function(e){return Gn(qt(e,1,Mo,!0))})),Zi=qn((function(e){var t=mo(e);return Mo(t)&&(t=F),Gn(qt(e,1,Mo,!0),Fr(t,2))})),ea=qn((function(e){var t=mo(e);return t="function"==typeof t?t:F,Gn(qt(e,1,Mo,!0),F,t)})),ta=qn((function(e,t){return Mo(e)?Rt(e,t):[]})),na=qn((function(e){return Jn(a(e,Mo))})),ra=qn((function(e){var t=mo(e);return Mo(t)&&(t=F),Jn(a(e,Mo),Fr(t,2))})),oa=qn((function(e){var t=mo(e);return t="function"==typeof t?t:F,Jn(a(e,Mo),F,t)})),sa=qn(vo),ia=qn((function(e){var t=e.length,n=t>1?e[t-1]:F;return n="function"==typeof n?(e.pop(),n):F,_o(e,n)})),aa=Ur((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Et(t,e)};return!(t>1||this.__actions__.length)&&r instanceof lt&&Kr(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:So,args:[o],thisArg:F}),new ct(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(F),e}))):this.thru(o)})),ua=pr((function(e,t,n){Cs.call(e,n)?++e[n]:At(e,n,1)})),ca=_r(lo),la=_r(po),da=pr((function(e,t,n){Cs.call(e,n)?e[n].push(t):At(e,n,[t])})),pa=qn((function(e,t,r){var o=-1,s="function"==typeof t,i=Ro(e)?hs(e.length):[];return Ei(e,(function(e){i[++o]=s?n(t,e,r):on(e,t,r)})),i})),fa=pr((function(e,t,n){At(e,n,t)})),ha=pr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ma=qn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Qr(e,t[0],t[1])?t=[]:n>2&&Qr(t[0],t[1],t[2])&&(t=[t[0]]),On(e,qt(t,1),[])})),ya=Ks||function(){return en.Date.now()},ga=qn((function(e,t,n){var r=1;if(n.length){var o=U(n,Br(ga));r|=H}return Rr(e,r,t,n,o)})),va=qn((function(e,t,n){var r=3;if(n.length){var o=U(n,Br(va));r|=H}return Rr(t,r,e,n,o)})),_a=qn((function(e,t){return xt(e,1,t)})),ba=qn((function(e,t,n){return xt(e,Go(t)||0,n)}));Co.Cache=ft;var Sa=Mi((function(e,t){var r=(t=1==t.length&&Ca(t[0])?l(t[0],T(Fr())):l(qt(t,1),T(Fr()))).length;return qn((function(o){for(var s=-1,i=oi(o.length,r);++s<i;)o[s]=t[s].call(this,o[s]);return n(e,this,o)}))})),ka=qn((function(e,t){return Rr(e,H,F,t,U(t,Br(ka)))})),Ia=qn((function(e,t){return Rr(e,G,F,t,U(t,Br(Ia)))})),wa=Ur((function(e,t){return Rr(e,Q,F,F,F,t)})),Aa=Tr(Jt),Ea=Tr((function(e,t){return e>=t})),Ta=sn(function(){return arguments}())?sn:function(e){return Lo(e)&&Cs.call(e,"callee")&&!Fs.call(e,"callee")},Ca=hs.isArray,Oa=an?T(an):function(e){return Lo(e)&&Qt(e)==_e},xa=Zs||ps,Ra=un?T(un):function(e){return Lo(e)&&Qt(e)==ie},Ma=cn?T(cn):function(e){return Lo(e)&&Li(e)==le},Pa=ln?T(ln):function(e){return Lo(e)&&Qt(e)==he},Da=dn?T(dn):function(e){return Lo(e)&&Li(e)==me},qa=pn?T(pn):function(e){return Lo(e)&&Uo(e.length)&&!!Gt[Qt(e)]},Ua=Tr(In),Na=Tr((function(e,t){return e<=t})),La=fr((function(e,t){if(Jr(t)||Ro(t))return dr(t,Jo(t),e),F;for(var n in t)Cs.call(t,n)&&St(e,n,t[n])})),ja=fr((function(e,t){dr(t,Zo(t),e)})),Ba=fr((function(e,t,n,r){dr(t,Zo(t),e,r)})),Fa=fr((function(e,t,n,r){dr(t,Jo(t),e,r)})),Va=Ur(Et),$a=qn((function(e,t){e=_s(e);var n=-1,r=t.length,o=r>2?t[2]:F;for(o&&Qr(t[0],t[1],o)&&(r=1);++n<r;)for(var s=t[n],i=Zo(s),a=-1,u=i.length;++a<u;){var c=i[a],l=e[c];(l===F||xo(l,As[c])&&!Cs.call(e,c))&&(e[c]=s[c])}return e})),za=qn((function(e){return e.push(F,Pr),n(Qa,F,e)})),Wa=kr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Rs.call(t)),e[t]=n}),ss(is)),Ha=kr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Rs.call(t)),Cs.call(e,t)?e[t].push(n):e[t]=[n]}),Fr),Ga=qn(on),Ka=fr((function(e,t,n){Tn(e,t,n)})),Qa=fr((function(e,t,n,r){Tn(e,t,n,r)})),Xa=Ur((function(e,t){var n={};if(null==e)return n;var r=!1;t=l(t,(function(t){return t=nr(t,e),r||(r=t.length>1),t})),dr(e,Lr(e),n),r&&(n=Ct(n,7,Dr));for(var o=t.length;o--;)Kn(n,t[o]);return n})),Ya=Ur((function(e,t){return null==e?{}:function(e,t){return xn(e,t,(function(t,n){return Yo(e,n)}))}(e,t)})),Ja=xr(Jo),Za=xr(Zo),eu=gr((function(e,t,n){return t=t.toLowerCase(),e+(n?ns(t):t)})),tu=gr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),nu=gr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ru=yr("toLowerCase"),ou=gr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),su=gr((function(e,t,n){return e+(n?" ":"")+au(t)})),iu=gr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),au=yr("toUpperCase"),uu=qn((function(e,t){try{return n(e,F,t)}catch(e){return Po(e)?e:new ys(e)}})),cu=Ur((function(e,t){return o(t,(function(t){t=ao(t),At(e,t,ga(e[t],e))})),e})),lu=br(),du=br(!0),pu=qn((function(e,t){return function(n){return on(n,e,t)}})),fu=qn((function(e,t){return function(n){return on(e,n,t)}})),hu=wr(l),mu=wr(i),yu=wr(h),gu=Er(),vu=Er(!0),_u=Ir((function(e,t){return e+t}),0),bu=Or("ceil"),Su=Ir((function(e,t){return e/t}),1),ku=Or("floor"),Iu=Ir((function(e,t){return e*t}),1),wu=Or("round"),Au=Ir((function(e,t){return e-t}),0);return k.after=function(e,t){if("function"!=typeof t)throw new ks(V);return e=Wo(e),function(){if(--e<1)return t.apply(this,arguments)}},k.ary=Ao,k.assign=La,k.assignIn=ja,k.assignInWith=Ba,k.assignWith=Fa,k.at=Va,k.before=Eo,k.bind=ga,k.bindAll=cu,k.bindKey=va,k.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ca(e)?e:[e]},k.chain=bo,k.chunk=function(e,t,n){t=(n?Qr(e,t,n):t===F)?1:ri(Wo(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,s=0,i=hs(Xs(r/t));o<r;)i[s++]=Bn(e,o,o+=t);return i},k.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var s=e[t];s&&(o[r++]=s)}return o},k.concat=function(){var e=arguments.length;if(!e)return[];for(var t=hs(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return d(Ca(n)?lr(n):[n],qt(t,1))},k.cond=function(e){var t=null==e?0:e.length,r=Fr();return e=t?l(e,(function(e){if("function"!=typeof e[1])throw new ks(V);return[r(e[0]),e[1]]})):[],qn((function(r){for(var o=-1;++o<t;){var s=e[o];if(n(s[0],this,r))return n(s[1],this,r)}}))},k.conforms=function(e){return function(e){var t=Jo(e);return function(n){return Ot(n,e,t)}}(Ct(e,1))},k.constant=ss,k.countBy=ua,k.create=function(e,t){var n=Ai(e);return null==t?n:wt(n,t)},k.curry=function e(t,n,r){var o=Rr(t,8,F,F,F,F,F,n=r?F:n);return o.placeholder=e.placeholder,o},k.curryRight=function e(t,n,r){var o=Rr(t,W,F,F,F,F,F,n=r?F:n);return o.placeholder=e.placeholder,o},k.debounce=To,k.defaults=$a,k.defaultsDeep=za,k.defer=_a,k.delay=ba,k.difference=zi,k.differenceBy=Wi,k.differenceWith=Hi,k.drop=function(e,t,n){var r=null==e?0:e.length;return r?Bn(e,(t=n||t===F?1:Wo(t))<0?0:t,r):[]},k.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Bn(e,0,(t=r-(t=n||t===F?1:Wo(t)))<0?0:t):[]},k.dropRightWhile=function(e,t){return e&&e.length?Xn(e,Fr(t,3),!0,!0):[]},k.dropWhile=function(e,t){return e&&e.length?Xn(e,Fr(t,3),!0):[]},k.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Qr(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Wo(n))<0&&(n=-n>o?0:o+n),(r=r===F||r>o?o:Wo(r))<0&&(r+=o),r=n>r?0:Ho(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},k.filter=function(e,t){return(Ca(e)?a:Dt)(e,Fr(t,3))},k.flatMap=function(e,t){return qt(wo(e,t),1)},k.flatMapDeep=function(e,t){return qt(wo(e,t),X)},k.flatMapDepth=function(e,t,n){return n=n===F?1:Wo(n),qt(wo(e,t),n)},k.flatten=fo,k.flattenDeep=function(e){return null!=e&&e.length?qt(e,X):[]},k.flattenDepth=function(e,t){return null!=e&&e.length?qt(e,t=t===F?1:Wo(t)):[]},k.flip=function(e){return Rr(e,512)},k.flow=lu,k.flowRight=du,k.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},k.functions=function(e){return null==e?[]:Lt(e,Jo(e))},k.functionsIn=function(e){return null==e?[]:Lt(e,Zo(e))},k.groupBy=da,k.initial=function(e){return null!=e&&e.length?Bn(e,0,-1):[]},k.intersection=Gi,k.intersectionBy=Ki,k.intersectionWith=Qi,k.invert=Wa,k.invertBy=Ha,k.invokeMap=pa,k.iteratee=as,k.keyBy=fa,k.keys=Jo,k.keysIn=Zo,k.map=wo,k.mapKeys=function(e,t){var n={};return t=Fr(t,3),Ut(e,(function(e,r,o){At(n,t(e,r,o),e)})),n},k.mapValues=function(e,t){var n={};return t=Fr(t,3),Ut(e,(function(e,r,o){At(n,r,t(e,r,o))})),n},k.matches=function(e){return An(Ct(e,1))},k.matchesProperty=function(e,t){return En(e,Ct(t,1))},k.memoize=Co,k.merge=Ka,k.mergeWith=Qa,k.method=pu,k.methodOf=fu,k.mixin=us,k.negate=Oo,k.nthArg=function(e){return e=Wo(e),qn((function(t){return Cn(t,e)}))},k.omit=Xa,k.omitBy=function(e,t){return es(e,Oo(Fr(t)))},k.once=function(e){return Eo(2,e)},k.orderBy=function(e,t,n,r){return null==e?[]:(Ca(t)||(t=null==t?[]:[t]),Ca(n=r?F:n)||(n=null==n?[]:[n]),On(e,t,n))},k.over=hu,k.overArgs=Sa,k.overEvery=mu,k.overSome=yu,k.partial=ka,k.partialRight=Ia,k.partition=ha,k.pick=Ya,k.pickBy=es,k.property=ls,k.propertyOf=function(e){return function(t){return null==e?F:Ft(e,t)}},k.pull=Xi,k.pullAll=yo,k.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Rn(e,t,Fr(n,2)):e},k.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Rn(e,t,F,n):e},k.pullAt=Yi,k.range=gu,k.rangeRight=vu,k.rearg=wa,k.reject=function(e,t){return(Ca(e)?a:Dt)(e,Oo(Fr(t,3)))},k.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],s=e.length;for(t=Fr(t,3);++r<s;){var i=e[r];t(i,r,e)&&(n.push(i),o.push(r))}return Mn(e,o),n},k.rest=function(e,t){if("function"!=typeof e)throw new ks(V);return qn(e,t=t===F?t:Wo(t))},k.reverse=go,k.sampleSize=function(e,t,n){return t=(n?Qr(e,t,n):t===F)?1:Wo(t),(Ca(e)?vt:Nn)(e,t)},k.set=function(e,t,n){return null==e?e:Ln(e,t,n)},k.setWith=function(e,t,n,r){return r="function"==typeof r?r:F,null==e?e:Ln(e,t,n,r)},k.shuffle=function(e){return(Ca(e)?_t:jn)(e)},k.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Qr(e,t,n)?(t=0,n=r):(t=null==t?0:Wo(t),n=n===F?r:Wo(n)),Bn(e,t,n)):[]},k.sortBy=ma,k.sortedUniq=function(e){return e&&e.length?zn(e):[]},k.sortedUniqBy=function(e,t){return e&&e.length?zn(e,Fr(t,2)):[]},k.split=function(e,t,n){return n&&"number"!=typeof n&&Qr(e,t,n)&&(t=n=F),(n=n===F?Z:n>>>0)?(e=Qo(e))&&("string"==typeof t||null!=t&&!Pa(t))&&!(t=Hn(t))&&P(e)?rr(j(e),0,n):e.split(t,n):[]},k.spread=function(e,t){if("function"!=typeof e)throw new ks(V);return t=null==t?0:ri(Wo(t),0),qn((function(r){var o=r[t],s=rr(r,0,t);return o&&d(s,o),n(e,this,s)}))},k.tail=function(e){var t=null==e?0:e.length;return t?Bn(e,1,t):[]},k.take=function(e,t,n){return e&&e.length?Bn(e,0,(t=n||t===F?1:Wo(t))<0?0:t):[]},k.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Bn(e,(t=r-(t=n||t===F?1:Wo(t)))<0?0:t,r):[]},k.takeRightWhile=function(e,t){return e&&e.length?Xn(e,Fr(t,3),!1,!0):[]},k.takeWhile=function(e,t){return e&&e.length?Xn(e,Fr(t,3)):[]},k.tap=function(e,t){return t(e),e},k.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ks(V);return No(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),To(e,t,{leading:r,maxWait:t,trailing:o})},k.thru=So,k.toArray=$o,k.toPairs=Ja,k.toPairsIn=Za,k.toPath=function(e){return Ca(e)?l(e,ao):Vo(e)?[e]:lr($i(Qo(e)))},k.toPlainObject=Ko,k.transform=function(e,t,n){var r=Ca(e),s=r||xa(e)||qa(e);if(t=Fr(t,4),null==n){var i=e&&e.constructor;n=s?r?new i:[]:No(e)&&Do(i)?Ai(js(e)):{}}return(s?o:Ut)(e,(function(e,r,o){return t(n,e,r,o)})),n},k.unary=function(e){return Ao(e,1)},k.union=Ji,k.unionBy=Zi,k.unionWith=ea,k.uniq=function(e){return e&&e.length?Gn(e):[]},k.uniqBy=function(e,t){return e&&e.length?Gn(e,Fr(t,2)):[]},k.uniqWith=function(e,t){return t="function"==typeof t?t:F,e&&e.length?Gn(e,F,t):[]},k.unset=function(e,t){return null==e||Kn(e,t)},k.unzip=vo,k.unzipWith=_o,k.update=function(e,t,n){return null==e?e:Qn(e,t,tr(n))},k.updateWith=function(e,t,n,r){return r="function"==typeof r?r:F,null==e?e:Qn(e,t,tr(n),r)},k.values=ts,k.valuesIn=function(e){return null==e?[]:C(e,Zo(e))},k.without=ta,k.words=os,k.wrap=function(e,t){return ka(tr(t),e)},k.xor=na,k.xorBy=ra,k.xorWith=oa,k.zip=sa,k.zipObject=function(e,t){return Zn(e||[],t||[],St)},k.zipObjectDeep=function(e,t){return Zn(e||[],t||[],Ln)},k.zipWith=ia,k.entries=Ja,k.entriesIn=Za,k.extend=ja,k.extendWith=Ba,us(k,k),k.add=_u,k.attempt=uu,k.camelCase=eu,k.capitalize=ns,k.ceil=bu,k.clamp=function(e,t,n){return n===F&&(n=t,t=F),n!==F&&(n=(n=Go(n))==n?n:0),t!==F&&(t=(t=Go(t))==t?t:0),Tt(Go(e),t,n)},k.clone=function(e){return Ct(e,4)},k.cloneDeep=function(e){return Ct(e,5)},k.cloneDeepWith=function(e,t){return Ct(e,5,t="function"==typeof t?t:F)},k.cloneWith=function(e,t){return Ct(e,4,t="function"==typeof t?t:F)},k.conformsTo=function(e,t){return null==t||Ot(e,t,Jo(t))},k.deburr=rs,k.defaultTo=function(e,t){return null==e||e!=e?t:e},k.divide=Su,k.endsWith=function(e,t,n){e=Qo(e),t=Hn(t);var r=e.length,o=n=n===F?r:Tt(Wo(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},k.eq=xo,k.escape=function(e){return(e=Qo(e))&&Ue.test(e)?e.replace(De,mn):e},k.escapeRegExp=function(e){return(e=Qo(e))&&ze.test(e)?e.replace($e,"\\$&"):e},k.every=function(e,t,n){var r=Ca(e)?i:Mt;return n&&Qr(e,t,n)&&(t=F),r(e,Fr(t,3))},k.find=ca,k.findIndex=lo,k.findKey=function(e,t){return m(e,Fr(t,3),Ut)},k.findLast=la,k.findLastIndex=po,k.findLastKey=function(e,t){return m(e,Fr(t,3),Nt)},k.floor=ku,k.forEach=ko,k.forEachRight=Io,k.forIn=function(e,t){return null==e?e:Ci(e,Fr(t,3),Zo)},k.forInRight=function(e,t){return null==e?e:Oi(e,Fr(t,3),Zo)},k.forOwn=function(e,t){return e&&Ut(e,Fr(t,3))},k.forOwnRight=function(e,t){return e&&Nt(e,Fr(t,3))},k.get=Xo,k.gt=Aa,k.gte=Ea,k.has=function(e,t){return null!=e&&Wr(e,t,Zt)},k.hasIn=Yo,k.head=ho,k.identity=is,k.includes=function(e,t,n,r){e=Ro(e)?e:ts(e),n=n&&!r?Wo(n):0;var o=e.length;return n<0&&(n=ri(o+n,0)),Fo(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&g(e,t,n)>-1},k.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Wo(n);return o<0&&(o=ri(r+o,0)),g(e,t,o)},k.inRange=function(e,t,n){return t=zo(t),n===F?(n=t,t=0):n=zo(n),function(e,t,n){return e>=oi(t,n)&&e<ri(t,n)}(e=Go(e),t,n)},k.invoke=Ga,k.isArguments=Ta,k.isArray=Ca,k.isArrayBuffer=Oa,k.isArrayLike=Ro,k.isArrayLikeObject=Mo,k.isBoolean=function(e){return!0===e||!1===e||Lo(e)&&Qt(e)==se},k.isBuffer=xa,k.isDate=Ra,k.isElement=function(e){return Lo(e)&&1===e.nodeType&&!Bo(e)},k.isEmpty=function(e){if(null==e)return!0;if(Ro(e)&&(Ca(e)||"string"==typeof e||"function"==typeof e.splice||xa(e)||qa(e)||Ta(e)))return!e.length;var t=Li(e);if(t==le||t==me)return!e.size;if(Jr(e))return!Sn(e).length;for(var n in e)if(Cs.call(e,n))return!1;return!0},k.isEqual=function(e,t){return fn(e,t)},k.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:F)?n(e,t):F;return r===F?fn(e,t,F,n):!!r},k.isError=Po,k.isFinite=function(e){return"number"==typeof e&&ei(e)},k.isFunction=Do,k.isInteger=qo,k.isLength=Uo,k.isMap=Ma,k.isMatch=function(e,t){return e===t||vn(e,t,$r(t))},k.isMatchWith=function(e,t,n){return n="function"==typeof n?n:F,vn(e,t,$r(t),n)},k.isNaN=function(e){return jo(e)&&e!=+e},k.isNative=function(e){if(ji(e))throw new ys("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _n(e)},k.isNil=function(e){return null==e},k.isNull=function(e){return null===e},k.isNumber=jo,k.isObject=No,k.isObjectLike=Lo,k.isPlainObject=Bo,k.isRegExp=Pa,k.isSafeInteger=function(e){return qo(e)&&e>=-Y&&e<=Y},k.isSet=Da,k.isString=Fo,k.isSymbol=Vo,k.isTypedArray=qa,k.isUndefined=function(e){return e===F},k.isWeakMap=function(e){return Lo(e)&&Li(e)==ve},k.isWeakSet=function(e){return Lo(e)&&"[object WeakSet]"==Qt(e)},k.join=function(e,t){return null==e?"":ti.call(e,t)},k.kebabCase=tu,k.last=mo,k.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==F&&(o=(o=Wo(n))<0?ri(r+o,0):oi(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):y(e,_,o,!0)},k.lowerCase=nu,k.lowerFirst=ru,k.lt=Ua,k.lte=Na,k.max=function(e){return e&&e.length?Pt(e,is,Jt):F},k.maxBy=function(e,t){return e&&e.length?Pt(e,Fr(t,2),Jt):F},k.mean=function(e){return b(e,is)},k.meanBy=function(e,t){return b(e,Fr(t,2))},k.min=function(e){return e&&e.length?Pt(e,is,In):F},k.minBy=function(e,t){return e&&e.length?Pt(e,Fr(t,2),In):F},k.stubArray=ds,k.stubFalse=ps,k.stubObject=function(){return{}},k.stubString=function(){return""},k.stubTrue=function(){return!0},k.multiply=Iu,k.nth=function(e,t){return e&&e.length?Cn(e,Wo(t)):F},k.noConflict=function(){return en._===this&&(en._=Ps),this},k.noop=cs,k.now=ya,k.pad=function(e,t,n){e=Qo(e);var r=(t=Wo(t))?L(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ar(Ys(o),n)+e+Ar(Xs(o),n)},k.padEnd=function(e,t,n){e=Qo(e);var r=(t=Wo(t))?L(e):0;return t&&r<t?e+Ar(t-r,n):e},k.padStart=function(e,t,n){e=Qo(e);var r=(t=Wo(t))?L(e):0;return t&&r<t?Ar(t-r,n)+e:e},k.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ii(Qo(e).replace(We,""),t||0)},k.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Qr(e,t,n)&&(t=n=F),n===F&&("boolean"==typeof t?(n=t,t=F):"boolean"==typeof e&&(n=e,e=F)),e===F&&t===F?(e=0,t=1):(e=zo(e),t===F?(t=e,e=0):t=zo(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=ai();return oi(e+o*(t-e+Xt("1e-"+((o+"").length-1))),t)}return Pn(e,t)},k.reduce=function(e,t,n){var r=Ca(e)?p:I,o=arguments.length<3;return r(e,Fr(t,4),n,o,Ei)},k.reduceRight=function(e,t,n){var r=Ca(e)?f:I,o=arguments.length<3;return r(e,Fr(t,4),n,o,Ti)},k.repeat=function(e,t,n){return t=(n?Qr(e,t,n):t===F)?1:Wo(t),Dn(Qo(e),t)},k.replace=function(){var e=arguments,t=Qo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},k.result=function(e,t,n){var r=-1,o=(t=nr(t,e)).length;for(o||(o=1,e=F);++r<o;){var s=null==e?F:e[ao(t[r])];s===F&&(r=o,s=n),e=Do(s)?s.call(e):s}return e},k.round=wu,k.runInContext=e,k.sample=function(e){return(Ca(e)?gt:Un)(e)},k.size=function(e){if(null==e)return 0;if(Ro(e))return Fo(e)?L(e):e.length;var t=Li(e);return t==le||t==me?e.size:Sn(e).length},k.snakeCase=ou,k.some=function(e,t,n){var r=Ca(e)?h:Fn;return n&&Qr(e,t,n)&&(t=F),r(e,Fr(t,3))},k.sortedIndex=function(e,t){return Vn(e,t)},k.sortedIndexBy=function(e,t,n){return $n(e,t,Fr(n,2))},k.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Vn(e,t);if(r<n&&xo(e[r],t))return r}return-1},k.sortedLastIndex=function(e,t){return Vn(e,t,!0)},k.sortedLastIndexBy=function(e,t,n){return $n(e,t,Fr(n,2),!0)},k.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Vn(e,t,!0)-1;if(xo(e[n],t))return n}return-1},k.startCase=su,k.startsWith=function(e,t,n){return e=Qo(e),n=null==n?0:Tt(Wo(n),0,e.length),t=Hn(t),e.slice(n,n+t.length)==t},k.subtract=Au,k.sum=function(e){return e&&e.length?w(e,is):0},k.sumBy=function(e,t){return e&&e.length?w(e,Fr(t,2)):0},k.template=function(e,t,n){var r=k.templateSettings;n&&Qr(e,t,n)&&(t=F),e=Qo(e),t=Ba({},t,r,Mr);var o,s,i=Ba({},t.imports,r.imports,Mr),a=Jo(i),u=C(i,a),c=0,l=t.interpolate||at,d="__p += '",p=bs((t.escape||at).source+"|"+l.source+"|"+(l===je?Ze:at).source+"|"+(t.evaluate||at).source+"|$","g"),f="//# sourceURL="+(Cs.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ht+"]")+"\n";e.replace(p,(function(t,n,r,i,a,u){return r||(r=i),d+=e.slice(c,u).replace(ut,M),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),d+="';\n";var h=Cs.call(t,"variable")&&t.variable;if(h){if(Ye.test(h))throw new ys("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(xe,""):d).replace(Re,"$1").replace(Me,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=uu((function(){return gs(a,f+"return "+d).apply(F,u)}));if(m.source=d,Po(m))throw m;return m},k.times=function(e,t){if((e=Wo(e))<1||e>Y)return[];var n=Z,r=oi(e,Z);t=Fr(t),e-=Z;for(var o=A(r,t);++n<e;)t(n);return o},k.toFinite=zo,k.toInteger=Wo,k.toLength=Ho,k.toLower=function(e){return Qo(e).toLowerCase()},k.toNumber=Go,k.toSafeInteger=function(e){return e?Tt(Wo(e),-Y,Y):0===e?e:0},k.toString=Qo,k.toUpper=function(e){return Qo(e).toUpperCase()},k.trim=function(e,t,n){if((e=Qo(e))&&(n||t===F))return E(e);if(!e||!(t=Hn(t)))return e;var r=j(e),o=j(t);return rr(r,x(r,o),R(r,o)+1).join("")},k.trimEnd=function(e,t,n){if((e=Qo(e))&&(n||t===F))return e.slice(0,B(e)+1);if(!e||!(t=Hn(t)))return e;var r=j(e);return rr(r,0,R(r,j(t))+1).join("")},k.trimStart=function(e,t,n){if((e=Qo(e))&&(n||t===F))return e.replace(We,"");if(!e||!(t=Hn(t)))return e;var r=j(e);return rr(r,x(r,j(t))).join("")},k.truncate=function(e,t){var n=30,r="...";if(No(t)){var o="separator"in t?t.separator:o;n="length"in t?Wo(t.length):n,r="omission"in t?Hn(t.omission):r}var s=(e=Qo(e)).length;if(P(e)){var i=j(e);s=i.length}if(n>=s)return e;var a=n-L(r);if(a<1)return r;var u=i?rr(i,0,a).join(""):e.slice(0,a);if(o===F)return u+r;if(i&&(a+=u.length-a),Pa(o)){if(e.slice(a).search(o)){var c,l=u;for(o.global||(o=bs(o.source,Qo(et.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var d=c.index;u=u.slice(0,d===F?a:d)}}else if(e.indexOf(Hn(o),a)!=a){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+r},k.unescape=function(e){return(e=Qo(e))&&qe.test(e)?e.replace(Pe,yn):e},k.uniqueId=function(e){var t=++Os;return Qo(e)+t},k.upperCase=iu,k.upperFirst=au,k.each=ko,k.eachRight=Io,k.first=ho,us(k,function(){var e={};return Ut(k,(function(t,n){Cs.call(k.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),k.VERSION="4.17.21",o(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){k[e].placeholder=k})),o(["drop","take"],(function(e,t){lt.prototype[e]=function(n){n=n===F?1:ri(Wo(n),0);var r=this.__filtered__&&!t?new lt(this):this.clone();return r.__filtered__?r.__takeCount__=oi(n,r.__takeCount__):r.__views__.push({size:oi(n,Z),type:e+(r.__dir__<0?"Right":"")}),r},lt.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),o(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;lt.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Fr(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),o(["head","last"],(function(e,t){var n="take"+(t?"Right":"");lt.prototype[e]=function(){return this[n](1).value()[0]}})),o(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");lt.prototype[e]=function(){return this.__filtered__?new lt(this):this[n](1)}})),lt.prototype.compact=function(){return this.filter(is)},lt.prototype.find=function(e){return this.filter(e).head()},lt.prototype.findLast=function(e){return this.reverse().find(e)},lt.prototype.invokeMap=qn((function(e,t){return"function"==typeof e?new lt(this):this.map((function(n){return on(n,e,t)}))})),lt.prototype.reject=function(e){return this.filter(Oo(Fr(e)))},lt.prototype.slice=function(e,t){e=Wo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new lt(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==F&&(n=(t=Wo(t))<0?n.dropRight(-t):n.take(t-e)),n)},lt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},lt.prototype.toArray=function(){return this.take(Z)},Ut(lt.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=k[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(k.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,a=t instanceof lt,u=i[0],c=a||Ca(t),l=function(e){var t=o.apply(k,d([e],i));return r&&p?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(a=c=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=a&&!f;if(!s&&c){t=m?t:new lt(this);var y=e.apply(t,i);return y.__actions__.push({func:So,args:[l],thisArg:F}),new ct(y,p)}return h&&m?e.apply(this,i):(y=this.thru(l),h?r?y.value()[0]:y.value():y)})})),o(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Is[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);k.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ca(o)?o:[],e)}return this[n]((function(n){return t.apply(Ca(n)?n:[],e)}))}})),Ut(lt.prototype,(function(e,t){var n=k[t];if(n){var r=n.name+"";Cs.call(yi,r)||(yi[r]=[]),yi[r].push({name:t,func:n})}})),yi[Sr(F,2).name]=[{name:"wrapper",func:F}],lt.prototype.clone=function(){var e=new lt(this.__wrapped__);return e.__actions__=lr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=lr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=lr(this.__views__),e},lt.prototype.reverse=function(){if(this.__filtered__){var e=new lt(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},lt.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ca(e),r=t<0,o=n?e.length:0,s=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var s=n[r],i=s.size;switch(s.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=oi(t,e+i);break;case"takeRight":e=ri(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=s.start,a=s.end,u=a-i,c=r?a:i-1,l=this.__iteratees__,d=l.length,p=0,f=oi(u,this.__takeCount__);if(!n||!r&&o==u&&f==u)return Yn(e,this.__actions__);var h=[];e:for(;u--&&p<f;){for(var m=-1,y=e[c+=t];++m<d;){var g=l[m],v=g.iteratee,_=g.type,b=v(y);if(2==_)y=b;else if(!b){if(1==_)continue e;break e}}h[p++]=y}return h},k.prototype.at=aa,k.prototype.chain=function(){return bo(this)},k.prototype.commit=function(){return new ct(this.value(),this.__chain__)},k.prototype.next=function(){this.__values__===F&&(this.__values__=$o(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?F:this.__values__[this.__index__++]}},k.prototype.plant=function(e){for(var t,n=this;n instanceof He;){var r=co(n);r.__index__=0,r.__values__=F,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},k.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof lt){var t=e;return this.__actions__.length&&(t=new lt(this)),(t=t.reverse()).__actions__.push({func:So,args:[go],thisArg:F}),new ct(t,this.__chain__)}return this.thru(go)},k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=function(){return Yn(this.__wrapped__,this.__actions__)},k.prototype.first=k.prototype.head,zs&&(k.prototype[zs]=function(){return this}),k}();nn?((nn.exports=gn)._=gn,tn._=gn):en._=gn}.call(hx)),Ts.exports;var e,t}var Th,Gu,Rh,Ku,Ch,Qu,Oh,qu={};function yx(){return Th||(Th=1,(e=qu).aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var o in n){var s=n[o];t.call(r,s)?r[s].push(o):r[s]=[o]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}),qu;var e}function _x(){return Rh||(Rh=1,Gu={}),Gu}function gx(){if(Ch)return Ku;Ch=1;var e=yx(),t=_x(),n=Array.prototype.push;function r(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function o(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function s(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}return Ku=function i(a,u,c,l){var d="function"==typeof u,p=u===Object(u);if(p&&(l=c,c=u,u=void 0),null==c)throw new TypeError;l||(l={});var f=!("cap"in l)||l.cap,h=!("curry"in l)||l.curry,m=!("fixed"in l)||l.fixed,y=!("immutable"in l)||l.immutable,g=!("rearg"in l)||l.rearg,v=d?c:t,_="curry"in l&&l.curry,b="fixed"in l&&l.fixed,S="rearg"in l&&l.rearg,k=d?c.runInContext():void 0,I=d?c:{ary:a.ary,assign:a.assign,clone:a.clone,curry:a.curry,forEach:a.forEach,isArray:a.isArray,isError:a.isError,isFunction:a.isFunction,isWeakMap:a.isWeakMap,iteratee:a.iteratee,keys:a.keys,rearg:a.rearg,toInteger:a.toInteger,toPath:a.toPath},w=I.ary,A=I.assign,E=I.clone,T=I.curry,C=I.forEach,O=I.isArray,x=I.isError,R=I.isFunction,M=I.isWeakMap,P=I.keys,D=I.rearg,q=I.toInteger,U=I.toPath,N=P(e.aryMethod),L={castArray:function(e){return function(){var t=arguments[0];return O(t)?e(o(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),o=n.length;return f&&"number"==typeof t?(t=t>2?t-2:1,o&&o<=t?n:r(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!R(n))return e(n,Object(t));var r=[];return C(P(t),(function(e){R(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),C(r,(function(e){var t=e[1];R(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:q(t)+1;return T(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return T(e(t,n),r)}},runInContext:function(e){return function(t){return i(a,e(t),l)}}};function j(t,n){if(f){var o=e.iterateeRearg[t];if(o)return function(e,t){return z(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(D(r(e,n),t),n)}))}(n,o);var s=!d&&e.iterateeAry[t];if(s)return function(e,t){return z(e,(function(e){return"function"==typeof e?r(e,t):e}))}(n,s)}return n}function B(t,r,o){if(m&&(b||!e.skipFixed[t])){var s=e.methodSpread[t],i=s&&s.start;return void 0===i?w(r,o):function(e,t){return function(){for(var r=arguments.length,o=r-1,s=Array(r);r--;)s[r]=arguments[r];var i=s[t],a=s.slice(0,t);return i&&n.apply(a,i),t!=o&&n.apply(a,s.slice(t+1)),e.apply(this,a)}}(r,i)}return r}function F(t,n,r){return g&&r>1&&(S||!e.skipRearg[t])?D(n,e.methodRearg[t]||e.aryRearg[r]):n}function V(e,t){for(var n=-1,r=(t=U(t)).length,o=r-1,s=E(Object(e)),i=s;null!=i&&++n<r;){var a=t[n],u=i[a];null!=u&&!(R(u)||x(u)||M(u))&&(i[a]=E(n==o?u:Object(u))),i=i[a]}return s}function $(t,n){var r=e.aliasToReal[t]||t,o=e.remap[r]||r,s=l;return function(e){var t=d?k:I,a=d?k[o]:n,u=A(A({},s),e);return i(t,r,a,u)}}function z(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=g?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function W(t,n,r){var i,a=e.aliasToReal[t]||t,u=n,c=L[a];return c?u=c(n):y&&(e.mutate.array[a]?u=s(n,o):e.mutate.object[a]?u=s(n,function(e){return function(t){return e({},t)}}(n)):e.mutate.set[a]&&(u=s(n,V))),C(N,(function(t){return C(e.aryMethod[t],(function(n){if(a==n){var r=e.methodSpread[a],o=r&&r.afterRearg;return i=o?B(a,F(a,u,t),t):F(a,B(a,u,t),t),i=function(e,t,n){return _||h&&n>1?T(t,n):t}(0,i=j(a,i),t),!1}})),!i})),i||(i=u),i==n&&(i=_?T(i,1):function(){return n.apply(this,arguments)}),i.convert=$(a,n),i.placeholder=n.placeholder=r,i}if(!p)return W(u,c,v);var H=c,G=[];return C(N,(function(t){C(e.aryMethod[t],(function(t){var n=H[e.remap[t]||t];n&&G.push([t,W(t,n,H)])}))})),C(P(H),(function(e){var t=H[e];if("function"==typeof t){for(var n=G.length;n--;)if(G[n][0]==e)return;t.convert=$(e,t),G.push([e,t])}})),C(G,(function(e){H[e[0]]=e[1]})),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,C(P(H),(function(t){C(e.realToAlias[t]||[],(function(e){H[e]=H[t]}))})),H},Ku}function vx(){if(Oh)return Qu;Oh=1;var e=mx().runInContext();return Qu=gx()(e,e)}vx();const Sx={data:null,isPending:!1,isSuccess:!1},Ex=jt({name:"userNoHTML",initialState:Sx,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}});var Ah,Yu={};function bx(){return Ah||(Ah=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],n=[],r=[],o=[],s=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeBefore=e=>s(e,t),e.subscribeAfter=e=>s(e,n);const i=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeActionBefore=(e,t)=>i({action:e,listener:t},r),e.subscribeActionAfter=(e,t)=>i({action:e,listener:t},o),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{r.length=0},e.unsubscribeAfter=()=>{n.length=0},e.unsubscribeActionsAfter=()=>{o.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const a=(e,t)=>{const n=e.filter((({action:e})=>e!==t));e.length=0,e.concat(n)};e.unsubscribeActionBefore=e=>{a(r,e)},e.unsubscribeActionAfter=e=>{a(o,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const u=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r(e)}},c=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r.action===e.type&&r.listener(e)}};e.subscribeActionMiddleware=e=>e=>s=>{u(s,t),c(s,r);const i=e(s);return u(s,n),c(s,o),i},e.default=e.subscribeActionMiddleware}(Yu)),Yu}var Ix=bx();const wx=nm(Ix),hl=e=>e,ml=it(hl,(e=>e.data)),kx=it(hl,(e=>e.error)),Tx=it(hl,(e=>e.isPending)),Yr=it(ml,(e=>null==e?void 0:e.configuration)),Rx=it(Yr,(e=>null==e?void 0:e.media_attachments)),yl=it(Yr,(e=>({IMAGE:null==e?void 0:e.media_attachments.image_extensions,VIDEO:null==e?void 0:e.media_attachments.video_extensions,AUDIO:null==e?void 0:e.media_attachments.audio_extensions,DOCUMENT:null==e?void 0:e.media_attachments.doc_extensions}))),Cx=it([yl,(e,t)=>t],((e,t)=>e[t])),Ox=it(yl,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),Ax=it(Yr,(e=>(null==e?void 0:e.posts.max_media_attachments)||0)),xx=it(Yr,(e=>(null==e?void 0:e.posts.max_characters)||0)),Mx=it(Yr,(e=>(null==e?void 0:e.posts.max_pins)||0)),Px=it(ml,(e=>null==e?void 0:e.rules)),Dx={data:null,isPending:!1},Lx=jt({name:"instanceInfo",initialState:Dx,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:ml,selectPostPinsLimit:Mx,selectInstanceInfoError:kx,selectInstanceInfoPending:Tx,selectPostSizeLimit:xx,selectConfiguration:Yr,selectAttachmentsLimit:Ax,selectSupportedExtensions:yl,selectFullExtensionsList:Ox,selectPlatformRules:Px,selectMediaConfiguration:Rx,selectSupportedExtensionsFor:Cx,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),Nx={data:null,isPending:!1,isSuccess:!1},Ux=jt({name:"profileSettings",initialState:Nx,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),xh={data:{userId:"",list:[]},count:{},isPending:!1},Bx=e=>e,Fx=e=>e.error,jx=e=>e.isPending,Vx=e=>{var t;return null==(t=e.count)?void 0:t.total},$x=e=>{var t;return null==(t=e.count)?void 0:t.unread},Wx=e=>e.data.userId,_l=it(Bx,(e=>e.data.list)),zx=it(_l,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),Hx=it(_l,(e=>null==e?void 0:e.at(-1))),qx=jt({name:"notifications",initialState:xh,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setError:(e,t)=>{e.error=t.payload},setNotifications:(e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}},addNotification:(e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])},markNotification:(e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))},updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},setTotalCount:(e,t)=>{e.count.total=t.payload},setUnreadCount:(e,t)=>{e.count.unread=t.payload},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))},resetState:()=>xh,undoNotitication:(e,t)=>{var n,r,o;const s=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===s)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(o=e.data.list)?void 0:o.filter((e=>e.id!==s)))||[]}},selectors:{selectError:Fx,selectIsPending:jx,selectTotalCount:Vx,selectUnreadCount:$x,selectNotifications:_l,selectUnreadNotifications:zx,selectLastNotification:Hx,selectNotificationsOwner:Wx}});var Gx={TERM_PROGRAM:"iTerm.app",NODE:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",TURBO_INVOCATION_DIR:"/Users/krasevych/Projects/Animatron/web-apps",NVM_CD_FLAGS:"-q",INIT_CWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/store",TERM:"xterm-256color",SHELL:"/bin/zsh",TMPDIR:"/var/folders/1y/vz19w_xj5xzb49lxmbmzk7dc0000gn/T/",DOMAIN_ENV:"dev",npm_config_global_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",TERM_PROGRAM_VERSION:"3.5.11",NODE_OPTIONS:"--max-old-space-size=8192",TERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",COLOR:"1",npm_config_noproxy:"",npm_config_local_prefix:"/Users/krasevych/Projects/Animatron/web-apps",USER:"krasevych",NVM_DIR:"/Users/krasevych/.nvm",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/Users/krasevych/.nvm/versions/node/v22.12.0/etc/npmrc",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.xn6U3pyr1k/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x0:0x2",npm_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/bin/npm-cli.js",TERM_FEATURES:"T3LrMSc7UUw9Ts3BFGsSyHNoSxF",TERMINFO_DIRS:"/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo",PATH:"/Users/krasevych/Projects/Animatron/web-apps/packages/store/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/packages/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/local/opt/postgresql@16/bin:/Users/krasevych/.yarn/bin:/Users/krasevych/.config/yarn/global/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Applications/Visual Studio Code.app/Contents/Resources/app/bin",npm_package_json:"/Users/krasevych/Projects/Animatron/web-apps/packages/store/package.json",LaunchInstanceID:"BC2D37FC-0469-4680-8D65-486E7C3C39CD",npm_config_userconfig:"/Users/krasevych/.npmrc",npm_config_init_module:"/Users/krasevych/.npm-init.js",__CFBundleIdentifier:"com.googlecode.iterm2",npm_command:"run-script",PWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/store",npm_lifecycle_event:"build",EDITOR:"vi",npm_package_name:"@wellesley/store",LANG:"en_GB.UTF-8",ITERM_PROFILE:"Roman",npm_config_npm_version:"10.9.0",XPC_FLAGS:"0x0",TURBO_HASH:"bccbe34fe9138aee",npm_package_engines_node:">=20.2.0",npm_config_node_gyp:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_version:"1.0.154",XPC_SERVICE_NAME:"0",SHLVL:"4",HOME:"/Users/krasevych",COLORFGBG:"7;0",LC_TERMINAL_VERSION:"3.5.11",ITERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",npm_config_cache:"/Users/krasevych/.npm",LOGNAME:"krasevych",npm_lifecycle_script:"tsc && vite build",NVM_BIN:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin",npm_config_user_agent:"npm/10.9.0 node/v22.12.0 darwin x64 workspaces/false",LC_TERMINAL:"iTerm2",SECURITYSESSIONID:"186a3",npm_node_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",npm_config_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",COLORTERM:"truecolor",_:"/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin/vite",NODE_ENV:"production",TEST_1_SERVER:"https://dust.allroads.social",TEST_2_SERVER:"https://meteor.allroads.social",DEV_API_URL:"https://dust.allroads.social",DEV_LOCAL_TEST_ME_URL:"http://dev.localtest.me",APP_NAME:"@wellesley/store"};const Kx=EI(ym,Kh,cx,Ex,Lx,qx,Ux),Qx=e=>q0({devTools:{name:Gx.APP_NAME},reducer:Kx,preloadedState:e,middleware:e=>e().concat(ym.middleware,wx)});let Eo;const Xx=e=>Eo||(Eo=Qx(e),Eo);export{Qx as createStore,Xx as getStore,Kx as rootReducer};
|