@wellesley/error-kit 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.mjs +3 -22
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,13 +1,4 @@
1
- var Lf,Pf,Ff,Bf,ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pa={exports:{}},ti={},Fa={exports:{}},Ee={};
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 nE(){if(Lf)return Ee;Lf=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=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"),f=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,p={};function m(t,e,n){this.props=t,this.context=e,this.refs=p,this.updater=n||d}function y(){}function g(t,e,n){this.props=t,this.context=e,this.refs=p,this.updater=n||d}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)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,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=m.prototype;var _=g.prototype=new y;_.constructor=g,h(_,m.prototype),_.isPureReactComponent=!0;var v=Array.isArray,b=Object.prototype.hasOwnProperty,k={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function S(e,n,r){var i,o={},s=null,a=null;if(null!=n)for(i in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)b.call(n,i)&&!w.hasOwnProperty(i)&&(o[i]=n[i]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:t,type:e,key:s,ref:a,props:o,_owner:k.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function I(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function C(n,r,i,o,s){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 t:case e:u=!0}}if(u)return s=s(u=n),n=""===o?"."+I(u,0):o,v(s)?(i="",null!=n&&(i=n.replace(x,"$&/")+"/"),C(s,r,i,"",(function(t){return t}))):null!=s&&(E(s)&&(s=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(s,i+(!s.key||u&&u.key===s.key?"":(""+s.key).replace(x,"$&/")+"/")+n)),r.push(s)),1;if(u=0,o=""===o?".":o+":",v(n))for(var c=0;c<n.length;c++){var l=o+I(a=n[c],c);u+=C(a,r,i,l,s)}else if(l=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=f&&t[f]||t["@@iterator"])?t:null}(n),"function"==typeof l)for(n=l.call(n),c=0;!(a=n.next()).done;)u+=C(a=a.value,r,i,l=o+I(a,c++),s);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 T(t,e,n){if(null==t)return t;var r=[],i=0;return C(t,r,"","",(function(t){return e.call(n,t,i++)})),r}function R(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){(0===t._status||-1===t._status)&&(t._status=1,t._result=e)}),(function(e){(0===t._status||-1===t._status)&&(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var A={current:null},M={transition:null},O={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};return Ee.Children={map:T,forEach:function(t,e,n){T(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return T(t,(function(){e++})),e},toArray:function(t){return T(t,(function(t){return t}))||[]},only:function(t){if(!E(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Ee.Component=m,Ee.Fragment=n,Ee.Profiler=i,Ee.PureComponent=g,Ee.StrictMode=r,Ee.Suspense=u,Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,Ee.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=h({},e.props),o=e.key,s=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(s=n.ref,a=k.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in n)b.call(n,c)&&!w.hasOwnProperty(c)&&(i[c]=void 0===n[c]&&void 0!==u?u[c]:n[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}return{$$typeof:t,type:e.type,key:o,ref:s,props:i,_owner:a}},Ee.createContext=function(t){return(t={$$typeof:s,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:t},t.Consumer=t},Ee.createElement=S,Ee.createFactory=function(t){var e=S.bind(null,t);return e.type=t,e},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(t){return{$$typeof:a,render:t}},Ee.isValidElement=E,Ee.lazy=function(t){return{$$typeof:l,_payload:{_status:-1,_result:t},_init:R}},Ee.memo=function(t,e){return{$$typeof:c,type:t,compare:void 0===e?null:e}},Ee.startTransition=function(t){var e=M.transition;M.transition={};try{t()}finally{M.transition=e}},Ee.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Ee.useCallback=function(t,e){return A.current.useCallback(t,e)},Ee.useContext=function(t){return A.current.useContext(t)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(t){return A.current.useDeferredValue(t)},Ee.useEffect=function(t,e){return A.current.useEffect(t,e)},Ee.useId=function(){return A.current.useId()},Ee.useImperativeHandle=function(t,e,n){return A.current.useImperativeHandle(t,e,n)},Ee.useInsertionEffect=function(t,e){return A.current.useInsertionEffect(t,e)},Ee.useLayoutEffect=function(t,e){return A.current.useLayoutEffect(t,e)},Ee.useMemo=function(t,e){return A.current.useMemo(t,e)},Ee.useReducer=function(t,e,n){return A.current.useReducer(t,e,n)},Ee.useRef=function(t){return A.current.useRef(t)},Ee.useState=function(t){return A.current.useState(t)},Ee.useSyncExternalStore=function(t,e,n){return A.current.useSyncExternalStore(t,e,n)},Ee.useTransition=function(){return A.current.useTransition()},Ee.version="18.2.0",Ee}function Zd(){return Pf||(Pf=1,Fa.exports=nE()),Fa.exports
1
+ import Eg,{createContext as Wg,Component as kg,createElement as Da,isValidElement as Og}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{logErrorToSentry as Cg}from"https://cdn.jsdelivr.net/npm/@wellesley/sentry@next";import{useNavigationType as Sg,useRouteError as Lg,Outlet as Bg}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";import{RemoteRouteObserver as zg}from"https://cdn.jsdelivr.net/npm/@wellesley/host-remote@next";var qa,Na,Pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oi={exports:{}},Ct={};
11
2
  /**
12
3
  * @license React
13
4
  * react-jsx-runtime.production.min.js
@@ -16,7 +7,7 @@ var Lf,Pf,Ff,Bf,ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typ
16
7
  *
17
8
  * This source code is licensed under the MIT license found in the
18
9
  * LICENSE file in the root directory of this source tree.
19
- */}function iE(){if(Ff)return ti;Ff=1;var t=Zd(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(t,n,s){var a,u={},c=null,l=null;for(a in void 0!==s&&(c=""+s),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(l=n.ref),n)r.call(n,a)&&!o.hasOwnProperty(a)&&(u[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===u[a]&&(u[a]=n[a]);return{$$typeof:e,type:t,key:c,ref:l,props:u,_owner:i.current}}return ti.Fragment=n,ti.jsx=s,ti.jsxs=s,ti}function sE(){return Bf||(Bf=1,Pa.exports=iE()),Pa.exports}var St=sE();const Mu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,si="8.48.0",ut=globalThis;function eo(t,e,n){const r=ut,i=r.__SENTRY__=r.__SENTRY__||{},o=i[si]=i[si]||{};return o[t]||(o[t]=e())}const bi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,oE="Sentry Logger ",Uf=["debug","info","warn","error","log","assert","trace"],jf={};function Ou(t){if(!("console"in ut))return t();const e=ut.console,n={},r=Object.keys(jf);r.forEach((t=>{const r=jf[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}function aE(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return bi?Uf.forEach((n=>{e[n]=(...e)=>{t&&Ou((()=>{ut.console[n](`${oE}[${n}]:`,...e)}))}})):Uf.forEach((t=>{e[t]=()=>{}})),e}const ht=eo("logger",aE),Ba="<anonymous>";function gr(t){try{return t&&"function"==typeof t&&t.name||Ba}catch{return Ba}}function Wf(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch{return}}}const Fs={},zf={};function Qd(t,e){Fs[t]=Fs[t]||[],Fs[t].push(e)}function eh(t,e){if(!zf[t]){zf[t]=!0;try{e()}catch(e){bi&&ht.error(`Error while instrumenting ${t}`,e)}}}function ru(t,e){const n=t&&Fs[t];if(n)for(const r of n)try{r(e)}catch(e){bi&&ht.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${gr(r)}\nError:`,e)}}function wi(){return Du(ut),ut}function Du(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||si,e[si]=e[si]||{}}const th=Object.prototype.toString;function uE(t){switch(th.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return to(t,Error)}}function Nu(t,e){return th.call(t)===`[object ${e}]`}function js(t){return Nu(t,"String")}function Lu(t){return Nu(t,"Object")}function cE(t){return typeof Event<"u"&&to(t,Event)}function lE(t){return typeof Element<"u"&&to(t,Element)}function fE(t){return Nu(t,"RegExp")}function Pu(t){return!(!t||!t.then||"function"!=typeof t.then)}function dE(t){return Lu(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function to(t,e){try{return t instanceof e}catch{return!1}}function hE(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}const rh=ut,pE=80;function Fu(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,i=[];let o=0,s=0;const a=" > ",u=a.length;let c;const l=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&o++<r&&(c=mE(n,l),!("html"===c||o>1&&s+i.length*u+c.length>=f));)i.push(c),s+=c.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function mE(t,e){const n=t,r=[];if(!n||!n.tagName)return"";if(rh.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 i=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(i&&i.length)i.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&js(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const o=["aria-label","type","name","title","alt"];for(const t of o){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function gE(){try{return rh.document.location.href}catch{return""}}function Ua(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function _E(t,e,n=!1){return!!js(t)&&(fE(e)?e.test(t):!!js(e)&&(n?t===e:t.includes(e)))}function yE(t,e=[],n=!1){return e.some((e=>_E(t,e,n)))}function Pt(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);"function"==typeof i&&nh(i,r);try{t[e]=i}catch{bi&&ht.log(`Failed to replace method "${e}" in object`,t)}}function di(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{bi&&ht.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function nh(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,di(t,"__sentry_original__",e)}catch{}}function ih(t){return t.__sentry_original__}function vE(t){if(uE(t))return{message:t.message,name:t.name,stack:t.stack,...Hf(t)};if(cE(t)){const e={type:t.type,target:$f(t.target),currentTarget:$f(t.currentTarget),...Hf(t)};return typeof CustomEvent<"u"&&to(t,CustomEvent)&&(e.detail=t.detail),e}return t}function $f(t){try{return lE(t)?Fu(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Hf(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function Ht(t){return nu(t,new Map)}function nu(t,e){if(SE(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.getOwnPropertyNames(t))typeof t[n]<"u"&&(r[n]=nu(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(nu(t,e))})),r}return t}function SE(t){if(!Lu(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch{return!0}}const sh=1e3;function ro(){return Date.now()/sh}function EE(){const{performance:t}=ut;if(!t||!t.now)return ro;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/sh}const oh=EE(),bE=(()=>{const{performance:t}=ut;if(!t||!t.now)return;const e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=i<e,s=t.timing&&t.timing.navigationStart,a="number"==typeof s?Math.abs(s+n-r):e;return o||a<e?i<=a?t.timeOrigin:s:r})();function pr(){const t=ut,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function wE(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function kE(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=""),o.type||(o.type="Error")}function ah(t,e){const n=wE(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}var lr;function qf(t){return new hr((e=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(lr||(lr={}));class hr{constructor(t){hr.prototype.__init.call(this),hr.prototype.__init2.call(this),hr.prototype.__init3.call(this),hr.prototype.__init4.call(this),this._state=lr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new hr(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new hr(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(lr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(lr.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{if(this._state===lr.PENDING){if(Pu(e))return void e.then(this._resolve,this._reject);this._state=t,this._value=e,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===lr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===lr.RESOLVED&&t[1](this._value),this._state===lr.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function IE(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||oh(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:pr()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Gf(){return pr()}function iu(){return pr().substring(16)}function no(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&e&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=no(r[t],e[t],n-1));return r}const su="_sentrySpan";function Vf(t,e){e?di(t,su,e):delete t[su]}function ou(t){return t[su]}const xE=100;class Bu{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:Gf(),spanId:iu()}}clone(){const t=new Bu;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Vf(t,ou(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&IE(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,r]=e instanceof Yr?[e.getScopeData(),e.getRequestSession()]:Lu(e)?[t,t.requestSession]:[],{tags:i,extra:o,user:s,contexts:a,level:u,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),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,Vf(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Gf()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:xE;if(n<=0)return this;const r={timestamp:ro(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),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:ou(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=no(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:iu(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:pr();if(!this._client)return ht.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:pr();if(!this._client)return ht.warn("No client configured on scope - will not capture message!"),r;const i=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:pr();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(ht.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const Yr=Bu;function CE(){return eo("defaultCurrentScope",(()=>new Yr))}function RE(){return eo("defaultIsolationScope",(()=>new Yr))}class TE{constructor(t,e){let n,r;n=t||new Yr,r=e||new Yr,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return Pu(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(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 t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function wn(){const t=Du(wi());return t.stack=t.stack||new TE(CE(),RE())}function AE(t){return wn().withScope(t)}function ME(t,e){const n=wn();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function Yf(t){return wn().withScope((()=>t(wn().getIsolationScope())))}function OE(){return{withIsolationScope:Yf,withScope:AE,withSetScope:ME,withSetIsolationScope:(t,e)=>Yf(e),getCurrentScope:()=>wn().getScope(),getIsolationScope:()=>wn().getIsolationScope()}}function io(t){const e=Du(t);return e.acs?e.acs:OE()}function Mn(){return io(wi()).getCurrentScope()}function ki(){return io(wi()).getIsolationScope()}function DE(){return eo("globalScope",(()=>new Yr))}function NE(...t){const e=io(wi());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function Zt(){return Mn().getClient()}const LE="_sentryMetrics";function PE(t){const e=t[LE];if(!e)return;const n={};for(const[,[t,r]]of e)(n[t]||(n[t]=[])).push(Ht(r));return n}const uh="sentry.source",FE="sentry.sample_rate",BE="sentry.op",UE="sentry.origin",jE=0,WE=1,zE="sentry-",$E=/^sentry-/;function HE(t){const e=qE(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>{if(e.match($E)){t[e.slice(7)]=n}return t}),{});return Object.keys(n).length>0?n:void 0}function qE(t){if(t&&(js(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce(((t,e)=>{const n=Kf(e);return Object.entries(n).forEach((([e,n])=>{t[e]=n})),t}),{}):Kf(t)}function Kf(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}const GE=1;function VE(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext();return Ht({parent_span_id:r?e:hi(t).parent_span_id,span_id:r?iu():e,trace_id:n})}function Xf(t){return"number"==typeof t?Jf(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Jf(t.getTime()):oh()}function Jf(t){return t>9999999999?t/1e3:t}function hi(t){if(KE(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(YE(t)){const{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:u}=t;return Ht({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Xf(i),timestamp:Xf(s)||void 0,status:JE(u),op:r[BE],origin:r[UE],_metrics_summary:PE(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function YE(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}function KE(t){return"function"==typeof t.getSpanJSON}function XE(t){const{traceFlags:e}=t.spanContext();return 1===e}function JE(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"unknown_error"}const ZE="_sentryRootSpan";function Uu(t){return t[ZE]||t}function ch(){const t=io(wi());return t.getActiveSpan?t.getActiveSpan():ou(Mn())}function QE(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=Zt(),n=e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const lh="production",eb="_frozenDsc";function tb(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i=Ht({environment:n.environment||lh,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",i),i}function fh(t){const e=Zt();if(!e)return{};const n=Uu(t),r=n[eb];if(r)return r;const i=n.spanContext().traceState,o=i&&i.get("sentry.dsc"),s=o&&HE(o);if(s)return s;const a=tb(t.spanContext().traceId,e),u=hi(n),c=u.data||{},l=c[FE];null!=l&&(a.sample_rate=`${l}`);const f=c[uh],d=u.description;return"url"!==f&&d&&(a.transaction=d),QE()&&(a.sampled=String(XE(n))),e.emit("createDsc",a,n),a}function Zf(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e)||e<0||e>1))return e;Mu&&ht.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}function rb(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function nb(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}function fr(t,e=100,n=1/0){try{return au("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function au(t,e,n=1/0,r=1/0,i=nb()){const[o,s]=i;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=ib(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const u="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===u)return a.replace("object ","");if(o(e))return"[Circular ~]";const c=e;if(c&&"function"==typeof c.toJSON)try{return au("",c.toJSON(),u-1,r,i)}catch{}const l=Array.isArray(e)?[]:{};let f=0;const d=vE(e);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(f>=r){l[t]="[MaxProperties ~]";break}const e=d[t];l[t]=au(t,e,u-1,r,i),f++}return s(e),l}function ib(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(hE(e))return"[VueViewModel]";if(dE(e))return"[SyntheticEvent]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${gr(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=sb(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}function sb(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function ob(t,e=[]){return[t,e]}function ab(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function ub(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:rb(r)},...i&&{trace:Ht({...i})}}}function uu(t,e,n,r=0){return new hr(((i,o)=>{const s=t[r];if(null===e||"function"!=typeof s)i(e);else{const a=s({...e},n);Mu&&s.id&&null===a&&ht.log(`Event processor "${s.id}" dropped event`),Pu(a)?a.then((e=>uu(t,e,n,r+1).then(i))).then(null,o):uu(t,a,n,r+1).then(i).then(null,o)}}))}let ks,Qf,Is;function cb(t){const e=ut._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return Is&&n.length===Qf||(Qf=n.length,Is=n.reduce(((n,r)=>{ks||(ks={});const i=ks[r];if(i)n[i[0]]=i[1];else{const i=t(r);for(let t=i.length-1;t>=0;t--){const o=i[t],s=o&&o.filename,a=e[r];if(s&&a){n[s]=a,ks[r]=[s,a];break}}}return n}),{})),Is}function lb(t,e){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;fb(t,e),r&&pb(t,r),mb(t,n),db(t,i),hb(t,o)}function ed(t,e){const{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:f,propagationContext:d,transactionName:h,span:p}=e;xs(t,"extra",n),xs(t,"tags",r),xs(t,"user",i),xs(t,"contexts",o),t.sdkProcessingMetadata=no(t.sdkProcessingMetadata,a,2),s&&(t.level=s),h&&(t.transactionName=h),p&&(t.span=p),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...d}}function xs(t,e,n){t[e]=no(t[e],n,1)}function fb(t,e){const{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=e,u=Ht(n);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const c=Ht(r);c&&Object.keys(c).length&&(t.tags={...c,...t.tags});const l=Ht(i);l&&Object.keys(l).length&&(t.user={...l,...t.user});const f=Ht(o);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts}),s&&(t.level=s),a&&"transaction"!==t.type&&(t.transaction=a)}function db(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function hb(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function pb(t,e){t.contexts={trace:VE(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:fh(e),...t.sdkProcessingMetadata};const n=hi(Uu(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}function mb(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function gb(t,e,n,r,i,o){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,u={...e,event_id:e.event_id||n.event_id||pr(),timestamp:e.timestamp||ro()},c=n.integrations||t.integrations.map((t=>t.name));_b(u,t),Sb(u,c),i&&i.emit("applyFrameMetadata",e),void 0===e.type&&yb(u,t.stackParser);const l=bb(r,n.captureContext);n.mechanism&&ah(u,n.mechanism);const f=i?i.getEventProcessors():[],d=DE().getScopeData();if(o){ed(d,o.getScopeData())}if(l){ed(d,l.getScopeData())}const h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),lb(u,d);return uu([...f,...d.eventProcessors],u,n).then((t=>(t&&vb(t),"number"==typeof s&&s>0?Eb(t,s,a):t)))}function _b(t,e){const{environment:n,release:r,dist:i,maxValueLength:o=250}=e;t.environment=t.environment||n||lh,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i),t.message&&(t.message=Ua(t.message,o));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Ua(s.value,o));const a=t.request;a&&a.url&&(a.url=Ua(a.url,o))}function yb(t,e){const n=cb(e);try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{n&&t.filename&&(t.debug_id=n[t.filename])}))}))}catch{}}function vb(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch{}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})}))}function Sb(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Eb(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:fr(t.data,e,n)}})))},...t.user&&{user:fr(t.user,e,n)},...t.contexts&&{contexts:fr(t.contexts,e,n)},...t.extra&&{extra:fr(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=fr(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:fr(t.data,e,n)}})))),t.contexts&&t.contexts.flags&&r.contexts&&(r.contexts.flags=fr(t.contexts.flags,3,n)),r}function bb(t,e){if(!e)return t;const n=t?t.clone():new Yr;return n.update(e),n}function ju(t,e){return Mn().captureException(t,void 0)}function wb(t,e){const n={captureContext:e};return Mn().captureMessage(t,void 0,n)}function kb(t,e){ki().setContext(t,e)}function Ib(t,e){ki().setExtra(t,e)}function xb(t){ki().addEventProcessor(t)}const Cb=6e4;function Rb(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?Cb:r-e}function Tb(t,e){return t[e]||t.all||0}function Ab(t,e,n=Date.now()){return Tb(t,e)>n}function Mb(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n,,,o]=t.split(":",5),s=parseInt(e,10),a=1e3*(isNaN(s)?60:s);if(n)for(const t of n.split(";"))"metric_bucket"===t?(!o||o.split(";").includes("custom"))&&(i[t]=r+a):i[t]=r+a;else i.all=r+a}else s?i.all=r+Rb(s,r):429===e&&(i.all=r+6e4);return i}function Ob(t,e){const n=e&&e.getDsn(),r=e&&e.getOptions().tunnel;return Nb(t,n)||Db(t,r)}function Db(t,e){return!!e&&td(t)===td(e)}function Nb(t,e){return!!e&&t.includes(e.host)}function td(t){return"/"===t[t.length-1]?t.slice(0,-1):t}const Lb=100;function Pb(t,e){const n=Zt(),r=ki();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Lb}=n.getOptions();if(o<=0)return;const s={timestamp:ro(),...t},a=i?Ou((()=>i(s,e))):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}function Fb(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Bb="Dedupe",Ub=()=>{let t;return{name:Bb,processEvent(e){if(e.type)return e;try{if(Wb(e,t))return Mu&&ht.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},jb=Ub;function Wb(t,e){return!!e&&!(!zb(t,e)&&!$b(t,e))}function zb(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!hh(t,e)||!dh(t,e))}function $b(t,e){const n=rd(e),r=rd(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&hh(t,e)&&dh(t,e))}function dh(t,e){let n=Wf(t),r=Wf(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function hh(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function rd(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Hb(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function qb(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Gb(){return!qb()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function nd(){return typeof window<"u"&&(!Gb()||Vb())}function Vb(){const t=ut.process;return!!t&&"renderer"===t.type}const Cs=ut;function Yb(){const t=Cs.chrome,e=t&&t.app&&t.app.runtime,n="history"in Cs&&!!Cs.history.pushState&&!!Cs.history.replaceState;return!e&&n}function Kb(t,e){return t??e()}function Bs(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}const ni=ut;function Xb(){setTimeout((()=>{}))}function kn(t,e={}){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(ih(t))return t}catch{return t}const n=function(...n){try{const r=n.map((t=>kn(t,e)));return t.apply(this,r)}catch(t){throw Xb(),NE((r=>{r.addEventProcessor((t=>(e.mechanism&&(kE(t),ah(t,e.mechanism)),t.extra={...t.extra,arguments:n},t))),ju(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}nh(n,t),di(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}const ph=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Jb=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",Ii=(t,e,n,r)=>{let i,o;return s=>{e.value>=0&&(s||r)&&(o=e.value-(i||0),(o||void 0===i)&&(i=e.value,e.delta=o,e.rating=Jb(e.value,n),t(e)))}},ke=ut,Zb=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,mh=(t=!0)=>{const e=ke.performance&&ke.performance.getEntriesByType&&ke.performance.getEntriesByType("navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},Wu=()=>{const t=mh();return t&&t.activationStart||0},xi=(t,e)=>{const n=mh();let r="navigate";return n&&(ke.document&&ke.document.prerendering||Wu()>0?r="prerender":ke.document&&ke.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:Zb(),navigationType:r}},Xr=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},Ci=t=>{const e=e=>{("pagehide"===e.type||ke.document&&"hidden"===ke.document.visibilityState)&&t(e)};ke.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},so=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let oi=-1;const Qb=()=>"hidden"!==ke.document.visibilityState||ke.document.prerendering?1/0:0,Ws=t=>{"hidden"===ke.document.visibilityState&&oi>-1&&(oi="visibilitychange"===t.type?t.timeStamp:0,t1())},e1=()=>{addEventListener("visibilitychange",Ws,!0),addEventListener("prerenderingchange",Ws,!0)},t1=()=>{removeEventListener("visibilitychange",Ws,!0),removeEventListener("prerenderingchange",Ws,!0)},zu=()=>(ke.document&&oi<0&&(oi=Qb(),e1()),{get firstHiddenTime(){return oi}}),oo=t=>{ke.document&&ke.document.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},r1=[1800,3e3],n1=(t,e={})=>{oo((()=>{const n=zu(),r=xi("FCP");let i;const o=Xr("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Wu(),0),r.entries.push(t),i(!0)))}))}));o&&(i=Ii(t,r,r1,e.reportAllChanges))}))},i1=[.1,.25],s1=(t,e={})=>{n1(so((()=>{const n=xi("CLS",0);let r,i=0,o=[];const s=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=o[0],n=o[o.length-1];i&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,o.push(t)):(i=t.value,o=[t])}})),i>n.value&&(n.value=i,n.entries=o,r())},a=Xr("layout-shift",s);a&&(r=Ii(t,n,i1,e.reportAllChanges),Ci((()=>{s(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},o1=[100,300],a1=(t,e={})=>{oo((()=>{const n=zu(),r=xi("FID");let i;const o=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),i(!0))},s=t=>{t.forEach(o)},a=Xr("first-input",s);i=Ii(t,r,o1,e.reportAllChanges),a&&Ci(so((()=>{s(a.takeRecords()),a.disconnect()})))}))};let gh=0,ja=1/0,Rs=0;const u1=t=>{t.forEach((t=>{t.interactionId&&(ja=Math.min(ja,t.interactionId),Rs=Math.max(Rs,t.interactionId),gh=Rs?(Rs-ja)/7+1:0)}))};let cu;const c1=()=>cu?gh:performance.interactionCount||0,l1=()=>{"interactionCount"in performance||cu||(cu=Xr("event",u1,{type:"event",buffered:!0,durationThreshold:0}))},dr=[],Wa=new Map,f1=40;let d1=0;const h1=()=>c1()-d1,p1=()=>{const t=Math.min(dr.length-1,Math.floor(h1()/50));return dr[t]},za=10,m1=[],g1=t=>{if(m1.forEach((e=>e(t))),!t.interactionId&&"first-input"!==t.entryType)return;const e=dr[dr.length-1],n=Wa.get(t.interactionId);if(n||dr.length<10||e&&t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(t);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};Wa.set(e.id,e),dr.push(e)}dr.sort(((t,e)=>e.latency-t.latency)),dr.length>10&&dr.splice(10).forEach((t=>Wa.delete(t.id)))}},_h=t=>{const e=ke.requestIdleCallback||ke.setTimeout;let n=-1;return t=so(t),ke.document&&"hidden"===ke.document.visibilityState?t():(n=e(t),Ci(t)),n},_1=[200,500],y1=(t,e={})=>{"PerformanceEventTiming"in ke&&"interactionId"in PerformanceEventTiming.prototype&&oo((()=>{l1();const n=xi("INP");let r;const i=t=>{_h((()=>{t.forEach(g1);const e=p1();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())}))},o=Xr("event",i,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});r=Ii(t,n,_1,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Ci((()=>{i(o.takeRecords()),r(!0)})))}))},v1=[2500,4e3],id={},S1=(t,e={})=>{oo((()=>{const n=zu(),r=xi("LCP");let i;const o=t=>{e.reportAllChanges||(t=t.slice(-1)),t.forEach((t=>{t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Wu(),0),r.entries=[t],i())}))},s=Xr("largest-contentful-paint",o);if(s){i=Ii(t,r,v1,e.reportAllChanges);const n=so((()=>{id[r.id]||(o(s.takeRecords()),s.disconnect(),id[r.id]=!0,i(!0))}));["keydown","click"].forEach((t=>{ke.document&&addEventListener(t,(()=>_h(n)),{once:!0,capture:!0})})),Ci(n)}}))},ai={},zs={};let yh,vh,Sh,Eh;function E1(t,e=!1){return ao("cls",t,x1,yh,e)}function b1(t,e=!1){return ao("lcp",t,R1,Sh,e)}function w1(t){return ao("fid",t,C1,vh)}function k1(t){return ao("inp",t,T1,Eh)}function I1(t,e){return bh(t,e),zs[t]||(A1(t),zs[t]=!0),wh(t,e)}function Ri(t,e){const n=ai[t];if(n&&n.length)for(const r of n)try{r(e)}catch(e){ph&&ht.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${gr(r)}\nError:`,e)}}function x1(){return s1((t=>{Ri("cls",{metric:t}),yh=t}),{reportAllChanges:!0})}function C1(){return a1((t=>{Ri("fid",{metric:t}),vh=t}))}function R1(){return S1((t=>{Ri("lcp",{metric:t}),Sh=t}),{reportAllChanges:!0})}function T1(){return y1((t=>{Ri("inp",{metric:t}),Eh=t}))}function ao(t,e,n,r,i=!1){let o;return bh(t,e),zs[t]||(o=n(),zs[t]=!0),r&&e({metric:r}),wh(t,e,i?o:void 0)}function A1(t){const e={};"event"===t&&(e.durationThreshold=0),Xr(t,(e=>{Ri(t,{entries:e})}),e)}function bh(t,e){ai[t]=ai[t]||[],ai[t].push(e)}function wh(t,e,n){return()=>{n&&n();const r=ai[t];if(!r)return;const i=r.indexOf(e);-1!==i&&r.splice(i,1)}}const M1=1e3;let sd,lu,fu,Ts;function O1(t){Qd("dom",t),eh("dom",D1)}function D1(){if(!ke.document)return;const t=ru.bind(null,"dom"),e=od(t,!0);ke.document.addEventListener("click",e,!1),ke.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=ke[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Pt(r,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=od(t);o.handler=r,e.call(this,n,r,i)}o.refCount++}catch{}return e.call(this,n,r,i)}})),Pt(r,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},i=n[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,e,n,r)}})))}))}function N1(t){if(t.type!==lu)return!1;try{if(!t.target||t.target._sentryId!==fu)return!1}catch{}return!0}function L1(t,e){return"keypress"===t&&(!e||!e.tagName||!("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable))}function od(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=P1(n);if(L1(n.type,r))return;di(n,"_sentryCaptured",!0),r&&!r._sentryId&&di(r,"_sentryId",pr());const i="keypress"===n.type?"input":n.type;N1(n)||(t({event:n,name:i,global:e}),lu=n.type,fu=r?r._sentryId:void 0),clearTimeout(sd),sd=ke.setTimeout((()=>{fu=void 0,lu=void 0}),M1)}}function P1(t){try{return t.target}catch{return null}}function F1(t){const e="history";Qd(e,t),eh(e,B1)}function B1(){if(!Yb())return;const t=ke.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=Ts,e=String(n);Ts=e,ru("history",{from:t,to:e})}return t.apply(this,e)}}ke.onpopstate=function(...e){const n=ke.location.href,r=Ts;if(Ts=n,ru("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch{}},Pt(ke.history,"pushState",e),Pt(ke.history,"replaceState",e)}const $a={};function U1(t){const e=$a[t];if(e)return e;let n=ke[t];if(Hb(n))return $a[t]=n.bind(ke);const r=ke.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const i=e.contentWindow;i&&i[t]&&(n=i[t]),r.head.removeChild(e)}catch(e){ph&&ht.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n&&($a[t]=n.bind(ke))}function In(...t){return U1("setTimeout")(...t)}const j1="__sentry_xhr_v3__",W1=["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"],z1="BrowserApiErrors",$1=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:z1,setupOnce(){e.setTimeout&&Pt(ni,"setTimeout",ad),e.setInterval&&Pt(ni,"setInterval",ad),e.requestAnimationFrame&&Pt(ni,"requestAnimationFrame",q1),e.XMLHttpRequest&&"XMLHttpRequest"in ni&&Pt(XMLHttpRequest.prototype,"send",G1);const t=e.eventTarget;t&&(Array.isArray(t)?t:W1).forEach(V1)}}},H1=$1;function ad(t){return function(...e){const n=e[0];return e[0]=kn(n,{mechanism:{data:{function:gr(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function q1(t){return function(e){return t.apply(this,[kn(e,{mechanism:{data:{function:"requestAnimationFrame",handler:gr(t)},handled:!1,type:"instrument"}})])}}function G1(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&Pt(n,t,(function(e){const n={mechanism:{data:{function:t,handler:gr(e)},handled:!1,type:"instrument"}},r=ih(e);return r&&(n.mechanism.data.handler=gr(r)),kn(e,n)}))})),t.apply(this,e)}}function V1(t){const e=ni[t],n=e&&e.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Pt(n,"addEventListener",(function(e){return function(n,r,i){try{Y1(r)&&(r.handleEvent=kn(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:gr(r),target:t},handled:!1,type:"instrument"}}))}catch{}return e.apply(this,[n,kn(r,{mechanism:{data:{function:"addEventListener",handler:gr(r),target:t},handled:!1,type:"instrument"}}),i])}})),Pt(n,"removeEventListener",(function(t){return function(e,n,r){try{const i=n.__sentry_wrapped__;i&&t.call(this,e,i,r)}catch{}return t.call(this,e,n,r)}})))}function Y1(t){return"function"==typeof t.handleEvent}const je=ut,$u="sentryReplaySession",K1="replay_event",Hu="Unable to send Replay",X1=3e5,J1=9e5,Z1=5e3,Q1=5500,ew=6e4,tw=5e3,rw=3,ud=15e4,As=5e3,nw=3e3,iw=300,qu=2e7,sw=4999,ow=15e3,cd=36e5;function du(t,e){return t??e()}function pi(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}var Qe;function aw(t){return t.nodeType===t.ELEMENT_NODE}function ui(t){const e=pi([t,"optionalAccess",t=>t.host]);return pi([e,"optionalAccess",t=>t.shadowRoot])===t}function ci(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function uw(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function cw(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return""===t.layerName?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function $s(t){try{const e=t.rules||t.cssRules;return e?uw(Array.from(e,kh).join("")):null}catch{return null}}function lw(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style,i=r[n],o=r.getPropertyPriority(i);e+=`${i}:${r.getPropertyValue(i)}${o?" !important":""};`}return`${t.selectorText} { ${e} }`}function kh(t){let e;if(dw(t))try{e=$s(t.styleSheet)||cw(t)}catch{}else if(hw(t)){let e=t.cssText;const n=t.selectorText.includes(":"),r="string"==typeof t.style.all&&t.style.all;if(r&&(e=lw(t)),n&&(e=fw(e)),n||r)return e}return e||t.cssText}function fw(t){return t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function dw(t){return"styleSheet"in t}function hw(t){return"selectorText"in t}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Qe||(Qe={}));class Ih{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;return du(pi([this,"access",t=>t.getMeta,"call",e=>e(t),"optionalAccess",t=>t.id]),(()=>-1))}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function pw(){return new Ih}function uo({maskInputOptions:t,tagName:e,type:n}){return"OPTION"===e&&(e="SELECT"),!!(t[e.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===e&&!n&&t.text)}function mi({isMasked:t,element:e,value:n,maskInputFn:r}){let i=n||"";return t?(r&&(i=r(i,e)),"*".repeat(i.length)):i}function xn(t){return t.toLowerCase()}function hu(t){return t.toUpperCase()}const ld="__rrweb_original__";function mw(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){const i=e.getImageData,o=ld in i?i[ld]:i;if(new Uint32Array(o.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((t=>0!==t)))return!1}return!0}function Gu(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?xn(e):null}function Hs(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}function xh(t,e){let n;try{n=new URL(t,du(e,(()=>window.location.href)))}catch{return null}return du(pi([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",t=>t[1]]),(()=>null))}const fd={};function Ch(t){const e=fd[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const i=e.contentWindow;i&&i[t]&&(r=i[t]),n.head.removeChild(e)}catch{}return fd[t]=r.bind(window)}function pu(...t){return Ch("setTimeout")(...t)}function Rh(...t){return Ch("clearTimeout")(...t)}function Th(t){try{return t.contentDocument}catch{}}let gw=1;const _w=new RegExp("[^a-z0-9-_:]"),gi=-2;function Vu(){return gw++}function yw(t){if(t instanceof HTMLFormElement)return"form";const e=xn(t.tagName);return _w.test(e)?"div":e}function vw(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}let _n,dd;const Sw=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ew=/^(?:[a-z+]+:)?\/\//i,bw=/^www\..*/i,ww=/^(data:)([^,]*),(.*)/i;function qs(t,e){return(t||"").replace(Sw,((t,n,r,i,o,s)=>{const a=r||o||s,u=n||i||"";if(!a)return t;if(Ew.test(a)||bw.test(a))return`url(${u}${a}${u})`;if(ww.test(a))return`url(${u}${a}${u})`;if("/"===a[0])return`url(${u}${vw(e)+a}${u})`;const c=e.split("/"),l=a.split("/");c.pop();for(const t of l)"."!==t&&(".."===t?c.pop():c.push(t));return`url(${u}${c.join("/")}${u})`}))}const kw=/^[^ \t\n\r\u000c]+/,Iw=/^[, \t\n\r\u000c]+/;function xw(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}const i=[];for(;r(Iw),!(n>=e.length);){let o=r(kw);if(","===o.slice(-1))o=vn(t,o.substring(0,o.length-1)),i.push(o);else{let r="";o=vn(t,o);let s=!1;for(;;){const t=e.charAt(n);if(""===t){i.push((o+r).trim());break}if(s)")"===t&&(s=!1);else{if(","===t){n+=1,i.push((o+r).trim());break}"("===t&&(s=!0)}r+=t,n+=1}}}return i.join(", ")}const hd=new WeakMap;function vn(t,e){return e&&""!==e.trim()?co(t,e):e}function Cw(t){return!("svg"!==t.tagName&&!t.ownerSVGElement)}function co(t,e){let n=hd.get(t);if(n||(n=t.createElement("a"),hd.set(t,n)),e){if(e.startsWith("blob:")||e.startsWith("data:"))return e}else e="";return n.setAttribute("href",e),n.href}function Ah(t,e,n,r,i,o){return r&&("src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===e||"td"===e||"th"===e)?vn(t,r):"srcset"===n?xw(t,r):"style"===n?qs(r,co(t)):"object"===e&&"data"===n?vn(t,r):"function"==typeof o?o(n,r,i):r)}function Mh(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function Rw(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch{}return!1}function Tw(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function Vr(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Vr(t.parentNode,e,n,r+1)}function Sn(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"==typeof t){if(r.matches(`.${t}`))return!0}else if(Tw(r,t))return!0;return!(!e||!r.matches(e))}catch{return!1}}}function Cn(t,e,n,r,i,o){try{const s=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const t=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let a=-1,u=-1;if(o){if(u=Vr(s,Sn(r,i)),u<0)return!0;a=Vr(s,Sn(e,n),u>=0?u:1/0)}else{if(a=Vr(s,Sn(e,n)),a<0)return!1;u=Vr(s,Sn(r,i),a>=0?a:1/0)}return a>=0?!(u>=0)||a<=u:!(u>=0)&&!!o}catch{}return!!o}function Aw(t,e,n){const r=t.contentWindow;if(!r)return;let i,o=!1;try{i=r.document.readyState}catch{return}if("complete"!==i){const r=pu((()=>{o||(e(),o=!0)}),n);return void t.addEventListener("load",(()=>{Rh(r),o=!0,e()}))}const s="about:blank";if(r.location.href!==s||t.src===s||""===t.src)return pu(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function Mw(t,e,n){let r,i=!1;try{r=t.sheet}catch{return}if(r)return;const o=pu((()=>{i||(e(),i=!0)}),n);t.addEventListener("load",(()=>{Rh(o),i=!0,e()}))}function Ow(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:k=!1}=e,w=Dw(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:Qe.Document,childNodes:[],compatMode:t.compatMode}:{type:Qe.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Qe.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return Lw(t,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:h,maskAttributeFn:u,maskInputOptions:p,maskInputFn:y,dataURLOptions:g,inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:k,rootId:w,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d});case t.TEXT_NODE:return Nw(t,{doc:n,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:p,maskInputFn:y,rootId:w});case t.CDATA_SECTION_NODE:return{type:Qe.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:Qe.Comment,textContent:t.textContent||"",rootId:w};default:return!1}}function Dw(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return 1===n?void 0:n}function Nw(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:u,maskInputFn:c,rootId:l}=e,f=t.parentNode&&t.parentNode.tagName;let d=t.textContent;const h="STYLE"===f||void 0,p="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(h&&d){try{t.nextSibling||t.previousSibling||pi([t,"access",t=>t.parentNode,"access",t=>t.sheet,"optionalAccess",t=>t.cssRules])&&(d=$s(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}d=qs(d,co(e.doc))}p&&(d="SCRIPT_PLACEHOLDER");const y=Cn(t,r,o,i,s,n);if(!h&&!p&&!m&&d&&y&&(d=a?a(d,t.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(u.textarea||y)&&(d=c?c(d,t.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===f&&d){d=mi({isMasked:Cn(t,r,o,i,s,uo({type:null,tagName:f,maskInputOptions:u})),element:t,value:d,maskInputFn:c})}return{type:Qe.Text,textContent:d||"",isStyle:h,rootId:l}}function Lw(t,e){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:b}=e,k=Rw(t,r,i,o),w=yw(t);let S={};const E=t.attributes.length;for(let e=0;e<E;e++){const r=t.attributes[e];r.name&&!Mh(w,r.name,r.value)&&(S[r.name]=Ah(n,w,xn(r.name),r.value,t,u))}if("link"===w&&s){const e=Array.from(n.styleSheets).find((e=>e.href===t.href));let r=null;e&&(r=$s(e)),r&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=qs(r,e.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=$s(t.sheet);e&&(S._cssText=qs(e,co(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const e=t,n=Gu(e),r=Hs(e,hu(w),n),i=e.checked;if("submit"!==n&&"button"!==n&&r){const t=Cn(e,g,v,_,b,uo({type:n,tagName:hu(w),maskInputOptions:a}));S.value=mi({isMasked:t,element:e,value:r,maskInputFn:c})}i&&(S.checked=i)}if("option"===w&&(t.selected&&!a.select?S.selected=!0:delete S.selected),"canvas"===w&&d)if("2d"===t.__context)mw(t)||(S.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=t.width,r.height=t.height;e!==r.toDataURL(l.type,l.quality)&&(S.rr_dataURL=e)}if("img"===w&&f){_n||(_n=n.createElement("canvas"),dd=_n.getContext("2d"));const e=t,r=e.currentSrc||e.getAttribute("src")||"<unknown-src>",i=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{_n.width=e.naturalWidth,_n.height=e.naturalHeight,dd.drawImage(e,0,0),S.rr_dataURL=_n.toDataURL(l.type,l.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(i?S.crossOrigin=i:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if(("audio"===w||"video"===w)&&(S.rr_mediaState=t.paused?"paused":"played",S.rr_mediaCurrentTime=t.currentTime),p||(t.scrollLeft&&(S.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(S.rr_scrollTop=t.scrollTop)),k){const{width:e,height:n}=t.getBoundingClientRect();S={class:S.class,rr_width:`${e}px`,rr_height:`${n}px`}}let x;"iframe"===w&&!h(S.src)&&(!k&&!Th(t)&&(S.rr_src=S.src),delete S.src);try{customElements.get(w)&&(x=!0)}catch{}return{type:Qe.Element,tagName:w,attributes:S,childNodes:[],isSVG:Cw(t)||void 0,needBlock:k,rootId:m,isCustom:x}}function Ue(t){return null==t?"":t.toLowerCase()}function Pw(t,e){if(e.comment&&t.type===Qe.Comment)return!0;if(t.type===Qe.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===xh(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Ue(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ue(t.attributes.name)||"icon"===Ue(t.attributes.rel)||"apple-touch-icon"===Ue(t.attributes.rel)||"shortcut icon"===Ue(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Ue(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Ue(t.attributes.property).match(/^(og|twitter|fb):/)||Ue(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ue(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Ue(t.attributes.name)||"googlebot"===Ue(t.attributes.name)||"bingbot"===Ue(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Ue(t.attributes.name)||"generator"===Ue(t.attributes.name)||"framework"===Ue(t.attributes.name)||"publisher"===Ue(t.attributes.name)||"progid"===Ue(t.attributes.name)||Ue(t.attributes.property).match(/^article:/)||Ue(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Ue(t.attributes.name)||"yandex-verification"===Ue(t.attributes.name)||"csrf-token"===Ue(t.attributes.name)||"p:domain_verify"===Ue(t.attributes.name)||"verify-v1"===Ue(t.attributes.name)||"verification"===Ue(t.attributes.name)||"shopify-checkout-api-token"===Ue(t.attributes.name)))return!0}}return!1}function En(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:k=!1,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:T=!1}=e;let{preserveWhiteSpace:R=!0}=e;const A=Ow(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:v,inlineImages:b,recordCanvas:k,keepIframeSrcFn:C,newlyAddedElement:T});if(!A)return console.warn(t,"not serialized"),null;let M;M=r.hasNode(t)?r.getId(t):Pw(A,_)||!R&&A.type===Qe.Text&&!A.isStyle&&!A.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Vu();const O=Object.assign(A,{id:M});if(r.add(t,O),-2===M)return null;w&&w(t);let D=!d;if(O.type===Qe.Element){D=D&&!O.needBlock,delete O.needBlock;const e=t.shadowRoot;e&&ci(e)&&(O.isShadowHost=!0)}if((O.type===Qe.Document||O.type===Qe.Element)&&D){_.headWhitespace&&O.type===Qe.Element&&"head"===O.tagName&&(R=!1);const e={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:d,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C};for(const n of Array.from(t.childNodes)){const t=En(n,e);t&&O.childNodes.push(t)}if(aw(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const r=En(n,e);r&&(ci(t.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}return t.parentNode&&ui(t.parentNode)&&ci(t.parentNode)&&(O.isShadow=!0),O.type===Qe.Element&&"iframe"===O.tagName&&Aw(t,(()=>{const e=Th(t);if(e&&S){const n=En(e,{doc:e,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C});n&&S(t,n)}}),E),O.type===Qe.Element&&"link"===O.tagName&&"string"==typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"==typeof O.attributes.href&&"css"===xh(O.attributes.href))&&Mw(t,(()=>{if(x){const e=En(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C});e&&x(t,e)}}),I),O}function Fw(t,e){const{mirror:n=new Ih,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:h=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:I=()=>!1}=e;return En(t,{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===p?{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===p?{}:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:d,recordCanvas:h,preserveWhiteSpace:b,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:I,newlyAddedElement:!1})}function Rr(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}function dt(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const yn="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 pd={map:{},getId:()=>(console.error(yn),-1),getNode:()=>(console.error(yn),null),removeNodeFromMap(){console.error(yn)},has:()=>(console.error(yn),!1),reset(){console.error(yn)}};function _i(t,e,n={}){let r=null,i=0;return function(...o){const s=Date.now();!i&&!1===n.leading&&(i=s);const a=e-(s-i),u=this;a<=0||a>e?(r&&(Hw(r),r=null),i=s,t.apply(u,o)):!r&&!1!==n.trailing&&(r=lo((()=>{i=!1===n.leading?0:Date.now(),r=null,t.apply(u,o)}),a))}}function Oh(t,e,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set(t){lo((()=>{n.set.call(this,t)}),0),o&&o.set&&o.set.call(this,t)}}),()=>Oh(t,e,o||{},!0)}function Yu(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,()=>{t[e]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(pd=new Proxy(pd,{get:(t,e,n)=>("map"===e&&console.error(yn),Reflect.get(t,e,n))}));let Gs=Date.now;function Dh(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:Rr([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:Rr([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function Nh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Lh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ph(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function kt(t,e,n,r,i){if(!t)return!1;const o=Ph(t);if(!o)return!1;const s=Sn(e,n);if(!i){const t=r&&o.matches(r);return s(o)&&!t}const a=Vr(o,s);let u=-1;return!(a<0)&&(r&&(u=Vr(o,Sn(null,r))),a>-1&&u<0||a<u)}function Bw(t,e){return-1!==e.getId(t)}function Ha(t,e){return-2===e.getId(t)}function Fh(t,e){if(ui(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||Fh(t.parentNode,e))}function mu(t){return!!t.changedTouches}function Uw(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let e=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}function Bh(t,e){return!("IFRAME"!==t.nodeName||!e.getMeta(t))}function Uh(t,e){return!("LINK"!==t.nodeName||t.nodeType!==t.ELEMENT_NODE||!t.getAttribute||"stylesheet"!==t.getAttribute("rel")||!e.getMeta(t))}function gu(t){return!!Rr([t,"optionalAccess",t=>t.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(Gs=()=>(new Date).getTime());class jw{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return Kb(this.styleIDMap.get(t),(()=>-1))}has(t){return this.styleIDMap.has(t)}add(t,e){if(this.has(t))return this.getId(t);let n;return n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function jh(t){let e=null;return Rr([t,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function Ww(t){let e,n=t;for(;e=jh(n);)n=e;return n}function zw(t){const e=t.ownerDocument;if(!e)return!1;const n=Ww(t);return e.contains(n)}function Wh(t){const e=t.ownerDocument;return!!e&&(e.contains(t)||zw(t))}const md={};function Ku(t){const e=md[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const i=e.contentWindow;i&&i[t]&&(r=i[t]),n.head.removeChild(e)}catch{}return md[t]=r.bind(window)}function $w(...t){return Ku("requestAnimationFrame")(...t)}function lo(...t){return Ku("setTimeout")(...t)}function Hw(...t){return Ku("clearTimeout")(...t)}var gd,_d,me=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(me||{}),ue=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(ue||{}),ft=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(ft||{}),cr=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(cr||{});function Xu(t){try{return t.contentDocument}catch{}}function qw(t){try{return t.contentWindow}catch{}}function Gw(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}function yd(t){return"__ln"in t}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(gd||(gd={})),function(t){t[t.PLACEHOLDER=0]="PLACEHOLDER",t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",t[t.ENTITY_NODE=6]="ENTITY_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(_d||(_d={}));class Vw{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=Gw([e,"optionalAccess",t=>t.next])||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&yd(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&yd(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const vd=(t,e)=>`${t}@${e}`;class Yw{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=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Set,n=new Vw,r=t=>{let e=t,n=-2;for(;-2===n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},i=i=>{if(!i.parentNode||!Wh(i))return;const o=ui(i.parentNode)?this.mirror.getId(jh(i)):this.mirror.getId(i.parentNode),s=r(i);if(-1===o||-1===s)return n.addNode(i);const a=En(i,{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:t=>{Bh(t,this.mirror)&&!kt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(t),Uh(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),gu(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{kt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(t,e),t.contentWindow&&this.canvasManager.addWindow(t.contentWindow),this.shadowDomManager.observeAttachShadow(t))},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});a&&(t.push({parentId:o,nextId:s,node:a}),e.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)Sd(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||i(t);for(const t of this.addedSet)!Ed(this.droppedSet,t)&&!Sd(this.removes,t,this.mirror)||Ed(this.movedSet,t)?i(t):this.droppedSet.add(t);let o=null;for(;n.length;){let t=null;if(o){const e=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==e&&-1!==n&&(t=o)}if(!t){let e=n.tail;for(;e;){const n=e;if(e=e.previous,n){const e=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==e){t=n;break}{const e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host;if(-1!==this.mirror.getId(r)){t=n;break}}}}}}if(!t){for(;n.head;)n.removeNode(n.head.value);break}o=t.previous,n.removeNode(t.value),i(t.value)}const s={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>{const{attributes:e}=t;if("string"==typeof e.style){const n=JSON.stringify(t.styleDiff),r=JSON.stringify(t._unchangedStyles);n.length<e.style.length&&(n+r).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}})).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.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(s))},this.processMutation=t=>{if(!Ha(t.target,this.mirror))switch(t.type){case"characterData":{const e=t.target.textContent;!kt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&e!==t.oldValue&&this.texts.push({value:Cn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,Ph(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=t.attributeName,r=t.target.getAttribute(n);if("value"===n){const n=Gu(e),i=e.tagName;r=Hs(e,i,n);const o=uo({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=mi({isMasked:Cn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:e,value:r,maskInputFn:this.maskInputFn})}if(kt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===t.oldValue)return;let i=this.attributeMap.get(t.target);if("IFRAME"===e.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Xu(e))return;n="rr_src"}if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),"type"===n&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!Mh(e.tagName,n)&&(i.attributes[n]=Ah(this.doc,xn(e.tagName),xn(n),r,e,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue);for(const t of Array.from(e.style)){const r=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);r!==n.style.getPropertyValue(t)||o!==n.style.getPropertyPriority(t)?i.styleDiff[t]=""===o?r:[r,o]:i._unchangedStyles[t]=[r,o]}for(const t of Array.from(n.style))""===e.style.getPropertyValue(t)&&(i.styleDiff[t]=!1)}break}case"childList":if(kt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),r=ui(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);kt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ha(e,this.mirror)||!Bw(e,this.mirror)||(this.addedSet.has(e)?(_u(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||Fh(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[vd(n,r)]?_u(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!(!ui(t.target)||!ci(t.target))||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(Ha(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[vd(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);kt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach((t=>this.genAdds(t))),gu(t)&&t.shadowRoot.childNodes.forEach((e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)})))}}}init(t){["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((e=>{this[e]=t[e]}))}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 _u(t,e){t.delete(e),e.childNodes.forEach((e=>_u(t,e)))}function Sd(t,e,n){return 0!==t.length&&Kw(t,e,n)}function Kw(t,e,n){let r=e.parentNode;for(;r;){const e=n.getId(r);if(t.some((t=>t.id===e)))return!0;r=r.parentNode}return!1}function Ed(t,e){return 0!==t.size&&zh(t,e)}function zh(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||zh(t,n))}let li;function Xw(t){li=t}function Jw(){li=void 0}const xe=t=>li?(...e)=>{try{return t(...e)}catch(t){if(li&&!0===li(t))return()=>{};throw t}}:t;function zt(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}const bn=[];function Ti(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function $h(t,e){const n=new Yw;bn.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const i=zt([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);i&&window[i]&&(r=window[i]);const o=new r(xe((e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)})));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Zw({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const i="number"==typeof e.mousemove?e.mousemove:50,o="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let s,a=[];const u=_i(xe((e=>{const n=Date.now()-s;t(a.map((t=>(t.timeOffset-=n,t))),e),a=[],s=null})),o),c=xe(_i(xe((t=>{const e=Ti(t),{clientX:n,clientY:i}=mu(t)?t.changedTouches[0]:t;s||(s=Gs()),a.push({x:n,y:i,id:r.getId(e),timeOffset:Gs()-s}),u(typeof DragEvent<"u"&&t instanceof DragEvent?ue.Drag:t instanceof MouseEvent?ue.MouseMove:ue.TouchMove)})),i,{trailing:!1})),l=[dt("mousemove",c,n),dt("touchmove",c,n),dt("drag",c,n)];return xe((()=>{l.forEach((t=>t()))}))}function Qw({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[];let c=null;return Object.keys(ft).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==a[t])).forEach((s=>{let a=xn(s);const l=(e=>s=>{const a=Ti(s);if(kt(a,r,i,o,!0))return;let u=null,l=e;if("pointerType"in s){switch(s.pointerType){case"mouse":u=cr.Mouse;break;case"touch":u=cr.Touch;break;case"pen":u=cr.Pen}u===cr.Touch?ft[e]===ft.MouseDown?l="TouchStart":ft[e]===ft.MouseUp&&(l="TouchEnd"):cr.Pen}else mu(s)&&(u=cr.Touch);null!==u?(c=u,(l.startsWith("Touch")&&u===cr.Touch||l.startsWith("Mouse")&&u===cr.Mouse)&&(u=null)):ft[e]===ft.Click&&(u=c,c=null);const f=mu(s)?s.changedTouches[0]:s;if(!f)return;const d=n.getId(a),{clientX:h,clientY:p}=f;xe(t)({type:ft[l],id:d,x:h,y:p,...null!==u&&{pointerType:u}})})(s);if(window.PointerEvent)switch(ft[s]){case ft.MouseDown:case ft.MouseUp:a=a.replace("mouse","pointer");break;case ft.TouchStart:case ft.TouchEnd:return}u.push(dt(a,l,e))})),xe((()=>{u.forEach((t=>t()))}))}function Hh({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){return dt("scroll",xe(_i(xe((s=>{const a=Ti(s);if(!a||kt(a,r,i,o,!0))return;const u=n.getId(a);if(a===e&&e.defaultView){const n=Dh(e.defaultView);t({id:u,x:n.left,y:n.top})}else t({id:u,x:a.scrollLeft,y:a.scrollTop})})),s.scroll||100)),e)}function ek({viewportResizeCb:t},{win:e}){let n=-1,r=-1;return dt("resize",xe(_i(xe((()=>{const e=Nh(),i=Lh();(n!==e||r!==i)&&(t({width:Number(i),height:Number(e)}),n=e,r=i)})),200)),e)}const tk=["INPUT","TEXTAREA","SELECT"],bd=new WeakMap;function rk({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m}){function y(t){let n=Ti(t);const l=t.isTrusted,y=n&&hu(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||tk.indexOf(y)<0||kt(n,r,i,o,!0))return;const _=n;if(_.classList.contains(s)||a&&_.matches(a))return;const v=Gu(n);let b=Hs(_,y,v),k=!1;const w=uo({maskInputOptions:u,tagName:y,type:v}),S=Cn(n,d,p,h,m,w);("radio"===v||"checkbox"===v)&&(k=n.checked),b=mi({isMasked:S,element:n,value:b,maskInputFn:c}),g(n,f?{text:b,isChecked:k,userTriggered:l}:{text:b,isChecked:k});const E=n.name;"radio"===v&&E&&k&&e.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach((t=>{if(t!==n){const e=mi({isMasked:S,element:t,value:Hs(t,y,v),maskInputFn:c});g(t,f?{text:e,isChecked:!k,userTriggered:!1}:{text:e,isChecked:!k})}}))}function g(e,r){const i=bd.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){bd.set(e,r);const i=n.getId(e);xe(t)({...r,id:i})}}const _=("last"===l.input?["change"]:["input","change"]).map((t=>dt(t,xe(y),e))),v=e.defaultView;if(!v)return()=>{_.forEach((t=>t()))};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),k=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...k.map((t=>Oh(t[0],t[1],{set(){xe(y)({target:this,isTrusted:!1})}},!1,v)))),xe((()=>{_.forEach((t=>t()))}))}function Vs(t){return function(t,e){if(Ms("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Ms("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Ms("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Ms("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else if(t.parentStyleSheet){const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function Tr(t,e,n){let r,i;return t?(t.ownerNode?r=e.getId(t.ownerNode):i=n.getId(t),{styleId:i,id:r}):{}}function nk({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:xe(((r,i,o)=>{const[s,a]=o,{id:u,styleId:c}=Tr(i,e,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&t({id:u,styleId:c,adds:[{rule:s,index:a}]}),r.apply(i,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:xe(((r,i,o)=>{const[s]=o,{id:a,styleId:u}=Tr(i,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,removes:[{index:s}]}),r.apply(i,o)}))}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:xe(((r,i,o)=>{const[s]=o,{id:a,styleId:u}=Tr(i,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,replace:s}),r.apply(i,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:xe(((r,i,o)=>{const[s]=o,{id:a,styleId:u}=Tr(i,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,replaceSync:s}),r.apply(i,o)}))}));const u={};Os("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(Os("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),Os("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),Os("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach((([r,i])=>{c[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[r].insertRule,{apply:xe(((r,i,o)=>{const[s,a]=o,{id:u,styleId:c}=Tr(i.parentStyleSheet,e,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&t({id:u,styleId:c,adds:[{rule:s,index:[...Vs(i),a||0]}]}),r.apply(i,o)}))}),i.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:xe(((r,i,o)=>{const[s]=o,{id:a,styleId:u}=Tr(i.parentStyleSheet,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,removes:[{index:[...Vs(i),s]}]}),r.apply(i,o)}))})})),xe((()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(u).forEach((([t,e])=>{e.prototype.insertRule=c[t].insertRule,e.prototype.deleteRule=c[t].deleteRule}))}))}function qh({mirror:t,stylesheetManager:e},n){let r=null;r="#document"===n.nodeName?t.getId(n):t.getId(n.host);const i="#document"===n.nodeName?zt([n,"access",t=>t.defaultView,"optionalAccess",t=>t.Document]):zt([n,"access",t=>t.ownerDocument,"optionalAccess",t=>t.defaultView,"optionalAccess",t=>t.ShadowRoot]),o=zt([i,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(zt([i,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return zt([o,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){const n=zt([o,"access",t=>t.set,"optionalAccess",t=>t.call,"call",e=>e(this,t)]);if(null!==r&&-1!==r)try{e.adoptStyleSheets(t,r)}catch{}return n}}),xe((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function ik({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:xe(((i,s,a)=>{const[u,c,l]=a;if(n.has(u))return o.apply(s,[u,c,l]);const{id:f,styleId:d}=Tr(zt([s,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(f&&-1!==f||d&&-1!==d)&&t({id:f,styleId:d,set:{property:u,value:c,priority:l},index:Vs(s.parentRule)}),i.apply(s,a)}))});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:xe(((i,o,a)=>{const[u]=a;if(n.has(u))return s.apply(o,[u]);const{id:c,styleId:l}=Tr(zt([o,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(c&&-1!==c||l&&-1!==l)&&t({id:c,styleId:l,remove:{property:u},index:Vs(o.parentRule)}),i.apply(o,a)}))}),xe((()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s}))}function sk({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:s}){const a=xe((s=>_i(xe((o=>{const a=Ti(o);if(!a||kt(a,e,n,r,!0))return;const{currentTime:u,volume:c,muted:l,playbackRate:f}=a;t({type:s,id:i.getId(a),currentTime:u,volume:c,muted:l,playbackRate:f})})),o.media||500))),u=[dt("play",a(0),s),dt("pause",a(1),s),dt("seeked",a(2),s),dt("volumechange",a(3),s),dt("ratechange",a(4),s)];return xe((()=>{u.forEach((t=>t()))}))}function ok({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(t,e,n){const r=new o(t,e,n);return i.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const s=Yu(e.fonts,"add",(function(e){return function(n){return lo(xe((()=>{const e=i.get(n);e&&(t(e),i.delete(n))})),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(s),xe((()=>{r.forEach((t=>t()))}))}function ak(t){const{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:s}=t;let a=!0;const u=xe((()=>{const t=e.getSelection();if(!t||a&&zt([t,"optionalAccess",t=>t.isCollapsed]))return;a=t.isCollapsed||!1;const u=[],c=t.rangeCount||0;for(let e=0;e<c;e++){const s=t.getRangeAt(e),{startContainer:a,startOffset:c,endContainer:l,endOffset:f}=s;kt(a,r,i,o,!0)||kt(l,r,i,o,!0)||u.push({start:n.getId(a),startOffset:c,end:n.getId(l),endOffset:f})}s({ranges:u})}));return u(),dt("selectionchange",u)}function uk({doc:t,customElementCb:e}){const n=t.defaultView;return n&&n.customElements?Yu(n.customElements,"define",(function(t){return function(n,r,i){try{e({define:{name:n}})}catch{}return t.apply(this,[n,r,i])}})):()=>{}}function ck(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=$h(t,t.doc));const i=Zw(t),o=Qw(t),s=Hh(t),a=ek(t,{win:n}),u=rk(t),c=sk(t);let l=()=>{},f=()=>{},d=()=>{},h=()=>{};t.recordDOM&&(l=nk(t,{win:n}),f=qh(t,t.doc),d=ik(t,{win:n}),t.collectFonts&&(h=ok(t)));const p=ak(t),m=uk(t),y=[];for(const e of t.plugins)y.push(e.observer(e.callback,n,e.options));return xe((()=>{bn.forEach((t=>t.reset())),zt([r,"optionalAccess",t=>t.disconnect,"call",t=>t()]),i(),o(),s(),a(),u(),c(),l(),f(),d(),h(),p(),m(),y.forEach((t=>t()))}))}function Ms(t){return typeof window[t]<"u"}function Os(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class yu{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,e,n,r){const i=n||this.getIdToRemoteIdMap(t),o=r||this.getRemoteIdToIdMap(t);let s=i.get(e);return s||(s=this.generateIdFn(),i.set(e,s),o.set(s,e)),s}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map((e=>this.getId(t,e,n,r)))}getRemoteId(t,e,n){const r=n||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;return r.get(e)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map((e=>this.getRemoteId(t,e,n)))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}function wd(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}class lk{constructor(){this.crossOriginIframeMirror=new yu(Vu),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class fk{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new yu(Vu),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),wd([this,"access",t=>t.loadListener,"optionalCall",e=>e(t)]);const n=Xu(t);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(t){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin||!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case me.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:me.IncrementalSnapshot,data:{source:ue.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case me.Meta:case me.Load:case me.DomContentLoaded:return!1;case me.Plugin:return e;case me.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case me.IncrementalSnapshot:switch(e.data.source){case ue.Mutation:return e.data.adds.forEach((e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)})),e.data.removes.forEach((e=>{this.replaceIds(e,t,["parentId","id"])})),e.data.attributes.forEach((e=>{this.replaceIds(e,t,["id"])})),e.data.texts.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case ue.Drag:case ue.TouchMove:case ue.MouseMove:return e.data.positions.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case ue.ViewportResize:return!1;case ue.MediaInteraction:case ue.MouseInteraction:case ue.Scroll:case ue.CanvasMutation:case ue.Input:return this.replaceIds(e.data,t,["id"]),e;case ue.StyleSheetRule:case ue.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case ue.Font:return e;case ue.Selection:return e.data.ranges.forEach((e=>{this.replaceIds(e,t,["start","end"])})),e;case ue.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),wd([e,"access",t=>t.data,"access",t=>t.styles,"optionalAccess",t=>t.forEach,"call",e=>e((e=>{this.replaceStyleIds(e,t,["styleId"])}))]),e}}return!1}replace(t,e,n,r){for(const i of r)!Array.isArray(e[i])&&"number"!=typeof e[i]||(Array.isArray(e[i])?e[i]=t.getIds(n,e[i]):e[i]=t.getId(n,e[i]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach((t=>{this.replaceIdOnNode(t,e)}))}patchRootIdOnNode(t,e){t.type!==Qe.Document&&!t.rootId&&(t.rootId=e),"childNodes"in t&&t.childNodes.forEach((t=>{this.patchRootIdOnNode(t,e)}))}}class dk{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class hk{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(!ci(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const n=$h({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Hh({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),lo((()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(qh({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))}),0)}observeAttachShadow(t){const e=Xu(t),n=qw(t);!e||!n||this.patchAttachShadow(n.Element,e)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(Yu(t.prototype,"attachShadow",(function(t){return function(r){const i=t.call(this,r);return this.shadowRoot&&Wh(this)&&n.addShadowRoot(this.shadowRoot,e),i}})))}reset(){this.restoreHandlers.forEach((t=>{try{t()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class kd{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class pk{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new jw,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const n={id:e,styleIds:[]},r=[];for(const e of t){let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),r.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,e)=>({rule:kh(t),index:e})))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class mk{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,e){const n=this.nodeMap.get(t);return n&&Array.from(n).some((t=>t!==e))}add(t,e){this.active||(this.active=!0,$w((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}destroy(){}}let Ye,Ys;try{if(2!==Array.from([1],(t=>2*t))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=Bs([t,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const Wt=pw();function mr(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:l="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:h=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,maxCanvasSize:k=null,packFn:w,sampling:S={},dataURLOptions:E={},mousemoveWait:x,recordDOM:I=!0,recordCanvas:C=!1,recordCrossOriginIframes:T=!1,recordAfter:R=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:A=!1,collectFonts:M=!1,inlineImages:O=!1,plugins:D,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:L=new Set([]),errorHandler:j,onMutation:P,getCanvasManager:F}=t;Xw(j);const U=!T||window.parent===window;let W=!1;if(!U)try{window.parent.document&&(W=!1)}catch{W=!0}if(U&&!e)throw new Error("emit function is required");if(!U&&!W)return()=>{};void 0!==x&&void 0===S.mousemove&&(S.mousemove=x),Wt.reset();const B=!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:{},z=!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||{};Uw();let $,H=0;const q=t=>{for(const e of D||[])e.eventProcessor&&(t=e.eventProcessor(t));return w&&!W&&(t=w(t)),t};Ye=(t,i)=>{const o=t;if(o.timestamp=Gs(),Bs([bn,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])&&o.type!==me.FullSnapshot&&!(o.type===me.IncrementalSnapshot&&o.data.source===ue.Mutation)&&bn.forEach((t=>t.unfreeze())),U)Bs([e,"optionalCall",t=>t(q(o),i)]);else if(W){const t={type:"rrweb",event:q(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(o.type===me.FullSnapshot)$=o,H=0;else if(o.type===me.IncrementalSnapshot){if(o.data.source===ue.Mutation&&o.data.isAttachIframe)return;H++;const t=r&&H>=r,e=n&&$&&o.timestamp-$.timestamp>n;(t||e)&&tt(!0)}};const V=t=>{Ye({type:me.IncrementalSnapshot,data:{source:ue.Mutation,...t}})},Y=t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.Scroll,...t}}),K=t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.CanvasMutation,...t}}),G=new pk({mutationCb:V,adoptedStyleSheetCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.AdoptedStyleSheet,...t}})}),J="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new lk:new fk({mirror:Wt,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:T,wrappedEmit:Ye});for(const t of D||[])t.getMirror&&t.getMirror({nodeMirror:Wt,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});const X=new mk,Q=_k(F,{mirror:Wt,win:window,mutationCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.CanvasMutation,...t}}),recordCanvas:C,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:k,sampling:S.canvas,dataURLOptions:E,errorHandler:j}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new dk:new hk({mutationCb:V,scrollCb:Y,bypassOptions:{onMutation:P,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:B,dataURLOptions:E,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,recordCanvas:C,inlineImages:O,sampling:S,slimDOMOptions:z,iframeManager:J,stylesheetManager:G,canvasManager:Q,keepIframeSrcFn:N,processedNodeManager:X},mirror:Wt}),tt=(t=!1)=>{if(!I)return;Ye({type:me.Meta,data:{href:window.location.href,width:Lh(),height:Nh()}},t),G.reset(),Z.init(),bn.forEach((t=>t.lock()));const e=Fw(document,{mirror:Wt,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskAllInputs:B,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,slimDOM:z,dataURLOptions:E,recordCanvas:C,inlineImages:O,onSerialize:t=>{Bh(t,Wt)&&J.addIframe(t),Uh(t,Wt)&&G.trackLinkElement(t),gu(t)&&Z.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{J.attachIframe(t,e),t.contentWindow&&Q.addWindow(t.contentWindow),Z.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{G.attachLinkElement(t,e)},keepIframeSrcFn:N});if(!e)return console.warn("Failed to snapshot the document");Ye({type:me.FullSnapshot,data:{node:e,initialOffset:Dh(window)}}),bn.forEach((t=>t.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,Wt.getId(document))};Ys=tt;try{const t=[],e=t=>xe(ck)({onMutation:P,mutationCb:V,mousemoveCb:(t,e)=>Ye({type:me.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.MouseInteraction,...t}}),scrollCb:Y,viewportResizeCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.ViewportResize,...t}}),inputCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.Input,...t}}),mediaInteractionCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.MediaInteraction,...t}}),styleSheetRuleCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.StyleSheetRule,...t}}),styleDeclarationCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.StyleDeclaration,...t}}),canvasMutationCb:K,fontCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.Font,...t}}),selectionCb:t=>{Ye({type:me.IncrementalSnapshot,data:{source:ue.Selection,...t}})},customElementCb:t=>{Ye({type:me.IncrementalSnapshot,data:{source:ue.CustomElement,...t}})},blockClass:i,ignoreClass:a,ignoreSelector:u,maskAllText:c,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,maskInputOptions:B,inlineStylesheet:p,sampling:S,recordDOM:I,recordCanvas:C,inlineImages:O,userTriggeredOnInput:A,collectFonts:M,doc:t,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:N,blockSelector:o,unblockSelector:s,slimDOMOptions:z,dataURLOptions:E,mirror:Wt,iframeManager:J,stylesheetManager:G,shadowDomManager:Z,processedNodeManager:X,canvasManager:Q,ignoreCSSAttributes:L,plugins:Bs([D,"optionalAccess",t=>t.filter,"call",t=>t((t=>t.observer)),"optionalAccess",t=>t.map,"call",t=>t((t=>({observer:t.observer,options:t.options,callback:e=>Ye({type:me.Plugin,data:{plugin:t.name,payload:e}})})))])||[]},{});J.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{tt(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(dt("DOMContentLoaded",(()=>{Ye({type:me.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&n()}))),t.push(dt("load",(()=>{Ye({type:me.Load,data:{}}),"load"===R&&n()}),window))),()=>{t.forEach((t=>t())),X.destroy(),Ys=void 0,Jw()}}catch(t){console.warn(t)}}function gk(t){if(!Ys)throw new Error("please take full snapshot after start recording");Ys(t)}function _k(t,e){try{return t?t(e):new kd}catch{return console.warn("Unable to initialize CanvasManager"),new kd}}mr.mirror=Wt,mr.takeFullSnapshot=gk;const yk=3,vk=5;function Ju(t){return t>9999999999?t:1e3*t}function qa(t){return t>9999999999?t/1e3:t}function Ai(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(t.throttledAddEvent({type:me.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:fr(e,10,1e3)}}),"console"===e.category))))}const Sk="button,a";function Gh(t){return t.closest(Sk)||t}function Vh(t){const e=Yh(t);return e&&e instanceof Element?Gh(e):e}function Yh(t){return Ek(t)?t.target:t}function Ek(t){return"object"==typeof t&&!!t&&"target"in t}let Ar;function bk(t){return Ar||(Ar=[],wk()),Ar.push(t),()=>{const e=Ar?Ar.indexOf(t):-1;e>-1&&Ar.splice(e,1)}}function wk(){Pt(je,"open",(function(t){return function(...e){if(Ar)try{Ar.forEach((t=>t()))}catch{}return t.apply(je,e)}}))}const kk=new Set([ue.Mutation,ue.StyleSheetRule,ue.StyleDeclaration,ue.AdoptedStyleSheet,ue.CanvasMutation,ue.Selection,ue.MediaInteraction]);function Ik(t,e,n){t.handleClick(e,n)}class xk{constructor(t,e,n=Ai){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=e.timeout/1e3,this._threshold=e.threshold/1e3,this._scrollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const t=bk((()=>{this._lastMutation=Id()}));this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){if(Rk(e,this._ignoreSelector)||!Tk(t))return;const n={timestamp:qa(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this._clicks.some((t=>t.node===n.node&&Math.abs(t.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=qa(t)}registerScroll(t=Date.now()){this._lastScroll=qa(t)}registerClick(t){const e=Gh(t);this._handleMultiClick(e)}_handleMultiClick(t){this._getClicks(t).forEach((t=>{t.clickCount++}))}_getClicks(t){return this._clicks.filter((e=>e.node===t))}_checkClicks(){const t=[],e=Id();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<=e&&t.push(n)}));for(const e of t){const t=this._clicks.indexOf(e);t>-1&&(this._generateBreadcrumbs(e),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:o,clickBreadcrumb:s}=t;if(i){const n=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:je.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(e,i)}else if(o>1){const t={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:je.location.href,route:e.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=In((()=>this._checkClicks()),1e3)}}const Ck=["A","BUTTON","INPUT"];function Rk(t,e){return!!(!Ck.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||e&&t.matches(e))}function Tk(t){return!(!t.data||"number"!=typeof t.data.nodeId||!t.timestamp)}function Id(){return Date.now()/1e3}function Ak(t,e){try{if(!Mk(e))return;const{source:n}=e.data;if(kk.has(n)&&t.registerMutation(e.timestamp),n===ue.Scroll&&t.registerScroll(e.timestamp),Ok(e)){const{type:n,id:r}=e.data,i=mr.mirror.getNode(r);i instanceof HTMLElement&&n===ft.Click&&t.registerClick(i)}}catch{}}function Mk(t){return 3===t.type}function Ok(t){return t.data.source===ue.MouseInteraction}function Jt(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Ks;!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Ks||(Ks={}));const Dk=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Nk(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(Dk.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),e[r]=t[n]}return e}const Lk=t=>e=>{if(!t.isEnabled())return;const n=Pk(e);if(!n)return;const r="click"===e.name,i=r?e.event:void 0;r&&t.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&Ik(t.clickDetector,n,Vh(e.event)),Ai(t,n)};function Kh(t,e){const n=mr.mirror.getId(t),r=n&&mr.mirror.getNode(n),i=r&&mr.mirror.getMeta(r),o=i&&Bk(i)?i:null;return{message:e,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((t=>t.type===Ks.Text&&t.textContent)).filter(Boolean).map((t=>t.trim())).join(""),attributes:Nk(o.attributes)}}:{}}}function Pk(t){const{target:e,message:n}=Fk(t);return Jt({category:`ui.${t.name}`,...Kh(e,n)})}function Fk(t){const e="click"===t.name;let n,r=null;try{r=e?Vh(t.event):Yh(t.event),n=Fu(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Bk(t){return t.type===Ks.Element}function Uk(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=jk(e);n&&Ai(t,n)}function jk(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:s}=t;if(!s||Wk(s)||!o)return null;const a=e||r||i,u=1===o.length;if(!a&&u)return null;const c=Fu(s,{maxStringLength:200})||"<unknown>";return Jt({category:"ui.keyDown",message:c,data:{...Kh(s,c).data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}function Wk(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}const zk={resource:Vk,paint:qk,navigation:Gk};function Ds(t,e){return({metric:n})=>{e.replayPerformanceEntries.push(t(n))}}function $k(t){return t.map(Hk).filter(Boolean)}function Hk(t){const e=zk[t.entryType];return e?e(t):null}function Rn(t){return((bE||je.performance.timeOrigin)+t)/1e3}function qk(t){const{duration:e,entryType:n,name:r,startTime:i}=t,o=Rn(i);return{type:n,name:r,start:o,end:o+e,data:void 0}}function Gk(t){const{entryType:e,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:f,redirectCount:d,startTime:h,transferSize:p,type:m}=t;return 0===i?null:{type:`${e}.${m}`,start:Rn(h),end:Rn(o),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:f,domComplete:o,redirectCount:d}}}function Vk(t){const{entryType:e,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:u,transferSize:c}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:Rn(o),end:Rn(i),name:r,data:{size:c,statusCode:u,decodedBodySize:s,encodedBodySize:a}}}function Yk(t){const e=t.entries[t.entries.length-1];return fo(t,"largest-contentful-paint",e&&e.element?[e.element]:void 0)}function Kk(t){return void 0!==t.sources}function Xk(t){const e=[],n=[];for(const r of t.entries)if(Kk(r)){const t=[];for(const e of r.sources)if(e.node){n.push(e.node);const r=mr.mirror.getId(e.node);r&&t.push(r)}e.push({value:r.value,nodeIds:t.length?t:void 0})}return fo(t,"cumulative-layout-shift",n,e)}function Jk(t){const e=t.entries[t.entries.length-1];return fo(t,"first-input-delay",e&&e.target?[e.target]:void 0)}function Zk(t){const e=t.entries[t.entries.length-1];return fo(t,"interaction-to-next-paint",e&&e.target?[e.target]:void 0)}function fo(t,e,n,r){const i=t.value,o=t.rating,s=Rn(i);return{type:"web-vital",name:e,start:s,end:s,data:{value:i,size:i,rating:o,nodeIds:n?n.map((t=>mr.mirror.getId(t))):void 0,attributions:r}}}function Qk(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n({entries:t}){t.forEach(e)}const r=[];return["navigation","paint","resource"].forEach((t=>{r.push(I1(t,n))})),r.push(b1(Ds(Yk,t)),E1(Ds(Xk,t)),w1(Ds(Jk,t)),k1(Ds(Zk,t))),()=>{r.forEach((t=>t()))}}const se=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,eI='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 tI(){const t=new Blob([eI]);return URL.createObjectURL(t)}const xd=["info","warn","error","log"],Us="[Replay] ";function Ga(t,e="info"){Pb({category:"console",data:{logger:"replay"},level:e,message:`${Us}${t}`},{level:e})}function rI(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{t=n.captureExceptions,e=n.traceInternals}};return se?(xd.forEach((t=>{n[t]=(...n)=>{ht[t](Us,...n),e&&Ga(n.join(""),Fb(t))}})),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),ht.error(Us,r),t?ju(r):e&&Ga(r,"error")},n.infoTick=(...t)=>{ht.info(Us,...t),e&&setTimeout((()=>Ga(t[0])),0)}):xd.forEach((t=>{n[t]=()=>{}})),n}const ae=rI();class Zu extends Error{constructor(){super(`Event buffer exceeded maximum size of ${qu}.`)}}class Xh{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(t){const e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>qu)throw new Zu;this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.clear(),t(JSON.stringify(e))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?Ju(t):null}}class nI{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){se&&ae.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((r,i)=>{const o=({data:e})=>{const s=e;if(s.method===t&&s.id===n){if(this._worker.removeEventListener("message",o),!s.success)return se&&ae.error("Error in compression worker: ",s.response),void i(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class iI{constructor(t){this._worker=new nI(t),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(t){const e=Ju(t.timestamp);(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e);const n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>qu?Promise.reject(new Zu):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(t=>{se&&ae.exception(t,'Sending "clear" message to worker failed',t)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class sI{constructor(t){this._fallback=new Xh,this._compression=new iI(t),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(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void(se&&ae.exception(t,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:e,waitForCheckout:n}=this._fallback,r=[];for(const e of t)r.push(this._compression.addEvent(e));this._compression.hasCheckout=e,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(t){se&&ae.exception(t,"Failed to add events when switching buffers.")}}}function oI({useCompression:t,workerUrl:e}){if(t&&window.Worker){const t=aI(e);if(t)return t}return se&&ae.info("Using simple buffer"),new Xh}function aI(t){try{const e=t||uI();if(!e)return;se&&ae.info("Using compression worker"+(t?` from ${t}`:""));const n=new Worker(e);return new sI(n)}catch(t){se&&ae.exception(t,"Failed to create compression worker")}}function uI(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?tI():""}function Qu(){try{return"sessionStorage"in je&&!!je.sessionStorage}catch{return!1}}function cI(t){lI(),t.session=void 0}function lI(){if(Qu())try{je.sessionStorage.removeItem($u)}catch{}}function Jh(t){return void 0!==t&&Math.random()<t}function Zh(t){const e=Date.now();return{id:t.id||pr(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,previousSessionId:t.previousSessionId}}function ec(t){if(Qu())try{je.sessionStorage.setItem($u,JSON.stringify(t))}catch{}}function fI(t,e){return Jh(t)?"session":!!e&&"buffer"}function Cd({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const i=Zh({sampled:fI(t,e),previousSessionId:r});return n&&ec(i),i}function dI(){if(!Qu())return null;try{const t=je.sessionStorage.getItem($u);if(!t)return null;const e=JSON.parse(t);return se&&ae.infoTick("Loading existing session"),Zh(e)}catch{return null}}function vu(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function Qh(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return vu(t.started,e,r)||vu(t.lastActivity,n,r)}function ep(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!(!Qh(t,{sessionIdleExpire:e,maxReplayDuration:n})||"buffer"===t.sampled&&0===t.segmentId)}function Va({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const i=r.stickySession&&dI();return i?ep(i,{sessionIdleExpire:t,maxReplayDuration:e})?(se&&ae.infoTick("Session in sessionStorage is expired, creating new one..."),Cd(r,{previousSessionId:i.id})):i:(se&&ae.infoTick("Creating new session"),Cd(r,{previousSessionId:n}))}function hI(t){return t.type===me.Custom}function tc(t,e,n){return!!rp(t,e)&&(tp(t,e,n),!0)}function pI(t,e,n){return rp(t,e)?tp(t,e,n):Promise.resolve(null)}async function tp(t,e,n){const{eventBuffer:r}=t;if(!r||r.waitForCheckout&&!n)return null;const i="buffer"===t.recordingMode;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=mI(e,t.getOptions().beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(e){const n=e&&e instanceof Zu,o=n?"addEventSizeExceeded":"addEvent";if(n&&i)return r.clear(),r.waitForCheckout=!0,null;t.handleException(e),await t.stop({reason:o});const s=Zt();s&&s.recordDroppedEvent("internal_sdk_error","replay")}}function rp(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=Ju(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now())&&(!(n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)||(se&&ae.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function mI(t,e){try{if("function"==typeof e&&hI(t))return e(t)}catch(t){return se&&ae.exception(t,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return t}function rc(t){return!t.type}function Su(t){return"transaction"===t.type}function gI(t){return"replay_event"===t.type}function Rd(t){return"feedback"===t.type}function _I(t){return(e,n)=>{if(!t.isEnabled()||!rc(e)&&!Su(e))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Su(e))return void yI(t,e);vI(t,e)}}}function yI(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}function vI(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),"buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();"function"==typeof r&&!r(e)||In((async()=>{try{await t.sendBufferedReplayOrFlush()}catch(e){t.handleException(e)}}))}function SI(t){return e=>{!t.isEnabled()||!rc(e)||EI(t,e)}}function EI(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0]&&e.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))){Ai(t,Jt({category:"replay.hydrate-error",data:{url:gE()}}))}}function bI(t){const e=Zt();e&&e.on("beforeAddBreadcrumb",(e=>wI(t,e)))}function wI(t,e){if(!t.isEnabled()||!np(e))return;const n=kI(e);n&&Ai(t,n)}function kI(t){return!np(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?II(t):Jt(t)}function II(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return Jt(t);let n=!1;const r=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>As?(n=!0,`${t.slice(0,As)}…`):t;if("object"==typeof t)try{const e=fr(t,7);return JSON.stringify(e).length>As?(n=!0,`${JSON.stringify(e,null,2).slice(0,As)}…`):e}catch{}return t}));return Jt({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function np(t){return!!t.category}function xI(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&!(!e.originalException||!e.originalException.__rrweb__)}function ip(){const t=Mn().getPropagationContext().dsc;t&&delete t.replay_id;const e=ch();if(e){delete fh(e).replay_id}}function CI(t,e){t.triggerUserActivity(),t.addUpdate((()=>!e.timestamp||(t.throttledAddEvent({type:me.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1)))}function RI(t,e){return!("buffer"!==t.recordingMode||e.message===Hu||!e.exception||e.type)&&Jh(t.getOptions().errorSampleRate)}function TI(t){return Object.assign(((e,n)=>!t.isEnabled()||t.isPaused()?e:gI(e)?(delete e.breadcrumbs,e):rc(e)||Su(e)||Rd(e)?t.checkAndHandleExpiredSession()?Rd(e)?(t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),CI(t,e),e):xI(e,n)&&!t.getOptions()._experiments.captureExceptions?(se&&ae.log("Ignoring error from rrweb internals",e),null):((RI(t,e)||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),e):(ip(),e):e),{id:"Replay"})}function ho(t,e){return e.map((({type:e,start:n,end:r,name:i,data:o})=>{const s=t.throttledAddEvent({type:me.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof s?Promise.resolve(null):s}))}function AI(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function MI(t){return e=>{if(!t.isEnabled())return;const n=AI(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(ho(t,[n]),!1))))}}function OI(t,e){return(!se||!t.getOptions()._experiments.traceInternals)&&Ob(e,Zt())}function sp(t,e){t.isEnabled()&&null!==e&&(OI(t,e.name)||t.addUpdate((()=>(ho(t,[e]),!0))))}function po(t){if(!t)return;const e=new TextEncoder;try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=cp(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function op(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function ap(t){try{if("string"==typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[cp(t)];if(!t)return[void 0]}catch(e){return se&&ae.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return se&&ae.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Xs(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function up(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:s,request:a,response:u}=e;return{type:t,start:n/1e3,end:r/1e3,name:i,data:Ht({method:o,statusCode:s,request:a,response:u})}}function yi(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Or(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:i,warnings:o}=DI(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function Eu(t,e){return Object.entries(t).reduce(((n,[r,i])=>{const o=r.toLowerCase();return e.includes(o)&&t[r]&&(n[o]=i),n}),{})}function cp(t){return new URLSearchParams(t).toString()}function DI(t){if(!t||"string"!=typeof t)return{body:t};const e=t.length>ud,n=NI(t);if(e){const e=t.slice(0,ud);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${e}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch{}return{body:t}}function NI(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}function Js(t,e){return yE(LI(t),e)}function LI(t,e=je.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(je.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function PI(t,e,n){try{const r=up("resource.fetch",await BI(t,e,n));sp(n.replay,r)}catch(t){se&&ae.exception(t,"Failed to capture fetch breadcrumb")}}function FI(t,e){const{input:n,response:r}=e,i=po(n?lp(n):void 0),o=r?op(r.headers.get("content-length")):void 0;void 0!==i&&(t.data.request_body_size=i),void 0!==o&&(t.data.response_body_size=o)}async function BI(t,e,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=e,{url:s,method:a,status_code:u=0,request_body_size:c,response_body_size:l}=t.data,f=Js(s,n.networkDetailAllowUrls)&&!Js(s,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:u,request:f?UI(n,e.input,c):yi(c),response:await jI(f,n,e.response,l)}}function UI({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const i=n?$I(n,e):{};if(!t)return Or(i,r,void 0);const o=lp(n),[s,a]=ap(o),u=Or(i,r,s);return a?Xs(u,a):u}async function jI(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,i){if(!t&&void 0!==i)return yi(i);const o=r?fp(r.headers,n):{};if(!r||!e&&void 0!==i)return Or(o,i,void 0);const[s,a]=await zI(r),u=WI(s,{networkCaptureBodies:e,responseBodySize:i,captureDetails:t,headers:o});return a?Xs(u,a):u}function WI(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:i}){try{const o=t&&t.length&&void 0===n?po(t):n;return r?Or(i,o,e?t:void 0):yi(o)}catch(t){return se&&ae.exception(t,"Failed to serialize response body"),Or(i,n,void 0)}}async function zI(t){const e=HI(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await qI(e)]}catch(t){return t instanceof Error&&t.message.indexOf("Timeout")>-1?(se&&ae.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(se&&ae.exception(t,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function lp(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function fp(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function $I(t,e){return 1===t.length&&"string"!=typeof t[0]?Td(t[0],e):2===t.length?Td(t[1],e):{}}function Td(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?fp(n,e):Array.isArray(n)?{}:Eu(n,e):{}}function HI(t){try{return t.clone()}catch(t){se&&ae.exception(t,"Failed to clone response body")}}function qI(t){return new Promise(((e,n)=>{const r=In((()=>n(new Error("Timeout while trying to read response body"))),500);GI(t).then((t=>e(t)),(t=>n(t))).finally((()=>clearTimeout(r)))}))}async function GI(t){return await t.text()}async function VI(t,e,n){try{const r=up("resource.xhr",KI(t,e,n));sp(n.replay,r)}catch(t){se&&ae.exception(t,"Failed to capture xhr breadcrumb")}}function YI(t,e){const{xhr:n,input:r}=e;if(!n)return;const i=po(r),o=n.getResponseHeader("content-length")?op(n.getResponseHeader("content-length")):QI(n.response,n.responseType);void 0!==i&&(t.data.request_body_size=i),void 0!==o&&(t.data.response_body_size=o)}function KI(t,e,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:s,xhr:a}=e,{url:u,method:c,status_code:l=0,request_body_size:f,response_body_size:d}=t.data;if(!u)return null;if(!a||!Js(u,n.networkDetailAllowUrls)||Js(u,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:u,method:c,statusCode:l,request:yi(f),response:yi(d)}}const h=a[j1],p=h?Eu(h.request_headers,n.networkRequestHeaders):{},m=Eu(XI(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?ap(s):[void 0],[_,v]=n.networkCaptureBodies?JI(a):[void 0],b=Or(p,f,y),k=Or(m,d,_);return{startTimestamp:i,endTimestamp:o,url:u,method:c,statusCode:l,request:g?Xs(b,g):b,response:v?Xs(k,v):k}}function XI(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return r&&(t[n.toLowerCase()]=r),t}),{}):{}}function JI(t){const e=[];try{return[t.responseText]}catch(t){e.push(t)}try{return ZI(t.response,t.responseType)}catch(t){e.push(t)}return se&&ae.warn("Failed to get xhr response body",...e),[void 0]}function ZI(t,e){try{if("string"==typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"==typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(e){return se&&ae.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return se&&ae.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function QI(t,e){try{return po("json"===e&&t&&"object"==typeof t?JSON.stringify(t):t)}catch{return}}function ex(t){const e=Zt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};e&&e.on("beforeAddBreadcrumb",((t,e)=>tx(a,t,e)))}catch{}}function tx(t,e,n){if(e.data)try{rx(e)&&ix(n)&&(YI(e,n),VI(e,n,t)),nx(e)&&sx(n)&&(FI(e,n),PI(e,n,t))}catch(t){se&&ae.exception(t,"Error when enriching network breadcrumb")}}function rx(t){return"xhr"===t.category}function nx(t){return"fetch"===t.category}function ix(t){return t&&t.xhr}function sx(t){return t&&t.response}function ox(t){const e=Zt();O1(Lk(t)),F1(MI(t)),bI(t),ex(t);xb(TI(t)),e&&(e.on("beforeSendEvent",SI(t)),e.on("afterSendEvent",_I(t)),e.on("createDsc",(e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&t.checkAndHandleExpiredSession()&&(e.replay_id=n)})),e.on("spanStart",(e=>{t.lastActiveSpan=e})),e.on("spanEnd",(e=>{t.lastActiveSpan=e})),e.on("beforeSendFeedback",((e,n)=>{const r=t.getSessionId();n&&n.includeReplay&&t.isEnabled()&&r&&e.contexts&&e.contexts.feedback&&(e.contexts.feedback.replay_id=r)})))}async function ax(t){try{return Promise.all(ho(t,[ux(je.performance.memory)]))}catch{return[]}}function ux(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function cx(t,e,n){let r,i,o;const s=n.maxWait?Math.max(n.maxWait,e):0;function a(){return u(),r=t(),r}function u(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=In(a,e),s&&void 0===o&&(o=In(a,s)),r}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==o?a():r},c}function lx(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return void(se&&ae.warn("Received replay event after session expired."));const i=r||!e;e=!0,t.clickDetector&&Ak(t.clickDetector,n),t.addUpdate((()=>{if("buffer"===t.recordingMode&&i&&t.setInitialState(),!tc(t,n,i))return!0;if(!i)return!1;const e=t.session;if(dx(t,i),"buffer"===t.recordingMode&&e&&t.eventBuffer){const n=t.eventBuffer.getEarliestTimestamp();n&&(se&&ae.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),e.started=n,t.getOptions().stickySession&&ec(e))}return e&&e.previousSessionId||"session"===t.recordingMode&&t.flush(),!0}))}}function fx(t){const e=t.getOptions();return{type:me.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function dx(t,e){!e||!t.session||0!==t.session.segmentId||tc(t,fx(t),!1)}function hx(t,e,n,r){return ob(ub(t,ab(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}function px({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${r}${t}`;else{const e=(new TextEncoder).encode(r);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}async function mx({client:t,scope:e,replayId:n,event:r}){const i={event_id:n,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",r,i);const o=await gb(t.getOptions(),r,i,e,t,ki());if(!o)return null;o.platform=o.platform||"javascript";const s=t.getSdkMetadata(),{name:a,version:u}=s&&s.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function gx({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=px({recordingData:t,headers:{segment_id:n}}),{urls:a,errorIds:u,traceIds:c,initialTimestamp:l}=r,f=Zt(),d=Mn(),h=f&&f.getTransport(),p=f&&f.getDsn();if(!(f&&h&&p&&o.sampled))return qf({});const m={type:K1,replay_start_timestamp:l/1e3,timestamp:i/1e3,error_ids:u,trace_ids:c,urls:a,replay_id:e,segment_id:n,replay_type:o.sampled},y=await mx({scope:d,client:f,replayId:e,event:m});if(!y)return f.recordDroppedEvent("event_processor","replay",m),se&&ae.info("An event processor returned `null`, will not send event."),qf({});delete y.sdkProcessingMetadata;const g=hx(y,s,p,f.getOptions().tunnel);let _;try{_=await h.send(g)}catch(t){const e=new Error(Hu);try{e.cause=t}catch{}throw e}if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new dp(_.statusCode);const v=Mb({},_);if(Ab(v,"replay"))throw new nc(v);return _}class dp extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class nc extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function hp(t,e={count:0,interval:tw}){const{recordingData:n,onError:r}=t;if(n.length)try{return await gx(t),!0}catch(n){if(n instanceof dp||n instanceof nc)throw n;if(kb("Replays",{_retryCount:e.count}),r&&r(n),e.count>=3){const t=new Error(`${Hu} - max retries exceeded`);try{t.cause=n}catch{}throw t}return e.interval*=++e.count,new Promise(((n,r)=>{In((async()=>{try{await hp(t,e),n(!0)}catch(t){r(t)}}),e.interval)}))}}const pp="__THROTTLED",_x="__SKIPPED";function yx(t,e,n){const r=new Map;let i=!1;return(...o)=>{const s=Math.floor(Date.now()/1e3);if((t=>{const e=t-n;r.forEach(((t,n)=>{n<e&&r.delete(n)}))})(s),[...r.values()].reduce(((t,e)=>t+e),0)>=e){const t=i;return i=!0,t?_x:pp}i=!1;const a=r.get(s)||0;return r.set(s,a+1),t(...o)}}class Mr{constructor({options:t,recordingOptions:e}){Mr.prototype.__init.call(this),Mr.prototype.__init2.call(this),Mr.prototype.__init3.call(this),Mr.prototype.__init4.call(this),Mr.prototype.__init5.call(this),Mr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:X1,sessionIdleExpire:J1},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=e,this._options=t,this._debouncedFlush=cx((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=yx(((t,e)=>pI(this,t,e)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(nw,n),timeout:n,scrollTimeout:iw,ignoreSelector:r?r.join(","):""}:void 0;if(i&&(this.clickDetector=new xk(this,i)),se){const e=t._experiments;ae.setConfig({captureExceptions:!!e.captureExceptions,traceInternals:!!e.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){se&&ae.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:e,sessionSampleRate:n}=this._options,r=e<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(t),!this.session)return void(se&&ae.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",se&&ae.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(se&&ae.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(se&&ae.info("Buffering is in progress, call `flush()` to save the replay"));se&&ae.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Va({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(se&&ae.info("Buffering is in progress, call `flush()` to save the replay"));se&&ae.infoTick("Starting replay in buffer mode");const t=Va({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=mr({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:ew}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:lx(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:e}={}){if(this._isEnabled){this._isEnabled=!1;try{se&&ae.info("Stopping Replay"+(e?` triggered by ${e}`:"")),ip(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,cI(this)}catch(t){this.handleException(t)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),se&&ae.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),se&&ae.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();se&&ae.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();!t||!n||"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(e),this._updateSessionActivity(e),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&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&&vu(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const t=`${je.location.pathname}${je.location.hash}${je.location.search}`,e=`${je.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){const n=this._throttledAddEvent(t,e);if(n===pp){const t=Jt({category:"replay.throttled"});this.addUpdate((()=>!tc(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}})))}return n}getCurrentRoute(){const t=this.lastActiveSpan||ch(),e=t&&Uu(t),n=(e&&hi(e).data||{})[uh];if(e&&n&&["route","custom"].includes(n))return hi(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=oI({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const e=this._options.errorSampleRate>0,n=Va({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:e});this.session=n}_checkSession(){if(!this.session)return!1;const t=this.session;return!ep(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{je.document.addEventListener("visibilitychange",this._handleVisibilityChange),je.addEventListener("blur",this._handleWindowBlur),je.addEventListener("focus",this._handleWindowFocus),je.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(ox(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=Qk(this)}_removeListeners(){try{je.document.removeEventListener("visibilitychange",this._handleVisibilityChange),je.removeEventListener("blur",this._handleWindowBlur),je.removeEventListener("focus",this._handleWindowFocus),je.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{"visible"===je.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Jt({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Jt({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{Uk(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Qh(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){this.session&&(this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):se&&ae.info("Document has become active, but session has expired"))}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate((()=>{this.throttledAddEvent({type:me.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){let t=$k(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const e=this._context.initialTimestamp/1e3;t=t.filter((t=>t.start>=e))}return Promise.all(ho(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e||this._requiresManualStart||t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={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(),t}async _runFlush(){const t=this.getSessionId();if(this.session&&this.eventBuffer&&t){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await ax(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const e=Date.now();if(e-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 i=await this.eventBuffer.finish();await hp({replayId:t,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:e,onError:t=>this.handleException(t)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});const e=Zt();if(e){const n=t instanceof nc?"ratelimit_backoff":"send_error";e.recordDroppedEvent(n,"replay")}}}else se&&ae.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession())return void(se&&ae.error("Attempting to finish replay event after session expired."));if(!this.session)return;const e=this.session.started,n=Date.now()-e;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i)return se&&ae.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&se&&ae.info("Flushing initial segment without checkout.");const s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(t){this.handleException(t)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ec(this.session)}__init6(){this._onMutationHandler=t=>{const e=t.length,n=this._options.mutationLimit,r=n&&e>n;if(e>this._options.mutationBreadcrumbLimit||r){const t=Jt({category:"replay.mutations",data:{count:e,limit:r}});this._createCustomBreadcrumb(t)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ri(t,e){return[...t,...e].join(",")}function vx({mask:t,unmask:e,block:n,unblock:r,ignore:i}){return{maskTextSelector:ri(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:ri(e,[]),blockSelector:ri(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:ri(r,[]),ignoreSelector:ri(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Sx({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&t.matches(i.unmaskTextSelector)?o:n.includes(e)||"value"===e&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const Ad='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Ex=["content-length","content-type","accept"];let Md=!1;const bx=t=>new mo(t);class mo{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=Z1,flushMaxDelay:e=Q1,minReplayDuration:n=sw,maxReplayDuration:r=cd,stickySession:i=!0,useCompression:o=!0,workerUrl:s,_experiments:a={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:f=750,mutationLimit:d=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:k=["title","placeholder"],unmask:w=[],block:S=[],unblock:E=[],ignore:x=[],maskFn:I,beforeAddRecordingEvent:C,beforeErrorSampling:T,onError:R}={}){this.name=mo.id;const A=vx({mask:b,unmask:w,block:S,unblock:E,ignore:x});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(t,e,n)=>Sx({maskAttributes:k,maskAllText:u,privacyOptions:A,key:t,value:e,el:n}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,ow),maxReplayDuration:Math.min(r,cd),stickySession:i,useCompression:o,workerUrl:s,blockAllMedia:l,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:d,slowClickTimeout:h,slowClickIgnoreSelectors:p,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:Od(_),networkResponseHeaders:Od(v),beforeAddRecordingEvent:C,beforeErrorSampling:T,onError:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Ad}`:Ad),this._isInitialized&&nd())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Md}set _isInitialized(t){Md=t}afterAllSetup(t){!nd()||this._replay||(this._setup(t),this._initialize(t))}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(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(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(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const e=wx(this._initialOptions,t);this._replay=new Mr({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const e=t.getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch{}}}function wx(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Ht(t)},i=Zf(n.replaysSessionSampleRate),o=Zf(n.replaysOnErrorSampleRate);return null==i&&null==o&&Ou((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=i&&(r.sessionSampleRate=i),null!=o&&(r.errorSampleRate=o),r}function Od(t){return[...Ex,...t.map((t=>t.toLowerCase()))]}mo.__initStatic();var at=Zd();const mp=()=>"object"!=typeof window;var kx={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/error-kit",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/error-kit/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/error-kit/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/error-kit",npm_lifecycle_event:"build",EDITOR:"vi",npm_package_name:"@wellesley/error-kit",LANG:"en_GB.UTF-8",ITERM_PROFILE:"Roman",npm_config_npm_version:"10.9.0",XPC_FLAGS:"0x0",TURBO_HASH:"cc3264cdd0d07559",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.8",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/error-kit"};function Ix(t){if("object"!=typeof t||null===t)return!1;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||null===Object.getPrototypeOf(t)}function xx(t){return Ix(t)&&"type"in t&&"string"==typeof t.type}mp()||(window.build=kx.BUILD_NUMBER),bx(),H1(),jb();var gp=Symbol.for("immer-nothing"),Dd=Symbol.for("immer-draftable"),xt=Symbol.for("immer-state");function $t(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Tn=Object.getPrototypeOf;function Dr(t){return!!t&&!!t[xt]}function _r(t){var e;return!!t&&(_p(t)||Array.isArray(t)||!!t[Dd]||!(null==(e=t.constructor)||!e[Dd])||_o(t)||yo(t))}var Cx=Object.prototype.constructor.toString();function _p(t){if(!t||"object"!=typeof t)return!1;const e=Tn(t);if(null===e)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Cx}function vi(t,e){0===go(t)?Object.entries(t).forEach((([n,r])=>{e(n,r,t)})):t.forEach(((n,r)=>e(r,n,t)))}function go(t){const e=t[xt];return e?e.type_:Array.isArray(t)?1:_o(t)?2:yo(t)?3:0}function bu(t,e){return 2===go(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function yp(t,e,n){const r=go(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function Rx(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function _o(t){return t instanceof Map}function yo(t){return t instanceof Set}function Gr(t){return t.copy_||t.base_}function wu(t,e){if(_o(t))return new Map(t);if(yo(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&_p(t))return Tn(t)?{...t}:Object.assign(Object.create(null),t);const n=Object.getOwnPropertyDescriptors(t);delete n[xt];let r=Reflect.ownKeys(n);for(let e=0;e<r.length;e++){const i=r[e],o=n[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Tn(t),n)}function ic(t,e=!1){return vo(t)||Dr(t)||!_r(t)||(go(t)>1&&(t.set=t.add=t.clear=t.delete=Tx),Object.freeze(t),e&&vi(t,((t,e)=>ic(e,!0)))),t}function Tx(){$t(2)}function vo(t){return Object.isFrozen(t)}var Si,Ax={};function Kr(t){const e=Ax[t];return e||$t(0,t),e}function vp(){return Si}function Mx(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Nd(t,e){e&&(Kr("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ku(t){Iu(t),t.drafts_.forEach(Ox),t.drafts_=null}function Iu(t){t===Si&&(Si=t.parent_)}function Ld(t){return Si=Mx(Si,t)}function Ox(t){const e=t[xt];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function Pd(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[xt].modified_&&(ku(e),$t(4)),_r(t)&&(t=Zs(e,t),e.parent_||Qs(e,t)),e.patches_&&Kr("Patches").generateReplacementPatches_(n[xt].base_,t,e.patches_,e.inversePatches_)):t=Zs(e,n,[]),ku(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==gp?t:void 0}function Zs(t,e,n){if(vo(e))return e;const r=e[xt];if(!r)return vi(e,((i,o)=>Fd(t,r,e,i,o,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return Qs(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let i=e,o=!1;3===r.type_&&(i=new Set(e),e.clear(),o=!0),vi(i,((i,s)=>Fd(t,r,e,i,s,n,o))),Qs(t,e,!1),n&&t.patches_&&Kr("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function Fd(t,e,n,r,i,o,s){if(Dr(i)){const s=Zs(t,i,o&&e&&3!==e.type_&&!bu(e.assigned_,r)?o.concat(r):void 0);if(yp(n,r,s),!Dr(s))return;t.canAutoFreeze_=!1}else s&&n.add(i);if(_r(i)&&!vo(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Zs(t,i),(!e||!e.scope_.parent_)&&Qs(t,i)}}function Qs(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ic(e,n)}function Dx(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:vp(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=sc;n&&(i=[r],o=Ei);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var sc={get(t,e){if(e===xt)return t;const n=Gr(t);if(!bu(n,e))return Nx(t,n,e);const r=n[e];return t.finalized_||!_r(r)?r:r===Ya(t.base_,e)?(Ka(t),t.copy_[e]=Cu(r,t)):r},has:(t,e)=>e in Gr(t),ownKeys:t=>Reflect.ownKeys(Gr(t)),set(t,e,n){const r=Sp(Gr(t),e);if(null!=r&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=Ya(Gr(t),e),i=null==r?void 0:r[xt];if(i&&i.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(Rx(n,r)&&(void 0!==n||bu(t.base_,e)))return!0;Ka(t),xu(t)}return t.copy_[e]===n&&(void 0!==n||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty:(t,e)=>(void 0!==Ya(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,Ka(t),xu(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=Gr(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}},defineProperty(){$t(11)},getPrototypeOf:t=>Tn(t.base_),setPrototypeOf(){$t(12)}},Ei={};function Ya(t,e){const n=t[xt];return(n?Gr(n):t)[e]}function Nx(t,e,n){var r;const i=Sp(e,n);return i?"value"in i?i.value:null==(r=i.get)?void 0:r.call(t.draft_):void 0}function Sp(t,e){if(!(e in t))return;let n=Tn(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=Tn(n)}}function xu(t){t.modified_||(t.modified_=!0,t.parent_&&xu(t.parent_))}function Ka(t){t.copy_||(t.copy_=wu(t.base_,t.scope_.immer_.useStrictShallowCopy_))}vi(sc,((t,e)=>{Ei[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ei.deleteProperty=function(t,e){return Ei.set.call(this,t,e,void 0)},Ei.set=function(t,e,n){return sc.set.call(this,t[0],e,n,t[0])};var Lx=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,n)=>{if("function"==typeof t&&"function"!=typeof e){const n=e;e=t;const r=this;return function(t=n,...i){return r.produce(t,(t=>e.call(this,t,...i)))}}let r;if("function"!=typeof e&&$t(6),void 0!==n&&"function"!=typeof n&&$t(7),_r(t)){const i=Ld(this),o=Cu(t,void 0);let s=!0;try{r=e(o),s=!1}finally{s?ku(i):Iu(i)}return Nd(i,n),Pd(r,i)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===gp&&(r=void 0),this.autoFreeze_&&ic(r,!0),n){const e=[],i=[];Kr("Patches").generateReplacementPatches_(t,r,e,i),n(e,i)}return r}$t(1,t)},this.produceWithPatches=(t,e)=>{if("function"==typeof t)return(e,...n)=>this.produceWithPatches(e,(e=>t(e,...n)));let n,r;return[this.produce(t,e,((t,e)=>{n=t,r=e})),n,r]},"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof(null==t?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){_r(t)||$t(8),Dr(t)&&(t=Ep(t));const e=Ld(this),n=Cu(t,void 0);return n[xt].isManual_=!0,Iu(e),n}finishDraft(t,e){const n=t&&t[xt];(!n||!n.isManual_)&&$t(9);const{scope_:r}=n;return Nd(r,e),Pd(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));const r=Kr("Patches").applyPatches_;return Dr(t)?r(t,e):this.produce(t,(t=>r(t,e)))}};function Cu(t,e){const n=_o(t)?Kr("MapSet").proxyMap_(t,e):yo(t)?Kr("MapSet").proxySet_(t,e):Dx(t,e);return(e?e.scope_:vp()).drafts_.push(n),n}function Ep(t){return Dr(t)||$t(10,t),bp(t)}function bp(t){if(!_r(t)||vo(t))return t;const e=t[xt];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=wu(t,e.scope_.immer_.useStrictShallowCopy_)}else n=wu(t,!0);return vi(n,((t,e)=>{yp(n,t,bp(e))})),e&&(e.finalized_=!1),n}var Ct=new Lx,wp=Ct.produce;function Px(t,e="expected a function, instead received "+typeof t){if("function"!=typeof t)throw new TypeError(e)}function Fx(t,e="expected an object, instead received "+typeof t){if("object"!=typeof t)throw new TypeError(e)}function Bx(t,e="expected all items to be functions, instead received the following types: "){if(!t.every((t=>"function"==typeof t))){const n=t.map((t=>"function"==typeof t?`function ${t.name||"unnamed"}()`:typeof t)).join(", ");throw new TypeError(`${e}[${n}]`)}}Ct.produceWithPatches.bind(Ct),Ct.setAutoFreeze.bind(Ct),Ct.setUseStrictShallowCopy.bind(Ct),Ct.applyPatches.bind(Ct),Ct.createDraft.bind(Ct),Ct.finishDraft.bind(Ct);var Bd=t=>Array.isArray(t)?t:[t];function Ux(t){const e=Array.isArray(t[0])?t[0]:t;return Bx(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function jx(t,e){const n=[],{length:r}=t;for(let i=0;i<r;i++)n.push(t[i].apply(null,e));return n}var Wx=class{constructor(t){this.value=t}deref(){return this.value}},zx=typeof WeakRef<"u"?WeakRef:Wx,$x=0,Ud=1;function Ns(){return{s:$x,v:void 0,o:null,p:null}}function oc(t,e={}){let n=Ns();const{resultEqualityCheck:r}=e;let i,o=0;function s(){var e;let s=n;const{length:a}=arguments;for(let t=0,e=a;t<e;t++){const e=arguments[t];if("function"==typeof e||"object"==typeof e&&null!==e){let t=s.o;null===t&&(s.o=t=new WeakMap);const n=t.get(e);void 0===n?(s=Ns(),t.set(e,s)):s=n}else{let t=s.p;null===t&&(s.p=t=new Map);const n=t.get(e);void 0===n?(s=Ns(),t.set(e,s)):s=n}}const u=s;let c;if(s.s===Ud?c=s.v:(c=t.apply(null,arguments),o++),u.s=Ud,r){const t=(null==(e=null==i?void 0:i.deref)?void 0:e.call(i))??i;null!=t&&r(t,c)&&(c=t,0!==o&&o--),i="object"==typeof c&&null!==c||"function"==typeof c?new zx(c):c}return u.v=c,c}return s.clearCache=()=>{n=Ns(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function kp(t,...e){const n="function"==typeof t?{memoize:t,memoizeOptions:e}:t,r=(...t)=>{let e,r=0,i=0,o={},s=t.pop();"object"==typeof s&&(o=s,s=t.pop()),Px(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const a={...n,...o},{memoize:u,memoizeOptions:c=[],argsMemoize:l=oc,argsMemoizeOptions:f=[],devModeChecks:d={}}=a,h=Bd(c),p=Bd(f),m=Ux(t),y=u((function(){return r++,s.apply(null,arguments)}),...h),g=l((function(){i++;const t=jx(m,arguments);return e=y.apply(null,t),e}),...p);return Object.assign(g,{resultFunc:s,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>e,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var Hx=kp(oc),qx=Object.assign(((t,e=Hx)=>{Fx(t,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);const n=Object.keys(t);return e(n.map((e=>t[e])),((...t)=>t.reduce(((t,e,r)=>(t[n[r]]=e,t)),{})))}),{withTypes:()=>qx}),Gx=(...t)=>{const e=kp(...t),n=Object.assign(((...t)=>{const n=e(...t),r=(t,...e)=>n(Dr(t)?Ep(t):t,...e);return Object.assign(r,n),r}),{withTypes:()=>n});return n};function An(t,e){function n(...n){if(e){let r=e(...n);if(!r)throw new Error(It(0));return{type:t,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:t,payload:n[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=e=>xx(e)&&e.type===t,n}function jd(t){return _r(t)?wp(t,(()=>{})):t}function Wd(t,e,n){if(t.has(e)){let r=t.get(e);return n.update&&(r=n.update(r,e,t),t.set(e,r)),r}if(!n.insert)throw new Error(It(10));const r=n.insert(e,t);return t.set(e,r),r}function Ip(t){const e={},n=[];let r;const i={addCase(t,n){const r="string"==typeof t?t:t.type;if(!r)throw new Error(It(28));if(r in e)throw new Error(It(29));return e[r]=n,i},addMatcher:(t,e)=>(n.push({matcher:t,reducer:e}),i),addDefaultCase:t=>(r=t,i)};return t(i),[e,n,r]}function Vx(t){return"function"==typeof t}function Yx(t,e){let n,[r,i,o]=Ip(e);if(Vx(t))n=()=>jd(t());else{const e=jd(t);n=()=>e}function s(t=n(),e){let s=[r[e.type],...i.filter((({matcher:t})=>t(e))).map((({reducer:t})=>t))];return 0===s.filter((t=>!!t)).length&&(s=[o]),s.reduce(((t,n)=>{if(n){if(Dr(t)){const r=n(t,e);return void 0===r?t:r}if(_r(t))return wp(t,(t=>n(t,e)));{const r=n(t,e);if(void 0===r){if(null===t)return t;throw new Error(It(9))}return r}}return t}),t)}return s.getInitialState=n,s}Gx(oc);var Kx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xx=(t=21)=>{let e="",n=t;for(;n--;)e+=Kx[64*Math.random()|0];return e},Jx=Symbol.for("rtk-slice-createasyncthunk");function Zx(t,e){return`${t}/${e}`}function Qx({creators:t}={}){var e;const n=null==(e=null==t?void 0:t.asyncThunk)?void 0:e[Jx];return function(t){const{name:e,reducerPath:r=e}=t;if(!e)throw new Error(It(11));const i=("function"==typeof t.reducers?t.reducers(rC()):t.reducers)||{},o=Object.keys(i),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(t,e){const n="string"==typeof t?t:t.type;if(!n)throw new Error(It(12));if(n in s.sliceCaseReducersByType)throw new Error(It(13));return s.sliceCaseReducersByType[n]=e,a},addMatcher:(t,e)=>(s.sliceMatchers.push({matcher:t,reducer:e}),a),exposeAction:(t,e)=>(s.actionCreators[t]=e,a),exposeCaseReducer:(t,e)=>(s.sliceCaseReducersByName[t]=e,a)};function u(){const[e={},n=[],r]="function"==typeof t.extraReducers?Ip(t.extraReducers):[t.extraReducers],i={...e,...s.sliceCaseReducersByType};return Yx(t.initialState,(t=>{for(let e in i)t.addCase(e,i[e]);for(let e of s.sliceMatchers)t.addMatcher(e.matcher,e.reducer);for(let e of n)t.addMatcher(e.matcher,e.reducer);r&&t.addDefaultCase(r)}))}o.forEach((r=>{const o=i[r],s={reducerName:r,type:Zx(e,r),createNotation:"function"==typeof t.reducers};iC(o)?oC(s,o,a,n):nC(s,o,a)}));const c=t=>t,l=new Map;let f;function d(t,e){return f||(f=u()),f(t,e)}function h(){return f||(f=u()),f.getInitialState()}function p(e,n=!1){function r(t){let r=t[e];return typeof r>"u"&&n&&(r=h()),r}function i(e=c){const r=Wd(l,n,{insert:()=>new WeakMap});return Wd(r,e,{insert:()=>{const r={};for(const[i,o]of Object.entries(t.selectors??{}))r[i]=eC(o,e,h,n);return r}})}return{reducerPath:e,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const m={name:e,reducer:d,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:h,...p(r),injectInto(t,{reducerPath:e,...n}={}){const i=e??r;return t.inject({reducerPath:i,reducer:d},n),{...m,...p(i,!0)}}};return m}}function eC(t,e,n,r){function i(i,...o){let s=e(i);return typeof s>"u"&&r&&(s=n()),t(s,...o)}return i.unwrapped=t,i}var tC=Qx();function rC(){function t(t,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...e}}return t.withTypes=()=>t,{reducer:t=>Object.assign({[t.name]:(...e)=>t(...e)}[t.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(t,e)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:e}),asyncThunk:t}}function nC({type:t,reducerName:e,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!sC(r))throw new Error(It(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?An(t,s):An(t))}function iC(t){return"asyncThunk"===t._reducerDefinitionType}function sC(t){return"reducerWithPrepare"===t._reducerDefinitionType}function oC({type:t,reducerName:e},n,r,i){if(!i)throw new Error(It(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:u,settled:c,options:l}=n,f=i(t,o,l);r.exposeAction(e,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),u&&r.addCase(f.rejected,u),c&&r.addMatcher(f.settled,c),r.exposeCaseReducer(e,{fulfilled:s||Ls,pending:a||Ls,rejected:u||Ls,settled:c||Ls})}function Ls(){}var aC=(t,e)=>{if("function"!=typeof t)throw new Error(It(32))},ac="listenerMiddleware",uC=t=>{let{type:e,actionCreator:n,matcher:r,predicate:i,effect:o}=t;if(e)i=An(e).match;else if(n)e=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(It(21));return aC(o),{predicate:i,type:e,effect:o}},cC=Object.assign((t=>{const{type:e,predicate:n,effect:r}=uC(t);return{id:Xx(),effect:r,type:e,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(It(22))}}}),{withTypes:()=>cC}),lC=Object.assign(An(`${ac}/add`),{withTypes:()=>lC});An(`${ac}/removeAll`);var fC=Object.assign(An(`${ac}/remove`),{withTypes:()=>fC});function It(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const zd={data:null,isError:!1,isPending:!1,isSuccess:!1};tC({name:"user",initialState:zd,reducers:{reset:t=>{Object.assign(t,zd)},setData:(t,{payload:e})=>{t.data=e},updateData:(t,{payload:e})=>{t.data&&Object.assign(t.data,e)},setSuccess:(t,{payload:e})=>{t.isSuccess=e},setPending:(t,{payload:e})=>{t.isPending=e},setIsError:(t,{payload:e})=>{t.isError=e},setError:(t,{payload:e})=>{t.error=e},updateUser:(t,{payload:e})=>{var n;null!=(n=t.data)&&n.users&&(t.data.users=t.data.users.map((t=>e.id===t.id?e:t)))}},selectors:{selectIsError:t=>t.isError,selectError:t=>t.error,selectPending:t=>t.isPending,selectData:t=>t.data,selectAccount:t=>{var e;return null==(e=t.data)?void 0:e.account},selectUsers:t=>{var e;return null==(e=t.data)?void 0:e.users},selectUserById:(t,e)=>{var n;return null==(n=t.data)?void 0:n.users.find((({id:t})=>t===e))},selectCurrentUser:t=>{var e;return null==(e=t.data)?void 0:e.users.find((({id:e})=>{var n;return e===(null==(n=t.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:t=>{var e;return null==(e=t.data)?void 0:e.selectedUserId},selectSuccess:t=>t.isSuccess,selectIsAdmin:t=>{var e;return"ADMIN"===(null==(e=t.data)?void 0:e.account.role)}}});const dC=(...t)=>{let e="";for(const n of t){if(n instanceof Error){const t=n;return Ib("exceptionMessage",e),void ju(t)}if("object"!=typeof n)e+=n;else try{e+=" "+JSON.stringify(n)}catch{e+=" "+n}}wb(e)},$d=["debug","info","warn","error"],hC=(t,e)=>{const n=$d.indexOf(t);return $d.indexOf(e)>=n},Ps=(t,e,n,...r)=>{hC(e,t)&&console.log(`[${t}] ${n}`,...r)},pC=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),mC=(t=!mp()&&pC()||"warn")=>{let e=t;return{debug:(t,...n)=>Ps("debug",e,t,...n),info:(t,...n)=>Ps("info",e,t,...n),warn:(t,...n)=>Ps("warn",e,t,...n),error:(t,...n)=>(dC(t,...n),Ps("error",e,t,...n)),setLevel:t=>{e=t},getLevel:()=>e}},Ru=mC(),gC="http://localhost:3100/@wellesley/error-kit/ooopsIcon.svg?no-inline";var Hd,ii={exports:{}},_C=ii.exports;
10
+ */function Fg(){if(qa)return Ct;qa=1;var t=Eg,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),e=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function o(t,r,o){var a,f={},c=null,l=null;for(a in void 0!==o&&(c=""+o),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(l=r.ref),r)e.call(r,a)&&!u.hasOwnProperty(a)&&(f[a]=r[a]);if(t&&t.defaultProps)for(a in r=t.defaultProps)void 0===f[a]&&(f[a]=r[a]);return{$$typeof:n,type:t,key:c,ref:l,props:f,_owner:i.current}}return Ct.Fragment=r,Ct.jsx=o,Ct.jsxs=o,Ct}function Tg(){return Na||(Na=1,oi.exports=Fg()),oi.exports}var pr=Tg();const Pg=()=>"object"!=typeof window,Ua=["debug","info","warn","error"],Mg=(t,n)=>{const r=Ua.indexOf(t);return Ua.indexOf(n)>=r},Mn=(t,n,r,...e)=>{Mg(n,t)&&console.log(`[${t}] ${r}`,...e)},Dg=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),qg=(t=!Pg()&&Dg()||"warn")=>{let n=t;return{debug:(t,...r)=>Mn("debug",n,t,...r),info:(t,...r)=>Mn("info",n,t,...r),warn:(t,...r)=>Mn("warn",n,t,...r),error:(t,...r)=>(Cg(t,...r),Mn("error",n,t,...r)),setLevel:t=>{n=t},getLevel:()=>n}},hi=qg(),Ng="https://cdn.jsdelivr.net/npm/@wellesley/error-kit/ooopsIcon.svg?no-inline";var $a,St={exports:{}},Ug=St.exports;
20
11
  /**
21
12
  * @license
22
13
  * Lodash <https://lodash.com/>
@@ -24,14 +15,4 @@ var Lf,Pf,Ff,Bf,ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typ
24
15
  * Released under MIT license <https://lodash.com/license>
25
16
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
26
17
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
27
- */function yC(){return Hd||(Hd=1,t=ii,e=ii.exports,function(){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function r(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function i(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function o(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function s(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function a(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function u(t,e){return!(null==t||!t.length)&&g(t,e,0)>-1}function c(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function l(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function f(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function d(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function h(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function p(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function m(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function y(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function g(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):y(t,v,n)}function _(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function v(t){return t!=t}function b(t,e){var n=null==t?0:t.length;return n?E(t,e)/n:Q}function k(t){return function(e){return null==e?B:e[t]}}function w(t){return function(e){return null==t?B:t[e]}}function S(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function E(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==B&&(n=n===B?o:n+o)}return n}function x(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function I(t){return t&&t.slice(0,W(t)+1).replace(qt,"")}function C(t){return function(e){return t(e)}}function T(t,e){return l(e,(function(e){return t[e]}))}function R(t,e){return t.has(e)}function A(t,e){for(var n=-1,r=t.length;++n<r&&g(e,t[n],0)>-1;);return n}function M(t,e){for(var n=t.length;n--&&g(e,t[n],0)>-1;);return n}function O(t){return"\\"+Ge[t]}function D(t){return $e.test(t)}function N(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function L(t,e){return function(n){return t(e(n))}}function j(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==H||(t[n]=H,o[i++]=n)}return o}function P(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function F(t){return D(t)?function(t){for(var e=Be.lastIndex=0;Be.test(t);)++e;return e}(t):hn(t)}function U(t){return D(t)?function(t){return t.match(Be)||[]}(t):function(t){return t.split("")}(t)}function W(t){for(var e=t.length;e--&&Vt.test(t.charAt(e)););return e}var B,z="Expected a function",$="__lodash_hash_undefined__",H="__lodash_placeholder__",q=16,V=32,Y=64,K=128,G=256,J=1/0,X=9007199254740991,Q=NaN,Z=4294967295,tt=Z-1,et=Z>>>1,nt=[["ary",K],["bind",1],["bindKey",2],["curry",8],["curryRight",q],["flip",512],["partial",V],["partialRight",Y],["rearg",G]],rt="[object Arguments]",it="[object Array]",ot="[object Boolean]",st="[object Date]",at="[object Error]",ut="[object Function]",ct="[object GeneratorFunction]",lt="[object Map]",ft="[object Number]",dt="[object Object]",ht="[object Promise]",pt="[object RegExp]",mt="[object Set]",yt="[object String]",gt="[object Symbol]",_t="[object WeakMap]",vt="[object ArrayBuffer]",bt="[object DataView]",kt="[object Float32Array]",wt="[object Float64Array]",St="[object Int8Array]",Et="[object Int16Array]",xt="[object Int32Array]",It="[object Uint8Array]",Ct="[object Uint8ClampedArray]",Tt="[object Uint16Array]",Rt="[object Uint32Array]",At=/\b__p \+= '';/g,Mt=/\b(__p \+=) '' \+/g,Ot=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dt=/&(?:amp|lt|gt|quot|#39);/g,Nt=/[&<>"']/g,Lt=RegExp(Dt.source),jt=RegExp(Nt.source),Pt=/<%-([\s\S]+?)%>/g,Ft=/<%([\s\S]+?)%>/g,Ut=/<%=([\s\S]+?)%>/g,Wt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,zt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$t=/[\\^$.*+?()[\]{}|]/g,Ht=RegExp($t.source),qt=/^\s+/,Vt=/\s/,Yt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Gt=/,? & /,Jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xt=/[()=,{}\[\]\/\s]/,Qt=/\\(\\)?/g,Zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ee=/^[-+]0x[0-9a-f]+$/i,ne=/^0b[01]+$/i,re=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,oe=/^(?:0|[1-9]\d*)$/,se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ae=/($^)/,ue=/['\n\r\u2028\u2029\\]/g,ce="\\ud800-\\udfff",le="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\u2700-\\u27bf",de="a-z\\xdf-\\xf6\\xf8-\\xff",he="A-Z\\xc0-\\xd6\\xd8-\\xde",pe="\\ufe0e\\ufe0f",me="\\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",ye="['’]",ge="["+ce+"]",_e="["+me+"]",ve="["+le+"]",be="\\d+",ke="["+fe+"]",we="["+de+"]",Se="[^"+ce+me+be+fe+de+he+"]",Ee="\\ud83c[\\udffb-\\udfff]",xe="[^"+ce+"]",Ie="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Te="["+he+"]",Re="\\u200d",Ae="(?:"+we+"|"+Se+")",Me="(?:"+Te+"|"+Se+")",Oe="(?:['’](?:d|ll|m|re|s|t|ve))?",De="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ne="(?:"+ve+"|"+Ee+")?",Le="["+pe+"]?",je=Le+Ne+"(?:"+Re+"(?:"+[xe,Ie,Ce].join("|")+")"+Le+Ne+")*",Pe="(?:"+[ke,Ie,Ce].join("|")+")"+je,Fe="(?:"+[xe+ve+"?",ve,Ie,Ce,ge].join("|")+")",Ue=RegExp(ye,"g"),We=RegExp(ve,"g"),Be=RegExp(Ee+"(?="+Ee+")|"+Fe+je,"g"),ze=RegExp([Te+"?"+we+"+"+Oe+"(?="+[_e,Te,"$"].join("|")+")",Me+"+"+De+"(?="+[_e,Te+Ae,"$"].join("|")+")",Te+"?"+Ae+"+"+Oe,Te+"+"+De,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",be,Pe].join("|"),"g"),$e=RegExp("["+Re+ce+le+pe+"]"),He=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qe=["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"],Ve=-1,Ye={};Ye[kt]=Ye[wt]=Ye[St]=Ye[Et]=Ye[xt]=Ye[It]=Ye[Ct]=Ye[Tt]=Ye[Rt]=!0,Ye[rt]=Ye[it]=Ye[vt]=Ye[ot]=Ye[bt]=Ye[st]=Ye[at]=Ye[ut]=Ye[lt]=Ye[ft]=Ye[dt]=Ye[pt]=Ye[mt]=Ye[yt]=Ye[_t]=!1;var Ke={};Ke[rt]=Ke[it]=Ke[vt]=Ke[bt]=Ke[ot]=Ke[st]=Ke[kt]=Ke[wt]=Ke[St]=Ke[Et]=Ke[xt]=Ke[lt]=Ke[ft]=Ke[dt]=Ke[pt]=Ke[mt]=Ke[yt]=Ke[gt]=Ke[It]=Ke[Ct]=Ke[Tt]=Ke[Rt]=!0,Ke[at]=Ke[ut]=Ke[_t]=!1;var Ge={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Je=parseFloat,Xe=parseInt,Qe="object"==typeof ws&&ws&&ws.Object===Object&&ws,Ze="object"==typeof self&&self&&self.Object===Object&&self,tn=Qe||Ze||Function("return this")(),en=e&&!e.nodeType&&e,nn=en&&t&&!t.nodeType&&t,rn=nn&&nn.exports===en,on=rn&&Qe.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,fn=sn&&sn.isSet,dn=sn&&sn.isTypedArray,hn=k("length"),pn=w({"À":"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=w({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),yn=w({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),gn=function t(e){function w(t){if(Pi(t)&&!Ta(t)&&!(t instanceof le)){if(t instanceof ce)return t;if(To.call(t,"__wrapped__"))return ci(t)}return new ce(t)}function Vt(){}function ce(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=B}function le(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function fe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function de(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function he(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function pe(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new he;++e<n;)this.add(t[e])}function me(t){this.size=(this.__data__=new de(t)).size}function ye(t,e){var n=Ta(t),r=!n&&Ca(t),i=!n&&!r&&Aa(t),o=!n&&!r&&!i&&La(t),s=n||r||i||o,a=s?x(t.length,ko):[],u=a.length;for(var c in t)!e&&!To.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Kr(c,u))||a.push(c);return a}function ge(t){var e=t.length;return e?t[Dn(0,e-1)]:B}function _e(t,e){return si(lr(t),Ce(e,0,t.length))}function ve(t){return si(lr(t))}function be(t,e,n){(n===B||Ri(t[e],n))&&(n!==B||e in t)||xe(t,e,n)}function ke(t,e,n){var r=t[e];To.call(t,e)&&Ri(r,n)&&(n!==B||e in t)||xe(t,e,n)}function we(t,e){for(var n=t.length;n--;)if(Ri(t[n][0],e))return n;return-1}function Se(t,e,n,r){return Is(t,(function(t,i,o){e(r,t,n(t),o)})),r}function Ee(t,e){return t&&fr(e,Xi(e),t)}function xe(t,e,n){"__proto__"==e&&Vo?Vo(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ie(t,e){for(var n=-1,r=e.length,i=po(r),o=null==t;++n<r;)i[n]=o?B:Gi(t,e[n]);return i}function Ce(t,e,n){return t==t&&(n!==B&&(t=t<=n?t:n),e!==B&&(t=t>=e?t:e)),t}function Te(t,e,n,r,o,s){var a,u=1&e,c=2&e,l=4&e;if(n&&(a=o?n(t,r,o,s):n(t)),a!==B)return a;if(!ji(t))return t;var f=Ta(t);if(f){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&To.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return lr(t,a)}else{var d=Fs(t),h=d==ut||d==ct;if(Aa(t))return ir(t,u);if(d==dt||d==rt||h&&!o){if(a=c||h?{}:Vr(t),!u)return c?function(t,e){return fr(t,Ps(t),e)}(t,function(t,e){return t&&fr(e,Qi(e),t)}(a,t)):function(t,e){return fr(t,js(t),e)}(t,Ee(a,t))}else{if(!Ke[d])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case vt:return or(t);case ot:case st:return new r(+t);case bt:return function(t,e){return new t.constructor(e?or(t.buffer):t.buffer,t.byteOffset,t.byteLength)}(t,n);case kt:case wt:case St:case Et:case xt:case It:case Ct:case Tt:case Rt:return sr(t,n);case lt:return new r;case ft:case yt:return new r(t);case pt:return function(t){var e=new t.constructor(t.source,te.exec(t));return e.lastIndex=t.lastIndex,e}(t);case mt:return new r;case gt:return function(t){return Ss?vo(Ss.call(t)):{}}(t)}}(t,d,u)}}s||(s=new me);var p=s.get(t);if(p)return p;s.set(t,a),Na(t)?t.forEach((function(r){a.add(Te(r,e,n,r,t,s))})):Oa(t)&&t.forEach((function(r,i){a.set(i,Te(r,e,n,i,t,s))}));var m=f?B:(l?c?Fr:Pr:c?Qi:Xi)(t);return i(m||t,(function(r,i){m&&(r=t[i=r]),ke(a,i,Te(r,e,n,i,t,s))})),a}function Re(t,e,n){var r=n.length;if(null==t)return!r;for(t=vo(t);r--;){var i=n[r],o=e[i],s=t[i];if(s===B&&!(i in t)||!o(s))return!1}return!0}function Ae(t,e,n){if("function"!=typeof t)throw new wo(z);return Bs((function(){t.apply(B,n)}),e)}function Me(t,e,n,r){var i=-1,o=u,s=!0,a=t.length,f=[],d=e.length;if(!a)return f;n&&(e=l(e,C(n))),r?(o=c,s=!1):e.length>=200&&(o=R,s=!1,e=new pe(e));t:for(;++i<a;){var h=t[i],p=null==n?h:n(h);if(h=r||0!==h?h:0,s&&p==p){for(var m=d;m--;)if(e[m]===p)continue t;f.push(h)}else o(e,p,r)||f.push(h)}return f}function Oe(t,e){var n=!0;return Is(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function De(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],s=e(o);if(null!=s&&(a===B?s==s&&!Bi(s):n(s,a)))var a=s,u=o}return u}function Ne(t,e){var n=[];return Is(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Le(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=Yr),i||(i=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?Le(a,e-1,n,r,i):f(i,a):r||(i[i.length]=a)}return i}function je(t,e){return t&&Ts(t,e,Xi)}function Pe(t,e){return t&&Rs(t,e,Xi)}function Fe(t,e){return a(e,(function(e){return Di(t[e])}))}function Be(t,e){for(var n=0,r=(e=nr(e,t)).length;null!=t&&n<r;)t=t[ai(e[n++])];return n&&n==r?t:B}function $e(t,e,n){var r=e(t);return Ta(t)?r:f(r,n(t))}function Ge(t){return null==t?t===B?"[object Undefined]":"[object Null]":qo&&qo in vo(t)?function(t){var e=To.call(t,qo),n=t[qo];try{t[qo]=B;var r=!0}catch{}var i=Mo.call(t);return r&&(e?t[qo]=n:delete t[qo]),i}(t):function(t){return Mo.call(t)}(t)}function Qe(t,e){return t>e}function Ze(t,e){return null!=t&&To.call(t,e)}function en(t,e){return null!=t&&e in vo(t)}function nn(t,e,n){for(var r=n?c:u,i=t[0].length,o=t.length,s=o,a=po(o),f=1/0,d=[];s--;){var h=t[s];s&&e&&(h=l(h,C(e))),f=is(h.length,f),a[s]=!n&&(e||i>=120&&h.length>=120)?new pe(s&&h):B}h=t[0];var p=-1,m=a[0];t:for(;++p<i&&d.length<f;){var y=h[p],g=e?e(y):y;if(y=n||0!==y?y:0,!(m?R(m,g):r(d,g,n))){for(s=o;--s;){var _=a[s];if(!(_?R(_,g):r(t[s],g,n)))continue t}m&&m.push(g),d.push(y)}}return d}function on(t,e,r){var i=null==(t=ni(t,e=nr(e,t)))?t:t[ai(pi(e))];return null==i?B:n(i,t,r)}function sn(t){return Pi(t)&&Ge(t)==rt}function hn(t,e,n,r,i){return t===e||(null==t||null==e||!Pi(t)&&!Pi(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var s=Ta(t),a=Ta(e),u=s?it:Fs(t),c=a?it:Fs(e),l=(u=u==rt?dt:u)==dt,f=(c=c==rt?dt:c)==dt,d=u==c;if(d&&Aa(t)){if(!Aa(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new me),s||La(t)?Lr(t,e,n,r,i,o):function(t,e,n,r,i,o,s){switch(n){case bt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case vt:return!(t.byteLength!=e.byteLength||!o(new Po(t),new Po(e)));case ot:case st:case ft:return Ri(+t,+e);case at:return t.name==e.name&&t.message==e.message;case pt:case yt:return t==e+"";case lt:var a=N;case mt:var u=1&r;if(a||(a=P),t.size!=e.size&&!u)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Lr(a(t),a(e),r,i,o,s);return s.delete(t),l;case gt:if(Ss)return Ss.call(t)==Ss.call(e)}return!1}(t,e,u,n,r,i,o);if(!(1&n)){var h=l&&To.call(t,"__wrapped__"),p=f&&To.call(e,"__wrapped__");if(h||p){var m=h?t.value():t,y=p?e.value():e;return o||(o=new me),i(m,y,n,r,o)}}return!!d&&(o||(o=new me),function(t,e,n,r,i,o){var s=1&n,a=Pr(t),u=a.length;if(u!=Pr(e).length&&!s)return!1;for(var c=u;c--;){var l=a[c];if(!(s?l in e:To.call(e,l)))return!1}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var h=!0;o.set(t,e),o.set(e,t);for(var p=s;++c<u;){var m=t[l=a[c]],y=e[l];if(r)var g=s?r(y,m,l,e,t,o):r(m,y,l,t,e,o);if(!(g===B?m===y||i(m,y,n,r,o):g)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var _=t.constructor,v=e.constructor;_!=v&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof v&&v instanceof v)&&(h=!1)}return o.delete(t),o.delete(e),h}(t,e,n,r,i,o))}(t,e,n,r,hn,i))}function _n(t,e,n,r){var i=n.length,o=i,s=!r;if(null==t)return!o;for(t=vo(t);i--;){var a=n[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var u=(a=n[i])[0],c=t[u],l=a[1];if(s&&a[2]){if(c===B&&!(u in t))return!1}else{var f=new me;if(r)var d=r(c,l,u,t,e,f);if(!(d===B?hn(l,c,3,r,f):d))return!1}}return!0}function vn(t){return!(!ji(t)||function(t){return!!Ao&&Ao in t}(t))&&(Di(t)?No:re).test(ui(t))}function bn(t){return"function"==typeof t?t:null==t?oo:"object"==typeof t?Ta(t)?In(t[0],t[1]):xn(t):co(t)}function kn(t){if(!Qr(t))return ns(t);var e=[];for(var n in vo(t))To.call(t,n)&&"constructor"!=n&&e.push(n);return e}function wn(t){if(!ji(t))return function(t){var e=[];if(null!=t)for(var n in vo(t))e.push(n);return e}(t);var e=Qr(t),n=[];for(var r in t)("constructor"!=r||!e&&To.call(t,r))&&n.push(r);return n}function Sn(t,e){return t<e}function En(t,e){var n=-1,r=Ai(t)?po(t.length):[];return Is(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function xn(t){var e=$r(t);return 1==e.length&&e[0][2]?ti(e[0][0],e[0][1]):function(n){return n===t||_n(n,t,e)}}function In(t,e){return Jr(t)&&Zr(e)?ti(ai(t),e):function(n){var r=Gi(n,t);return r===B&&r===e?Ji(n,t):hn(e,r,3)}}function Cn(t,e,n,r,i){t!==e&&Ts(e,(function(o,s){if(i||(i=new me),ji(o))!function(t,e,n,r,i,o,s){var a=ri(t,n),u=ri(e,n),c=s.get(u);if(c)return be(t,n,c),B;var l=o?o(a,u,n+"",t,e,s):B,f=l===B;if(f){var d=Ta(u),h=!d&&Aa(u),p=!d&&!h&&La(u);l=u,d||h||p?Ta(a)?l=a:Mi(a)?l=lr(a):h?(f=!1,l=ir(u,!0)):p?(f=!1,l=sr(u,!0)):l=[]:Ui(u)||Ca(u)?(l=a,Ca(a)?l=Yi(a):ji(a)&&!Di(a)||(l=Vr(u))):f=!1}f&&(s.set(u,l),i(l,u,r,o,s),s.delete(u)),be(t,n,l)}(t,e,s,n,Cn,r,i);else{var a=r?r(ri(t,s),o,s+"",t,e,i):B;a===B&&(a=o),be(t,s,a)}}),Qi)}function Tn(t,e){var n=t.length;if(n)return Kr(e+=e<0?n:0,n)?t[e]:B}function Rn(t,e,n){e=e.length?l(e,(function(t){return Ta(t)?function(e){return Be(e,1===t.length?t[0]:t)}:t})):[oo];var r=-1;return e=l(e,C(Br())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(En(t,(function(t,n,i){return{criteria:l(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,s=i.length,a=n.length;++r<s;){var u=ar(i[r],o[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function An(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=Be(t,s);n(a,s)&&Fn(o,nr(s,t),a)}return o}function Mn(t,e,n,r){var i=r?_:g,o=-1,s=e.length,a=t;for(t===e&&(e=lr(e)),n&&(a=l(t,C(n)));++o<s;)for(var u=0,c=e[o],f=n?n(c):c;(u=i(a,f,u,r))>-1;)a!==t&&zo.call(a,u,1),zo.call(t,u,1);return t}function On(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Kr(i)?zo.call(t,i,1):Kn(t,i)}}return t}function Dn(t,e){return t+Xo(as()*(e-t+1))}function Nn(t,e){var n="";if(!t||e<1||e>X)return n;do{e%2&&(n+=t),(e=Xo(e/2))&&(t+=t)}while(e);return n}function Ln(t,e){return zs(ei(t,e,oo),t+"")}function jn(t){return ge(to(t))}function Pn(t,e){var n=to(t);return si(n,Ce(e,0,n.length))}function Fn(t,e,n,r){if(!ji(t))return t;for(var i=-1,o=(e=nr(e,t)).length,s=o-1,a=t;null!=a&&++i<o;){var u=ai(e[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=s){var l=a[u];(c=r?r(l,u,a):B)===B&&(c=ji(l)?l:Kr(e[i+1])?[]:{})}ke(a,u,c),a=a[u]}return t}function Un(t){return si(to(t))}function Wn(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=po(i);++r<i;)o[r]=t[r+e];return o}function Bn(t,e){var n;return Is(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function zn(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=et){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!Bi(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return $n(t,e,oo,n)}function $n(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(e=n(e))!=e,a=null===e,u=Bi(e),c=e===B;i<o;){var l=Xo((i+o)/2),f=n(t[l]),d=f!==B,h=null===f,p=f==f,m=Bi(f);if(s)var y=r||p;else y=c?p&&(r||d):a?p&&d&&(r||!h):u?p&&d&&!h&&(r||!m):!h&&!m&&(r?f<=e:f<e);y?i=l+1:o=l}return is(o,tt)}function Hn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Ri(a,u)){var u=a;o[i++]=0===s?0:s}}return o}function qn(t){return"number"==typeof t?t:Bi(t)?Q:+t}function Vn(t){if("string"==typeof t)return t;if(Ta(t))return l(t,Vn)+"";if(Bi(t))return Es?Es.call(t):"";var e=t+"";return"0"==e&&1/t==-J?"-0":e}function Yn(t,e,n){var r=-1,i=u,o=t.length,s=!0,a=[],l=a;if(n)s=!1,i=c;else if(o>=200){var f=e?null:Ns(t);if(f)return P(f);s=!1,i=R,l=new pe}else l=e?[]:a;t:for(;++r<o;){var d=t[r],h=e?e(d):d;if(d=n||0!==d?d:0,s&&h==h){for(var p=l.length;p--;)if(l[p]===h)continue t;e&&l.push(h),a.push(d)}else i(l,h,n)||(l!==a&&l.push(h),a.push(d))}return a}function Kn(t,e){return null==(t=ni(t,e=nr(e,t)))||delete t[ai(pi(e))]}function Gn(t,e,n,r){return Fn(t,e,n(Be(t,e)),r)}function Jn(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Wn(t,r?0:o,r?o+1:i):Wn(t,r?o+1:0,r?i:o)}function Xn(t,e){var n=t;return n instanceof le&&(n=n.value()),d(e,(function(t,e){return e.func.apply(e.thisArg,f([t],e.args))}),n)}function Qn(t,e,n){var r=t.length;if(r<2)return r?Yn(t[0]):[];for(var i=-1,o=po(r);++i<r;)for(var s=t[i],a=-1;++a<r;)a!=i&&(o[i]=Me(o[i]||s,t[a],e,n));return Yn(Le(o,1),e,n)}function Zn(t,e,n){for(var r=-1,i=t.length,o=e.length,s={};++r<i;)n(s,t[r],r<o?e[r]:B);return s}function tr(t){return Mi(t)?t:[]}function er(t){return"function"==typeof t?t:oo}function nr(t,e){return Ta(t)?t:Jr(t,e)?[t]:$s(Ki(t))}function rr(t,e,n){var r=t.length;return n=n===B?r:n,!e&&n>=r?t:Wn(t,e,n)}function ir(t,e){if(e)return t.slice();var n=t.length,r=Fo?Fo(n):new t.constructor(n);return t.copy(r),r}function or(t){var e=new t.constructor(t.byteLength);return new Po(e).set(new Po(t)),e}function sr(t,e){return new t.constructor(e?or(t.buffer):t.buffer,t.byteOffset,t.length)}function ar(t,e){if(t!==e){var n=t!==B,r=null===t,i=t==t,o=Bi(t),s=e!==B,a=null===e,u=e==e,c=Bi(e);if(!a&&!c&&!o&&t>e||o&&s&&u&&!a&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&t<e||c&&n&&i&&!r&&!o||a&&n&&i||!s&&i||!u)return-1}return 0}function ur(t,e,n,r){for(var i=-1,o=t.length,s=n.length,a=-1,u=e.length,c=rs(o-s,0),l=po(u+c),f=!r;++a<u;)l[a]=e[a];for(;++i<s;)(f||i<o)&&(l[n[i]]=t[i]);for(;c--;)l[a++]=t[i++];return l}function cr(t,e,n,r){for(var i=-1,o=t.length,s=-1,a=n.length,u=-1,c=e.length,l=rs(o-a,0),f=po(l+c),d=!r;++i<l;)f[i]=t[i];for(var h=i;++u<c;)f[h+u]=e[u];for(;++s<a;)(d||i<o)&&(f[h+n[s]]=t[i++]);return f}function lr(t,e){var n=-1,r=t.length;for(e||(e=po(r));++n<r;)e[n]=t[n];return e}function fr(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],u=r?r(n[a],t[a],a,n,t):B;u===B&&(u=t[a]),i?xe(n,a,u):ke(n,a,u)}return n}function dr(t,e){return function(n,i){var o=Ta(n)?r:Se,s=e?e():{};return o(n,t,Br(i,2),s)}}function hr(t){return Ln((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:B,s=i>2?n[2]:B;for(o=t.length>3&&"function"==typeof o?(i--,o):B,s&&Gr(n[0],n[1],s)&&(o=i<3?B:o,i=1),e=vo(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e}))}function pr(t,e){return function(n,r){if(null==n)return n;if(!Ai(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=vo(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function mr(t){return function(e,n,r){for(var i=-1,o=vo(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}function yr(t){return function(e){var n=D(e=Ki(e))?U(e):B,r=n?n[0]:e.charAt(0),i=n?rr(n,1).join(""):e.slice(1);return r[t]()+i}}function gr(t){return function(e){return d(ro(no(e).replace(Ue,"")),t,"")}}function _r(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=xs(t.prototype),r=t.apply(n,e);return ji(r)?r:n}}function vr(t){return function(e,n,r){var i=vo(e);if(!Ai(e)){var o=Br(n,3);e=Xi(e),n=function(t){return o(i[t],t,i)}}var s=t(e,n,r);return s>-1?i[o?e[s]:s]:B}}function br(t){return jr((function(e){var n=e.length,r=n,i=ce.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new wo(z);if(i&&!s&&"wrapper"==Ur(o))var s=new ce([],!0)}for(r=s?r:n;++r<n;){var a=Ur(o=e[r]),u="wrapper"==a?Ls(o):B;s=u&&Xr(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[Ur(u[0])].apply(s,u[3]):1==o.length&&Xr(o)?s[a]():s.thru(o)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&Ta(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function kr(t,e,n,r,i,o,s,a,u,c){var l=e&K,f=1&e,d=2&e,h=24&e,p=512&e,m=d?B:_r(t);return function y(){for(var g=arguments.length,_=po(g),v=g;v--;)_[v]=arguments[v];if(h)var b=Wr(y),k=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(_,b);if(r&&(_=ur(_,r,i,h)),o&&(_=cr(_,o,s,h)),g-=k,h&&g<c)return Tr(t,e,kr,y.placeholder,n,_,j(_,b),a,u,c-g);var w=f?n:this,S=d?w[t]:t;return g=_.length,a?_=function(t,e){for(var n=t.length,r=is(e.length,n),i=lr(t);r--;){var o=e[r];t[r]=Kr(o,n)?i[o]:B}return t}(_,a):p&&g>1&&_.reverse(),l&&u<g&&(_.length=u),this&&this!==tn&&this instanceof y&&(S=m||_r(S)),S.apply(w,_)}}function wr(t,e){return function(n,r){return function(t,e,n,r){return je(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Sr(t,e){return function(n,r){var i;if(n===B&&r===B)return e;if(n!==B&&(i=n),r!==B){if(i===B)return r;"string"==typeof n||"string"==typeof r?(n=Vn(n),r=Vn(r)):(n=qn(n),r=qn(r)),i=t(n,r)}return i}}function Er(t){return jr((function(e){return e=l(e,C(Br())),Ln((function(r){var i=this;return t(e,(function(t){return n(t,i,r)}))}))}))}function xr(t,e){var n=(e=e===B?" ":Vn(e)).length;if(n<2)return n?Nn(e,t):e;var r=Nn(e,Jo(t/F(e)));return D(e)?rr(U(r),0,t).join(""):r.slice(0,t)}function Ir(t){return function(e,n,r){return r&&"number"!=typeof r&&Gr(e,n,r)&&(n=r=B),e=$i(e),n===B?(n=e,e=0):n=$i(n),function(t,e,n,r){for(var i=-1,o=rs(Jo((e-t)/(n||1)),0),s=po(o);o--;)s[r?o:++i]=t,t+=n;return s}(e,n,r=r===B?e<n?1:-1:$i(r),t)}}function Cr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Vi(e),n=Vi(n)),t(e,n)}}function Tr(t,e,n,r,i,o,s,a,u,c){var l=8&e;e|=l?V:Y,4&(e&=~(l?Y:V))||(e&=-4);var f=[t,e,i,l?o:B,l?s:B,l?B:o,l?B:s,a,u,c],d=n.apply(B,f);return Xr(t)&&Ws(d,f),d.placeholder=r,ii(d,t,e)}function Rr(t){var e=_o[t];return function(t,n){if(t=Vi(t),(n=null==n?0:is(Hi(n),292))&&ts(t)){var r=(Ki(t)+"e").split("e");return+((r=(Ki(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}function Ar(t){return function(e){var n=Fs(e);return n==lt?N(e):n==mt?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):function(t,e){return l(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Mr(t,e,r,i,o,s,a,u){var c=2&e;if(!c&&"function"!=typeof t)throw new wo(z);var l=i?i.length:0;if(l||(e&=-97,i=o=B),a=a===B?a:rs(Hi(a),0),u=u===B?u:Hi(u),l-=o?o.length:0,e&Y){var f=i,d=o;i=o=B}var h=c?B:Ls(t),p=[t,e,r,i,o,f,d,s,a,u];if(h&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==K&&8==n||r==K&&n==G&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var a=e[3];if(a){var u=t[3];t[3]=u?ur(u,a,e[4]):a,t[4]=u?j(t[3],H):e[4]}(a=e[5])&&(u=t[5],t[5]=u?cr(u,a,e[6]):a,t[6]=u?j(t[5],H):e[6]),(a=e[7])&&(t[7]=a),r&K&&(t[8]=null==t[8]?e[8]:is(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(p,h),t=p[0],e=p[1],r=p[2],i=p[3],o=p[4],!(u=p[9]=p[9]===B?c?0:t.length:rs(p[9]-l,0))&&24&e&&(e&=-25),e&&1!=e)m=8==e||e==q?function(t,e,r){var i=_r(t);return function o(){for(var s=arguments.length,a=po(s),u=s,c=Wr(o);u--;)a[u]=arguments[u];var l=s<3&&a[0]!==c&&a[s-1]!==c?[]:j(a,c);return(s-=l.length)<r?Tr(t,e,kr,o.placeholder,B,a,l,B,B,r-s):n(this&&this!==tn&&this instanceof o?i:t,this,a)}}(t,e,u):e!=V&&33!=e||o.length?kr.apply(B,p):function(t,e,r,i){var o=1&e,s=_r(t);return function e(){for(var a=-1,u=arguments.length,c=-1,l=i.length,f=po(l+u),d=this&&this!==tn&&this instanceof e?s:t;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++a];return n(d,o?r:this,f)}}(t,e,r,i);else var m=function(t,e,n){var r=1&e,i=_r(t);return function e(){return(this&&this!==tn&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,r);return ii((h?As:Ws)(m,p),t,e)}function Or(t,e,n,r){return t===B||Ri(t,xo[n])&&!To.call(r,n)?e:t}function Dr(t,e,n,r,i,o){return ji(t)&&ji(e)&&(o.set(e,t),Cn(t,e,B,Dr,o),o.delete(e)),t}function Nr(t){return Ui(t)?B:t}function Lr(t,e,n,r,i,o){var s=1&n,a=t.length,u=e.length;if(a!=u&&!(s&&u>a))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var f=-1,d=!0,h=2&n?new pe:B;for(o.set(t,e),o.set(e,t);++f<a;){var m=t[f],y=e[f];if(r)var g=s?r(y,m,f,e,t,o):r(m,y,f,t,e,o);if(g!==B){if(g)continue;d=!1;break}if(h){if(!p(e,(function(t,e){if(!R(h,e)&&(m===t||i(m,t,n,r,o)))return h.push(e)}))){d=!1;break}}else if(m!==y&&!i(m,y,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function jr(t){return zs(ei(t,B,di),t+"")}function Pr(t){return $e(t,Xi,js)}function Fr(t){return $e(t,Qi,Ps)}function Ur(t){for(var e=t.name+"",n=ys[e],r=To.call(ys,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Wr(t){return(To.call(w,"placeholder")?w:t).placeholder}function Br(){var t=w.iteratee||so;return t=t===so?bn:t,arguments.length?t(arguments[0],arguments[1]):t}function zr(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function $r(t){for(var e=Xi(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Zr(i)]}return e}function Hr(t,e){var n=function(t,e){return null==t?B:t[e]}(t,e);return vn(n)?n:B}function qr(t,e,n){for(var r=-1,i=(e=nr(e,t)).length,o=!1;++r<i;){var s=ai(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Li(i)&&Kr(s,i)&&(Ta(t)||Ca(t))}function Vr(t){return"function"!=typeof t.constructor||Qr(t)?{}:xs(Uo(t))}function Yr(t){return Ta(t)||Ca(t)||!!($o&&t&&t[$o])}function Kr(t,e){var n=typeof t;return!!(e=e??X)&&("number"==n||"symbol"!=n&&oe.test(t))&&t>-1&&t%1==0&&t<e}function Gr(t,e,n){if(!ji(n))return!1;var r=typeof e;return!!("number"==r?Ai(n)&&Kr(e,n.length):"string"==r&&e in n)&&Ri(n[e],t)}function Jr(t,e){if(Ta(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Bi(t))||Bt.test(t)||!Wt.test(t)||null!=e&&t in vo(e)}function Xr(t){var e=Ur(t),n=w[e];if("function"!=typeof n||!(e in le.prototype))return!1;if(t===n)return!0;var r=Ls(n);return!!r&&t===r[0]}function Qr(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||xo)}function Zr(t){return t==t&&!ji(t)}function ti(t,e){return function(n){return null!=n&&n[t]===e&&(e!==B||t in vo(n))}}function ei(t,e,r){return e=rs(e===B?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=rs(i.length-e,0),a=po(s);++o<s;)a[o]=i[e+o];o=-1;for(var u=po(e+1);++o<e;)u[o]=i[o];return u[e]=r(a),n(t,this,u)}}function ni(t,e){return e.length<2?t:Be(t,Wn(e,0,-1))}function ri(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function ii(t,e,n){var r=e+"";return zs(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Yt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return i(nt,(function(n){var r="_."+n[0];e&n[1]&&!u(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Kt);return e?e[1].split(Gt):[]}(r),n)))}function oi(t){var e=0,n=0;return function(){var r=os(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(B,arguments)}}function si(t,e){var n=-1,r=t.length,i=r-1;for(e=e===B?r:e;++n<e;){var o=Dn(n,i),s=t[o];t[o]=t[n],t[n]=s}return t.length=e,t}function ai(t){if("string"==typeof t||Bi(t))return t;var e=t+"";return"0"==e&&1/t==-J?"-0":e}function ui(t){if(null!=t){try{return Co.call(t)}catch{}try{return t+""}catch{}}return""}function ci(t){if(t instanceof le)return t.clone();var e=new ce(t.__wrapped__,t.__chain__);return e.__actions__=lr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function li(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Hi(n);return i<0&&(i=rs(r+i,0)),y(t,Br(e,3),i)}function fi(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==B&&(i=Hi(n),i=n<0?rs(r+i,0):is(i,r-1)),y(t,Br(e,3),i,!0)}function di(t){return null!=t&&t.length?Le(t,1):[]}function hi(t){return t&&t.length?t[0]:B}function pi(t){var e=null==t?0:t.length;return e?t[e-1]:B}function mi(t,e){return t&&t.length&&e&&e.length?Mn(t,e):t}function yi(t){return null==t?t:us.call(t)}function gi(t){if(!t||!t.length)return[];var e=0;return t=a(t,(function(t){if(Mi(t))return e=rs(t.length,e),!0})),x(e,(function(e){return l(t,k(e))}))}function _i(t,e){if(!t||!t.length)return[];var r=gi(t);return null==e?r:l(r,(function(t){return n(e,B,t)}))}function vi(t){var e=w(t);return e.__chain__=!0,e}function bi(t,e){return e(t)}function ki(t,e){return(Ta(t)?i:Is)(t,Br(e,3))}function wi(t,e){return(Ta(t)?o:Cs)(t,Br(e,3))}function Si(t,e){return(Ta(t)?l:En)(t,Br(e,3))}function Ei(t,e,n){return e=n?B:e,e=t&&null==e?t.length:e,Mr(t,K,B,B,B,B,e)}function xi(t,e){var n;if("function"!=typeof e)throw new wo(z);return t=Hi(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=B),n}}function Ii(t,e,n){function r(e){var n=u,r=c;return u=c=B,p=e,f=t.apply(r,n)}function i(t){var n=t-h;return h===B||n>=e||n<0||y&&t-p>=l}function o(){var t=ya();return i(t)?s(t):(d=Bs(o,function(t){var n=e-(t-h);return y?is(n,l-(t-p)):n}(t)),B)}function s(t){return d=B,g&&u?r(t):(u=c=B,f)}function a(){var t=ya(),n=i(t);if(u=arguments,c=this,h=t,n){if(d===B)return function(t){return p=t,d=Bs(o,e),m?r(t):f}(h);if(y)return Ds(d),d=Bs(o,e),r(h)}return d===B&&(d=Bs(o,e)),f}var u,c,l,f,d,h,p=0,m=!1,y=!1,g=!0;if("function"!=typeof t)throw new wo(z);return e=Vi(e)||0,ji(n)&&(m=!!n.leading,l=(y="maxWait"in n)?rs(Vi(n.maxWait)||0,e):l,g="trailing"in n?!!n.trailing:g),a.cancel=function(){d!==B&&Ds(d),p=0,u=h=c=d=B},a.flush=function(){return d===B?f:s(ya())},a}function Ci(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new wo(z);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ci.Cache||he),n}function Ti(t){if("function"!=typeof t)throw new wo(z);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ri(t,e){return t===e||t!=t&&e!=e}function Ai(t){return null!=t&&Li(t.length)&&!Di(t)}function Mi(t){return Pi(t)&&Ai(t)}function Oi(t){if(!Pi(t))return!1;var e=Ge(t);return e==at||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ui(t)}function Di(t){if(!ji(t))return!1;var e=Ge(t);return e==ut||e==ct||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ni(t){return"number"==typeof t&&t==Hi(t)}function Li(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=X}function ji(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Pi(t){return null!=t&&"object"==typeof t}function Fi(t){return"number"==typeof t||Pi(t)&&Ge(t)==ft}function Ui(t){if(!Pi(t)||Ge(t)!=dt)return!1;var e=Uo(t);if(null===e)return!0;var n=To.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Co.call(n)==Oo}function Wi(t){return"string"==typeof t||!Ta(t)&&Pi(t)&&Ge(t)==yt}function Bi(t){return"symbol"==typeof t||Pi(t)&&Ge(t)==gt}function zi(t){if(!t)return[];if(Ai(t))return Wi(t)?U(t):lr(t);if(Ho&&t[Ho])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Ho]());var e=Fs(t);return(e==lt?N:e==mt?P:to)(t)}function $i(t){return t?(t=Vi(t))===J||t===-J?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Hi(t){var e=$i(t),n=e%1;return e==e?n?e-n:e:0}function qi(t){return t?Ce(Hi(t),0,Z):0}function Vi(t){if("number"==typeof t)return t;if(Bi(t))return Q;if(ji(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ji(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=I(t);var n=ne.test(t);return n||ie.test(t)?Xe(t.slice(2),n?2:8):ee.test(t)?Q:+t}function Yi(t){return fr(t,Qi(t))}function Ki(t){return null==t?"":Vn(t)}function Gi(t,e,n){var r=null==t?B:Be(t,e);return r===B?n:r}function Ji(t,e){return null!=t&&qr(t,e,en)}function Xi(t){return Ai(t)?ye(t):kn(t)}function Qi(t){return Ai(t)?ye(t,!0):wn(t)}function Zi(t,e){if(null==t)return{};var n=l(Fr(t),(function(t){return[t]}));return e=Br(e),An(t,n,(function(t,n){return e(t,n[0])}))}function to(t){return null==t?[]:T(t,Xi(t))}function eo(t){return au(Ki(t).toLowerCase())}function no(t){return(t=Ki(t))&&t.replace(se,pn).replace(We,"")}function ro(t,e,n){return t=Ki(t),(e=n?B:e)===B?function(t){return He.test(t)}(t)?function(t){return t.match(ze)||[]}(t):function(t){return t.match(Jt)||[]}(t):t.match(e)||[]}function io(t){return function(){return t}}function oo(t){return t}function so(t){return bn("function"==typeof t?t:Te(t,1))}function ao(t,e,n){var r=Xi(e),o=Fe(e,r);null!=n||ji(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=Fe(e,Xi(e)));var s=!(ji(n)&&"chain"in n&&!n.chain),a=Di(t);return i(o,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=lr(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,f([this.value()],arguments))})})),t}function uo(){}function co(t){return Jr(t)?k(ai(t)):function(t){return function(e){return Be(e,t)}}(t)}function lo(){return[]}function fo(){return!1}var ho,po=(e=null==e?tn:gn.defaults(tn.Object(),e,gn.pick(tn,qe))).Array,mo=e.Date,yo=e.Error,go=e.Function,_o=e.Math,vo=e.Object,bo=e.RegExp,ko=e.String,wo=e.TypeError,So=po.prototype,Eo=go.prototype,xo=vo.prototype,Io=e["__core-js_shared__"],Co=Eo.toString,To=xo.hasOwnProperty,Ro=0,Ao=(ho=/[^.]+$/.exec(Io&&Io.keys&&Io.keys.IE_PROTO||""))?"Symbol(src)_1."+ho:"",Mo=xo.toString,Oo=Co.call(vo),Do=tn._,No=bo("^"+Co.call(To).replace($t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lo=rn?e.Buffer:B,jo=e.Symbol,Po=e.Uint8Array,Fo=Lo?Lo.allocUnsafe:B,Uo=L(vo.getPrototypeOf,vo),Wo=vo.create,Bo=xo.propertyIsEnumerable,zo=So.splice,$o=jo?jo.isConcatSpreadable:B,Ho=jo?jo.iterator:B,qo=jo?jo.toStringTag:B,Vo=function(){try{var t=Hr(vo,"defineProperty");return t({},"",{}),t}catch{}}(),Yo=e.clearTimeout!==tn.clearTimeout&&e.clearTimeout,Ko=mo&&mo.now!==tn.Date.now&&mo.now,Go=e.setTimeout!==tn.setTimeout&&e.setTimeout,Jo=_o.ceil,Xo=_o.floor,Qo=vo.getOwnPropertySymbols,Zo=Lo?Lo.isBuffer:B,ts=e.isFinite,es=So.join,ns=L(vo.keys,vo),rs=_o.max,is=_o.min,os=mo.now,ss=e.parseInt,as=_o.random,us=So.reverse,cs=Hr(e,"DataView"),ls=Hr(e,"Map"),fs=Hr(e,"Promise"),ds=Hr(e,"Set"),hs=Hr(e,"WeakMap"),ps=Hr(vo,"create"),ms=hs&&new hs,ys={},gs=ui(cs),_s=ui(ls),vs=ui(fs),bs=ui(ds),ks=ui(hs),ws=jo?jo.prototype:B,Ss=ws?ws.valueOf:B,Es=ws?ws.toString:B,xs=function(){function t(){}return function(e){if(!ji(e))return{};if(Wo)return Wo(e);t.prototype=e;var n=new t;return t.prototype=B,n}}();w.templateSettings={escape:Pt,evaluate:Ft,interpolate:Ut,variable:"",imports:{_:w}},w.prototype=Vt.prototype,w.prototype.constructor=w,ce.prototype=xs(Vt.prototype),ce.prototype.constructor=ce,le.prototype=xs(Vt.prototype),le.prototype.constructor=le,fe.prototype.clear=function(){this.__data__=ps?ps(null):{},this.size=0},fe.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fe.prototype.get=function(t){var e=this.__data__;if(ps){var n=e[t];return n===$?B:n}return To.call(e,t)?e[t]:B},fe.prototype.has=function(t){var e=this.__data__;return ps?e[t]!==B:To.call(e,t)},fe.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ps&&e===B?$:e,this},de.prototype.clear=function(){this.__data__=[],this.size=0},de.prototype.delete=function(t){var e=this.__data__,n=we(e,t);return!(n<0||(n==e.length-1?e.pop():zo.call(e,n,1),--this.size,0))},de.prototype.get=function(t){var e=this.__data__,n=we(e,t);return n<0?B:e[n][1]},de.prototype.has=function(t){return we(this.__data__,t)>-1},de.prototype.set=function(t,e){var n=this.__data__,r=we(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},he.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(ls||de),string:new fe}},he.prototype.delete=function(t){var e=zr(this,t).delete(t);return this.size-=e?1:0,e},he.prototype.get=function(t){return zr(this,t).get(t)},he.prototype.has=function(t){return zr(this,t).has(t)},he.prototype.set=function(t,e){var n=zr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},pe.prototype.add=pe.prototype.push=function(t){return this.__data__.set(t,$),this},pe.prototype.has=function(t){return this.__data__.has(t)},me.prototype.clear=function(){this.__data__=new de,this.size=0},me.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},me.prototype.get=function(t){return this.__data__.get(t)},me.prototype.has=function(t){return this.__data__.has(t)},me.prototype.set=function(t,e){var n=this.__data__;if(n instanceof de){var r=n.__data__;if(!ls||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(t,e),this.size=n.size,this};var Is=pr(je),Cs=pr(Pe,!0),Ts=mr(),Rs=mr(!0),As=ms?function(t,e){return ms.set(t,e),t}:oo,Ms=Vo?function(t,e){return Vo(t,"toString",{configurable:!0,enumerable:!1,value:io(e),writable:!0})}:oo,Os=Ln,Ds=Yo||function(t){return tn.clearTimeout(t)},Ns=ds&&1/P(new ds([,-0]))[1]==J?function(t){return new ds(t)}:uo,Ls=ms?function(t){return ms.get(t)}:uo,js=Qo?function(t){return null==t?[]:(t=vo(t),a(Qo(t),(function(e){return Bo.call(t,e)})))}:lo,Ps=Qo?function(t){for(var e=[];t;)f(e,js(t)),t=Uo(t);return e}:lo,Fs=Ge;(cs&&Fs(new cs(new ArrayBuffer(1)))!=bt||ls&&Fs(new ls)!=lt||fs&&Fs(fs.resolve())!=ht||ds&&Fs(new ds)!=mt||hs&&Fs(new hs)!=_t)&&(Fs=function(t){var e=Ge(t),n=e==dt?t.constructor:B,r=n?ui(n):"";if(r)switch(r){case gs:return bt;case _s:return lt;case vs:return ht;case bs:return mt;case ks:return _t}return e});var Us=Io?Di:fo,Ws=oi(As),Bs=Go||function(t,e){return tn.setTimeout(t,e)},zs=oi(Ms),$s=function(t){var e=Ci(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(zt,(function(t,n,r,i){e.push(r?i.replace(Qt,"$1"):n||t)})),e})),Hs=Ln((function(t,e){return Mi(t)?Me(t,Le(e,1,Mi,!0)):[]})),qs=Ln((function(t,e){var n=pi(e);return Mi(n)&&(n=B),Mi(t)?Me(t,Le(e,1,Mi,!0),Br(n,2)):[]})),Vs=Ln((function(t,e){var n=pi(e);return Mi(n)&&(n=B),Mi(t)?Me(t,Le(e,1,Mi,!0),B,n):[]})),Ys=Ln((function(t){var e=l(t,tr);return e.length&&e[0]===t[0]?nn(e):[]})),Ks=Ln((function(t){var e=pi(t),n=l(t,tr);return e===pi(n)?e=B:n.pop(),n.length&&n[0]===t[0]?nn(n,Br(e,2)):[]})),Gs=Ln((function(t){var e=pi(t),n=l(t,tr);return(e="function"==typeof e?e:B)&&n.pop(),n.length&&n[0]===t[0]?nn(n,B,e):[]})),Js=Ln(mi),Xs=jr((function(t,e){var n=null==t?0:t.length,r=Ie(t,e);return On(t,l(e,(function(t){return Kr(t,n)?+t:t})).sort(ar)),r})),Qs=Ln((function(t){return Yn(Le(t,1,Mi,!0))})),Zs=Ln((function(t){var e=pi(t);return Mi(e)&&(e=B),Yn(Le(t,1,Mi,!0),Br(e,2))})),ta=Ln((function(t){var e=pi(t);return e="function"==typeof e?e:B,Yn(Le(t,1,Mi,!0),B,e)})),ea=Ln((function(t,e){return Mi(t)?Me(t,e):[]})),na=Ln((function(t){return Qn(a(t,Mi))})),ra=Ln((function(t){var e=pi(t);return Mi(e)&&(e=B),Qn(a(t,Mi),Br(e,2))})),ia=Ln((function(t){var e=pi(t);return e="function"==typeof e?e:B,Qn(a(t,Mi),B,e)})),oa=Ln(gi),sa=Ln((function(t){var e=t.length,n=e>1?t[e-1]:B;return n="function"==typeof n?(t.pop(),n):B,_i(t,n)})),aa=jr((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Ie(e,t)};return!(e>1||this.__actions__.length)&&r instanceof le&&Kr(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:bi,args:[i],thisArg:B}),new ce(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(B),t}))):this.thru(i)})),ua=dr((function(t,e,n){To.call(t,n)?++t[n]:xe(t,n,1)})),ca=vr(li),la=vr(fi),fa=dr((function(t,e,n){To.call(t,n)?t[n].push(e):xe(t,n,[e])})),da=Ln((function(t,e,r){var i=-1,o="function"==typeof e,s=Ai(t)?po(t.length):[];return Is(t,(function(t){s[++i]=o?n(e,t,r):on(t,e,r)})),s})),ha=dr((function(t,e,n){xe(t,n,e)})),pa=dr((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),ma=Ln((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Gr(t,e[0],e[1])?e=[]:n>2&&Gr(e[0],e[1],e[2])&&(e=[e[0]]),Rn(t,Le(e,1),[])})),ya=Ko||function(){return tn.Date.now()},ga=Ln((function(t,e,n){var r=1;if(n.length){var i=j(n,Wr(ga));r|=V}return Mr(t,r,e,n,i)})),_a=Ln((function(t,e,n){var r=3;if(n.length){var i=j(n,Wr(_a));r|=V}return Mr(e,r,t,n,i)})),va=Ln((function(t,e){return Ae(t,1,e)})),ba=Ln((function(t,e,n){return Ae(t,Vi(e)||0,n)}));Ci.Cache=he;var ka=Os((function(t,e){var r=(e=1==e.length&&Ta(e[0])?l(e[0],C(Br())):l(Le(e,1),C(Br()))).length;return Ln((function(i){for(var o=-1,s=is(i.length,r);++o<s;)i[o]=e[o].call(this,i[o]);return n(t,this,i)}))})),wa=Ln((function(t,e){return Mr(t,V,B,e,j(e,Wr(wa)))})),Sa=Ln((function(t,e){return Mr(t,Y,B,e,j(e,Wr(Sa)))})),Ea=jr((function(t,e){return Mr(t,G,B,B,B,e)})),xa=Cr(Qe),Ia=Cr((function(t,e){return t>=e})),Ca=sn(function(){return arguments}())?sn:function(t){return Pi(t)&&To.call(t,"callee")&&!Bo.call(t,"callee")},Ta=po.isArray,Ra=an?C(an):function(t){return Pi(t)&&Ge(t)==vt},Aa=Zo||fo,Ma=un?C(un):function(t){return Pi(t)&&Ge(t)==st},Oa=cn?C(cn):function(t){return Pi(t)&&Fs(t)==lt},Da=ln?C(ln):function(t){return Pi(t)&&Ge(t)==pt},Na=fn?C(fn):function(t){return Pi(t)&&Fs(t)==mt},La=dn?C(dn):function(t){return Pi(t)&&Li(t.length)&&!!Ye[Ge(t)]},ja=Cr(Sn),Pa=Cr((function(t,e){return t<=e})),Fa=hr((function(t,e){if(Qr(e)||Ai(e))return fr(e,Xi(e),t),B;for(var n in e)To.call(e,n)&&ke(t,n,e[n])})),Ua=hr((function(t,e){fr(e,Qi(e),t)})),Wa=hr((function(t,e,n,r){fr(e,Qi(e),t,r)})),Ba=hr((function(t,e,n,r){fr(e,Xi(e),t,r)})),za=jr(Ie),$a=Ln((function(t,e){t=vo(t);var n=-1,r=e.length,i=r>2?e[2]:B;for(i&&Gr(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],s=Qi(o),a=-1,u=s.length;++a<u;){var c=s[a],l=t[c];(l===B||Ri(l,xo[c])&&!To.call(t,c))&&(t[c]=o[c])}return t})),Ha=Ln((function(t){return t.push(B,Dr),n(Ga,B,t)})),qa=wr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mo.call(e)),t[e]=n}),io(oo)),Va=wr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mo.call(e)),To.call(t,e)?t[e].push(n):t[e]=[n]}),Br),Ya=Ln(on),Ka=hr((function(t,e,n){Cn(t,e,n)})),Ga=hr((function(t,e,n,r){Cn(t,e,n,r)})),Ja=jr((function(t,e){var n={};if(null==t)return n;var r=!1;e=l(e,(function(e){return e=nr(e,t),r||(r=e.length>1),e})),fr(t,Fr(t),n),r&&(n=Te(n,7,Nr));for(var i=e.length;i--;)Kn(n,e[i]);return n})),Xa=jr((function(t,e){return null==t?{}:function(t,e){return An(t,e,(function(e,n){return Ji(t,n)}))}(t,e)})),Qa=Ar(Xi),Za=Ar(Qi),tu=gr((function(t,e,n){return e=e.toLowerCase(),t+(n?eo(e):e)})),eu=gr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),nu=gr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),ru=yr("toLowerCase"),iu=gr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),ou=gr((function(t,e,n){return t+(n?" ":"")+au(e)})),su=gr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),au=yr("toUpperCase"),uu=Ln((function(t,e){try{return n(t,B,e)}catch(t){return Oi(t)?t:new yo(t)}})),cu=jr((function(t,e){return i(e,(function(e){e=ai(e),xe(t,e,ga(t[e],t))})),t})),lu=br(),fu=br(!0),du=Ln((function(t,e){return function(n){return on(n,t,e)}})),hu=Ln((function(t,e){return function(n){return on(t,n,e)}})),pu=Er(l),mu=Er(s),yu=Er(p),gu=Ir(),_u=Ir(!0),vu=Sr((function(t,e){return t+e}),0),bu=Rr("ceil"),ku=Sr((function(t,e){return t/e}),1),wu=Rr("floor"),Su=Sr((function(t,e){return t*e}),1),Eu=Rr("round"),xu=Sr((function(t,e){return t-e}),0);return w.after=function(t,e){if("function"!=typeof e)throw new wo(z);return t=Hi(t),function(){if(--t<1)return e.apply(this,arguments)}},w.ary=Ei,w.assign=Fa,w.assignIn=Ua,w.assignInWith=Wa,w.assignWith=Ba,w.at=za,w.before=xi,w.bind=ga,w.bindAll=cu,w.bindKey=_a,w.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ta(t)?t:[t]},w.chain=vi,w.chunk=function(t,e,n){e=(n?Gr(t,e,n):e===B)?1:rs(Hi(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,s=po(Jo(r/e));i<r;)s[o++]=Wn(t,i,i+=e);return s},w.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},w.concat=function(){var t=arguments.length;if(!t)return[];for(var e=po(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return f(Ta(n)?lr(n):[n],Le(e,1))},w.cond=function(t){var e=null==t?0:t.length,r=Br();return t=e?l(t,(function(t){if("function"!=typeof t[1])throw new wo(z);return[r(t[0]),t[1]]})):[],Ln((function(r){for(var i=-1;++i<e;){var o=t[i];if(n(o[0],this,r))return n(o[1],this,r)}}))},w.conforms=function(t){return function(t){var e=Xi(t);return function(n){return Re(n,t,e)}}(Te(t,1))},w.constant=io,w.countBy=ua,w.create=function(t,e){var n=xs(t);return null==e?n:Ee(n,e)},w.curry=function t(e,n,r){var i=Mr(e,8,B,B,B,B,B,n=r?B:n);return i.placeholder=t.placeholder,i},w.curryRight=function t(e,n,r){var i=Mr(e,q,B,B,B,B,B,n=r?B:n);return i.placeholder=t.placeholder,i},w.debounce=Ii,w.defaults=$a,w.defaultsDeep=Ha,w.defer=va,w.delay=ba,w.difference=Hs,w.differenceBy=qs,w.differenceWith=Vs,w.drop=function(t,e,n){var r=null==t?0:t.length;return r?Wn(t,(e=n||e===B?1:Hi(e))<0?0:e,r):[]},w.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Wn(t,0,(e=r-(e=n||e===B?1:Hi(e)))<0?0:e):[]},w.dropRightWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3),!0,!0):[]},w.dropWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3),!0):[]},w.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Gr(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=Hi(n))<0&&(n=-n>i?0:i+n),(r=r===B||r>i?i:Hi(r))<0&&(r+=i),r=n>r?0:qi(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},w.filter=function(t,e){return(Ta(t)?a:Ne)(t,Br(e,3))},w.flatMap=function(t,e){return Le(Si(t,e),1)},w.flatMapDeep=function(t,e){return Le(Si(t,e),J)},w.flatMapDepth=function(t,e,n){return n=n===B?1:Hi(n),Le(Si(t,e),n)},w.flatten=di,w.flattenDeep=function(t){return null!=t&&t.length?Le(t,J):[]},w.flattenDepth=function(t,e){return null!=t&&t.length?Le(t,e=e===B?1:Hi(e)):[]},w.flip=function(t){return Mr(t,512)},w.flow=lu,w.flowRight=fu,w.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},w.functions=function(t){return null==t?[]:Fe(t,Xi(t))},w.functionsIn=function(t){return null==t?[]:Fe(t,Qi(t))},w.groupBy=fa,w.initial=function(t){return null!=t&&t.length?Wn(t,0,-1):[]},w.intersection=Ys,w.intersectionBy=Ks,w.intersectionWith=Gs,w.invert=qa,w.invertBy=Va,w.invokeMap=da,w.iteratee=so,w.keyBy=ha,w.keys=Xi,w.keysIn=Qi,w.map=Si,w.mapKeys=function(t,e){var n={};return e=Br(e,3),je(t,(function(t,r,i){xe(n,e(t,r,i),t)})),n},w.mapValues=function(t,e){var n={};return e=Br(e,3),je(t,(function(t,r,i){xe(n,r,e(t,r,i))})),n},w.matches=function(t){return xn(Te(t,1))},w.matchesProperty=function(t,e){return In(t,Te(e,1))},w.memoize=Ci,w.merge=Ka,w.mergeWith=Ga,w.method=du,w.methodOf=hu,w.mixin=ao,w.negate=Ti,w.nthArg=function(t){return t=Hi(t),Ln((function(e){return Tn(e,t)}))},w.omit=Ja,w.omitBy=function(t,e){return Zi(t,Ti(Br(e)))},w.once=function(t){return xi(2,t)},w.orderBy=function(t,e,n,r){return null==t?[]:(Ta(e)||(e=null==e?[]:[e]),Ta(n=r?B:n)||(n=null==n?[]:[n]),Rn(t,e,n))},w.over=pu,w.overArgs=ka,w.overEvery=mu,w.overSome=yu,w.partial=wa,w.partialRight=Sa,w.partition=pa,w.pick=Xa,w.pickBy=Zi,w.property=co,w.propertyOf=function(t){return function(e){return null==t?B:Be(t,e)}},w.pull=Js,w.pullAll=mi,w.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Mn(t,e,Br(n,2)):t},w.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Mn(t,e,B,n):t},w.pullAt=Xs,w.range=gu,w.rangeRight=_u,w.rearg=Ea,w.reject=function(t,e){return(Ta(t)?a:Ne)(t,Ti(Br(e,3)))},w.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Br(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return On(t,i),n},w.rest=function(t,e){if("function"!=typeof t)throw new wo(z);return Ln(t,e=e===B?e:Hi(e))},w.reverse=yi,w.sampleSize=function(t,e,n){return e=(n?Gr(t,e,n):e===B)?1:Hi(e),(Ta(t)?_e:Pn)(t,e)},w.set=function(t,e,n){return null==t?t:Fn(t,e,n)},w.setWith=function(t,e,n,r){return r="function"==typeof r?r:B,null==t?t:Fn(t,e,n,r)},w.shuffle=function(t){return(Ta(t)?ve:Un)(t)},w.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Gr(t,e,n)?(e=0,n=r):(e=null==e?0:Hi(e),n=n===B?r:Hi(n)),Wn(t,e,n)):[]},w.sortBy=ma,w.sortedUniq=function(t){return t&&t.length?Hn(t):[]},w.sortedUniqBy=function(t,e){return t&&t.length?Hn(t,Br(e,2)):[]},w.split=function(t,e,n){return n&&"number"!=typeof n&&Gr(t,e,n)&&(e=n=B),(n=n===B?Z:n>>>0)?(t=Ki(t))&&("string"==typeof e||null!=e&&!Da(e))&&!(e=Vn(e))&&D(t)?rr(U(t),0,n):t.split(e,n):[]},w.spread=function(t,e){if("function"!=typeof t)throw new wo(z);return e=null==e?0:rs(Hi(e),0),Ln((function(r){var i=r[e],o=rr(r,0,e);return i&&f(o,i),n(t,this,o)}))},w.tail=function(t){var e=null==t?0:t.length;return e?Wn(t,1,e):[]},w.take=function(t,e,n){return t&&t.length?Wn(t,0,(e=n||e===B?1:Hi(e))<0?0:e):[]},w.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Wn(t,(e=r-(e=n||e===B?1:Hi(e)))<0?0:e,r):[]},w.takeRightWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3),!1,!0):[]},w.takeWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3)):[]},w.tap=function(t,e){return e(t),t},w.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new wo(z);return ji(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ii(t,e,{leading:r,maxWait:e,trailing:i})},w.thru=bi,w.toArray=zi,w.toPairs=Qa,w.toPairsIn=Za,w.toPath=function(t){return Ta(t)?l(t,ai):Bi(t)?[t]:lr($s(Ki(t)))},w.toPlainObject=Yi,w.transform=function(t,e,n){var r=Ta(t),o=r||Aa(t)||La(t);if(e=Br(e,4),null==n){var s=t&&t.constructor;n=o?r?new s:[]:ji(t)&&Di(s)?xs(Uo(t)):{}}return(o?i:je)(t,(function(t,r,i){return e(n,t,r,i)})),n},w.unary=function(t){return Ei(t,1)},w.union=Qs,w.unionBy=Zs,w.unionWith=ta,w.uniq=function(t){return t&&t.length?Yn(t):[]},w.uniqBy=function(t,e){return t&&t.length?Yn(t,Br(e,2)):[]},w.uniqWith=function(t,e){return e="function"==typeof e?e:B,t&&t.length?Yn(t,B,e):[]},w.unset=function(t,e){return null==t||Kn(t,e)},w.unzip=gi,w.unzipWith=_i,w.update=function(t,e,n){return null==t?t:Gn(t,e,er(n))},w.updateWith=function(t,e,n,r){return r="function"==typeof r?r:B,null==t?t:Gn(t,e,er(n),r)},w.values=to,w.valuesIn=function(t){return null==t?[]:T(t,Qi(t))},w.without=ea,w.words=ro,w.wrap=function(t,e){return wa(er(e),t)},w.xor=na,w.xorBy=ra,w.xorWith=ia,w.zip=oa,w.zipObject=function(t,e){return Zn(t||[],e||[],ke)},w.zipObjectDeep=function(t,e){return Zn(t||[],e||[],Fn)},w.zipWith=sa,w.entries=Qa,w.entriesIn=Za,w.extend=Ua,w.extendWith=Wa,ao(w,w),w.add=vu,w.attempt=uu,w.camelCase=tu,w.capitalize=eo,w.ceil=bu,w.clamp=function(t,e,n){return n===B&&(n=e,e=B),n!==B&&(n=(n=Vi(n))==n?n:0),e!==B&&(e=(e=Vi(e))==e?e:0),Ce(Vi(t),e,n)},w.clone=function(t){return Te(t,4)},w.cloneDeep=function(t){return Te(t,5)},w.cloneDeepWith=function(t,e){return Te(t,5,e="function"==typeof e?e:B)},w.cloneWith=function(t,e){return Te(t,4,e="function"==typeof e?e:B)},w.conformsTo=function(t,e){return null==e||Re(t,e,Xi(e))},w.deburr=no,w.defaultTo=function(t,e){return null==t||t!=t?e:t},w.divide=ku,w.endsWith=function(t,e,n){t=Ki(t),e=Vn(e);var r=t.length,i=n=n===B?r:Ce(Hi(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},w.eq=Ri,w.escape=function(t){return(t=Ki(t))&&jt.test(t)?t.replace(Nt,mn):t},w.escapeRegExp=function(t){return(t=Ki(t))&&Ht.test(t)?t.replace($t,"\\$&"):t},w.every=function(t,e,n){var r=Ta(t)?s:Oe;return n&&Gr(t,e,n)&&(e=B),r(t,Br(e,3))},w.find=ca,w.findIndex=li,w.findKey=function(t,e){return m(t,Br(e,3),je)},w.findLast=la,w.findLastIndex=fi,w.findLastKey=function(t,e){return m(t,Br(e,3),Pe)},w.floor=wu,w.forEach=ki,w.forEachRight=wi,w.forIn=function(t,e){return null==t?t:Ts(t,Br(e,3),Qi)},w.forInRight=function(t,e){return null==t?t:Rs(t,Br(e,3),Qi)},w.forOwn=function(t,e){return t&&je(t,Br(e,3))},w.forOwnRight=function(t,e){return t&&Pe(t,Br(e,3))},w.get=Gi,w.gt=xa,w.gte=Ia,w.has=function(t,e){return null!=t&&qr(t,e,Ze)},w.hasIn=Ji,w.head=hi,w.identity=oo,w.includes=function(t,e,n,r){t=Ai(t)?t:to(t),n=n&&!r?Hi(n):0;var i=t.length;return n<0&&(n=rs(i+n,0)),Wi(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&g(t,e,n)>-1},w.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Hi(n);return i<0&&(i=rs(r+i,0)),g(t,e,i)},w.inRange=function(t,e,n){return e=$i(e),n===B?(n=e,e=0):n=$i(n),function(t,e,n){return t>=is(e,n)&&t<rs(e,n)}(t=Vi(t),e,n)},w.invoke=Ya,w.isArguments=Ca,w.isArray=Ta,w.isArrayBuffer=Ra,w.isArrayLike=Ai,w.isArrayLikeObject=Mi,w.isBoolean=function(t){return!0===t||!1===t||Pi(t)&&Ge(t)==ot},w.isBuffer=Aa,w.isDate=Ma,w.isElement=function(t){return Pi(t)&&1===t.nodeType&&!Ui(t)},w.isEmpty=function(t){if(null==t)return!0;if(Ai(t)&&(Ta(t)||"string"==typeof t||"function"==typeof t.splice||Aa(t)||La(t)||Ca(t)))return!t.length;var e=Fs(t);if(e==lt||e==mt)return!t.size;if(Qr(t))return!kn(t).length;for(var n in t)if(To.call(t,n))return!1;return!0},w.isEqual=function(t,e){return hn(t,e)},w.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:B)?n(t,e):B;return r===B?hn(t,e,B,n):!!r},w.isError=Oi,w.isFinite=function(t){return"number"==typeof t&&ts(t)},w.isFunction=Di,w.isInteger=Ni,w.isLength=Li,w.isMap=Oa,w.isMatch=function(t,e){return t===e||_n(t,e,$r(e))},w.isMatchWith=function(t,e,n){return n="function"==typeof n?n:B,_n(t,e,$r(e),n)},w.isNaN=function(t){return Fi(t)&&t!=+t},w.isNative=function(t){if(Us(t))throw new yo("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vn(t)},w.isNil=function(t){return null==t},w.isNull=function(t){return null===t},w.isNumber=Fi,w.isObject=ji,w.isObjectLike=Pi,w.isPlainObject=Ui,w.isRegExp=Da,w.isSafeInteger=function(t){return Ni(t)&&t>=-X&&t<=X},w.isSet=Na,w.isString=Wi,w.isSymbol=Bi,w.isTypedArray=La,w.isUndefined=function(t){return t===B},w.isWeakMap=function(t){return Pi(t)&&Fs(t)==_t},w.isWeakSet=function(t){return Pi(t)&&"[object WeakSet]"==Ge(t)},w.join=function(t,e){return null==t?"":es.call(t,e)},w.kebabCase=eu,w.last=pi,w.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==B&&(i=(i=Hi(n))<0?rs(r+i,0):is(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):y(t,v,i,!0)},w.lowerCase=nu,w.lowerFirst=ru,w.lt=ja,w.lte=Pa,w.max=function(t){return t&&t.length?De(t,oo,Qe):B},w.maxBy=function(t,e){return t&&t.length?De(t,Br(e,2),Qe):B},w.mean=function(t){return b(t,oo)},w.meanBy=function(t,e){return b(t,Br(e,2))},w.min=function(t){return t&&t.length?De(t,oo,Sn):B},w.minBy=function(t,e){return t&&t.length?De(t,Br(e,2),Sn):B},w.stubArray=lo,w.stubFalse=fo,w.stubObject=function(){return{}},w.stubString=function(){return""},w.stubTrue=function(){return!0},w.multiply=Su,w.nth=function(t,e){return t&&t.length?Tn(t,Hi(e)):B},w.noConflict=function(){return tn._===this&&(tn._=Do),this},w.noop=uo,w.now=ya,w.pad=function(t,e,n){t=Ki(t);var r=(e=Hi(e))?F(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return xr(Xo(i),n)+t+xr(Jo(i),n)},w.padEnd=function(t,e,n){t=Ki(t);var r=(e=Hi(e))?F(t):0;return e&&r<e?t+xr(e-r,n):t},w.padStart=function(t,e,n){t=Ki(t);var r=(e=Hi(e))?F(t):0;return e&&r<e?xr(e-r,n)+t:t},w.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),ss(Ki(t).replace(qt,""),e||0)},w.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Gr(t,e,n)&&(e=n=B),n===B&&("boolean"==typeof e?(n=e,e=B):"boolean"==typeof t&&(n=t,t=B)),t===B&&e===B?(t=0,e=1):(t=$i(t),e===B?(e=t,t=0):e=$i(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=as();return is(t+i*(e-t+Je("1e-"+((i+"").length-1))),e)}return Dn(t,e)},w.reduce=function(t,e,n){var r=Ta(t)?d:S,i=arguments.length<3;return r(t,Br(e,4),n,i,Is)},w.reduceRight=function(t,e,n){var r=Ta(t)?h:S,i=arguments.length<3;return r(t,Br(e,4),n,i,Cs)},w.repeat=function(t,e,n){return e=(n?Gr(t,e,n):e===B)?1:Hi(e),Nn(Ki(t),e)},w.replace=function(){var t=arguments,e=Ki(t[0]);return t.length<3?e:e.replace(t[1],t[2])},w.result=function(t,e,n){var r=-1,i=(e=nr(e,t)).length;for(i||(i=1,t=B);++r<i;){var o=null==t?B:t[ai(e[r])];o===B&&(r=i,o=n),t=Di(o)?o.call(t):o}return t},w.round=Eu,w.runInContext=t,w.sample=function(t){return(Ta(t)?ge:jn)(t)},w.size=function(t){if(null==t)return 0;if(Ai(t))return Wi(t)?F(t):t.length;var e=Fs(t);return e==lt||e==mt?t.size:kn(t).length},w.snakeCase=iu,w.some=function(t,e,n){var r=Ta(t)?p:Bn;return n&&Gr(t,e,n)&&(e=B),r(t,Br(e,3))},w.sortedIndex=function(t,e){return zn(t,e)},w.sortedIndexBy=function(t,e,n){return $n(t,e,Br(n,2))},w.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=zn(t,e);if(r<n&&Ri(t[r],e))return r}return-1},w.sortedLastIndex=function(t,e){return zn(t,e,!0)},w.sortedLastIndexBy=function(t,e,n){return $n(t,e,Br(n,2),!0)},w.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=zn(t,e,!0)-1;if(Ri(t[n],e))return n}return-1},w.startCase=ou,w.startsWith=function(t,e,n){return t=Ki(t),n=null==n?0:Ce(Hi(n),0,t.length),e=Vn(e),t.slice(n,n+e.length)==e},w.subtract=xu,w.sum=function(t){return t&&t.length?E(t,oo):0},w.sumBy=function(t,e){return t&&t.length?E(t,Br(e,2)):0},w.template=function(t,e,n){var r=w.templateSettings;n&&Gr(t,e,n)&&(e=B),t=Ki(t),e=Wa({},e,r,Or);var i,o,s=Wa({},e.imports,r.imports,Or),a=Xi(s),u=T(s,a),c=0,l=e.interpolate||ae,f="__p += '",d=bo((e.escape||ae).source+"|"+l.source+"|"+(l===Ut?Zt:ae).source+"|"+(e.evaluate||ae).source+"|$","g"),h="//# sourceURL="+(To.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ve+"]")+"\n";t.replace(d,(function(e,n,r,s,a,u){return r||(r=s),f+=t.slice(c,u).replace(ue,O),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),a&&(o=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e})),f+="';\n";var p=To.call(e,"variable")&&e.variable;if(p){if(Xt.test(p))throw new yo("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(At,""):f).replace(Mt,"$1").replace(Ot,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=uu((function(){return go(a,h+"return "+f).apply(B,u)}));if(m.source=f,Oi(m))throw m;return m},w.times=function(t,e){if((t=Hi(t))<1||t>X)return[];var n=Z,r=is(t,Z);e=Br(e),t-=Z;for(var i=x(r,e);++n<t;)e(n);return i},w.toFinite=$i,w.toInteger=Hi,w.toLength=qi,w.toLower=function(t){return Ki(t).toLowerCase()},w.toNumber=Vi,w.toSafeInteger=function(t){return t?Ce(Hi(t),-X,X):0===t?t:0},w.toString=Ki,w.toUpper=function(t){return Ki(t).toUpperCase()},w.trim=function(t,e,n){if((t=Ki(t))&&(n||e===B))return I(t);if(!t||!(e=Vn(e)))return t;var r=U(t),i=U(e);return rr(r,A(r,i),M(r,i)+1).join("")},w.trimEnd=function(t,e,n){if((t=Ki(t))&&(n||e===B))return t.slice(0,W(t)+1);if(!t||!(e=Vn(e)))return t;var r=U(t);return rr(r,0,M(r,U(e))+1).join("")},w.trimStart=function(t,e,n){if((t=Ki(t))&&(n||e===B))return t.replace(qt,"");if(!t||!(e=Vn(e)))return t;var r=U(t);return rr(r,A(r,U(e))).join("")},w.truncate=function(t,e){var n=30,r="...";if(ji(e)){var i="separator"in e?e.separator:i;n="length"in e?Hi(e.length):n,r="omission"in e?Vn(e.omission):r}var o=(t=Ki(t)).length;if(D(t)){var s=U(t);o=s.length}if(n>=o)return t;var a=n-F(r);if(a<1)return r;var u=s?rr(s,0,a).join(""):t.slice(0,a);if(i===B)return u+r;if(s&&(a+=u.length-a),Da(i)){if(t.slice(a).search(i)){var c,l=u;for(i.global||(i=bo(i.source,Ki(te.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;u=u.slice(0,f===B?a:f)}}else if(t.indexOf(Vn(i),a)!=a){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},w.unescape=function(t){return(t=Ki(t))&&Lt.test(t)?t.replace(Dt,yn):t},w.uniqueId=function(t){var e=++Ro;return Ki(t)+e},w.upperCase=su,w.upperFirst=au,w.each=ki,w.eachRight=wi,w.first=hi,ao(w,function(){var t={};return je(w,(function(e,n){To.call(w.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),w.VERSION="4.17.21",i(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){w[t].placeholder=w})),i(["drop","take"],(function(t,e){le.prototype[t]=function(n){n=n===B?1:rs(Hi(n),0);var r=this.__filtered__&&!e?new le(this):this.clone();return r.__filtered__?r.__takeCount__=is(n,r.__takeCount__):r.__views__.push({size:is(n,Z),type:t+(r.__dir__<0?"Right":"")}),r},le.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),i(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;le.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Br(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),i(["head","last"],(function(t,e){var n="take"+(e?"Right":"");le.prototype[t]=function(){return this[n](1).value()[0]}})),i(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");le.prototype[t]=function(){return this.__filtered__?new le(this):this[n](1)}})),le.prototype.compact=function(){return this.filter(oo)},le.prototype.find=function(t){return this.filter(t).head()},le.prototype.findLast=function(t){return this.reverse().find(t)},le.prototype.invokeMap=Ln((function(t,e){return"function"==typeof t?new le(this):this.map((function(n){return on(n,t,e)}))})),le.prototype.reject=function(t){return this.filter(Ti(Br(t)))},le.prototype.slice=function(t,e){t=Hi(t);var n=this;return n.__filtered__&&(t>0||e<0)?new le(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==B&&(n=(e=Hi(e))<0?n.dropRight(-e):n.take(e-t)),n)},le.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},le.prototype.toArray=function(){return this.take(Z)},je(le.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=w[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(w.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,a=e instanceof le,u=s[0],c=a||Ta(e),l=function(t){var e=i.apply(w,f([t],s));return r&&d?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(a=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=o&&!d,m=a&&!h;if(!o&&c){e=m?e:new le(this);var y=t.apply(e,s);return y.__actions__.push({func:bi,args:[l],thisArg:B}),new ce(y,d)}return p&&m?t.apply(this,s):(y=this.thru(l),p?r?y.value()[0]:y.value():y)})})),i(["pop","push","shift","sort","splice","unshift"],(function(t){var e=So[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ta(i)?i:[],t)}return this[n]((function(n){return e.apply(Ta(n)?n:[],t)}))}})),je(le.prototype,(function(t,e){var n=w[e];if(n){var r=n.name+"";To.call(ys,r)||(ys[r]=[]),ys[r].push({name:e,func:n})}})),ys[kr(B,2).name]=[{name:"wrapper",func:B}],le.prototype.clone=function(){var t=new le(this.__wrapped__);return t.__actions__=lr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=lr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=lr(this.__views__),t},le.prototype.reverse=function(){if(this.__filtered__){var t=new le(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},le.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ta(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=is(e,t+s);break;case"takeRight":t=rs(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,a=o.end,u=a-s,c=r?a:s-1,l=this.__iteratees__,f=l.length,d=0,h=is(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return Xn(t,this.__actions__);var p=[];t:for(;u--&&d<h;){for(var m=-1,y=t[c+=e];++m<f;){var g=l[m],_=g.iteratee,v=g.type,b=_(y);if(2==v)y=b;else if(!b){if(1==v)continue t;break t}}p[d++]=y}return p},w.prototype.at=aa,w.prototype.chain=function(){return vi(this)},w.prototype.commit=function(){return new ce(this.value(),this.__chain__)},w.prototype.next=function(){this.__values__===B&&(this.__values__=zi(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?B:this.__values__[this.__index__++]}},w.prototype.plant=function(t){for(var e,n=this;n instanceof Vt;){var r=ci(n);r.__index__=0,r.__values__=B,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},w.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof le){var e=t;return this.__actions__.length&&(e=new le(this)),(e=e.reverse()).__actions__.push({func:bi,args:[yi],thisArg:B}),new ce(e,this.__chain__)}return this.thru(yi)},w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=function(){return Xn(this.__wrapped__,this.__actions__)},w.prototype.first=w.prototype.head,Ho&&(w.prototype[Ho]=function(){return this}),w}();nn?((nn.exports=gn)._=gn,en._=gn):tn._=gn}.call(_C)),ii.exports;var t,e}var qd,Ja,Gd,Za,Vd,Qa,Yd,Xa={};function vC(){return qd||(qd=1,(t=Xa).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"},t.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"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.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},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.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]},t.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}},t.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}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var i in n){var o=n[i];e.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),t.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"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.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}),Xa;var t}function SC(){return Gd||(Gd=1,Ja={}),Ja}function EC(){if(Vd)return Za;Vd=1;var t=vC(),e=SC(),n=Array.prototype.push;function r(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function i(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function o(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=e.apply(void 0,r);return t.apply(void 0,r),i}}}return Za=function s(a,u,c,l){var f="function"==typeof u,d=u===Object(u);if(d&&(l=c,c=u,u=void 0),null==c)throw new TypeError;l||(l={});var h=!("cap"in l)||l.cap,p=!("curry"in l)||l.curry,m=!("fixed"in l)||l.fixed,y=!("immutable"in l)||l.immutable,g=!("rearg"in l)||l.rearg,_=f?c:e,v="curry"in l&&l.curry,b="fixed"in l&&l.fixed,k="rearg"in l&&l.rearg,w=f?c.runInContext():void 0,S=f?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},E=S.ary,x=S.assign,I=S.clone,C=S.curry,T=S.forEach,R=S.isArray,A=S.isError,M=S.isFunction,O=S.isWeakMap,D=S.keys,N=S.rearg,L=S.toInteger,j=S.toPath,P=D(t.aryMethod),F={castArray:function(t){return function(){var e=arguments[0];return R(e)?t(i(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],n=t(arguments[0],e),i=n.length;return h&&"number"==typeof e?(e=e>2?e-2:1,i&&i<=e?n:r(n,e)):n}},mixin:function(t){return function(e){var n=this;if(!M(n))return t(n,Object(e));var r=[];return T(D(e),(function(t){M(e[t])&&r.push([t,n.prototype[t]])})),t(n,Object(e)),T(r,(function(t){var e=t[1];M(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]})),n}},nthArg:function(t){return function(e){var n=e<0?1:L(e)+1;return C(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return C(t(e,n),r)}},runInContext:function(t){return function(e){return s(a,t(e),l)}}};function U(e,n){if(h){var i=t.iterateeRearg[e];if(i)return function(t,e){return H(t,(function(t){var n=e.length;return function(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(N(r(t,n),e),n)}))}(n,i);var o=!f&&t.iterateeAry[e];if(o)return function(t,e){return H(t,(function(t){return"function"==typeof t?r(t,e):t}))}(n,o)}return n}function W(e,r,i){if(m&&(b||!t.skipFixed[e])){var o=t.methodSpread[e],s=o&&o.start;return void 0===s?E(r,i):function(t,e){return function(){for(var r=arguments.length,i=r-1,o=Array(r);r--;)o[r]=arguments[r];var s=o[e],a=o.slice(0,e);return s&&n.apply(a,s),e!=i&&n.apply(a,o.slice(e+1)),t.apply(this,a)}}(r,s)}return r}function B(e,n,r){return g&&r>1&&(k||!t.skipRearg[e])?N(n,t.methodRearg[e]||t.aryRearg[r]):n}function z(t,e){for(var n=-1,r=(e=j(e)).length,i=r-1,o=I(Object(t)),s=o;null!=s&&++n<r;){var a=e[n],u=s[a];null!=u&&!(M(u)||A(u)||O(u))&&(s[a]=I(n==i?u:Object(u))),s=s[a]}return o}function $(e,n){var r=t.aliasToReal[e]||e,i=t.remap[r]||r,o=l;return function(t){var e=f?w:S,a=f?w[i]:n,u=x(x({},o),t);return s(e,r,a,u)}}function H(t,e){return function(){var n=arguments.length;if(!n)return t();for(var r=Array(n);n--;)r[n]=arguments[n];var i=g?0:n-1;return r[i]=e(r[i]),t.apply(void 0,r)}}function q(e,n,r){var s,a=t.aliasToReal[e]||e,u=n,c=F[a];return c?u=c(n):y&&(t.mutate.array[a]?u=o(n,i):t.mutate.object[a]?u=o(n,function(t){return function(e){return t({},e)}}(n)):t.mutate.set[a]&&(u=o(n,z))),T(P,(function(e){return T(t.aryMethod[e],(function(n){if(a==n){var r=t.methodSpread[a],i=r&&r.afterRearg;return s=i?W(a,B(a,u,e),e):B(a,W(a,u,e),e),s=function(t,e,n){return v||p&&n>1?C(e,n):e}(0,s=U(a,s),e),!1}})),!s})),s||(s=u),s==n&&(s=v?C(s,1):function(){return n.apply(this,arguments)}),s.convert=$(a,n),s.placeholder=n.placeholder=r,s}if(!d)return q(u,c,_);var V=c,Y=[];return T(P,(function(e){T(t.aryMethod[e],(function(e){var n=V[t.remap[e]||e];n&&Y.push([e,q(e,n,V)])}))})),T(D(V),(function(t){var e=V[t];if("function"==typeof e){for(var n=Y.length;n--;)if(Y[n][0]==t)return;e.convert=$(t,e),Y.push([t,e])}})),T(Y,(function(t){V[t[0]]=t[1]})),V.convert=function(t){return V.runInContext.convert(t)(void 0)},V.placeholder=V,T(D(V),(function(e){T(t.realToAlias[e]||[],(function(t){V[t]=V[e]}))})),V},Za}function bC(){if(Yd)return Qa;Yd=1;var t=yC().runInContext();return Qa=EC()(t,t)}var eu=bC();const Tu={400:{title:"",description:"You have no permission ..."},401:{title:"Unauthorized",description:"Your access is restricted. Please ensure you have the correct login details"},404:{title:"Oh no, bad luck!",description:"Looks like the page you were looking for has been removed. Just in case, please make sure to check your spelling."},user404:{title:"We could not find the user you were looking for",description:"Check the username and try one more time",links:[{text:"To the Wellsley account",link:"/account"},{text:"To account settings",link:"/account/settings"}]},page404:{title:"We could not find the page you were looking for",description:"Check the address and try one more time"},post404:{title:"We could not find the post you were looking for",description:"Check the address and try one more time"},403:{title:"",description:"Your session has been expired. Please re-login again."},440:{title:"",description:"You have reached maximum allowed number of concurrent sessions."},460:{title:"",description:"Please re-login again."},498:{title:"Expired",description:"The link was expired or invalid. Please try again."},500:{title:"Oops, something went wrong!",description:'We are already on it. Please try again later or contact us at <a href="mailto:support@wave.video">support@wave.video</a>'}},wC=t=>{const{title:e,description:n,links:r}=t||{};return!!(e||n||r)},kC=t=>Object.keys(Tu).some((e=>e==t)),fi=t=>Tu[t]||Tu[500],Kd=t=>{var e,n;if(!t)return fi(500).description;if(eu.isString(t))return t;if("data"in t&&eu.isString(t.data))return t.data;if("data"in t&&null!=(e=t.data)&&e.errorCode)return null==(n=t.data)?void 0:n.message;if("isUnhandledError"in t&&!t.isUnhandledError){const{status:e,data:n}=null==t?void 0:t.error;return(eu.isString(n)?n:null==n?void 0:n.message)||fi(e||500).description}return"message"in t&&t.message?t.message:"error"in t?t.error:"status"in t?fi(t.status).description:void 0},IC="data:image/svg+xml,%3csvg%20width='33'%20height='41'%20viewBox='0%200%2033%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M31.5%201.96817C16.0263%20-2.16393%201.10522%207.69272%201.10522%2017.1195C1.10522%2026.5897%2013.5526%2033.3672%2024.7349%2033.3672'%20stroke='%23E2E8F0'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cpath%20d='M18.7097%2024.4653C19.0081%2028.8324%2022.5093%2032.5599%2027.7506%2034.751C30.1263%2035.7443%2032.1733%2035.7395%2030.152%2033.6683C28.0252%2031.489%2022.4828%2034.5238%2020.4755%2035.5385C16.906%2037.3428%2011.1341%2039.0819%206.63159%2039.0819'%20stroke='%23E2E8F0'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",xC=({linksList:t})=>St.jsxs("div",{className:" relative text-slate-700",children:[St.jsx("h5",{className:"text-sm",children:"Maybe try these instead"}),St.jsx("img",{className:"absolute right-[100%] top-2 mr-1",src:IC}),St.jsx("div",{className:"mt-2",children:t.map((({text:t,link:e})=>St.jsx("a",{className:"mr-6 text-lg underline",href:e,children:t},e)))})]})
28
- /**
29
- * @remix-run/router v1.15.2
30
- *
31
- * Copyright (c) Remix Software Inc.
32
- *
33
- * This source code is licensed under the MIT license found in the
34
- * LICENSE.md file in the root directory of this source tree.
35
- *
36
- * @license MIT
37
- */;var Xd,Jd;function uc(t,e){throw new Error(e)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(Xd||(Xd={})),function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(Jd||(Jd={}));const xp=["post","put","patch","delete"];new Set(xp);const CC=["get",...xp];new Set(CC);const RC=at.createContext(null),TC=at.createContext(null),Cp=at.createContext({outlet:null,matches:[],isDataRoute:!1}),AC=at.createContext(null);function MC(){return at.useContext(TC).navigationType}const OC=at.createContext(null);function DC(t){let e=at.useContext(Cp).outlet;return e&&at.createElement(OC.Provider,{value:t},e)}var Au=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Au||{});function NC(t){let e=at.useContext(RC);return e||uc(),e}function LC(t){let e=at.useContext(Cp);return e||uc(),e}function PC(t){let e=LC(),n=e.matches[e.matches.length-1];return n.route.id||uc(),n.route.id}function FC(){var t;let e=at.useContext(AC),n=NC(Au.UseRouteError),r=PC(Au.UseRouteError);return void 0!==e?e:null==(t=n.errors)?void 0:t[r]}function BC(t){return DC(t.context)}new Promise((()=>{}));const UC=(t="")=>{const e=/No route matches/gi.test(t);try{const t=MC();e&&"PUSH"===t&&location.reload()}catch(t){Ru.warn("useRoute404Refresh: ",t)}},jC=t=>{switch(!0){case wC(t):return t;case kC(t):return 500===t&&Ru.error("ErrorPage: ",t),fi(t);case t&&!!Kd(t):return{title:Kd(t)};default:return Ru.error("ErrorPage: ",t),fi(500)}},Rp=({error:t})=>{UC(null==t?void 0:t.data);const{title:e,description:n,links:r}=jC(t);return console.trace("Error",t),St.jsx("div",{className:"relative flex min-h-[100vh] items-center justify-center",children:St.jsxs("div",{className:"absolute max-w-[580px] translate-y-[-10%]",children:[St.jsx("img",{className:"mb-3",src:gC}),e&&St.jsx("h1",{className:"mb-[8px] text-[24px] font-bold leading-normal text-slate-700",children:e}),n&&St.jsx("p",{className:"mb-[8px] text-[20px] leading-normal text-slate-700",children:n}),null!=r&&r.length?St.jsx(xC,{linksList:r}):null]})})},HC=()=>{const t=FC();return St.jsx(Rp,{error:t})},WC=at.createContext(null),tu={didCatch:!1,error:null};class zC extends at.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=tu}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(null!==t){for(var e,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(e=(n=this.props).onReset)||void 0===e||e.call(n,{args:i,reason:"imperative-api"}),this.setState(tu)}}componentDidCatch(t,e){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,t,e)}componentDidUpdate(t,e){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var i,o;n&&null!==e.error&&$C(t.resetKeys,r)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:t.resetKeys,reason:"keys"}),this.setState(tu))}render(){const{children:t,fallbackRender:e,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:o}=this.state;let s=t;if(i){const t={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof e)s=e(t);else if(n)s=at.createElement(n,t);else{if(null!==r&&!at.isValidElement(r))throw o;s=r}}return at.createElement(WC.Provider,{value:{didCatch:i,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function $C(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some(((t,n)=>!Object.is(t,e[n])))}const qC=()=>St.jsx(zC,{FallbackComponent:Rp,children:St.jsx(BC,{})}),GC=t=>{throw t},VC=t=>{var e;return t&&(null==(e=null==t?void 0:t.data)?void 0:e.errorCode)};export{qC as ErrorBoundaryLayout,Rp as ErrorPage,HC as RouterErrorPage,fi as getErrorByStatusCode,Kd as getErrorMsg,VC as getServerApiErrorCode,GC as throwError};
18
+ */function $g(){return $a||($a=1,t=St,n=St.exports,function(){function r(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function e(t,n,r,e){for(var i=-1,u=null==t?0:t.length;++i<u;){var o=t[i];n(e,o,r(o),t)}return e}function i(t,n){for(var r=-1,e=null==t?0:t.length;++r<e&&!1!==n(t[r],r,t););return t}function u(t,n){for(var r=null==t?0:t.length;r--&&!1!==n(t[r],r,t););return t}function o(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(!n(t[r],r,t))return!1;return!0}function a(t,n){for(var r=-1,e=null==t?0:t.length,i=0,u=[];++r<e;){var o=t[r];n(o,r,t)&&(u[i++]=o)}return u}function f(t,n){return!(null==t||!t.length)&&_(t,n,0)>-1}function c(t,n,r){for(var e=-1,i=null==t?0:t.length;++e<i;)if(r(n,t[e]))return!0;return!1}function l(t,n){for(var r=-1,e=null==t?0:t.length,i=Array(e);++r<e;)i[r]=n(t[r],r,t);return i}function s(t,n){for(var r=-1,e=n.length,i=t.length;++r<e;)t[i+r]=n[r];return t}function h(t,n,r,e){var i=-1,u=null==t?0:t.length;for(e&&u&&(r=t[++i]);++i<u;)r=n(r,t[i],i,t);return r}function p(t,n,r,e){var i=null==t?0:t.length;for(e&&i&&(r=t[--i]);i--;)r=n(r,t[i],i,t);return r}function g(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(n(t[r],r,t))return!0;return!1}function v(t,n,r){var e;return r(t,(function(t,r,i){if(n(t,r,i))return e=r,!1})),e}function d(t,n,r,e){for(var i=t.length,u=r+(e?1:-1);e?u--:++u<i;)if(n(t[u],u,t))return u;return-1}function _(t,n,r){return n==n?function(t,n,r){for(var e=r-1,i=t.length;++e<i;)if(t[e]===n)return e;return-1}(t,n,r):d(t,m,r)}function y(t,n,r,e){for(var i=r-1,u=t.length;++i<u;)if(e(t[i],n))return i;return-1}function m(t){return t!=t}function w(t,n){var r=null==t?0:t.length;return r?k(t,n)/r:Q}function b(t){return function(n){return null==n?U:n[t]}}function x(t){return function(n){return null==t?U:t[n]}}function A(t,n,r,e,i){return i(t,(function(t,i,u){r=e?(e=!1,t):n(r,t,i,u)})),r}function k(t,n){for(var r,e=-1,i=t.length;++e<i;){var u=n(t[e]);u!==U&&(r=r===U?u:r+u)}return r}function j(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}function W(t){return t&&t.slice(0,D(t)+1).replace(Kt,"")}function I(t){return function(n){return t(n)}}function E(t,n){return l(n,(function(n){return t[n]}))}function R(t,n){return t.has(n)}function O(t,n){for(var r=-1,e=t.length;++r<e&&_(n,t[r],0)>-1;);return r}function S(t,n){for(var r=t.length;r--&&_(n,t[r],0)>-1;);return r}function C(t){return"\\"+Hn[t]}function B(t){return Kn.test(t)}function L(t){var n=-1,r=Array(t.size);return t.forEach((function(t,e){r[++n]=[e,t]})),r}function z(t,n){return function(r){return t(n(r))}}function F(t,n){for(var r=-1,e=t.length,i=0,u=[];++r<e;){var o=t[r];o!==n&&o!==$||(t[r]=$,u[i++]=r)}return u}function T(t){var n=-1,r=Array(t.size);return t.forEach((function(t){r[++n]=t})),r}function M(t){return B(t)?function(t){for(var n=qn.lastIndex=0;qn.test(t);)++n;return n}(t):gr(t)}function P(t){return B(t)?function(t){return t.match(qn)||[]}(t):function(t){return t.split("")}(t)}function D(t){for(var n=t.length;n--&&Vt.test(t.charAt(n)););return n}var U,N="Expected a function",q="__lodash_hash_undefined__",$="__lodash_placeholder__",K=16,V=32,Z=64,Y=128,G=256,J=1/0,H=9007199254740991,Q=NaN,X=4294967295,tt=X-1,nt=X>>>1,rt=[["ary",Y],["bind",1],["bindKey",2],["curry",8],["curryRight",K],["flip",512],["partial",V],["partialRight",Z],["rearg",G]],et="[object Arguments]",it="[object Array]",ut="[object Boolean]",ot="[object Date]",at="[object Error]",ft="[object Function]",ct="[object GeneratorFunction]",lt="[object Map]",st="[object Number]",ht="[object Object]",pt="[object Promise]",gt="[object RegExp]",vt="[object Set]",dt="[object String]",_t="[object Symbol]",yt="[object WeakMap]",mt="[object ArrayBuffer]",wt="[object DataView]",bt="[object Float32Array]",xt="[object Float64Array]",At="[object Int8Array]",kt="[object Int16Array]",jt="[object Int32Array]",Wt="[object Uint8Array]",It="[object Uint8ClampedArray]",Et="[object Uint16Array]",Rt="[object Uint32Array]",Ot=/\b__p \+= '';/g,St=/\b(__p \+=) '' \+/g,Ct=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bt=/&(?:amp|lt|gt|quot|#39);/g,Lt=/[&<>"']/g,zt=RegExp(Bt.source),Ft=RegExp(Lt.source),Tt=/<%-([\s\S]+?)%>/g,Mt=/<%([\s\S]+?)%>/g,Pt=/<%=([\s\S]+?)%>/g,Dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ut=/^\w*$/,Nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/[\\^$.*+?()[\]{}|]/g,$t=RegExp(qt.source),Kt=/^\s+/,Vt=/\s/,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yt=/\{\n\/\* \[wrapped with (.+)\] \*/,Gt=/,? & /,Jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ht=/[()=,{}\[\]\/\s]/,Qt=/\\(\\)?/g,Xt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tn=/\w*$/,nn=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,on=/^(?:0|[1-9]\d*)$/,an=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fn=/($^)/,cn=/['\n\r\u2028\u2029\\]/g,ln="\\ud800-\\udfff",sn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",hn="\\u2700-\\u27bf",pn="a-z\\xdf-\\xf6\\xf8-\\xff",gn="A-Z\\xc0-\\xd6\\xd8-\\xde",vn="\\ufe0e\\ufe0f",dn="\\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",_n="['’]",yn="["+ln+"]",mn="["+dn+"]",wn="["+sn+"]",bn="\\d+",xn="["+hn+"]",An="["+pn+"]",kn="[^"+ln+dn+bn+hn+pn+gn+"]",jn="\\ud83c[\\udffb-\\udfff]",Wn="[^"+ln+"]",In="(?:\\ud83c[\\udde6-\\uddff]){2}",En="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+gn+"]",On="\\u200d",Sn="(?:"+An+"|"+kn+")",Cn="(?:"+Rn+"|"+kn+")",Bn="(?:['’](?:d|ll|m|re|s|t|ve))?",Ln="(?:['’](?:D|LL|M|RE|S|T|VE))?",zn="(?:"+wn+"|"+jn+")?",Fn="["+vn+"]?",Tn=Fn+zn+"(?:"+On+"(?:"+[Wn,In,En].join("|")+")"+Fn+zn+")*",Mn="(?:"+[xn,In,En].join("|")+")"+Tn,Dn="(?:"+[Wn+wn+"?",wn,In,En,yn].join("|")+")",Un=RegExp(_n,"g"),Nn=RegExp(wn,"g"),qn=RegExp(jn+"(?="+jn+")|"+Dn+Tn,"g"),$n=RegExp([Rn+"?"+An+"+"+Bn+"(?="+[mn,Rn,"$"].join("|")+")",Cn+"+"+Ln+"(?="+[mn,Rn+Sn,"$"].join("|")+")",Rn+"?"+Sn+"+"+Bn,Rn+"+"+Ln,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bn,Mn].join("|"),"g"),Kn=RegExp("["+On+ln+sn+vn+"]"),Vn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zn=["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"],Yn=-1,Gn={};Gn[bt]=Gn[xt]=Gn[At]=Gn[kt]=Gn[jt]=Gn[Wt]=Gn[It]=Gn[Et]=Gn[Rt]=!0,Gn[et]=Gn[it]=Gn[mt]=Gn[ut]=Gn[wt]=Gn[ot]=Gn[at]=Gn[ft]=Gn[lt]=Gn[st]=Gn[ht]=Gn[gt]=Gn[vt]=Gn[dt]=Gn[yt]=!1;var Jn={};Jn[et]=Jn[it]=Jn[mt]=Jn[wt]=Jn[ut]=Jn[ot]=Jn[bt]=Jn[xt]=Jn[At]=Jn[kt]=Jn[jt]=Jn[lt]=Jn[st]=Jn[ht]=Jn[gt]=Jn[vt]=Jn[dt]=Jn[_t]=Jn[Wt]=Jn[It]=Jn[Et]=Jn[Rt]=!0,Jn[at]=Jn[ft]=Jn[yt]=!1;var Hn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qn=parseFloat,Xn=parseInt,tr="object"==typeof Pn&&Pn&&Pn.Object===Object&&Pn,nr="object"==typeof self&&self&&self.Object===Object&&self,rr=tr||nr||Function("return this")(),er=n&&!n.nodeType&&n,ir=er&&t&&!t.nodeType&&t,ur=ir&&ir.exports===er,or=ur&&tr.process,ar=function(){try{return ir&&ir.require&&ir.require("util").types||or&&or.binding&&or.binding("util")}catch{}}(),fr=ar&&ar.isArrayBuffer,cr=ar&&ar.isDate,lr=ar&&ar.isMap,sr=ar&&ar.isRegExp,hr=ar&&ar.isSet,pr=ar&&ar.isTypedArray,gr=b("length"),vr=x({"À":"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"}),dr=x({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),_r=x({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),yr=function t(n){function x(t){if(Ti(t)&&!Ea(t)&&!(t instanceof sn)){if(t instanceof ln)return t;if(Iu.call(t,"__wrapped__"))return ci(t)}return new ln(t)}function Vt(){}function ln(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=U}function sn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function hn(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function pn(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function gn(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function vn(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new gn;++n<r;)this.add(t[n])}function dn(t){this.size=(this.__data__=new pn(t)).size}function _n(t,n){var r=Ea(t),e=!r&&Ia(t),i=!r&&!e&&Oa(t),u=!r&&!e&&!i&&za(t),o=r||e||i||u,a=o?j(t.length,wu):[],f=a.length;for(var c in t)!n&&!Iu.call(t,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||u&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ye(c,f))||a.push(c);return a}function yn(t){var n=t.length;return n?t[Br(0,n-1)]:U}function mn(t,n){return oi(le(t),En(n,0,t.length))}function wn(t){return oi(le(t))}function bn(t,n,r){(r===U||Ri(t[n],r))&&(r!==U||n in t)||Wn(t,n,r)}function xn(t,n,r){var e=t[n];Iu.call(t,n)&&Ri(e,r)&&(r!==U||n in t)||Wn(t,n,r)}function An(t,n){for(var r=t.length;r--;)if(Ri(t[r][0],n))return r;return-1}function kn(t,n,r,e){return Wo(t,(function(t,i,u){n(e,t,r(t),u)})),e}function jn(t,n){return t&&se(n,Hi(n),t)}function Wn(t,n,r){"__proto__"==n&&Ku?Ku(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}function In(t,n){for(var r=-1,e=n.length,i=pu(e),u=null==t;++r<e;)i[r]=u?U:Gi(t,n[r]);return i}function En(t,n,r){return t==t&&(r!==U&&(t=t<=r?t:r),n!==U&&(t=t>=n?t:n)),t}function Rn(t,n,r,e,u,o){var a,f=1&n,c=2&n,l=4&n;if(r&&(a=u?r(t,e,u,o):r(t)),a!==U)return a;if(!Fi(t))return t;var s=Ea(t);if(s){if(a=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&Iu.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!f)return le(t,a)}else{var h=Mo(t),p=h==ft||h==ct;if(Oa(t))return ie(t,f);if(h==ht||h==et||p&&!u){if(a=c||p?{}:Ve(t),!f)return c?function(t,n){return se(t,To(t),n)}(t,function(t,n){return t&&se(n,Qi(n),t)}(a,t)):function(t,n){return se(t,Fo(t),n)}(t,jn(a,t))}else{if(!Jn[h])return u?t:{};a=function(t,n,r){var e=t.constructor;switch(n){case mt:return ue(t);case ut:case ot:return new e(+t);case wt:return function(t,n){return new t.constructor(n?ue(t.buffer):t.buffer,t.byteOffset,t.byteLength)}(t,r);case bt:case xt:case At:case kt:case jt:case Wt:case It:case Et:case Rt:return oe(t,r);case lt:return new e;case st:case dt:return new e(t);case gt:return function(t){var n=new t.constructor(t.source,tn.exec(t));return n.lastIndex=t.lastIndex,n}(t);case vt:return new e;case _t:return function(t){return Ao?yu(Ao.call(t)):{}}(t)}}(t,h,f)}}o||(o=new dn);var g=o.get(t);if(g)return g;o.set(t,a),La(t)?t.forEach((function(e){a.add(Rn(e,n,r,e,t,o))})):Ca(t)&&t.forEach((function(e,i){a.set(i,Rn(e,n,r,i,t,o))}));var v=s?U:(l?c?Me:Te:c?Qi:Hi)(t);return i(v||t,(function(e,i){v&&(e=t[i=e]),xn(a,i,Rn(e,n,r,i,t,o))})),a}function On(t,n,r){var e=r.length;if(null==t)return!e;for(t=yu(t);e--;){var i=r[e],u=n[i],o=t[i];if(o===U&&!(i in t)||!u(o))return!1}return!0}function Sn(t,n,r){if("function"!=typeof t)throw new bu(N);return Uo((function(){t.apply(U,r)}),n)}function Cn(t,n,r,e){var i=-1,u=f,o=!0,a=t.length,s=[],h=n.length;if(!a)return s;r&&(n=l(n,I(r))),e?(u=c,o=!1):n.length>=200&&(u=R,o=!1,n=new vn(n));t:for(;++i<a;){var p=t[i],g=null==r?p:r(p);if(p=e||0!==p?p:0,o&&g==g){for(var v=h;v--;)if(n[v]===g)continue t;s.push(p)}else u(n,g,e)||s.push(p)}return s}function Bn(t,n){var r=!0;return Wo(t,(function(t,e,i){return r=!!n(t,e,i)})),r}function Ln(t,n,r){for(var e=-1,i=t.length;++e<i;){var u=t[e],o=n(u);if(null!=o&&(a===U?o==o&&!Ui(o):r(o,a)))var a=o,f=u}return f}function zn(t,n){var r=[];return Wo(t,(function(t,e,i){n(t,e,i)&&r.push(t)})),r}function Fn(t,n,r,e,i){var u=-1,o=t.length;for(r||(r=Ze),i||(i=[]);++u<o;){var a=t[u];n>0&&r(a)?n>1?Fn(a,n-1,r,e,i):s(i,a):e||(i[i.length]=a)}return i}function Tn(t,n){return t&&Eo(t,n,Hi)}function Mn(t,n){return t&&Ro(t,n,Hi)}function Pn(t,n){return a(n,(function(n){return Bi(t[n])}))}function Dn(t,n){for(var r=0,e=(n=re(n,t)).length;null!=t&&r<e;)t=t[ai(n[r++])];return r&&r==e?t:U}function qn(t,n,r){var e=n(t);return Ea(t)?e:s(e,r(t))}function Kn(t){return null==t?t===U?"[object Undefined]":"[object Null]":$u&&$u in yu(t)?function(t){var n=Iu.call(t,$u),r=t[$u];try{t[$u]=U;var e=!0}catch{}var i=Ou.call(t);return e&&(n?t[$u]=r:delete t[$u]),i}(t):function(t){return Ou.call(t)}(t)}function Hn(t,n){return t>n}function tr(t,n){return null!=t&&Iu.call(t,n)}function nr(t,n){return null!=t&&n in yu(t)}function er(t,n,r){for(var e=r?c:f,i=t[0].length,u=t.length,o=u,a=pu(u),s=1/0,h=[];o--;){var p=t[o];o&&n&&(p=l(p,I(n))),s=eo(p.length,s),a[o]=!r&&(n||i>=120&&p.length>=120)?new vn(o&&p):U}p=t[0];var g=-1,v=a[0];t:for(;++g<i&&h.length<s;){var d=p[g],_=n?n(d):d;if(d=r||0!==d?d:0,!(v?R(v,_):e(h,_,r))){for(o=u;--o;){var y=a[o];if(!(y?R(y,_):e(t[o],_,r)))continue t}v&&v.push(_),h.push(d)}}return h}function ir(t,n,e){var i=null==(t=ri(t,n=re(n,t)))?t:t[ai(gi(n))];return null==i?U:r(i,t,e)}function or(t){return Ti(t)&&Kn(t)==et}function ar(t,n,r,e,i){return t===n||(null==t||null==n||!Ti(t)&&!Ti(n)?t!=t&&n!=n:function(t,n,r,e,i,u){var o=Ea(t),a=Ea(n),f=o?it:Mo(t),c=a?it:Mo(n),l=(f=f==et?ht:f)==ht,s=(c=c==et?ht:c)==ht,h=f==c;if(h&&Oa(t)){if(!Oa(n))return!1;o=!0,l=!1}if(h&&!l)return u||(u=new dn),o||za(t)?ze(t,n,r,e,i,u):function(t,n,r,e,i,u,o){switch(r){case wt:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case mt:return!(t.byteLength!=n.byteLength||!u(new Fu(t),new Fu(n)));case ut:case ot:case st:return Ri(+t,+n);case at:return t.name==n.name&&t.message==n.message;case gt:case dt:return t==n+"";case lt:var a=L;case vt:var f=1&e;if(a||(a=T),t.size!=n.size&&!f)return!1;var c=o.get(t);if(c)return c==n;e|=2,o.set(t,n);var l=ze(a(t),a(n),e,i,u,o);return o.delete(t),l;case _t:if(Ao)return Ao.call(t)==Ao.call(n)}return!1}(t,n,f,r,e,i,u);if(!(1&r)){var p=l&&Iu.call(t,"__wrapped__"),g=s&&Iu.call(n,"__wrapped__");if(p||g){var v=p?t.value():t,d=g?n.value():n;return u||(u=new dn),i(v,d,r,e,u)}}return!!h&&(u||(u=new dn),function(t,n,r,e,i,u){var o=1&r,a=Te(t),f=a.length;if(f!=Te(n).length&&!o)return!1;for(var c=f;c--;){var l=a[c];if(!(o?l in n:Iu.call(n,l)))return!1}var s=u.get(t),h=u.get(n);if(s&&h)return s==n&&h==t;var p=!0;u.set(t,n),u.set(n,t);for(var g=o;++c<f;){var v=t[l=a[c]],d=n[l];if(e)var _=o?e(d,v,l,n,t,u):e(v,d,l,t,n,u);if(!(_===U?v===d||i(v,d,r,e,u):_)){p=!1;break}g||(g="constructor"==l)}if(p&&!g){var y=t.constructor,m=n.constructor;y!=m&&"constructor"in t&&"constructor"in n&&!("function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m)&&(p=!1)}return u.delete(t),u.delete(n),p}(t,n,r,e,i,u))}(t,n,r,e,ar,i))}function gr(t,n,r,e){var i=r.length,u=i,o=!e;if(null==t)return!u;for(t=yu(t);i--;){var a=r[i];if(o&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<u;){var f=(a=r[i])[0],c=t[f],l=a[1];if(o&&a[2]){if(c===U&&!(f in t))return!1}else{var s=new dn;if(e)var h=e(c,l,f,t,n,s);if(!(h===U?ar(l,c,3,e,s):h))return!1}}return!0}function mr(t){return!(!Fi(t)||function(t){return!!Ru&&Ru in t}(t))&&(Bi(t)?Bu:en).test(fi(t))}function wr(t){return"function"==typeof t?t:null==t?uu:"object"==typeof t?Ea(t)?Wr(t[0],t[1]):jr(t):cu(t)}function br(t){if(!Qe(t))return no(t);var n=[];for(var r in yu(t))Iu.call(t,r)&&"constructor"!=r&&n.push(r);return n}function xr(t){if(!Fi(t))return function(t){var n=[];if(null!=t)for(var r in yu(t))n.push(r);return n}(t);var n=Qe(t),r=[];for(var e in t)("constructor"!=e||!n&&Iu.call(t,e))&&r.push(e);return r}function Ar(t,n){return t<n}function kr(t,n){var r=-1,e=Oi(t)?pu(t.length):[];return Wo(t,(function(t,i,u){e[++r]=n(t,i,u)})),e}function jr(t){var n=qe(t);return 1==n.length&&n[0][2]?ti(n[0][0],n[0][1]):function(r){return r===t||gr(r,t,n)}}function Wr(t,n){return Je(t)&&Xe(n)?ti(ai(t),n):function(r){var e=Gi(r,t);return e===U&&e===n?Ji(r,t):ar(n,e,3)}}function Ir(t,n,r,e,i){t!==n&&Eo(n,(function(u,o){if(i||(i=new dn),Fi(u))!function(t,n,r,e,i,u,o){var a=ei(t,r),f=ei(n,r),c=o.get(f);if(c)return bn(t,r,c),U;var l=u?u(a,f,r+"",t,n,o):U,s=l===U;if(s){var h=Ea(f),p=!h&&Oa(f),g=!h&&!p&&za(f);l=f,h||p||g?Ea(a)?l=a:Si(a)?l=le(a):p?(s=!1,l=ie(f,!0)):g?(s=!1,l=oe(f,!0)):l=[]:Pi(f)||Ia(f)?(l=a,Ia(a)?l=Zi(a):Fi(a)&&!Bi(a)||(l=Ve(f))):s=!1}s&&(o.set(f,l),i(l,f,e,u,o),o.delete(f)),bn(t,r,l)}(t,n,o,r,Ir,e,i);else{var a=e?e(ei(t,o),u,o+"",t,n,i):U;a===U&&(a=u),bn(t,o,a)}}),Qi)}function Er(t,n){var r=t.length;if(r)return Ye(n+=n<0?r:0,r)?t[n]:U}function Rr(t,n,r){n=n.length?l(n,(function(t){return Ea(t)?function(n){return Dn(n,1===t.length?t[0]:t)}:t})):[uu];var e=-1;return n=l(n,I(Ue())),function(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}(kr(t,(function(t,r,i){return{criteria:l(n,(function(n){return n(t)})),index:++e,value:t}})),(function(t,n){return function(t,n,r){for(var e=-1,i=t.criteria,u=n.criteria,o=i.length,a=r.length;++e<o;){var f=ae(i[e],u[e]);if(f)return e>=a?f:f*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function Or(t,n,r){for(var e=-1,i=n.length,u={};++e<i;){var o=n[e],a=Dn(t,o);r(a,o)&&Mr(u,re(o,t),a)}return u}function Sr(t,n,r,e){var i=e?y:_,u=-1,o=n.length,a=t;for(t===n&&(n=le(n)),r&&(a=l(t,I(r)));++u<o;)for(var f=0,c=n[u],s=r?r(c):c;(f=i(a,s,f,e))>-1;)a!==t&&Uu.call(a,f,1),Uu.call(t,f,1);return t}function Cr(t,n){for(var r=t?n.length:0,e=r-1;r--;){var i=n[r];if(r==e||i!==u){var u=i;Ye(i)?Uu.call(t,i,1):Yr(t,i)}}return t}function Br(t,n){return t+Ju(oo()*(n-t+1))}function Lr(t,n){var r="";if(!t||n<1||n>H)return r;do{n%2&&(r+=t),(n=Ju(n/2))&&(t+=t)}while(n);return r}function zr(t,n){return No(ni(t,n,uu),t+"")}function Fr(t){return yn(tu(t))}function Tr(t,n){var r=tu(t);return oi(r,En(n,0,r.length))}function Mr(t,n,r,e){if(!Fi(t))return t;for(var i=-1,u=(n=re(n,t)).length,o=u-1,a=t;null!=a&&++i<u;){var f=ai(n[i]),c=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(i!=o){var l=a[f];(c=e?e(l,f,a):U)===U&&(c=Fi(l)?l:Ye(n[i+1])?[]:{})}xn(a,f,c),a=a[f]}return t}function Pr(t){return oi(tu(t))}function Dr(t,n,r){var e=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(r=r>i?i:r)<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var u=pu(i);++e<i;)u[e]=t[e+n];return u}function Ur(t,n){var r;return Wo(t,(function(t,e,i){return!(r=n(t,e,i))})),!!r}function Nr(t,n,r){var e=0,i=null==t?e:t.length;if("number"==typeof n&&n==n&&i<=nt){for(;e<i;){var u=e+i>>>1,o=t[u];null!==o&&!Ui(o)&&(r?o<=n:o<n)?e=u+1:i=u}return i}return qr(t,n,uu,r)}function qr(t,n,r,e){var i=0,u=null==t?0:t.length;if(0===u)return 0;for(var o=(n=r(n))!=n,a=null===n,f=Ui(n),c=n===U;i<u;){var l=Ju((i+u)/2),s=r(t[l]),h=s!==U,p=null===s,g=s==s,v=Ui(s);if(o)var d=e||g;else d=c?g&&(e||h):a?g&&h&&(e||!p):f?g&&h&&!p&&(e||!v):!p&&!v&&(e?s<=n:s<n);d?i=l+1:u=l}return eo(u,tt)}function $r(t,n){for(var r=-1,e=t.length,i=0,u=[];++r<e;){var o=t[r],a=n?n(o):o;if(!r||!Ri(a,f)){var f=a;u[i++]=0===o?0:o}}return u}function Kr(t){return"number"==typeof t?t:Ui(t)?Q:+t}function Vr(t){if("string"==typeof t)return t;if(Ea(t))return l(t,Vr)+"";if(Ui(t))return ko?ko.call(t):"";var n=t+"";return"0"==n&&1/t==-J?"-0":n}function Zr(t,n,r){var e=-1,i=f,u=t.length,o=!0,a=[],l=a;if(r)o=!1,i=c;else if(u>=200){var s=n?null:Lo(t);if(s)return T(s);o=!1,i=R,l=new vn}else l=n?[]:a;t:for(;++e<u;){var h=t[e],p=n?n(h):h;if(h=r||0!==h?h:0,o&&p==p){for(var g=l.length;g--;)if(l[g]===p)continue t;n&&l.push(p),a.push(h)}else i(l,p,r)||(l!==a&&l.push(p),a.push(h))}return a}function Yr(t,n){return null==(t=ri(t,n=re(n,t)))||delete t[ai(gi(n))]}function Gr(t,n,r,e){return Mr(t,n,r(Dn(t,n)),e)}function Jr(t,n,r,e){for(var i=t.length,u=e?i:-1;(e?u--:++u<i)&&n(t[u],u,t););return r?Dr(t,e?0:u,e?u+1:i):Dr(t,e?u+1:0,e?i:u)}function Hr(t,n){var r=t;return r instanceof sn&&(r=r.value()),h(n,(function(t,n){return n.func.apply(n.thisArg,s([t],n.args))}),r)}function Qr(t,n,r){var e=t.length;if(e<2)return e?Zr(t[0]):[];for(var i=-1,u=pu(e);++i<e;)for(var o=t[i],a=-1;++a<e;)a!=i&&(u[i]=Cn(u[i]||o,t[a],n,r));return Zr(Fn(u,1),n,r)}function Xr(t,n,r){for(var e=-1,i=t.length,u=n.length,o={};++e<i;)r(o,t[e],e<u?n[e]:U);return o}function te(t){return Si(t)?t:[]}function ne(t){return"function"==typeof t?t:uu}function re(t,n){return Ea(t)?t:Je(t,n)?[t]:qo(Yi(t))}function ee(t,n,r){var e=t.length;return r=r===U?e:r,!n&&r>=e?t:Dr(t,n,r)}function ie(t,n){if(n)return t.slice();var r=t.length,e=Tu?Tu(r):new t.constructor(r);return t.copy(e),e}function ue(t){var n=new t.constructor(t.byteLength);return new Fu(n).set(new Fu(t)),n}function oe(t,n){return new t.constructor(n?ue(t.buffer):t.buffer,t.byteOffset,t.length)}function ae(t,n){if(t!==n){var r=t!==U,e=null===t,i=t==t,u=Ui(t),o=n!==U,a=null===n,f=n==n,c=Ui(n);if(!a&&!c&&!u&&t>n||u&&o&&f&&!a&&!c||e&&o&&f||!r&&f||!i)return 1;if(!e&&!u&&!c&&t<n||c&&r&&i&&!e&&!u||a&&r&&i||!o&&i||!f)return-1}return 0}function fe(t,n,r,e){for(var i=-1,u=t.length,o=r.length,a=-1,f=n.length,c=ro(u-o,0),l=pu(f+c),s=!e;++a<f;)l[a]=n[a];for(;++i<o;)(s||i<u)&&(l[r[i]]=t[i]);for(;c--;)l[a++]=t[i++];return l}function ce(t,n,r,e){for(var i=-1,u=t.length,o=-1,a=r.length,f=-1,c=n.length,l=ro(u-a,0),s=pu(l+c),h=!e;++i<l;)s[i]=t[i];for(var p=i;++f<c;)s[p+f]=n[f];for(;++o<a;)(h||i<u)&&(s[p+r[o]]=t[i++]);return s}function le(t,n){var r=-1,e=t.length;for(n||(n=pu(e));++r<e;)n[r]=t[r];return n}function se(t,n,r,e){var i=!r;r||(r={});for(var u=-1,o=n.length;++u<o;){var a=n[u],f=e?e(r[a],t[a],a,r,t):U;f===U&&(f=t[a]),i?Wn(r,a,f):xn(r,a,f)}return r}function he(t,n){return function(r,i){var u=Ea(r)?e:kn,o=n?n():{};return u(r,t,Ue(i,2),o)}}function pe(t){return zr((function(n,r){var e=-1,i=r.length,u=i>1?r[i-1]:U,o=i>2?r[2]:U;for(u=t.length>3&&"function"==typeof u?(i--,u):U,o&&Ge(r[0],r[1],o)&&(u=i<3?U:u,i=1),n=yu(n);++e<i;){var a=r[e];a&&t(n,a,e,u)}return n}))}function ge(t,n){return function(r,e){if(null==r)return r;if(!Oi(r))return t(r,e);for(var i=r.length,u=n?i:-1,o=yu(r);(n?u--:++u<i)&&!1!==e(o[u],u,o););return r}}function ve(t){return function(n,r,e){for(var i=-1,u=yu(n),o=e(n),a=o.length;a--;){var f=o[t?a:++i];if(!1===r(u[f],f,u))break}return n}}function de(t){return function(n){var r=B(n=Yi(n))?P(n):U,e=r?r[0]:n.charAt(0),i=r?ee(r,1).join(""):n.slice(1);return e[t]()+i}}function _e(t){return function(n){return h(eu(ru(n).replace(Un,"")),t,"")}}function ye(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var r=jo(t.prototype),e=t.apply(r,n);return Fi(e)?e:r}}function me(t){return function(n,r,e){var i=yu(n);if(!Oi(n)){var u=Ue(r,3);n=Hi(n),r=function(t){return u(i[t],t,i)}}var o=t(n,r,e);return o>-1?i[u?n[o]:o]:U}}function we(t){return Fe((function(n){var r=n.length,e=r,i=ln.prototype.thru;for(t&&n.reverse();e--;){var u=n[e];if("function"!=typeof u)throw new bu(N);if(i&&!o&&"wrapper"==Pe(u))var o=new ln([],!0)}for(e=o?e:r;++e<r;){var a=Pe(u=n[e]),f="wrapper"==a?zo(u):U;o=f&&He(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?o[Pe(f[0])].apply(o,f[3]):1==u.length&&He(u)?o[a]():o.thru(u)}return function(){var t=arguments,e=t[0];if(o&&1==t.length&&Ea(e))return o.plant(e).value();for(var i=0,u=r?n[i].apply(this,t):e;++i<r;)u=n[i].call(this,u);return u}}))}function be(t,n,r,e,i,u,o,a,f,c){var l=n&Y,s=1&n,h=2&n,p=24&n,g=512&n,v=h?U:ye(t);return function d(){for(var _=arguments.length,y=pu(_),m=_;m--;)y[m]=arguments[m];if(p)var w=De(d),b=function(t,n){for(var r=t.length,e=0;r--;)t[r]===n&&++e;return e}(y,w);if(e&&(y=fe(y,e,i,p)),u&&(y=ce(y,u,o,p)),_-=b,p&&_<c)return Ee(t,n,be,d.placeholder,r,y,F(y,w),a,f,c-_);var x=s?r:this,A=h?x[t]:t;return _=y.length,a?y=function(t,n){for(var r=t.length,e=eo(n.length,r),i=le(t);e--;){var u=n[e];t[e]=Ye(u,r)?i[u]:U}return t}(y,a):g&&_>1&&y.reverse(),l&&f<_&&(y.length=f),this&&this!==rr&&this instanceof d&&(A=v||ye(A)),A.apply(x,y)}}function xe(t,n){return function(r,e){return function(t,n,r,e){return Tn(t,(function(t,i,u){n(e,r(t),i,u)})),e}(r,t,n(e),{})}}function Ae(t,n){return function(r,e){var i;if(r===U&&e===U)return n;if(r!==U&&(i=r),e!==U){if(i===U)return e;"string"==typeof r||"string"==typeof e?(r=Vr(r),e=Vr(e)):(r=Kr(r),e=Kr(e)),i=t(r,e)}return i}}function ke(t){return Fe((function(n){return n=l(n,I(Ue())),zr((function(e){var i=this;return t(n,(function(t){return r(t,i,e)}))}))}))}function je(t,n){var r=(n=n===U?" ":Vr(n)).length;if(r<2)return r?Lr(n,t):n;var e=Lr(n,Gu(t/M(n)));return B(n)?ee(P(e),0,t).join(""):e.slice(0,t)}function We(t){return function(n,r,e){return e&&"number"!=typeof e&&Ge(n,r,e)&&(r=e=U),n=qi(n),r===U?(r=n,n=0):r=qi(r),function(t,n,r,e){for(var i=-1,u=ro(Gu((n-t)/(r||1)),0),o=pu(u);u--;)o[e?u:++i]=t,t+=r;return o}(n,r,e=e===U?n<r?1:-1:qi(e),t)}}function Ie(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=Vi(n),r=Vi(r)),t(n,r)}}function Ee(t,n,r,e,i,u,o,a,f,c){var l=8&n;n|=l?V:Z,4&(n&=~(l?Z:V))||(n&=-4);var s=[t,n,i,l?u:U,l?o:U,l?U:u,l?U:o,a,f,c],h=r.apply(U,s);return He(t)&&Do(h,s),h.placeholder=e,ii(h,t,n)}function Re(t){var n=_u[t];return function(t,r){if(t=Vi(t),(r=null==r?0:eo($i(r),292))&&Xu(t)){var e=(Yi(t)+"e").split("e");return+((e=(Yi(n(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(+e[1]-r))}return n(t)}}function Oe(t){return function(n){var r=Mo(n);return r==lt?L(n):r==vt?function(t){var n=-1,r=Array(t.size);return t.forEach((function(t){r[++n]=[t,t]})),r}(n):function(t,n){return l(n,(function(n){return[n,t[n]]}))}(n,t(n))}}function Se(t,n,e,i,u,o,a,f){var c=2&n;if(!c&&"function"!=typeof t)throw new bu(N);var l=i?i.length:0;if(l||(n&=-97,i=u=U),a=a===U?a:ro($i(a),0),f=f===U?f:$i(f),l-=u?u.length:0,n&Z){var s=i,h=u;i=u=U}var p=c?U:zo(t),g=[t,n,e,i,u,s,h,o,a,f];if(p&&function(t,n){var r=t[1],e=n[1],i=r|e,u=i<131,o=e==Y&&8==r||e==Y&&r==G&&t[7].length<=n[8]||384==e&&n[7].length<=n[8]&&8==r;if(!u&&!o)return t;1&e&&(t[2]=n[2],i|=1&r?0:4);var a=n[3];if(a){var f=t[3];t[3]=f?fe(f,a,n[4]):a,t[4]=f?F(t[3],$):n[4]}(a=n[5])&&(f=t[5],t[5]=f?ce(f,a,n[6]):a,t[6]=f?F(t[5],$):n[6]),(a=n[7])&&(t[7]=a),e&Y&&(t[8]=null==t[8]?n[8]:eo(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i}(g,p),t=g[0],n=g[1],e=g[2],i=g[3],u=g[4],!(f=g[9]=g[9]===U?c?0:t.length:ro(g[9]-l,0))&&24&n&&(n&=-25),n&&1!=n)v=8==n||n==K?function(t,n,e){var i=ye(t);return function u(){for(var o=arguments.length,a=pu(o),f=o,c=De(u);f--;)a[f]=arguments[f];var l=o<3&&a[0]!==c&&a[o-1]!==c?[]:F(a,c);return(o-=l.length)<e?Ee(t,n,be,u.placeholder,U,a,l,U,U,e-o):r(this&&this!==rr&&this instanceof u?i:t,this,a)}}(t,n,f):n!=V&&33!=n||u.length?be.apply(U,g):function(t,n,e,i){var u=1&n,o=ye(t);return function n(){for(var a=-1,f=arguments.length,c=-1,l=i.length,s=pu(l+f),h=this&&this!==rr&&this instanceof n?o:t;++c<l;)s[c]=i[c];for(;f--;)s[c++]=arguments[++a];return r(h,u?e:this,s)}}(t,n,e,i);else var v=function(t,n,r){var e=1&n,i=ye(t);return function n(){return(this&&this!==rr&&this instanceof n?i:t).apply(e?r:this,arguments)}}(t,n,e);return ii((p?Oo:Do)(v,g),t,n)}function Ce(t,n,r,e){return t===U||Ri(t,ku[r])&&!Iu.call(e,r)?n:t}function Be(t,n,r,e,i,u){return Fi(t)&&Fi(n)&&(u.set(n,t),Ir(t,n,U,Be,u),u.delete(n)),t}function Le(t){return Pi(t)?U:t}function ze(t,n,r,e,i,u){var o=1&r,a=t.length,f=n.length;if(a!=f&&!(o&&f>a))return!1;var c=u.get(t),l=u.get(n);if(c&&l)return c==n&&l==t;var s=-1,h=!0,p=2&r?new vn:U;for(u.set(t,n),u.set(n,t);++s<a;){var v=t[s],d=n[s];if(e)var _=o?e(d,v,s,n,t,u):e(v,d,s,t,n,u);if(_!==U){if(_)continue;h=!1;break}if(p){if(!g(n,(function(t,n){if(!R(p,n)&&(v===t||i(v,t,r,e,u)))return p.push(n)}))){h=!1;break}}else if(v!==d&&!i(v,d,r,e,u)){h=!1;break}}return u.delete(t),u.delete(n),h}function Fe(t){return No(ni(t,U,hi),t+"")}function Te(t){return qn(t,Hi,Fo)}function Me(t){return qn(t,Qi,To)}function Pe(t){for(var n=t.name+"",r=vo[n],e=Iu.call(vo,n)?r.length:0;e--;){var i=r[e],u=i.func;if(null==u||u==t)return i.name}return n}function De(t){return(Iu.call(x,"placeholder")?x:t).placeholder}function Ue(){var t=x.iteratee||ou;return t=t===ou?wr:t,arguments.length?t(arguments[0],arguments[1]):t}function Ne(t,n){var r=t.__data__;return function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}(n)?r["string"==typeof n?"string":"hash"]:r.map}function qe(t){for(var n=Hi(t),r=n.length;r--;){var e=n[r],i=t[e];n[r]=[e,i,Xe(i)]}return n}function $e(t,n){var r=function(t,n){return null==t?U:t[n]}(t,n);return mr(r)?r:U}function Ke(t,n,r){for(var e=-1,i=(n=re(n,t)).length,u=!1;++e<i;){var o=ai(n[e]);if(!(u=null!=t&&r(t,o)))break;t=t[o]}return u||++e!=i?u:!!(i=null==t?0:t.length)&&zi(i)&&Ye(o,i)&&(Ea(t)||Ia(t))}function Ve(t){return"function"!=typeof t.constructor||Qe(t)?{}:jo(Mu(t))}function Ze(t){return Ea(t)||Ia(t)||!!(Nu&&t&&t[Nu])}function Ye(t,n){var r=typeof t;return!!(n=n??H)&&("number"==r||"symbol"!=r&&on.test(t))&&t>-1&&t%1==0&&t<n}function Ge(t,n,r){if(!Fi(r))return!1;var e=typeof n;return!!("number"==e?Oi(r)&&Ye(n,r.length):"string"==e&&n in r)&&Ri(r[n],t)}function Je(t,n){if(Ea(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ui(t))||Ut.test(t)||!Dt.test(t)||null!=n&&t in yu(n)}function He(t){var n=Pe(t),r=x[n];if("function"!=typeof r||!(n in sn.prototype))return!1;if(t===r)return!0;var e=zo(r);return!!e&&t===e[0]}function Qe(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||ku)}function Xe(t){return t==t&&!Fi(t)}function ti(t,n){return function(r){return null!=r&&r[t]===n&&(n!==U||t in yu(r))}}function ni(t,n,e){return n=ro(n===U?t.length-1:n,0),function(){for(var i=arguments,u=-1,o=ro(i.length-n,0),a=pu(o);++u<o;)a[u]=i[n+u];u=-1;for(var f=pu(n+1);++u<n;)f[u]=i[u];return f[n]=e(a),r(t,this,f)}}function ri(t,n){return n.length<2?t:Dn(t,Dr(n,0,-1))}function ei(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}function ii(t,n,r){var e=n+"";return No(t,function(t,n){var r=n.length;if(!r)return t;var e=r-1;return n[e]=(r>1?"& ":"")+n[e],n=n.join(r>2?", ":" "),t.replace(Zt,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return i(rt,(function(r){var e="_."+r[0];n&r[1]&&!f(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Yt);return n?n[1].split(Gt):[]}(e),r)))}function ui(t){var n=0,r=0;return function(){var e=io(),i=16-(e-r);if(r=e,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(U,arguments)}}function oi(t,n){var r=-1,e=t.length,i=e-1;for(n=n===U?e:n;++r<n;){var u=Br(r,i),o=t[u];t[u]=t[r],t[r]=o}return t.length=n,t}function ai(t){if("string"==typeof t||Ui(t))return t;var n=t+"";return"0"==n&&1/t==-J?"-0":n}function fi(t){if(null!=t){try{return Wu.call(t)}catch{}try{return t+""}catch{}}return""}function ci(t){if(t instanceof sn)return t.clone();var n=new ln(t.__wrapped__,t.__chain__);return n.__actions__=le(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function li(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:$i(r);return i<0&&(i=ro(e+i,0)),d(t,Ue(n,3),i)}function si(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return r!==U&&(i=$i(r),i=r<0?ro(e+i,0):eo(i,e-1)),d(t,Ue(n,3),i,!0)}function hi(t){return null!=t&&t.length?Fn(t,1):[]}function pi(t){return t&&t.length?t[0]:U}function gi(t){var n=null==t?0:t.length;return n?t[n-1]:U}function vi(t,n){return t&&t.length&&n&&n.length?Sr(t,n):t}function di(t){return null==t?t:ao.call(t)}function _i(t){if(!t||!t.length)return[];var n=0;return t=a(t,(function(t){if(Si(t))return n=ro(t.length,n),!0})),j(n,(function(n){return l(t,b(n))}))}function yi(t,n){if(!t||!t.length)return[];var e=_i(t);return null==n?e:l(e,(function(t){return r(n,U,t)}))}function mi(t){var n=x(t);return n.__chain__=!0,n}function wi(t,n){return n(t)}function bi(t,n){return(Ea(t)?i:Wo)(t,Ue(n,3))}function xi(t,n){return(Ea(t)?u:Io)(t,Ue(n,3))}function Ai(t,n){return(Ea(t)?l:kr)(t,Ue(n,3))}function ki(t,n,r){return n=r?U:n,n=t&&null==n?t.length:n,Se(t,Y,U,U,U,U,n)}function ji(t,n){var r;if("function"!=typeof n)throw new bu(N);return t=$i(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=U),r}}function Wi(t,n,r){function e(n){var r=f,e=c;return f=c=U,g=n,s=t.apply(e,r)}function i(t){var r=t-p;return p===U||r>=n||r<0||d&&t-g>=l}function u(){var t=da();return i(t)?o(t):(h=Uo(u,function(t){var r=n-(t-p);return d?eo(r,l-(t-g)):r}(t)),U)}function o(t){return h=U,_&&f?e(t):(f=c=U,s)}function a(){var t=da(),r=i(t);if(f=arguments,c=this,p=t,r){if(h===U)return function(t){return g=t,h=Uo(u,n),v?e(t):s}(p);if(d)return Bo(h),h=Uo(u,n),e(p)}return h===U&&(h=Uo(u,n)),s}var f,c,l,s,h,p,g=0,v=!1,d=!1,_=!0;if("function"!=typeof t)throw new bu(N);return n=Vi(n)||0,Fi(r)&&(v=!!r.leading,l=(d="maxWait"in r)?ro(Vi(r.maxWait)||0,n):l,_="trailing"in r?!!r.trailing:_),a.cancel=function(){h!==U&&Bo(h),g=0,f=p=c=h=U},a.flush=function(){return h===U?s:o(da())},a}function Ii(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new bu(N);var r=function(){var e=arguments,i=n?n.apply(this,e):e[0],u=r.cache;if(u.has(i))return u.get(i);var o=t.apply(this,e);return r.cache=u.set(i,o)||u,o};return r.cache=new(Ii.Cache||gn),r}function Ei(t){if("function"!=typeof t)throw new bu(N);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function Ri(t,n){return t===n||t!=t&&n!=n}function Oi(t){return null!=t&&zi(t.length)&&!Bi(t)}function Si(t){return Ti(t)&&Oi(t)}function Ci(t){if(!Ti(t))return!1;var n=Kn(t);return n==at||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Pi(t)}function Bi(t){if(!Fi(t))return!1;var n=Kn(t);return n==ft||n==ct||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Li(t){return"number"==typeof t&&t==$i(t)}function zi(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=H}function Fi(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Ti(t){return null!=t&&"object"==typeof t}function Mi(t){return"number"==typeof t||Ti(t)&&Kn(t)==st}function Pi(t){if(!Ti(t)||Kn(t)!=ht)return!1;var n=Mu(t);if(null===n)return!0;var r=Iu.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&Wu.call(r)==Su}function Di(t){return"string"==typeof t||!Ea(t)&&Ti(t)&&Kn(t)==dt}function Ui(t){return"symbol"==typeof t||Ti(t)&&Kn(t)==_t}function Ni(t){if(!t)return[];if(Oi(t))return Di(t)?P(t):le(t);if(qu&&t[qu])return function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}(t[qu]());var n=Mo(t);return(n==lt?L:n==vt?T:tu)(t)}function qi(t){return t?(t=Vi(t))===J||t===-J?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function $i(t){var n=qi(t),r=n%1;return n==n?r?n-r:n:0}function Ki(t){return t?En($i(t),0,X):0}function Vi(t){if("number"==typeof t)return t;if(Ui(t))return Q;if(Fi(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Fi(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=W(t);var r=rn.test(t);return r||un.test(t)?Xn(t.slice(2),r?2:8):nn.test(t)?Q:+t}function Zi(t){return se(t,Qi(t))}function Yi(t){return null==t?"":Vr(t)}function Gi(t,n,r){var e=null==t?U:Dn(t,n);return e===U?r:e}function Ji(t,n){return null!=t&&Ke(t,n,nr)}function Hi(t){return Oi(t)?_n(t):br(t)}function Qi(t){return Oi(t)?_n(t,!0):xr(t)}function Xi(t,n){if(null==t)return{};var r=l(Me(t),(function(t){return[t]}));return n=Ue(n),Or(t,r,(function(t,r){return n(t,r[0])}))}function tu(t){return null==t?[]:E(t,Hi(t))}function nu(t){return ff(Yi(t).toLowerCase())}function ru(t){return(t=Yi(t))&&t.replace(an,vr).replace(Nn,"")}function eu(t,n,r){return t=Yi(t),(n=r?U:n)===U?function(t){return Vn.test(t)}(t)?function(t){return t.match($n)||[]}(t):function(t){return t.match(Jt)||[]}(t):t.match(n)||[]}function iu(t){return function(){return t}}function uu(t){return t}function ou(t){return wr("function"==typeof t?t:Rn(t,1))}function au(t,n,r){var e=Hi(n),u=Pn(n,e);null!=r||Fi(n)&&(u.length||!e.length)||(r=n,n=t,t=this,u=Pn(n,Hi(n)));var o=!(Fi(r)&&"chain"in r&&!r.chain),a=Bi(t);return i(u,(function(r){var e=n[r];t[r]=e,a&&(t.prototype[r]=function(){var n=this.__chain__;if(o||n){var r=t(this.__wrapped__);return(r.__actions__=le(this.__actions__)).push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,s([this.value()],arguments))})})),t}function fu(){}function cu(t){return Je(t)?b(ai(t)):function(t){return function(n){return Dn(n,t)}}(t)}function lu(){return[]}function su(){return!1}var hu,pu=(n=null==n?rr:yr.defaults(rr.Object(),n,yr.pick(rr,Zn))).Array,gu=n.Date,vu=n.Error,du=n.Function,_u=n.Math,yu=n.Object,mu=n.RegExp,wu=n.String,bu=n.TypeError,xu=pu.prototype,Au=du.prototype,ku=yu.prototype,ju=n["__core-js_shared__"],Wu=Au.toString,Iu=ku.hasOwnProperty,Eu=0,Ru=(hu=/[^.]+$/.exec(ju&&ju.keys&&ju.keys.IE_PROTO||""))?"Symbol(src)_1."+hu:"",Ou=ku.toString,Su=Wu.call(yu),Cu=rr._,Bu=mu("^"+Wu.call(Iu).replace(qt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lu=ur?n.Buffer:U,zu=n.Symbol,Fu=n.Uint8Array,Tu=Lu?Lu.allocUnsafe:U,Mu=z(yu.getPrototypeOf,yu),Pu=yu.create,Du=ku.propertyIsEnumerable,Uu=xu.splice,Nu=zu?zu.isConcatSpreadable:U,qu=zu?zu.iterator:U,$u=zu?zu.toStringTag:U,Ku=function(){try{var t=$e(yu,"defineProperty");return t({},"",{}),t}catch{}}(),Vu=n.clearTimeout!==rr.clearTimeout&&n.clearTimeout,Zu=gu&&gu.now!==rr.Date.now&&gu.now,Yu=n.setTimeout!==rr.setTimeout&&n.setTimeout,Gu=_u.ceil,Ju=_u.floor,Hu=yu.getOwnPropertySymbols,Qu=Lu?Lu.isBuffer:U,Xu=n.isFinite,to=xu.join,no=z(yu.keys,yu),ro=_u.max,eo=_u.min,io=gu.now,uo=n.parseInt,oo=_u.random,ao=xu.reverse,fo=$e(n,"DataView"),co=$e(n,"Map"),lo=$e(n,"Promise"),so=$e(n,"Set"),ho=$e(n,"WeakMap"),po=$e(yu,"create"),go=ho&&new ho,vo={},_o=fi(fo),yo=fi(co),mo=fi(lo),wo=fi(so),bo=fi(ho),xo=zu?zu.prototype:U,Ao=xo?xo.valueOf:U,ko=xo?xo.toString:U,jo=function(){function t(){}return function(n){if(!Fi(n))return{};if(Pu)return Pu(n);t.prototype=n;var r=new t;return t.prototype=U,r}}();x.templateSettings={escape:Tt,evaluate:Mt,interpolate:Pt,variable:"",imports:{_:x}},x.prototype=Vt.prototype,x.prototype.constructor=x,ln.prototype=jo(Vt.prototype),ln.prototype.constructor=ln,sn.prototype=jo(Vt.prototype),sn.prototype.constructor=sn,hn.prototype.clear=function(){this.__data__=po?po(null):{},this.size=0},hn.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},hn.prototype.get=function(t){var n=this.__data__;if(po){var r=n[t];return r===q?U:r}return Iu.call(n,t)?n[t]:U},hn.prototype.has=function(t){var n=this.__data__;return po?n[t]!==U:Iu.call(n,t)},hn.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=po&&n===U?q:n,this},pn.prototype.clear=function(){this.__data__=[],this.size=0},pn.prototype.delete=function(t){var n=this.__data__,r=An(n,t);return!(r<0||(r==n.length-1?n.pop():Uu.call(n,r,1),--this.size,0))},pn.prototype.get=function(t){var n=this.__data__,r=An(n,t);return r<0?U:n[r][1]},pn.prototype.has=function(t){return An(this.__data__,t)>-1},pn.prototype.set=function(t,n){var r=this.__data__,e=An(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this},gn.prototype.clear=function(){this.size=0,this.__data__={hash:new hn,map:new(co||pn),string:new hn}},gn.prototype.delete=function(t){var n=Ne(this,t).delete(t);return this.size-=n?1:0,n},gn.prototype.get=function(t){return Ne(this,t).get(t)},gn.prototype.has=function(t){return Ne(this,t).has(t)},gn.prototype.set=function(t,n){var r=Ne(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this},vn.prototype.add=vn.prototype.push=function(t){return this.__data__.set(t,q),this},vn.prototype.has=function(t){return this.__data__.has(t)},dn.prototype.clear=function(){this.__data__=new pn,this.size=0},dn.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},dn.prototype.get=function(t){return this.__data__.get(t)},dn.prototype.has=function(t){return this.__data__.has(t)},dn.prototype.set=function(t,n){var r=this.__data__;if(r instanceof pn){var e=r.__data__;if(!co||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new gn(e)}return r.set(t,n),this.size=r.size,this};var Wo=ge(Tn),Io=ge(Mn,!0),Eo=ve(),Ro=ve(!0),Oo=go?function(t,n){return go.set(t,n),t}:uu,So=Ku?function(t,n){return Ku(t,"toString",{configurable:!0,enumerable:!1,value:iu(n),writable:!0})}:uu,Co=zr,Bo=Vu||function(t){return rr.clearTimeout(t)},Lo=so&&1/T(new so([,-0]))[1]==J?function(t){return new so(t)}:fu,zo=go?function(t){return go.get(t)}:fu,Fo=Hu?function(t){return null==t?[]:(t=yu(t),a(Hu(t),(function(n){return Du.call(t,n)})))}:lu,To=Hu?function(t){for(var n=[];t;)s(n,Fo(t)),t=Mu(t);return n}:lu,Mo=Kn;(fo&&Mo(new fo(new ArrayBuffer(1)))!=wt||co&&Mo(new co)!=lt||lo&&Mo(lo.resolve())!=pt||so&&Mo(new so)!=vt||ho&&Mo(new ho)!=yt)&&(Mo=function(t){var n=Kn(t),r=n==ht?t.constructor:U,e=r?fi(r):"";if(e)switch(e){case _o:return wt;case yo:return lt;case mo:return pt;case wo:return vt;case bo:return yt}return n});var Po=ju?Bi:su,Do=ui(Oo),Uo=Yu||function(t,n){return rr.setTimeout(t,n)},No=ui(So),qo=function(t){var n=Ii(t,(function(t){return 500===r.size&&r.clear(),t})),r=n.cache;return n}((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(Nt,(function(t,r,e,i){n.push(e?i.replace(Qt,"$1"):r||t)})),n})),$o=zr((function(t,n){return Si(t)?Cn(t,Fn(n,1,Si,!0)):[]})),Ko=zr((function(t,n){var r=gi(n);return Si(r)&&(r=U),Si(t)?Cn(t,Fn(n,1,Si,!0),Ue(r,2)):[]})),Vo=zr((function(t,n){var r=gi(n);return Si(r)&&(r=U),Si(t)?Cn(t,Fn(n,1,Si,!0),U,r):[]})),Zo=zr((function(t){var n=l(t,te);return n.length&&n[0]===t[0]?er(n):[]})),Yo=zr((function(t){var n=gi(t),r=l(t,te);return n===gi(r)?n=U:r.pop(),r.length&&r[0]===t[0]?er(r,Ue(n,2)):[]})),Go=zr((function(t){var n=gi(t),r=l(t,te);return(n="function"==typeof n?n:U)&&r.pop(),r.length&&r[0]===t[0]?er(r,U,n):[]})),Jo=zr(vi),Ho=Fe((function(t,n){var r=null==t?0:t.length,e=In(t,n);return Cr(t,l(n,(function(t){return Ye(t,r)?+t:t})).sort(ae)),e})),Qo=zr((function(t){return Zr(Fn(t,1,Si,!0))})),Xo=zr((function(t){var n=gi(t);return Si(n)&&(n=U),Zr(Fn(t,1,Si,!0),Ue(n,2))})),ta=zr((function(t){var n=gi(t);return n="function"==typeof n?n:U,Zr(Fn(t,1,Si,!0),U,n)})),na=zr((function(t,n){return Si(t)?Cn(t,n):[]})),ra=zr((function(t){return Qr(a(t,Si))})),ea=zr((function(t){var n=gi(t);return Si(n)&&(n=U),Qr(a(t,Si),Ue(n,2))})),ia=zr((function(t){var n=gi(t);return n="function"==typeof n?n:U,Qr(a(t,Si),U,n)})),ua=zr(_i),oa=zr((function(t){var n=t.length,r=n>1?t[n-1]:U;return r="function"==typeof r?(t.pop(),r):U,yi(t,r)})),aa=Fe((function(t){var n=t.length,r=n?t[0]:0,e=this.__wrapped__,i=function(n){return In(n,t)};return!(n>1||this.__actions__.length)&&e instanceof sn&&Ye(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:wi,args:[i],thisArg:U}),new ln(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(U),t}))):this.thru(i)})),fa=he((function(t,n,r){Iu.call(t,r)?++t[r]:Wn(t,r,1)})),ca=me(li),la=me(si),sa=he((function(t,n,r){Iu.call(t,r)?t[r].push(n):Wn(t,r,[n])})),ha=zr((function(t,n,e){var i=-1,u="function"==typeof n,o=Oi(t)?pu(t.length):[];return Wo(t,(function(t){o[++i]=u?r(n,t,e):ir(t,n,e)})),o})),pa=he((function(t,n,r){Wn(t,r,n)})),ga=he((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),va=zr((function(t,n){if(null==t)return[];var r=n.length;return r>1&&Ge(t,n[0],n[1])?n=[]:r>2&&Ge(n[0],n[1],n[2])&&(n=[n[0]]),Rr(t,Fn(n,1),[])})),da=Zu||function(){return rr.Date.now()},_a=zr((function(t,n,r){var e=1;if(r.length){var i=F(r,De(_a));e|=V}return Se(t,e,n,r,i)})),ya=zr((function(t,n,r){var e=3;if(r.length){var i=F(r,De(ya));e|=V}return Se(n,e,t,r,i)})),ma=zr((function(t,n){return Sn(t,1,n)})),wa=zr((function(t,n,r){return Sn(t,Vi(n)||0,r)}));Ii.Cache=gn;var ba=Co((function(t,n){var e=(n=1==n.length&&Ea(n[0])?l(n[0],I(Ue())):l(Fn(n,1),I(Ue()))).length;return zr((function(i){for(var u=-1,o=eo(i.length,e);++u<o;)i[u]=n[u].call(this,i[u]);return r(t,this,i)}))})),xa=zr((function(t,n){return Se(t,V,U,n,F(n,De(xa)))})),Aa=zr((function(t,n){return Se(t,Z,U,n,F(n,De(Aa)))})),ka=Fe((function(t,n){return Se(t,G,U,U,U,n)})),ja=Ie(Hn),Wa=Ie((function(t,n){return t>=n})),Ia=or(function(){return arguments}())?or:function(t){return Ti(t)&&Iu.call(t,"callee")&&!Du.call(t,"callee")},Ea=pu.isArray,Ra=fr?I(fr):function(t){return Ti(t)&&Kn(t)==mt},Oa=Qu||su,Sa=cr?I(cr):function(t){return Ti(t)&&Kn(t)==ot},Ca=lr?I(lr):function(t){return Ti(t)&&Mo(t)==lt},Ba=sr?I(sr):function(t){return Ti(t)&&Kn(t)==gt},La=hr?I(hr):function(t){return Ti(t)&&Mo(t)==vt},za=pr?I(pr):function(t){return Ti(t)&&zi(t.length)&&!!Gn[Kn(t)]},Fa=Ie(Ar),Ta=Ie((function(t,n){return t<=n})),Ma=pe((function(t,n){if(Qe(n)||Oi(n))return se(n,Hi(n),t),U;for(var r in n)Iu.call(n,r)&&xn(t,r,n[r])})),Pa=pe((function(t,n){se(n,Qi(n),t)})),Da=pe((function(t,n,r,e){se(n,Qi(n),t,e)})),Ua=pe((function(t,n,r,e){se(n,Hi(n),t,e)})),Na=Fe(In),qa=zr((function(t,n){t=yu(t);var r=-1,e=n.length,i=e>2?n[2]:U;for(i&&Ge(n[0],n[1],i)&&(e=1);++r<e;)for(var u=n[r],o=Qi(u),a=-1,f=o.length;++a<f;){var c=o[a],l=t[c];(l===U||Ri(l,ku[c])&&!Iu.call(t,c))&&(t[c]=u[c])}return t})),$a=zr((function(t){return t.push(U,Be),r(Ga,U,t)})),Ka=xe((function(t,n,r){null!=n&&"function"!=typeof n.toString&&(n=Ou.call(n)),t[n]=r}),iu(uu)),Va=xe((function(t,n,r){null!=n&&"function"!=typeof n.toString&&(n=Ou.call(n)),Iu.call(t,n)?t[n].push(r):t[n]=[r]}),Ue),Za=zr(ir),Ya=pe((function(t,n,r){Ir(t,n,r)})),Ga=pe((function(t,n,r,e){Ir(t,n,r,e)})),Ja=Fe((function(t,n){var r={};if(null==t)return r;var e=!1;n=l(n,(function(n){return n=re(n,t),e||(e=n.length>1),n})),se(t,Me(t),r),e&&(r=Rn(r,7,Le));for(var i=n.length;i--;)Yr(r,n[i]);return r})),Ha=Fe((function(t,n){return null==t?{}:function(t,n){return Or(t,n,(function(n,r){return Ji(t,r)}))}(t,n)})),Qa=Oe(Hi),Xa=Oe(Qi),tf=_e((function(t,n,r){return n=n.toLowerCase(),t+(r?nu(n):n)})),nf=_e((function(t,n,r){return t+(r?"-":"")+n.toLowerCase()})),rf=_e((function(t,n,r){return t+(r?" ":"")+n.toLowerCase()})),ef=de("toLowerCase"),uf=_e((function(t,n,r){return t+(r?"_":"")+n.toLowerCase()})),of=_e((function(t,n,r){return t+(r?" ":"")+ff(n)})),af=_e((function(t,n,r){return t+(r?" ":"")+n.toUpperCase()})),ff=de("toUpperCase"),cf=zr((function(t,n){try{return r(t,U,n)}catch(t){return Ci(t)?t:new vu(t)}})),lf=Fe((function(t,n){return i(n,(function(n){n=ai(n),Wn(t,n,_a(t[n],t))})),t})),sf=we(),hf=we(!0),pf=zr((function(t,n){return function(r){return ir(r,t,n)}})),gf=zr((function(t,n){return function(r){return ir(t,r,n)}})),vf=ke(l),df=ke(o),_f=ke(g),yf=We(),mf=We(!0),wf=Ae((function(t,n){return t+n}),0),bf=Re("ceil"),xf=Ae((function(t,n){return t/n}),1),Af=Re("floor"),kf=Ae((function(t,n){return t*n}),1),jf=Re("round"),Wf=Ae((function(t,n){return t-n}),0);return x.after=function(t,n){if("function"!=typeof n)throw new bu(N);return t=$i(t),function(){if(--t<1)return n.apply(this,arguments)}},x.ary=ki,x.assign=Ma,x.assignIn=Pa,x.assignInWith=Da,x.assignWith=Ua,x.at=Na,x.before=ji,x.bind=_a,x.bindAll=lf,x.bindKey=ya,x.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ea(t)?t:[t]},x.chain=mi,x.chunk=function(t,n,r){n=(r?Ge(t,n,r):n===U)?1:ro($i(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var i=0,u=0,o=pu(Gu(e/n));i<e;)o[u++]=Dr(t,i,i+=n);return o},x.compact=function(t){for(var n=-1,r=null==t?0:t.length,e=0,i=[];++n<r;){var u=t[n];u&&(i[e++]=u)}return i},x.concat=function(){var t=arguments.length;if(!t)return[];for(var n=pu(t-1),r=arguments[0],e=t;e--;)n[e-1]=arguments[e];return s(Ea(r)?le(r):[r],Fn(n,1))},x.cond=function(t){var n=null==t?0:t.length,e=Ue();return t=n?l(t,(function(t){if("function"!=typeof t[1])throw new bu(N);return[e(t[0]),t[1]]})):[],zr((function(e){for(var i=-1;++i<n;){var u=t[i];if(r(u[0],this,e))return r(u[1],this,e)}}))},x.conforms=function(t){return function(t){var n=Hi(t);return function(r){return On(r,t,n)}}(Rn(t,1))},x.constant=iu,x.countBy=fa,x.create=function(t,n){var r=jo(t);return null==n?r:jn(r,n)},x.curry=function t(n,r,e){var i=Se(n,8,U,U,U,U,U,r=e?U:r);return i.placeholder=t.placeholder,i},x.curryRight=function t(n,r,e){var i=Se(n,K,U,U,U,U,U,r=e?U:r);return i.placeholder=t.placeholder,i},x.debounce=Wi,x.defaults=qa,x.defaultsDeep=$a,x.defer=ma,x.delay=wa,x.difference=$o,x.differenceBy=Ko,x.differenceWith=Vo,x.drop=function(t,n,r){var e=null==t?0:t.length;return e?Dr(t,(n=r||n===U?1:$i(n))<0?0:n,e):[]},x.dropRight=function(t,n,r){var e=null==t?0:t.length;return e?Dr(t,0,(n=e-(n=r||n===U?1:$i(n)))<0?0:n):[]},x.dropRightWhile=function(t,n){return t&&t.length?Jr(t,Ue(n,3),!0,!0):[]},x.dropWhile=function(t,n){return t&&t.length?Jr(t,Ue(n,3),!0):[]},x.fill=function(t,n,r,e){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&Ge(t,n,r)&&(r=0,e=i),function(t,n,r,e){var i=t.length;for((r=$i(r))<0&&(r=-r>i?0:i+r),(e=e===U||e>i?i:$i(e))<0&&(e+=i),e=r>e?0:Ki(e);r<e;)t[r++]=n;return t}(t,n,r,e)):[]},x.filter=function(t,n){return(Ea(t)?a:zn)(t,Ue(n,3))},x.flatMap=function(t,n){return Fn(Ai(t,n),1)},x.flatMapDeep=function(t,n){return Fn(Ai(t,n),J)},x.flatMapDepth=function(t,n,r){return r=r===U?1:$i(r),Fn(Ai(t,n),r)},x.flatten=hi,x.flattenDeep=function(t){return null!=t&&t.length?Fn(t,J):[]},x.flattenDepth=function(t,n){return null!=t&&t.length?Fn(t,n=n===U?1:$i(n)):[]},x.flip=function(t){return Se(t,512)},x.flow=sf,x.flowRight=hf,x.fromPairs=function(t){for(var n=-1,r=null==t?0:t.length,e={};++n<r;){var i=t[n];e[i[0]]=i[1]}return e},x.functions=function(t){return null==t?[]:Pn(t,Hi(t))},x.functionsIn=function(t){return null==t?[]:Pn(t,Qi(t))},x.groupBy=sa,x.initial=function(t){return null!=t&&t.length?Dr(t,0,-1):[]},x.intersection=Zo,x.intersectionBy=Yo,x.intersectionWith=Go,x.invert=Ka,x.invertBy=Va,x.invokeMap=ha,x.iteratee=ou,x.keyBy=pa,x.keys=Hi,x.keysIn=Qi,x.map=Ai,x.mapKeys=function(t,n){var r={};return n=Ue(n,3),Tn(t,(function(t,e,i){Wn(r,n(t,e,i),t)})),r},x.mapValues=function(t,n){var r={};return n=Ue(n,3),Tn(t,(function(t,e,i){Wn(r,e,n(t,e,i))})),r},x.matches=function(t){return jr(Rn(t,1))},x.matchesProperty=function(t,n){return Wr(t,Rn(n,1))},x.memoize=Ii,x.merge=Ya,x.mergeWith=Ga,x.method=pf,x.methodOf=gf,x.mixin=au,x.negate=Ei,x.nthArg=function(t){return t=$i(t),zr((function(n){return Er(n,t)}))},x.omit=Ja,x.omitBy=function(t,n){return Xi(t,Ei(Ue(n)))},x.once=function(t){return ji(2,t)},x.orderBy=function(t,n,r,e){return null==t?[]:(Ea(n)||(n=null==n?[]:[n]),Ea(r=e?U:r)||(r=null==r?[]:[r]),Rr(t,n,r))},x.over=vf,x.overArgs=ba,x.overEvery=df,x.overSome=_f,x.partial=xa,x.partialRight=Aa,x.partition=ga,x.pick=Ha,x.pickBy=Xi,x.property=cu,x.propertyOf=function(t){return function(n){return null==t?U:Dn(t,n)}},x.pull=Jo,x.pullAll=vi,x.pullAllBy=function(t,n,r){return t&&t.length&&n&&n.length?Sr(t,n,Ue(r,2)):t},x.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?Sr(t,n,U,r):t},x.pullAt=Ho,x.range=yf,x.rangeRight=mf,x.rearg=ka,x.reject=function(t,n){return(Ea(t)?a:zn)(t,Ei(Ue(n,3)))},x.remove=function(t,n){var r=[];if(!t||!t.length)return r;var e=-1,i=[],u=t.length;for(n=Ue(n,3);++e<u;){var o=t[e];n(o,e,t)&&(r.push(o),i.push(e))}return Cr(t,i),r},x.rest=function(t,n){if("function"!=typeof t)throw new bu(N);return zr(t,n=n===U?n:$i(n))},x.reverse=di,x.sampleSize=function(t,n,r){return n=(r?Ge(t,n,r):n===U)?1:$i(n),(Ea(t)?mn:Tr)(t,n)},x.set=function(t,n,r){return null==t?t:Mr(t,n,r)},x.setWith=function(t,n,r,e){return e="function"==typeof e?e:U,null==t?t:Mr(t,n,r,e)},x.shuffle=function(t){return(Ea(t)?wn:Pr)(t)},x.slice=function(t,n,r){var e=null==t?0:t.length;return e?(r&&"number"!=typeof r&&Ge(t,n,r)?(n=0,r=e):(n=null==n?0:$i(n),r=r===U?e:$i(r)),Dr(t,n,r)):[]},x.sortBy=va,x.sortedUniq=function(t){return t&&t.length?$r(t):[]},x.sortedUniqBy=function(t,n){return t&&t.length?$r(t,Ue(n,2)):[]},x.split=function(t,n,r){return r&&"number"!=typeof r&&Ge(t,n,r)&&(n=r=U),(r=r===U?X:r>>>0)?(t=Yi(t))&&("string"==typeof n||null!=n&&!Ba(n))&&!(n=Vr(n))&&B(t)?ee(P(t),0,r):t.split(n,r):[]},x.spread=function(t,n){if("function"!=typeof t)throw new bu(N);return n=null==n?0:ro($i(n),0),zr((function(e){var i=e[n],u=ee(e,0,n);return i&&s(u,i),r(t,this,u)}))},x.tail=function(t){var n=null==t?0:t.length;return n?Dr(t,1,n):[]},x.take=function(t,n,r){return t&&t.length?Dr(t,0,(n=r||n===U?1:$i(n))<0?0:n):[]},x.takeRight=function(t,n,r){var e=null==t?0:t.length;return e?Dr(t,(n=e-(n=r||n===U?1:$i(n)))<0?0:n,e):[]},x.takeRightWhile=function(t,n){return t&&t.length?Jr(t,Ue(n,3),!1,!0):[]},x.takeWhile=function(t,n){return t&&t.length?Jr(t,Ue(n,3)):[]},x.tap=function(t,n){return n(t),t},x.throttle=function(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new bu(N);return Fi(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),Wi(t,n,{leading:e,maxWait:n,trailing:i})},x.thru=wi,x.toArray=Ni,x.toPairs=Qa,x.toPairsIn=Xa,x.toPath=function(t){return Ea(t)?l(t,ai):Ui(t)?[t]:le(qo(Yi(t)))},x.toPlainObject=Zi,x.transform=function(t,n,r){var e=Ea(t),u=e||Oa(t)||za(t);if(n=Ue(n,4),null==r){var o=t&&t.constructor;r=u?e?new o:[]:Fi(t)&&Bi(o)?jo(Mu(t)):{}}return(u?i:Tn)(t,(function(t,e,i){return n(r,t,e,i)})),r},x.unary=function(t){return ki(t,1)},x.union=Qo,x.unionBy=Xo,x.unionWith=ta,x.uniq=function(t){return t&&t.length?Zr(t):[]},x.uniqBy=function(t,n){return t&&t.length?Zr(t,Ue(n,2)):[]},x.uniqWith=function(t,n){return n="function"==typeof n?n:U,t&&t.length?Zr(t,U,n):[]},x.unset=function(t,n){return null==t||Yr(t,n)},x.unzip=_i,x.unzipWith=yi,x.update=function(t,n,r){return null==t?t:Gr(t,n,ne(r))},x.updateWith=function(t,n,r,e){return e="function"==typeof e?e:U,null==t?t:Gr(t,n,ne(r),e)},x.values=tu,x.valuesIn=function(t){return null==t?[]:E(t,Qi(t))},x.without=na,x.words=eu,x.wrap=function(t,n){return xa(ne(n),t)},x.xor=ra,x.xorBy=ea,x.xorWith=ia,x.zip=ua,x.zipObject=function(t,n){return Xr(t||[],n||[],xn)},x.zipObjectDeep=function(t,n){return Xr(t||[],n||[],Mr)},x.zipWith=oa,x.entries=Qa,x.entriesIn=Xa,x.extend=Pa,x.extendWith=Da,au(x,x),x.add=wf,x.attempt=cf,x.camelCase=tf,x.capitalize=nu,x.ceil=bf,x.clamp=function(t,n,r){return r===U&&(r=n,n=U),r!==U&&(r=(r=Vi(r))==r?r:0),n!==U&&(n=(n=Vi(n))==n?n:0),En(Vi(t),n,r)},x.clone=function(t){return Rn(t,4)},x.cloneDeep=function(t){return Rn(t,5)},x.cloneDeepWith=function(t,n){return Rn(t,5,n="function"==typeof n?n:U)},x.cloneWith=function(t,n){return Rn(t,4,n="function"==typeof n?n:U)},x.conformsTo=function(t,n){return null==n||On(t,n,Hi(n))},x.deburr=ru,x.defaultTo=function(t,n){return null==t||t!=t?n:t},x.divide=xf,x.endsWith=function(t,n,r){t=Yi(t),n=Vr(n);var e=t.length,i=r=r===U?e:En($i(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},x.eq=Ri,x.escape=function(t){return(t=Yi(t))&&Ft.test(t)?t.replace(Lt,dr):t},x.escapeRegExp=function(t){return(t=Yi(t))&&$t.test(t)?t.replace(qt,"\\$&"):t},x.every=function(t,n,r){var e=Ea(t)?o:Bn;return r&&Ge(t,n,r)&&(n=U),e(t,Ue(n,3))},x.find=ca,x.findIndex=li,x.findKey=function(t,n){return v(t,Ue(n,3),Tn)},x.findLast=la,x.findLastIndex=si,x.findLastKey=function(t,n){return v(t,Ue(n,3),Mn)},x.floor=Af,x.forEach=bi,x.forEachRight=xi,x.forIn=function(t,n){return null==t?t:Eo(t,Ue(n,3),Qi)},x.forInRight=function(t,n){return null==t?t:Ro(t,Ue(n,3),Qi)},x.forOwn=function(t,n){return t&&Tn(t,Ue(n,3))},x.forOwnRight=function(t,n){return t&&Mn(t,Ue(n,3))},x.get=Gi,x.gt=ja,x.gte=Wa,x.has=function(t,n){return null!=t&&Ke(t,n,tr)},x.hasIn=Ji,x.head=pi,x.identity=uu,x.includes=function(t,n,r,e){t=Oi(t)?t:tu(t),r=r&&!e?$i(r):0;var i=t.length;return r<0&&(r=ro(i+r,0)),Di(t)?r<=i&&t.indexOf(n,r)>-1:!!i&&_(t,n,r)>-1},x.indexOf=function(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:$i(r);return i<0&&(i=ro(e+i,0)),_(t,n,i)},x.inRange=function(t,n,r){return n=qi(n),r===U?(r=n,n=0):r=qi(r),function(t,n,r){return t>=eo(n,r)&&t<ro(n,r)}(t=Vi(t),n,r)},x.invoke=Za,x.isArguments=Ia,x.isArray=Ea,x.isArrayBuffer=Ra,x.isArrayLike=Oi,x.isArrayLikeObject=Si,x.isBoolean=function(t){return!0===t||!1===t||Ti(t)&&Kn(t)==ut},x.isBuffer=Oa,x.isDate=Sa,x.isElement=function(t){return Ti(t)&&1===t.nodeType&&!Pi(t)},x.isEmpty=function(t){if(null==t)return!0;if(Oi(t)&&(Ea(t)||"string"==typeof t||"function"==typeof t.splice||Oa(t)||za(t)||Ia(t)))return!t.length;var n=Mo(t);if(n==lt||n==vt)return!t.size;if(Qe(t))return!br(t).length;for(var r in t)if(Iu.call(t,r))return!1;return!0},x.isEqual=function(t,n){return ar(t,n)},x.isEqualWith=function(t,n,r){var e=(r="function"==typeof r?r:U)?r(t,n):U;return e===U?ar(t,n,U,r):!!e},x.isError=Ci,x.isFinite=function(t){return"number"==typeof t&&Xu(t)},x.isFunction=Bi,x.isInteger=Li,x.isLength=zi,x.isMap=Ca,x.isMatch=function(t,n){return t===n||gr(t,n,qe(n))},x.isMatchWith=function(t,n,r){return r="function"==typeof r?r:U,gr(t,n,qe(n),r)},x.isNaN=function(t){return Mi(t)&&t!=+t},x.isNative=function(t){if(Po(t))throw new vu("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return mr(t)},x.isNil=function(t){return null==t},x.isNull=function(t){return null===t},x.isNumber=Mi,x.isObject=Fi,x.isObjectLike=Ti,x.isPlainObject=Pi,x.isRegExp=Ba,x.isSafeInteger=function(t){return Li(t)&&t>=-H&&t<=H},x.isSet=La,x.isString=Di,x.isSymbol=Ui,x.isTypedArray=za,x.isUndefined=function(t){return t===U},x.isWeakMap=function(t){return Ti(t)&&Mo(t)==yt},x.isWeakSet=function(t){return Ti(t)&&"[object WeakSet]"==Kn(t)},x.join=function(t,n){return null==t?"":to.call(t,n)},x.kebabCase=nf,x.last=gi,x.lastIndexOf=function(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e;return r!==U&&(i=(i=$i(r))<0?ro(e+i,0):eo(i,e-1)),n==n?function(t,n,r){for(var e=r+1;e--;)if(t[e]===n)return e;return e}(t,n,i):d(t,m,i,!0)},x.lowerCase=rf,x.lowerFirst=ef,x.lt=Fa,x.lte=Ta,x.max=function(t){return t&&t.length?Ln(t,uu,Hn):U},x.maxBy=function(t,n){return t&&t.length?Ln(t,Ue(n,2),Hn):U},x.mean=function(t){return w(t,uu)},x.meanBy=function(t,n){return w(t,Ue(n,2))},x.min=function(t){return t&&t.length?Ln(t,uu,Ar):U},x.minBy=function(t,n){return t&&t.length?Ln(t,Ue(n,2),Ar):U},x.stubArray=lu,x.stubFalse=su,x.stubObject=function(){return{}},x.stubString=function(){return""},x.stubTrue=function(){return!0},x.multiply=kf,x.nth=function(t,n){return t&&t.length?Er(t,$i(n)):U},x.noConflict=function(){return rr._===this&&(rr._=Cu),this},x.noop=fu,x.now=da,x.pad=function(t,n,r){t=Yi(t);var e=(n=$i(n))?M(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return je(Ju(i),r)+t+je(Gu(i),r)},x.padEnd=function(t,n,r){t=Yi(t);var e=(n=$i(n))?M(t):0;return n&&e<n?t+je(n-e,r):t},x.padStart=function(t,n,r){t=Yi(t);var e=(n=$i(n))?M(t):0;return n&&e<n?je(n-e,r)+t:t},x.parseInt=function(t,n,r){return r||null==n?n=0:n&&(n=+n),uo(Yi(t).replace(Kt,""),n||0)},x.random=function(t,n,r){if(r&&"boolean"!=typeof r&&Ge(t,n,r)&&(n=r=U),r===U&&("boolean"==typeof n?(r=n,n=U):"boolean"==typeof t&&(r=t,t=U)),t===U&&n===U?(t=0,n=1):(t=qi(t),n===U?(n=t,t=0):n=qi(n)),t>n){var e=t;t=n,n=e}if(r||t%1||n%1){var i=oo();return eo(t+i*(n-t+Qn("1e-"+((i+"").length-1))),n)}return Br(t,n)},x.reduce=function(t,n,r){var e=Ea(t)?h:A,i=arguments.length<3;return e(t,Ue(n,4),r,i,Wo)},x.reduceRight=function(t,n,r){var e=Ea(t)?p:A,i=arguments.length<3;return e(t,Ue(n,4),r,i,Io)},x.repeat=function(t,n,r){return n=(r?Ge(t,n,r):n===U)?1:$i(n),Lr(Yi(t),n)},x.replace=function(){var t=arguments,n=Yi(t[0]);return t.length<3?n:n.replace(t[1],t[2])},x.result=function(t,n,r){var e=-1,i=(n=re(n,t)).length;for(i||(i=1,t=U);++e<i;){var u=null==t?U:t[ai(n[e])];u===U&&(e=i,u=r),t=Bi(u)?u.call(t):u}return t},x.round=jf,x.runInContext=t,x.sample=function(t){return(Ea(t)?yn:Fr)(t)},x.size=function(t){if(null==t)return 0;if(Oi(t))return Di(t)?M(t):t.length;var n=Mo(t);return n==lt||n==vt?t.size:br(t).length},x.snakeCase=uf,x.some=function(t,n,r){var e=Ea(t)?g:Ur;return r&&Ge(t,n,r)&&(n=U),e(t,Ue(n,3))},x.sortedIndex=function(t,n){return Nr(t,n)},x.sortedIndexBy=function(t,n,r){return qr(t,n,Ue(r,2))},x.sortedIndexOf=function(t,n){var r=null==t?0:t.length;if(r){var e=Nr(t,n);if(e<r&&Ri(t[e],n))return e}return-1},x.sortedLastIndex=function(t,n){return Nr(t,n,!0)},x.sortedLastIndexBy=function(t,n,r){return qr(t,n,Ue(r,2),!0)},x.sortedLastIndexOf=function(t,n){if(null!=t&&t.length){var r=Nr(t,n,!0)-1;if(Ri(t[r],n))return r}return-1},x.startCase=of,x.startsWith=function(t,n,r){return t=Yi(t),r=null==r?0:En($i(r),0,t.length),n=Vr(n),t.slice(r,r+n.length)==n},x.subtract=Wf,x.sum=function(t){return t&&t.length?k(t,uu):0},x.sumBy=function(t,n){return t&&t.length?k(t,Ue(n,2)):0},x.template=function(t,n,r){var e=x.templateSettings;r&&Ge(t,n,r)&&(n=U),t=Yi(t),n=Da({},n,e,Ce);var i,u,o=Da({},n.imports,e.imports,Ce),a=Hi(o),f=E(o,a),c=0,l=n.interpolate||fn,s="__p += '",h=mu((n.escape||fn).source+"|"+l.source+"|"+(l===Pt?Xt:fn).source+"|"+(n.evaluate||fn).source+"|$","g"),p="//# sourceURL="+(Iu.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yn+"]")+"\n";t.replace(h,(function(n,r,e,o,a,f){return e||(e=o),s+=t.slice(c,f).replace(cn,C),r&&(i=!0,s+="' +\n__e("+r+") +\n'"),a&&(u=!0,s+="';\n"+a+";\n__p += '"),e&&(s+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),c=f+n.length,n})),s+="';\n";var g=Iu.call(n,"variable")&&n.variable;if(g){if(Ht.test(g))throw new vu("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(u?s.replace(Ot,""):s).replace(St,"$1").replace(Ct,"$1;"),s="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+s+"return __p\n}";var v=cf((function(){return du(a,p+"return "+s).apply(U,f)}));if(v.source=s,Ci(v))throw v;return v},x.times=function(t,n){if((t=$i(t))<1||t>H)return[];var r=X,e=eo(t,X);n=Ue(n),t-=X;for(var i=j(e,n);++r<t;)n(r);return i},x.toFinite=qi,x.toInteger=$i,x.toLength=Ki,x.toLower=function(t){return Yi(t).toLowerCase()},x.toNumber=Vi,x.toSafeInteger=function(t){return t?En($i(t),-H,H):0===t?t:0},x.toString=Yi,x.toUpper=function(t){return Yi(t).toUpperCase()},x.trim=function(t,n,r){if((t=Yi(t))&&(r||n===U))return W(t);if(!t||!(n=Vr(n)))return t;var e=P(t),i=P(n);return ee(e,O(e,i),S(e,i)+1).join("")},x.trimEnd=function(t,n,r){if((t=Yi(t))&&(r||n===U))return t.slice(0,D(t)+1);if(!t||!(n=Vr(n)))return t;var e=P(t);return ee(e,0,S(e,P(n))+1).join("")},x.trimStart=function(t,n,r){if((t=Yi(t))&&(r||n===U))return t.replace(Kt,"");if(!t||!(n=Vr(n)))return t;var e=P(t);return ee(e,O(e,P(n))).join("")},x.truncate=function(t,n){var r=30,e="...";if(Fi(n)){var i="separator"in n?n.separator:i;r="length"in n?$i(n.length):r,e="omission"in n?Vr(n.omission):e}var u=(t=Yi(t)).length;if(B(t)){var o=P(t);u=o.length}if(r>=u)return t;var a=r-M(e);if(a<1)return e;var f=o?ee(o,0,a).join(""):t.slice(0,a);if(i===U)return f+e;if(o&&(a+=f.length-a),Ba(i)){if(t.slice(a).search(i)){var c,l=f;for(i.global||(i=mu(i.source,Yi(tn.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var s=c.index;f=f.slice(0,s===U?a:s)}}else if(t.indexOf(Vr(i),a)!=a){var h=f.lastIndexOf(i);h>-1&&(f=f.slice(0,h))}return f+e},x.unescape=function(t){return(t=Yi(t))&&zt.test(t)?t.replace(Bt,_r):t},x.uniqueId=function(t){var n=++Eu;return Yi(t)+n},x.upperCase=af,x.upperFirst=ff,x.each=bi,x.eachRight=xi,x.first=pi,au(x,function(){var t={};return Tn(x,(function(n,r){Iu.call(x.prototype,r)||(t[r]=n)})),t}(),{chain:!1}),x.VERSION="4.17.21",i(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){x[t].placeholder=x})),i(["drop","take"],(function(t,n){sn.prototype[t]=function(r){r=r===U?1:ro($i(r),0);var e=this.__filtered__&&!n?new sn(this):this.clone();return e.__filtered__?e.__takeCount__=eo(r,e.__takeCount__):e.__views__.push({size:eo(r,X),type:t+(e.__dir__<0?"Right":"")}),e},sn.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),i(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;sn.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Ue(t,3),type:r}),n.__filtered__=n.__filtered__||e,n}})),i(["head","last"],(function(t,n){var r="take"+(n?"Right":"");sn.prototype[t]=function(){return this[r](1).value()[0]}})),i(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");sn.prototype[t]=function(){return this.__filtered__?new sn(this):this[r](1)}})),sn.prototype.compact=function(){return this.filter(uu)},sn.prototype.find=function(t){return this.filter(t).head()},sn.prototype.findLast=function(t){return this.reverse().find(t)},sn.prototype.invokeMap=zr((function(t,n){return"function"==typeof t?new sn(this):this.map((function(r){return ir(r,t,n)}))})),sn.prototype.reject=function(t){return this.filter(Ei(Ue(t)))},sn.prototype.slice=function(t,n){t=$i(t);var r=this;return r.__filtered__&&(t>0||n<0)?new sn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==U&&(r=(n=$i(n))<0?r.dropRight(-n):r.take(n-t)),r)},sn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},sn.prototype.toArray=function(){return this.take(X)},Tn(sn.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=x[e?"take"+("last"==n?"Right":""):n],u=e||/^find/.test(n);i&&(x.prototype[n]=function(){var n=this.__wrapped__,o=e?[1]:arguments,a=n instanceof sn,f=o[0],c=a||Ea(n),l=function(t){var n=i.apply(x,s([t],o));return e&&h?n[0]:n};c&&r&&"function"==typeof f&&1!=f.length&&(a=c=!1);var h=this.__chain__,p=!!this.__actions__.length,g=u&&!h,v=a&&!p;if(!u&&c){n=v?n:new sn(this);var d=t.apply(n,o);return d.__actions__.push({func:wi,args:[l],thisArg:U}),new ln(d,h)}return g&&v?t.apply(this,o):(d=this.thru(l),g?e?d.value()[0]:d.value():d)})})),i(["pop","push","shift","sort","splice","unshift"],(function(t){var n=xu[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);x.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(Ea(i)?i:[],t)}return this[r]((function(r){return n.apply(Ea(r)?r:[],t)}))}})),Tn(sn.prototype,(function(t,n){var r=x[n];if(r){var e=r.name+"";Iu.call(vo,e)||(vo[e]=[]),vo[e].push({name:n,func:r})}})),vo[be(U,2).name]=[{name:"wrapper",func:U}],sn.prototype.clone=function(){var t=new sn(this.__wrapped__);return t.__actions__=le(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=le(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=le(this.__views__),t},sn.prototype.reverse=function(){if(this.__filtered__){var t=new sn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},sn.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=Ea(t),e=n<0,i=r?t.length:0,u=function(t,n,r){for(var e=-1,i=r.length;++e<i;){var u=r[e],o=u.size;switch(u.type){case"drop":t+=o;break;case"dropRight":n-=o;break;case"take":n=eo(n,t+o);break;case"takeRight":t=ro(t,n-o)}}return{start:t,end:n}}(0,i,this.__views__),o=u.start,a=u.end,f=a-o,c=e?a:o-1,l=this.__iteratees__,s=l.length,h=0,p=eo(f,this.__takeCount__);if(!r||!e&&i==f&&p==f)return Hr(t,this.__actions__);var g=[];t:for(;f--&&h<p;){for(var v=-1,d=t[c+=n];++v<s;){var _=l[v],y=_.iteratee,m=_.type,w=y(d);if(2==m)d=w;else if(!w){if(1==m)continue t;break t}}g[h++]=d}return g},x.prototype.at=aa,x.prototype.chain=function(){return mi(this)},x.prototype.commit=function(){return new ln(this.value(),this.__chain__)},x.prototype.next=function(){this.__values__===U&&(this.__values__=Ni(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?U:this.__values__[this.__index__++]}},x.prototype.plant=function(t){for(var n,r=this;r instanceof Vt;){var e=ci(r);e.__index__=0,e.__values__=U,n?i.__wrapped__=e:n=e;var i=e;r=r.__wrapped__}return i.__wrapped__=t,n},x.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof sn){var n=t;return this.__actions__.length&&(n=new sn(this)),(n=n.reverse()).__actions__.push({func:wi,args:[di],thisArg:U}),new ln(n,this.__chain__)}return this.thru(di)},x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=function(){return Hr(this.__wrapped__,this.__actions__)},x.prototype.first=x.prototype.head,qu&&(x.prototype[qu]=function(){return this}),x}();ir?((ir.exports=yr)._=yr,er._=yr):rr._=yr}.call(Ug)),St.exports;var t,n}var Ka,fi,Ja,ci,Ya,li,Za,ai={};function Kg(){return Ka||(Ka=1,(t=ai).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"},t.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"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.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},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.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]},t.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}},t.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}},t.realToAlias=function(){var n=Object.prototype.hasOwnProperty,r=t.aliasToReal,e={};for(var i in r){var u=r[i];n.call(e,u)?e[u].push(i):e[u]=[i]}return e}(),t.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"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.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}),ai;var t}function Jg(){return Ja||(Ja=1,fi={}),fi}function Yg(){if(Ya)return ci;Ya=1;var t=Kg(),n=Jg(),r=Array.prototype.push;function e(t,n){return 2==n?function(n,r){return t(n,r)}:function(n){return t(n)}}function i(t){for(var n=t?t.length:0,r=Array(n);n--;)r[n]=t[n];return r}function u(t,n){return function(){var r=arguments.length;if(r){for(var e=Array(r);r--;)e[r]=arguments[r];var i=e[0]=n.apply(void 0,e);return t.apply(void 0,e),i}}}return ci=function o(a,f,c,l){var s="function"==typeof f,h=f===Object(f);if(h&&(l=c,c=f,f=void 0),null==c)throw new TypeError;l||(l={});var p=!("cap"in l)||l.cap,g=!("curry"in l)||l.curry,v=!("fixed"in l)||l.fixed,d=!("immutable"in l)||l.immutable,_=!("rearg"in l)||l.rearg,y=s?c:n,m="curry"in l&&l.curry,w="fixed"in l&&l.fixed,b="rearg"in l&&l.rearg,x=s?c.runInContext():void 0,A=s?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},k=A.ary,j=A.assign,W=A.clone,I=A.curry,E=A.forEach,R=A.isArray,O=A.isError,S=A.isFunction,C=A.isWeakMap,B=A.keys,L=A.rearg,z=A.toInteger,F=A.toPath,T=B(t.aryMethod),M={castArray:function(t){return function(){var n=arguments[0];return R(n)?t(i(n)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var n=arguments[1],r=t(arguments[0],n),i=r.length;return p&&"number"==typeof n?(n=n>2?n-2:1,i&&i<=n?r:e(r,n)):r}},mixin:function(t){return function(n){var r=this;if(!S(r))return t(r,Object(n));var e=[];return E(B(n),(function(t){S(n[t])&&e.push([t,r.prototype[t]])})),t(r,Object(n)),E(e,(function(t){var n=t[1];S(n)?r.prototype[t[0]]=n:delete r.prototype[t[0]]})),r}},nthArg:function(t){return function(n){var r=n<0?1:z(n)+1;return I(t(n),r)}},rearg:function(t){return function(n,r){var e=r?r.length:0;return I(t(n,r),e)}},runInContext:function(t){return function(n){return o(a,t(n),l)}}};function P(n,r){if(p){var i=t.iterateeRearg[n];if(i)return function(t,n){return $(t,(function(t){var r=n.length;return function(t,n){return 2==n?function(n,r){return t.apply(void 0,arguments)}:function(n){return t.apply(void 0,arguments)}}(L(e(t,r),n),r)}))}(r,i);var u=!s&&t.iterateeAry[n];if(u)return function(t,n){return $(t,(function(t){return"function"==typeof t?e(t,n):t}))}(r,u)}return r}function D(n,e,i){if(v&&(w||!t.skipFixed[n])){var u=t.methodSpread[n],o=u&&u.start;return void 0===o?k(e,i):function(t,n){return function(){for(var e=arguments.length,i=e-1,u=Array(e);e--;)u[e]=arguments[e];var o=u[n],a=u.slice(0,n);return o&&r.apply(a,o),n!=i&&r.apply(a,u.slice(n+1)),t.apply(this,a)}}(e,o)}return e}function U(n,r,e){return _&&e>1&&(b||!t.skipRearg[n])?L(r,t.methodRearg[n]||t.aryRearg[e]):r}function N(t,n){for(var r=-1,e=(n=F(n)).length,i=e-1,u=W(Object(t)),o=u;null!=o&&++r<e;){var a=n[r],f=o[a];null!=f&&!(S(f)||O(f)||C(f))&&(o[a]=W(r==i?f:Object(f))),o=o[a]}return u}function q(n,r){var e=t.aliasToReal[n]||n,i=t.remap[e]||e,u=l;return function(t){var n=s?x:A,a=s?x[i]:r,f=j(j({},u),t);return o(n,e,a,f)}}function $(t,n){return function(){var r=arguments.length;if(!r)return t();for(var e=Array(r);r--;)e[r]=arguments[r];var i=_?0:r-1;return e[i]=n(e[i]),t.apply(void 0,e)}}function K(n,r,e){var o,a=t.aliasToReal[n]||n,f=r,c=M[a];return c?f=c(r):d&&(t.mutate.array[a]?f=u(r,i):t.mutate.object[a]?f=u(r,function(t){return function(n){return t({},n)}}(r)):t.mutate.set[a]&&(f=u(r,N))),E(T,(function(n){return E(t.aryMethod[n],(function(r){if(a==r){var e=t.methodSpread[a],i=e&&e.afterRearg;return o=i?D(a,U(a,f,n),n):U(a,D(a,f,n),n),o=function(t,n,r){return m||g&&r>1?I(n,r):n}(0,o=P(a,o),n),!1}})),!o})),o||(o=f),o==r&&(o=m?I(o,1):function(){return r.apply(this,arguments)}),o.convert=q(a,r),o.placeholder=r.placeholder=e,o}if(!h)return K(f,c,y);var V=c,Z=[];return E(T,(function(n){E(t.aryMethod[n],(function(n){var r=V[t.remap[n]||n];r&&Z.push([n,K(n,r,V)])}))})),E(B(V),(function(t){var n=V[t];if("function"==typeof n){for(var r=Z.length;r--;)if(Z[r][0]==t)return;n.convert=q(t,n),Z.push([t,n])}})),E(Z,(function(t){V[t[0]]=t[1]})),V.convert=function(t){return V.runInContext.convert(t)(void 0)},V.placeholder=V,E(B(V),(function(n){E(t.realToAlias[n]||[],(function(t){V[t]=V[n]}))})),V},ci}function Zg(){if(Za)return li;Za=1;var t=$g().runInContext();return li=Yg()(t,t)}var Lt=Zg();const pi={400:{title:"",description:"You have no permission ..."},401:{title:"Unauthorized",description:"Your access is restricted. Please ensure you have the correct login details"},404:{title:"Oh no, bad luck!",description:"Looks like the page you were looking for has been removed. Just in case, please make sure to check your spelling."},user404:{title:"We could not find the user you were looking for",description:"Check the username and try one more time",links:[{text:"To the Wellsley account",link:"/account"},{text:"To account settings",link:"/account/settings"}]},page404:{title:"We could not find the page you were looking for",description:"Check the address and try one more time"},post404:{title:"We could not find the post you were looking for",description:"Check the address and try one more time"},403:{title:"",description:"Your session has been expired. Please re-login again."},440:{title:"",description:"You have reached maximum allowed number of concurrent sessions."},460:{title:"",description:"Please re-login again."},498:{title:"Expired",description:"The link was expired or invalid. Please try again."},500:{title:"Oops, something went wrong!",description:'We are already on it. Please try again later or contact us at <a href="mailto:support@wave.video">support@wave.video</a>'}},Vg=t=>{const{title:n,description:r,links:e}=t||{};return!!(n||r||e)},Gg=t=>Object.keys(pi).some((n=>n==t)),Bt=t=>pi[t]||pi[500],Va=t=>{var n,r;if(!t)return Bt(500).description;if(Lt.isString(t))return t;if("data"in t&&Lt.isString(t.data))return t.data;if("data"in t&&null!=(n=t.data)&&n.errorCode)return null==(r=t.data)?void 0:r.message;if("isUnhandledError"in t&&!t.isUnhandledError){const{status:n,data:r}=null==t?void 0:t.error;return(Lt.isString(r)?r:null==r?void 0:r.message)||Bt(n||500).description}return"message"in t&&t.message?t.message:"error"in t?t.error:"status"in t?Bt(t.status).description:void 0},Hg="data:image/svg+xml,%3csvg%20width='33'%20height='41'%20viewBox='0%200%2033%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M31.5%201.96817C16.0263%20-2.16393%201.10522%207.69272%201.10522%2017.1195C1.10522%2026.5897%2013.5526%2033.3672%2024.7349%2033.3672'%20stroke='%23E2E8F0'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cpath%20d='M18.7097%2024.4653C19.0081%2028.8324%2022.5093%2032.5599%2027.7506%2034.751C30.1263%2035.7443%2032.1733%2035.7395%2030.152%2033.6683C28.0252%2031.489%2022.4828%2034.5238%2020.4755%2035.5385C16.906%2037.3428%2011.1341%2039.0819%206.63159%2039.0819'%20stroke='%23E2E8F0'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",Qg=({linksList:t})=>pr.jsxs("div",{className:" relative text-slate-700",children:[pr.jsx("h5",{className:"text-sm",children:"Maybe try these instead"}),pr.jsx("img",{className:"absolute right-[100%] top-2 mr-1",src:Hg}),pr.jsx("div",{className:"mt-2",children:t.map((({text:t,link:n})=>pr.jsx("a",{className:"mr-6 text-lg underline",href:n,children:t},n)))})]}),Xg=(t="")=>{const n=/No route matches/gi.test(t);try{const t=Sg();n&&"PUSH"===t&&location.reload()}catch(t){hi.warn("useRoute404Refresh: ",t)}},rd=t=>{switch(!0){case Vg(t):return t;case Gg(t):return 500===t&&hi.error("ErrorPage: ",t),Bt(t);case t&&!!Va(t):return{title:Va(t)};default:return hi.error("ErrorPage: ",t),Bt(500)}},Ga=({error:t})=>{Xg(null==t?void 0:t.data);const{title:n,description:r,links:e}=rd(t);return console.trace("Error",t),pr.jsx("div",{className:"relative flex min-h-[100vh] items-center justify-center",children:pr.jsxs("div",{className:"absolute max-w-[580px] translate-y-[-10%]",children:[pr.jsx("img",{className:"mb-3",src:Ng}),n&&pr.jsx("h1",{className:"mb-2 text-lg font-semibold leading-normal text-slate-700",children:n}),r&&pr.jsx("p",{className:"mb-2 text-xl leading-normal text-slate-700",children:r}),null!=e&&e.length?pr.jsx(Qg,{linksList:e}):null]})})},fd=()=>{const t=Lg();return pr.jsxs(pr.Fragment,{children:[pr.jsx(zg,{}),pr.jsx(Ga,{error:t})]})},ed=Wg(null),si={didCatch:!1,error:null};class td extends kg{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=si}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(null!==t){for(var n,r,e=arguments.length,i=new Array(e),u=0;u<e;u++)i[u]=arguments[u];null===(n=(r=this.props).onReset)||void 0===n||n.call(r,{args:i,reason:"imperative-api"}),this.setState(si)}}componentDidCatch(t,n){var r,e;null===(r=(e=this.props).onError)||void 0===r||r.call(e,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:e}=this.props;var i,u;r&&null!==n.error&&nd(t.resetKeys,e)&&(null===(i=(u=this.props).onReset)||void 0===i||i.call(u,{next:e,prev:t.resetKeys,reason:"keys"}),this.setState(si))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:e}=this.props,{didCatch:i,error:u}=this.state;let o=t;if(i){const t={error:u,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof n)o=n(t);else if(r)o=Da(r,t);else{if(null!==e&&!Og(e))throw u;o=e}}return Da(ed.Provider,{value:{didCatch:i,error:u,resetErrorBoundary:this.resetErrorBoundary}},o)}}function nd(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==n.length||t.some(((t,r)=>!Object.is(t,n[r])))}const cd=()=>pr.jsx(td,{FallbackComponent:Ga,children:pr.jsx(Bg,{})}),ld=t=>{throw t},sd=t=>{var n,r,e;if(!t||Lt.isString(t))return null;if("data"in t&&null!=(n=t.data)&&n.errorCode)return null==(r=t.data)?void 0:r.errorCode;if("error"in t&&"object"==typeof t.error&&null!==t.error){const n=t.error;if(null!=(e=n.data)&&e.errorCode)return n.data.errorCode}return null},hd=t=>{if(!t||Lt.isString(t))return null;if("status"in t)return null==t?void 0:t.status;if("error"in t&&"object"==typeof t.error&&null!==t.error){const n=t.error;if(n.status)return n.status}return null};export{cd as ErrorBoundaryLayout,Ga as ErrorPage,fd as RouterErrorPage,Bt as getErrorByStatusCode,Va as getErrorMsg,sd as getServerApiErrorCode,hd as getServerStatusCode,ld as throwError};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wellesley/error-kit",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "license": "UNLICENSED",
5
5
  "main": "index.mjs",
6
6
  "files": [