@wellesley/error-kit 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +5 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var Lf,Pf,Ff,Bf,Io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pa={exports:{}},ti={},Fa={exports:{}},Ee={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -7,7 +7,7 @@ import{logErrorToSentry as Td}from"https://cdn.jsdelivr.net/npm/@wellesley/sentr
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/function
|
|
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"),o=Symbol.for("react.profiler"),i=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 o,i={},s=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)b.call(n,o)&&!w.hasOwnProperty(o)&&(i[o]=n[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:t,type:e,key:s,ref:a,props:i,_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,o,i,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=""===i?"."+I(u,0):i,v(s)?(o="",null!=n&&(o=n.replace(x,"$&/")+"/"),C(s,r,o,"",(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,o+(!s.key||u&&u.key===s.key?"":(""+s.key).replace(x,"$&/")+"/")+n)),r.push(s)),1;if(u=0,i=""===i?".":i+":",v(n))for(var c=0;c<n.length;c++){var l=i+I(a=n[c],c);u+=C(a,r,o,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,o,l=i+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=[],o=0;return C(t,r,"","",(function(t){return e.call(n,t,o++)})),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=o,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 o=h({},e.props),i=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&&(i=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in n)b.call(n,c)&&!w.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==u?u[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];o.children=u}return{$$typeof:t,type:e.type,key:i,ref:s,props:o,_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:i,_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
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,7 +16,7 @@ import{logErrorToSentry as Td}from"https://cdn.jsdelivr.net/npm/@wellesley/sentr
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/}function Md(){if(Ja)return $t;Ja=1;var t=uc(),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,c={},f=null,l=null;for(a in void 0!==o&&(f=""+o),void 0!==r.key&&(f=""+r.key),void 0!==r.ref&&(l=r.ref),r)e.call(r,a)&&!u.hasOwnProperty(a)&&(c[a]=r[a]);if(t&&t.defaultProps)for(a in r=t.defaultProps)void 0===c[a]&&(c[a]=r[a]);return{$$typeof:n,type:t,key:f,ref:l,props:c,_owner:i.current}}return $t.Fragment=r,$t.jsx=o,$t.jsxs=o,$t}function qd(){return Ya||(Ya=1,ai.exports=Md()),ai.exports}var De=qd();const Dd=()=>"object"!=typeof window,Za=["debug","info","warn","error"],Nd=(t,n)=>{const r=Za.indexOf(t);return Za.indexOf(n)>=r},$n=(t,n,r,...e)=>{Nd(n,t)&&console.log(`[${t}] ${r}`,...e)},$d=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),Vd=(t=!Dd()&&$d()||"warn")=>{let n=t;return{debug:(t,...r)=>$n("debug",n,t,...r),info:(t,...r)=>$n("info",n,t,...r),warn:(t,...r)=>$n("warn",n,t,...r),error:(t,...r)=>(Td(t,...r),$n("error",n,t,...r)),setLevel:t=>{n=t},getLevel:()=>n}},gi=Vd(),Kd="https://cdn.jsdelivr.net/npm/@wellesley/error-kit/ooopsIcon.svg?no-inline";var Ga,Vt={exports:{}},Jd=Vt.exports;
|
|
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,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={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)&&!i.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:o.current}}return ti.Fragment=n,ti.jsx=s,ti.jsxs=s,ti}function oE(){return Bf||(Bf=1,Pa.exports=iE()),Pa.exports}var St=oE();const Mu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,oi="8.48.0",ut=globalThis;function ts(t,e,n){const r=ut,o=r.__SENTRY__=r.__SENTRY__||{},i=o[oi]=o[oi]||{};return i[t]||(i[t]=e())}const bi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,sE="Sentry Logger ",jf=["debug","info","warn","error","log","assert","trace"],Uf={};function Ou(t){if(!("console"in ut))return t();const e=ut.console,n={},r=Object.keys(Uf);r.forEach((t=>{const r=Uf[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?jf.forEach((n=>{e[n]=(...e)=>{t&&Ou((()=>{ut.console[n](`${sE}[${n}]:`,...e)}))}})):jf.forEach((t=>{e[t]=()=>{}})),e}const ht=ts("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 Bo={},zf={};function Qd(t,e){Bo[t]=Bo[t]||[],Bo[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&&Bo[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||oi,e[oi]=e[oi]||{}}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 rs(t,Error)}}function Nu(t,e){return th.call(t)===`[object ${e}]`}function Wo(t){return Nu(t,"String")}function Lu(t){return Nu(t,"Object")}function cE(t){return typeof Event<"u"&&rs(t,Event)}function lE(t){return typeof Element<"u"&&rs(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 rs(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,o=[];let i=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&&i++<r&&(c=mE(n,l),!("html"===c||i>1&&s+o.length*u+c.length>=f));)o.push(c),s+=c.length,n=n.parentNode;return o.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 o=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(o&&o.length)o.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&Wo(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const i=["aria-label","type","name","title","alt"];for(const t of i){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function gE(){try{return rh.document.location.href}catch{return""}}function ja(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function _E(t,e,n=!1){return!!Wo(t)&&(fE(e)?e.test(t):!!Wo(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],o=n(r);"function"==typeof o&&nh(o,r);try{t[e]=o}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"&&rs(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 oh=1e3;function ns(){return Date.now()/oh}function EE(){const{performance:t}=ut;if(!t||!t.now)return ns;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/oh}const sh=EE(),bE=(()=>{const{performance:t}=ut;if(!t||!t.now)return;const e=36e5,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=o<e,s=t.timing&&t.timing.navigationStart,a="number"==typeof s?Math.abs(s+n-r):e;return i||a<e?o<=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 IE(t,e,n){const r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=""),i.type||(i.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,o;return this.then((e=>{o=!1,r=e,t&&t()}),(e=>{o=!0,r=e,t&&t()})).then((()=>{o?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 kE(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||sh(),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 is(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]=is(r[t],e[t],n-1));return r}const ou="_sentrySpan";function Yf(t,e){e?di(t,ou,e):delete t[ou]}function su(t){return t[ou]}const CE=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,Yf(t,su(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&&kE(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 Vr?[e.getScopeData(),e.getRequestSession()]:Lu(e)?[t,t.requestSession]:[],{tags:o,extra:i,user:s,contexts:a,level:u,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},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,Yf(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Gf()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:CE;if(n<=0)return this;const r={timestamp:ns(),...t},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(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:su(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=is(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 o=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:o,...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 Vr=Bu;function xE(){return ts("defaultCurrentScope",(()=>new Vr))}function RE(){return ts("defaultIsolationScope",(()=>new Vr))}class TE{constructor(t,e){let n,r;n=t||new Vr,r=e||new Vr,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(xE(),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 Vf(t){return wn().withScope((()=>t(wn().getIsolationScope())))}function OE(){return{withIsolationScope:Vf,withScope:AE,withSetScope:ME,withSetIsolationScope:(t,e)=>Vf(e),getCurrentScope:()=>wn().getScope(),getIsolationScope:()=>wn().getIsolationScope()}}function os(t){const e=Du(t);return e.acs?e.acs:OE()}function Mn(){return os(wi()).getCurrentScope()}function Ii(){return os(wi()).getIsolationScope()}function DE(){return ts("globalScope",(()=>new Vr))}function NE(...t){const e=os(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",jE="sentry.origin",UE=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&&(Wo(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 YE(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 Jf(t){return"number"==typeof t?Xf(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Xf(t.getTime()):sh()}function Xf(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(VE(t)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:u}=t;return Ht({span_id:e,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:Jf(o),timestamp:Jf(s)||void 0,status:XE(u),op:r[BE],origin:r[jE],_metrics_summary:PE(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function VE(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}function KE(t){return"function"==typeof t.getSpanJSON}function JE(t){const{traceFlags:e}=t.spanContext();return 1===e}function XE(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"unknown_error"}const ZE="_sentryRootSpan";function ju(t){return t[ZE]||t}function ch(){const t=os(wi());return t.getActiveSpan?t.getActiveSpan():su(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()||{},o=Ht({environment:n.environment||lh,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",o),o}function fh(t){const e=Zt();if(!e)return{};const n=ju(t),r=n[eb];if(r)return r;const o=n.spanContext().traceState,i=o&&o.get("sentry.dsc"),s=i&&HE(i);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(JE(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:o,port:i,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${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,o=nb()){const[i,s]=o;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(i(e))return"[Circular ~]";const c=e;if(c&&"function"==typeof c.toJSON)try{return au("",c.toJSON(),u-1,r,o)}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,o),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=ob(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}function ob(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function sb(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 o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:rb(r)},...o&&{trace:Ht({...o})}}}function uu(t,e,n,r=0){return new hr(((o,i)=>{const s=t[r];if(null===e||"function"!=typeof s)o(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(o))).then(null,i):uu(t,a,n,r+1).then(o).then(null,i)}}))}let ko,Qf,Co;function cb(t){const e=ut._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return Co&&n.length===Qf||(Qf=n.length,Co=n.reduce(((n,r)=>{ko||(ko={});const o=ko[r];if(o)n[o[0]]=o[1];else{const o=t(r);for(let t=o.length-1;t>=0;t--){const i=o[t],s=i&&i.filename,a=e[r];if(s&&a){n[s]=a,ko[r]=[s,a];break}}}return n}),{})),Co}function lb(t,e){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=e;fb(t,e),r&&pb(t,r),mb(t,n),db(t,o),hb(t,i)}function ed(t,e){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:f,propagationContext:d,transactionName:h,span:p}=e;xo(t,"extra",n),xo(t,"tags",r),xo(t,"user",o),xo(t,"contexts",i),t.sdkProcessingMetadata=is(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 xo(t,e,n){t[e]=is(t[e],n,1)}function fb(t,e){const{extra:n,tags:r,user:o,contexts:i,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(o);l&&Object.keys(l).length&&(t.user={...l,...t.user});const f=Ht(i);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:YE(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:fh(e),...t.sdkProcessingMetadata};const n=hi(ju(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,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,u={...e,event_id:e.event_id||n.event_id||pr(),timestamp:e.timestamp||ns()},c=n.integrations||t.integrations.map((t=>t.name));_b(u,t),Sb(u,c),o&&o.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=o?o.getEventProcessors():[],d=DE().getScopeData();if(i){ed(d,i.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:o,maxValueLength:i=250}=e;t.environment=t.environment||n||lh,!t.release&&r&&(t.release=r),!t.dist&&o&&(t.dist=o),t.message&&(t.message=ja(t.message,i));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=ja(s.value,i));const a=t.request;a&&a.url&&(a.url=ja(a.url,i))}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 Vr;return n.update(e),n}function Uu(t,e){return Mn().captureException(t,void 0)}function wb(t,e){const n={captureContext:e};return Mn().captureMessage(t,void 0,n)}function Ib(t,e){Ii().setContext(t,e)}function kb(t,e){Ii().setExtra(t,e)}function Cb(t){Ii().addEventProcessor(t)}const xb=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)?xb: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 o={...t},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const t of i.trim().split(",")){const[e,n,,,i]=t.split(":",5),s=parseInt(e,10),a=1e3*(isNaN(s)?60:s);if(n)for(const t of n.split(";"))"metric_bucket"===t?(!i||i.split(";").includes("custom"))&&(o[t]=r+a):o[t]=r+a;else o.all=r+a}else s?o.all=r+Rb(s,r):429===e&&(o.all=r+6e4);return o}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=Ii();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Lb}=n.getOptions();if(i<=0)return;const s={timestamp:ns(),...t},a=o?Ou((()=>o(s,e))):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,i))}function Fb(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Bb="Dedupe",jb=()=>{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}}},Ub=jb;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],o=n[t];if(e.filename!==o.filename||e.lineno!==o.lineno||e.colno!==o.colno||e.function!==o.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()||Yb())}function Yb(){const t=ut.process;return!!t&&"renderer"===t.type}const Ro=ut;function Vb(){const t=Ro.chrome,e=t&&t.app&&t.app.runtime,n="history"in Ro&&!!Ro.history.pushState&&!!Ro.history.replaceState;return!e&&n}function Kb(t,e){return t??e()}function jo(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}const ni=ut;function Jb(){setTimeout((()=>{}))}function In(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=>In(t,e)));return t.apply(this,r)}catch(t){throw Jb(),NE((r=>{r.addEventProcessor((t=>(e.mechanism&&(IE(t),ah(t,e.mechanism)),t.extra={...t.extra,arguments:n},t))),Uu(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__,Xb=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",ki=(t,e,n,r)=>{let o,i;return s=>{e.value>=0&&(s||r)&&(i=e.value-(o||0),(i||void 0===o)&&(o=e.value,e.delta=i,e.rating=Xb(e.value,n),t(e)))}},Ie=ut,Zb=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,mh=(t=!0)=>{const e=Ie.performance&&Ie.performance.getEntriesByType&&Ie.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},Ci=(t,e)=>{const n=mh();let r="navigate";return n&&(Ie.document&&Ie.document.prerendering||Wu()>0?r="prerender":Ie.document&&Ie.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}},Jr=(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{}},xi=t=>{const e=e=>{("pagehide"===e.type||Ie.document&&"hidden"===Ie.document.visibilityState)&&t(e)};Ie.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},ss=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let si=-1;const Qb=()=>"hidden"!==Ie.document.visibilityState||Ie.document.prerendering?1/0:0,zo=t=>{"hidden"===Ie.document.visibilityState&&si>-1&&(si="visibilitychange"===t.type?t.timeStamp:0,t1())},e1=()=>{addEventListener("visibilitychange",zo,!0),addEventListener("prerenderingchange",zo,!0)},t1=()=>{removeEventListener("visibilitychange",zo,!0),removeEventListener("prerenderingchange",zo,!0)},zu=()=>(Ie.document&&si<0&&(si=Qb(),e1()),{get firstHiddenTime(){return si}}),as=t=>{Ie.document&&Ie.document.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},r1=[1800,3e3],n1=(t,e={})=>{as((()=>{const n=zu(),r=Ci("FCP");let o;const i=Jr("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Wu(),0),r.entries.push(t),o(!0)))}))}));i&&(o=ki(t,r,r1,e.reportAllChanges))}))},i1=[.1,.25],o1=(t,e={})=>{n1(ss((()=>{const n=Ci("CLS",0);let r,o=0,i=[];const s=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=i[0],n=i[i.length-1];o&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(o+=t.value,i.push(t)):(o=t.value,i=[t])}})),o>n.value&&(n.value=o,n.entries=i,r())},a=Jr("layout-shift",s);a&&(r=ki(t,n,i1,e.reportAllChanges),xi((()=>{s(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},s1=[100,300],a1=(t,e={})=>{as((()=>{const n=zu(),r=Ci("FID");let o;const i=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),o(!0))},s=t=>{t.forEach(i)},a=Jr("first-input",s);o=ki(t,r,s1,e.reportAllChanges),a&&xi(ss((()=>{s(a.takeRecords()),a.disconnect()})))}))};let gh=0,Ua=1/0,To=0;const u1=t=>{t.forEach((t=>{t.interactionId&&(Ua=Math.min(Ua,t.interactionId),To=Math.max(To,t.interactionId),gh=To?(To-Ua)/7+1:0)}))};let cu;const c1=()=>cu?gh:performance.interactionCount||0,l1=()=>{"interactionCount"in performance||cu||(cu=Jr("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=Ie.requestIdleCallback||Ie.setTimeout;let n=-1;return t=ss(t),Ie.document&&"hidden"===Ie.document.visibilityState?t():(n=e(t),xi(t)),n},_1=[200,500],y1=(t,e={})=>{"PerformanceEventTiming"in Ie&&"interactionId"in PerformanceEventTiming.prototype&&as((()=>{l1();const n=Ci("INP");let r;const o=t=>{_h((()=>{t.forEach(g1);const e=p1();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())}))},i=Jr("event",o,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});r=ki(t,n,_1,e.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),xi((()=>{o(i.takeRecords()),r(!0)})))}))},v1=[2500,4e3],id={},S1=(t,e={})=>{as((()=>{const n=zu(),r=Ci("LCP");let o;const i=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],o())}))},s=Jr("largest-contentful-paint",i);if(s){o=ki(t,r,v1,e.reportAllChanges);const n=ss((()=>{id[r.id]||(i(s.takeRecords()),s.disconnect(),id[r.id]=!0,o(!0))}));["keydown","click"].forEach((t=>{Ie.document&&addEventListener(t,(()=>_h(n)),{once:!0,capture:!0})})),xi(n)}}))},ai={},$o={};let yh,vh,Sh,Eh;function E1(t,e=!1){return us("cls",t,C1,yh,e)}function b1(t,e=!1){return us("lcp",t,R1,Sh,e)}function w1(t){return us("fid",t,x1,vh)}function I1(t){return us("inp",t,T1,Eh)}function k1(t,e){return bh(t,e),$o[t]||(A1(t),$o[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 C1(){return o1((t=>{Ri("cls",{metric:t}),yh=t}),{reportAllChanges:!0})}function x1(){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 us(t,e,n,r,o=!1){let i;return bh(t,e),$o[t]||(i=n(),$o[t]=!0),r&&e({metric:r}),wh(t,e,o?i:void 0)}function A1(t){const e={};"event"===t&&(e.durationThreshold=0),Jr(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 o=r.indexOf(e);-1!==o&&r.splice(o,1)}}const M1=1e3;let od,lu,fu,Ao;function O1(t){Qd("dom",t),eh("dom",D1)}function D1(){if(!Ie.document)return;const t=ru.bind(null,"dom"),e=sd(t,!0);Ie.document.addEventListener("click",e,!1),Ie.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=Ie[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Pt(r,"addEventListener",(function(e){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=sd(t);i.handler=r,e.call(this,n,r,o)}i.refCount++}catch{}return e.call(this,n,r,o)}})),Pt(r,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.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 sd(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 o="keypress"===n.type?"input":n.type;N1(n)||(t({event:n,name:o,global:e}),lu=n.type,fu=r?r._sentryId:void 0),clearTimeout(od),od=Ie.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(!Vb())return;const t=Ie.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=Ao,e=String(n);Ao=e,ru("history",{from:t,to:e})}return t.apply(this,e)}}Ie.onpopstate=function(...e){const n=Ie.location.href,r=Ao;if(Ao=n,ru("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch{}},Pt(Ie.history,"pushState",e),Pt(Ie.history,"replaceState",e)}const $a={};function j1(t){const e=$a[t];if(e)return e;let n=Ie[t];if(Hb(n))return $a[t]=n.bind(Ie);const r=Ie.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(n=o[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(Ie))}function kn(...t){return j1("setTimeout")(...t)}const U1="__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(Y1)}}},H1=$1;function ad(t){return function(...e){const n=e[0];return e[0]=In(n,{mechanism:{data:{function:gr(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function q1(t){return function(e){return t.apply(this,[In(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)),In(e,n)}))})),t.apply(this,e)}}function Y1(t){const e=ni[t],n=e&&e.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Pt(n,"addEventListener",(function(e){return function(n,r,o){try{V1(r)&&(r.handleEvent=In(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:gr(r),target:t},handled:!1,type:"instrument"}}))}catch{}return e.apply(this,[n,In(r,{mechanism:{data:{function:"addEventListener",handler:gr(r),target:t},handled:!1,type:"instrument"}}),o])}})),Pt(n,"removeEventListener",(function(t){return function(e,n,r){try{const o=n.__sentry_wrapped__;o&&t.call(this,e,o,r)}catch{}return t.call(this,e,n,r)}})))}function V1(t){return"function"==typeof t.handleEvent}const Ue=ut,$u="sentryReplaySession",K1="replay_event",Hu="Unable to send Replay",J1=3e5,X1=9e5,Z1=5e3,Q1=5500,ew=6e4,tw=5e3,rw=3,ud=15e4,Mo=5e3,nw=3e3,iw=300,qu=2e7,ow=4999,sw=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 o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...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 Ho(t){try{const e=t.rules||t.cssRules;return e?uw(Array.from(e,Ih).join("")):null}catch{return null}}function lw(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style,o=r[n],i=r.getPropertyPriority(o);e+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${t.selectorText} { ${e} }`}function Ih(t){let e;if(dw(t))try{e=Ho(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 kh{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 kh}function cs({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 o=n||"";return t?(r&&(o=r(o,e)),"*".repeat(o.length)):o}function Cn(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 o=e.getImageData,i=ld in o?o[ld]:o;if(new Uint32Array(i.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?Cn(e):null}function qo(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}function Ch(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 xh(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 o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch{}return fd[t]=r.bind(window)}function pu(...t){return xh("setTimeout")(...t)}function Rh(...t){return xh("clearTimeout")(...t)}function Th(t){try{return t.contentDocument}catch{}}let gw=1;const _w=new RegExp("[^a-z0-9-_:]"),gi=-2;function Yu(){return gw++}function yw(t){if(t instanceof HTMLFormElement)return"form";const e=Cn(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 Go(t,e){return(t||"").replace(Sw,((t,n,r,o,i,s)=>{const a=r||i||s,u=n||o||"";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 Iw=/^[^ \t\n\r\u000c]+/,kw=/^[, \t\n\r\u000c]+/;function Cw(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const o=t.exec(e.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(kw),!(n>=e.length);){let i=r(Iw);if(","===i.slice(-1))i=vn(t,i.substring(0,i.length-1)),o.push(i);else{let r="";i=vn(t,i);let s=!1;for(;;){const t=e.charAt(n);if(""===t){o.push((i+r).trim());break}if(s)")"===t&&(s=!1);else{if(","===t){n+=1,o.push((i+r).trim());break}"("===t&&(s=!0)}r+=t,n+=1}}}return o.join(", ")}const hd=new WeakMap;function vn(t,e){return e&&""!==e.trim()?ls(t,e):e}function xw(t){return!("svg"!==t.tagName&&!t.ownerSVGElement)}function ls(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,o,i){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?Cw(t,r):"style"===n?Go(r,ls(t)):"object"===e&&"data"===n?vn(t,r):"function"==typeof i?i(n,r,o):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 Yr(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Yr(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 xn(t,e,n,r,o,i){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(i){if(u=Yr(s,Sn(r,o)),u<0)return!0;a=Yr(s,Sn(e,n),u>=0?u:1/0)}else{if(a=Yr(s,Sn(e,n)),a<0)return!1;u=Yr(s,Sn(r,o),a>=0?a:1/0)}return a>=0?!(u>=0)||a<=u:!(u>=0)&&!!i}catch{}return!!i}function Aw(t,e,n){const r=t.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch{return}if("complete"!==o){const r=pu((()=>{i||(e(),i=!0)}),n);return void t.addEventListener("load",(()=>{Rh(r),i=!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,o=!1;try{r=t.sheet}catch{return}if(r)return;const i=pu((()=>{o||(e(),o=!0)}),n);t.addEventListener("load",(()=>{Rh(i),o=!0,e()}))}function Ow(t,e){const{doc:n,mirror:r,blockClass:o,blockSelector:i,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:o,blockSelector:i,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:o,maskTextSelector:i,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=Ho(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}d=Go(d,ls(e.doc))}p&&(d="SCRIPT_PLACEHOLDER");const y=xn(t,r,i,o,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:xn(t,r,i,o,s,cs({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:o,unblockSelector:i,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,o,i),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,Cn(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=Ho(e)),r&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=Go(r,e.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=Ho(t.sheet);e&&(S._cssText=Go(e,ls(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const e=t,n=Gu(e),r=qo(e,hu(w),n),o=e.checked;if("submit"!==n&&"button"!==n&&r){const t=xn(e,g,v,_,b,cs({type:n,tagName:hu(w),maskInputOptions:a}));S.value=mi({isMasked:t,element:e,value:r,maskInputFn:c})}o&&(S.checked=o)}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>",o=e.crossOrigin,i=()=>{e.removeEventListener("load",i);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?i():e.addEventListener("load",i));console.warn(`Cannot inline img src=${r}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(o?S.crossOrigin=o:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}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:xw(t)||void 0,needBlock:k,rootId:m,isCustom:x}}function je(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"===Ch(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(je(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===je(t.attributes.name)||"icon"===je(t.attributes.rel)||"apple-touch-icon"===je(t.attributes.rel)||"shortcut icon"===je(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&je(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(je(t.attributes.property).match(/^(og|twitter|fb):/)||je(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===je(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===je(t.attributes.name)||"googlebot"===je(t.attributes.name)||"bingbot"===je(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===je(t.attributes.name)||"generator"===je(t.attributes.name)||"framework"===je(t.attributes.name)||"publisher"===je(t.attributes.name)||"progid"===je(t.attributes.name)||je(t.attributes.property).match(/^article:/)||je(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===je(t.attributes.name)||"yandex-verification"===je(t.attributes.name)||"csrf-token"===je(t.attributes.name)||"p:domain_verify"===je(t.attributes.name)||"verify-v1"===je(t.attributes.name)||"verification"===je(t.attributes.name)||"shopify-checkout-api-token"===je(t.attributes.name)))return!0}}return!1}function En(t,e){const{doc:n,mirror:r,blockClass:o,blockSelector:i,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:o,blockSelector:i,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:Yu();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:o,blockSelector:i,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:o,blockSelector:i,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"===Ch(O.attributes.href))&&Mw(t,(()=>{if(x){const e=En(t,{doc:n,mirror:r,blockClass:o,blockSelector:i,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 kh,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=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:o,unblockSelector:i,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 o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...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,o=0;return function(...i){const s=Date.now();!o&&!1===n.leading&&(o=s);const a=e-(s-o),u=this;a<=0||a>e?(r&&(Hw(r),r=null),o=s,t.apply(u,i)):!r&&!1!==n.trailing&&(r=fs((()=>{o=!1===n.leading?0:Date.now(),r=null,t.apply(u,i)}),a))}}function Oh(t,e,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,r?n:{set(t){fs((()=>{n.set.call(this,t)}),0),i&&i.set&&i.set.call(this,t)}}),()=>Oh(t,e,i||{},!0)}function Vu(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=o,()=>{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 Yo=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 It(t,e,n,r,o){if(!t)return!1;const i=Ph(t);if(!i)return!1;const s=Sn(e,n);if(!o){const t=r&&i.matches(r);return s(i)&&!t}const a=Yr(i,s);let u=-1;return!(a<0)&&(r&&(u=Yr(i,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 jw(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 jh(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())||(Yo=()=>(new Date).getTime());class Uw{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 Uh(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=Uh(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 o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch{}return md[t]=r.bind(window)}function $w(...t){return Ku("requestAnimationFrame")(...t)}function fs(...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 Ju(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 o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...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 Yw{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 Vw{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 Yw,r=t=>{let e=t,n=-2;for(;-2===n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},o=o=>{if(!o.parentNode||!Wh(o))return;const i=ui(o.parentNode)?this.mirror.getId(Uh(o)):this.mirror.getId(o.parentNode),s=r(o);if(-1===i||-1===s)return n.addNode(o);const a=En(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{Bh(t,this.mirror)&&!It(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(t),jh(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),gu(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{It(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:i,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)||o(t);for(const t of this.addedSet)!Ed(this.droppedSet,t)&&!Sd(this.removes,t,this.mirror)||Ed(this.movedSet,t)?o(t):this.droppedSet.add(t);let i=null;for(;n.length;){let t=null;if(i){const e=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==e&&-1!==n&&(t=i)}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}i=t.previous,n.removeNode(t.value),o(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;!It(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&e!==t.oldValue&&this.texts.push({value:xn(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),o=e.tagName;r=qo(e,o,n);const i=cs({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=mi({isMasked:xn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:e,value:r,maskInputFn:this.maskInputFn})}if(It(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===t.oldValue)return;let o=this.attributeMap.get(t.target);if("IFRAME"===e.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Ju(e))return;n="rr_src"}if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),"type"===n&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!Mh(e.tagName,n)&&(o.attributes[n]=Ah(this.doc,Cn(e.tagName),Cn(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),i=e.style.getPropertyPriority(t);r!==n.style.getPropertyValue(t)||i!==n.style.getPropertyPriority(t)?o.styleDiff[t]=""===i?r:[r,i]:o._unchangedStyles[t]=[r,i]}for(const t of Array.from(n.style))""===e.style.getPropertyValue(t)&&(o.styleDiff[t]=!1)}break}case"childList":if(It(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);It(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);It(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 Jw(t){li=t}function Xw(){li=void 0}const Ce=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 o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...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 Vw;bn.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const o=zt([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);o&&window[o]&&(r=window[o]);const i=new r(Ce((e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)})));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Zw({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const o="number"==typeof e.mousemove?e.mousemove:50,i="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let s,a=[];const u=_i(Ce((e=>{const n=Date.now()-s;t(a.map((t=>(t.timeOffset-=n,t))),e),a=[],s=null})),i),c=Ce(_i(Ce((t=>{const e=Ti(t),{clientX:n,clientY:o}=mu(t)?t.changedTouches[0]:t;s||(s=Yo()),a.push({x:n,y:o,id:r.getId(e),timeOffset:Yo()-s}),u(typeof DragEvent<"u"&&t instanceof DragEvent?ue.Drag:t instanceof MouseEvent?ue.MouseMove:ue.TouchMove)})),o,{trailing:!1})),l=[dt("mousemove",c,n),dt("touchmove",c,n),dt("drag",c,n)];return Ce((()=>{l.forEach((t=>t()))}))}function Qw({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,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=Cn(s);const l=(e=>s=>{const a=Ti(s);if(It(a,r,o,i,!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;Ce(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))})),Ce((()=>{u.forEach((t=>t()))}))}function Hh({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){return dt("scroll",Ce(_i(Ce((s=>{const a=Ti(s);if(!a||It(a,r,o,i,!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 eI({viewportResizeCb:t},{win:e}){let n=-1,r=-1;return dt("resize",Ce(_i(Ce((()=>{const e=Nh(),o=Lh();(n!==e||r!==o)&&(t({width:Number(o),height:Number(e)}),n=e,r=o)})),200)),e)}const tI=["INPUT","TEXTAREA","SELECT"],bd=new WeakMap;function rI({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,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||tI.indexOf(y)<0||It(n,r,o,i,!0))return;const _=n;if(_.classList.contains(s)||a&&_.matches(a))return;const v=Gu(n);let b=qo(_,y,v),k=!1;const w=cs({maskInputOptions:u,tagName:y,type:v}),S=xn(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:qo(t,y,v),maskInputFn:c});g(t,f?{text:e,isChecked:!k,userTriggered:!1}:{text:e,isChecked:!k})}}))}function g(e,r){const o=bd.get(e);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){bd.set(e,r);const o=n.getId(e);Ce(t)({...r,id:o})}}const _=("last"===l.input?["change"]:["input","change"]).map((t=>dt(t,Ce(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(){Ce(y)({target:this,isTrusted:!1})}},!1,v)))),Ce((()=>{_.forEach((t=>t()))}))}function Vo(t){return function(t,e){if(Oo("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Oo("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Oo("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Oo("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,o;return t?(t.ownerNode?r=e.getId(t.ownerNode):o=n.getId(t),{styleId:o,id:r}):{}}function nI({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Ce(((r,o,i)=>{const[s,a]=i,{id:u,styleId:c}=Tr(o,e,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&t({id:u,styleId:c,adds:[{rule:s,index:a}]}),r.apply(o,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ce(((r,o,i)=>{const[s]=i,{id:a,styleId:u}=Tr(o,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,removes:[{index:s}]}),r.apply(o,i)}))}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Ce(((r,o,i)=>{const[s]=i,{id:a,styleId:u}=Tr(o,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,replace:s}),r.apply(o,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ce(((r,o,i)=>{const[s]=i,{id:a,styleId:u}=Tr(o,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,replaceSync:s}),r.apply(o,i)}))}));const u={};Do("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(Do("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),Do("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),Do("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach((([r,o])=>{c[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[r].insertRule,{apply:Ce(((r,o,i)=>{const[s,a]=i,{id:u,styleId:c}=Tr(o.parentStyleSheet,e,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&t({id:u,styleId:c,adds:[{rule:s,index:[...Vo(o),a||0]}]}),r.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:Ce(((r,o,i)=>{const[s]=i,{id:a,styleId:u}=Tr(o.parentStyleSheet,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,removes:[{index:[...Vo(o),s]}]}),r.apply(o,i)}))})})),Ce((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,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 o="#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]),i=zt([o,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(zt([o,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return zt([i,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){const n=zt([i,"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}}),Ce((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function iI({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ce(((o,s,a)=>{const[u,c,l]=a;if(n.has(u))return i.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:Vo(s.parentRule)}),o.apply(s,a)}))});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Ce(((o,i,a)=>{const[u]=a;if(n.has(u))return s.apply(i,[u]);const{id:c,styleId:l}=Tr(zt([i,"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:Vo(i.parentRule)}),o.apply(i,a)}))}),Ce((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s}))}function oI({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const a=Ce((s=>_i(Ce((i=>{const a=Ti(i);if(!a||It(a,e,n,r,!0))return;const{currentTime:u,volume:c,muted:l,playbackRate:f}=a;t({type:s,id:o.getId(a),currentTime:u,volume:c,muted:l,playbackRate:f})})),i.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 Ce((()=>{u.forEach((t=>t()))}))}function sI({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(t,e,n){const r=new i(t,e,n);return o.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=Vu(e.fonts,"add",(function(e){return function(n){return fs(Ce((()=>{const e=o.get(n);e&&(t(e),o.delete(n))})),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(s),Ce((()=>{r.forEach((t=>t()))}))}function aI(t){const{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=t;let a=!0;const u=Ce((()=>{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;It(a,r,o,i,!0)||It(l,r,o,i,!0)||u.push({start:n.getId(a),startOffset:c,end:n.getId(l),endOffset:f})}s({ranges:u})}));return u(),dt("selectionchange",u)}function uI({doc:t,customElementCb:e}){const n=t.defaultView;return n&&n.customElements?Vu(n.customElements,"define",(function(t){return function(n,r,o){try{e({define:{name:n}})}catch{}return t.apply(this,[n,r,o])}})):()=>{}}function cI(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=$h(t,t.doc));const o=Zw(t),i=Qw(t),s=Hh(t),a=eI(t,{win:n}),u=rI(t),c=oI(t);let l=()=>{},f=()=>{},d=()=>{},h=()=>{};t.recordDOM&&(l=nI(t,{win:n}),f=qh(t,t.doc),d=iI(t,{win:n}),t.collectFonts&&(h=sI(t)));const p=aI(t),m=uI(t),y=[];for(const e of t.plugins)y.push(e.observer(e.callback,n,e.options));return Ce((()=>{bn.forEach((t=>t.reset())),zt([r,"optionalAccess",t=>t.disconnect,"call",t=>t()]),o(),i(),s(),a(),u(),c(),l(),f(),d(),h(),p(),m(),y.forEach((t=>t()))}))}function Oo(t){return typeof window[t]<"u"}function Do(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 o=n||this.getIdToRemoteIdMap(t),i=r||this.getRemoteIdToIdMap(t);let s=o.get(e);return s||(s=this.generateIdFn(),o.set(e,s),i.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 o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}class lI{constructor(){this.crossOriginIframeMirror=new yu(Yu),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class fI{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new yu(Yu),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=Ju(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 o of r)!Array.isArray(e[o])&&"number"!=typeof e[o]||(Array.isArray(e[o])?e[o]=t.getIds(n,e[o]):e[o]=t.getId(n,e[o]));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 dI{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class hI{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})),fs((()=>{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=Ju(t),n=qw(t);!e||!n||this.patchAttachShadow(n.Element,e)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(Vu(t.prototype,"attachShadow",(function(t){return function(r){const o=t.call(this,r);return this.shadowRoot&&Wh(this)&&n.addShadowRoot(this.shadowRoot,e),o}})))}reset(){this.restoreHandlers.forEach((t=>{try{t()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Id{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class pI{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Uw,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:Ih(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 mI{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 Ve,Ko;try{if(2!==Array.from([1],(t=>2*t))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=jo([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:o="rr-block",blockSelector:i=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;Jw(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||{};jw();let $,H=0;const q=t=>{for(const e of D||[])e.eventProcessor&&(t=e.eventProcessor(t));return w&&!W&&(t=w(t)),t};Ve=(t,o)=>{const i=t;if(i.timestamp=Yo(),jo([bn,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])&&i.type!==me.FullSnapshot&&!(i.type===me.IncrementalSnapshot&&i.data.source===ue.Mutation)&&bn.forEach((t=>t.unfreeze())),U)jo([e,"optionalCall",t=>t(q(i),o)]);else if(W){const t={type:"rrweb",event:q(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(i.type===me.FullSnapshot)$=i,H=0;else if(i.type===me.IncrementalSnapshot){if(i.data.source===ue.Mutation&&i.data.isAttachIframe)return;H++;const t=r&&H>=r,e=n&&$&&i.timestamp-$.timestamp>n;(t||e)&&tt(!0)}};const V=t=>{Ve({type:me.IncrementalSnapshot,data:{source:ue.Mutation,...t}})},K=t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.Scroll,...t}}),Y=t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.CanvasMutation,...t}}),G=new pI({mutationCb:V,adoptedStyleSheetCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.AdoptedStyleSheet,...t}})}),J="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new lI:new fI({mirror:Wt,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:T,wrappedEmit:Ve});for(const t of D||[])t.getMirror&&t.getMirror({nodeMirror:Wt,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});const X=new mI,Q=_I(F,{mirror:Wt,win:window,mutationCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.CanvasMutation,...t}}),recordCanvas:C,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:k,sampling:S.canvas,dataURLOptions:E,errorHandler:j}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new dI:new hI({mutationCb:V,scrollCb:K,bypassOptions:{onMutation:P,blockClass:o,blockSelector:i,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;Ve({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:o,blockSelector:i,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),jh(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");Ve({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))};Ko=tt;try{const t=[],e=t=>Ce(cI)({onMutation:P,mutationCb:V,mousemoveCb:(t,e)=>Ve({type:me.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.MouseInteraction,...t}}),scrollCb:K,viewportResizeCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.ViewportResize,...t}}),inputCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.Input,...t}}),mediaInteractionCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.MediaInteraction,...t}}),styleSheetRuleCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.StyleSheetRule,...t}}),styleDeclarationCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.StyleDeclaration,...t}}),canvasMutationCb:Y,fontCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.Font,...t}}),selectionCb:t=>{Ve({type:me.IncrementalSnapshot,data:{source:ue.Selection,...t}})},customElementCb:t=>{Ve({type:me.IncrementalSnapshot,data:{source:ue.CustomElement,...t}})},blockClass:o,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:i,unblockSelector:s,slimDOMOptions:z,dataURLOptions:E,mirror:Wt,iframeManager:J,stylesheetManager:G,shadowDomManager:Z,processedNodeManager:X,canvasManager:Q,ignoreCSSAttributes:L,plugins:jo([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=>Ve({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",(()=>{Ve({type:me.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&n()}))),t.push(dt("load",(()=>{Ve({type:me.Load,data:{}}),"load"===R&&n()}),window))),()=>{t.forEach((t=>t())),X.destroy(),Ko=void 0,Xw()}}catch(t){console.warn(t)}}function gI(t){if(!Ko)throw new Error("please take full snapshot after start recording");Ko(t)}function _I(t,e){try{return t?t(e):new Id}catch{return console.warn("Unable to initialize CanvasManager"),new Id}}mr.mirror=Wt,mr.takeFullSnapshot=gI;const yI=3,vI=5;function Xu(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 SI="button,a";function Gh(t){return t.closest(SI)||t}function Yh(t){const e=Vh(t);return e&&e instanceof Element?Gh(e):e}function Vh(t){return EI(t)?t.target:t}function EI(t){return"object"==typeof t&&!!t&&"target"in t}let Ar;function bI(t){return Ar||(Ar=[],wI()),Ar.push(t),()=>{const e=Ar?Ar.indexOf(t):-1;e>-1&&Ar.splice(e,1)}}function wI(){Pt(Ue,"open",(function(t){return function(...e){if(Ar)try{Ar.forEach((t=>t()))}catch{}return t.apply(Ue,e)}}))}const II=new Set([ue.Mutation,ue.StyleSheetRule,ue.StyleDeclaration,ue.AdoptedStyleSheet,ue.CanvasMutation,ue.Selection,ue.MediaInteraction]);function kI(t,e,n){t.handleClick(e,n)}class CI{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=bI((()=>{this._lastMutation=kd()}));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(RI(e,this._ignoreSelector)||!TI(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=kd();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,o=!n&&!r,{clickCount:i,clickBreadcrumb:s}=t;if(o){const n=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:Ue.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(e,o)}else if(i>1){const t={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:Ue.location.href,route:e.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=kn((()=>this._checkClicks()),1e3)}}const xI=["A","BUTTON","INPUT"];function RI(t,e){return!!(!xI.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 TI(t){return!(!t.data||"number"!=typeof t.data.nodeId||!t.timestamp)}function kd(){return Date.now()/1e3}function AI(t,e){try{if(!MI(e))return;const{source:n}=e.data;if(II.has(n)&&t.registerMutation(e.timestamp),n===ue.Scroll&&t.registerScroll(e.timestamp),OI(e)){const{type:n,id:r}=e.data,o=mr.mirror.getNode(r);o instanceof HTMLElement&&n===ft.Click&&t.registerClick(o)}}catch{}}function MI(t){return 3===t.type}function OI(t){return t.data.source===ue.MouseInteraction}function Xt(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Jo;!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"}(Jo||(Jo={}));const DI=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function NI(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(DI.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),e[r]=t[n]}return e}const LI=t=>e=>{if(!t.isEnabled())return;const n=PI(e);if(!n)return;const r="click"===e.name,o=r?e.event:void 0;r&&t.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&kI(t.clickDetector,n,Yh(e.event)),Ai(t,n)};function Kh(t,e){const n=mr.mirror.getId(t),r=n&&mr.mirror.getNode(n),o=r&&mr.mirror.getMeta(r),i=o&&BI(o)?o:null;return{message:e,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((t=>t.type===Jo.Text&&t.textContent)).filter(Boolean).map((t=>t.trim())).join(""),attributes:NI(i.attributes)}}:{}}}function PI(t){const{target:e,message:n}=FI(t);return Xt({category:`ui.${t.name}`,...Kh(e,n)})}function FI(t){const e="click"===t.name;let n,r=null;try{r=e?Yh(t.event):Vh(t.event),n=Fu(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function BI(t){return t.type===Jo.Element}function jI(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=UI(e);n&&Ai(t,n)}function UI(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=t;if(!s||WI(s)||!i)return null;const a=e||r||o,u=1===i.length;if(!a&&u)return null;const c=Fu(s,{maxStringLength:200})||"<unknown>";return Xt({category:"ui.keyDown",message:c,data:{...Kh(s,c).data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function WI(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}const zI={resource:YI,paint:qI,navigation:GI};function No(t,e){return({metric:n})=>{e.replayPerformanceEntries.push(t(n))}}function $I(t){return t.map(HI).filter(Boolean)}function HI(t){const e=zI[t.entryType];return e?e(t):null}function Rn(t){return((bE||Ue.performance.timeOrigin)+t)/1e3}function qI(t){const{duration:e,entryType:n,name:r,startTime:o}=t,i=Rn(o);return{type:n,name:r,start:i,end:i+e,data:void 0}}function GI(t){const{entryType:e,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:f,redirectCount:d,startTime:h,transferSize:p,type:m}=t;return 0===o?null:{type:`${e}.${m}`,start:Rn(h),end:Rn(i),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:f,domComplete:i,redirectCount:d}}}function YI(t){const{entryType:e,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:u,transferSize:c}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:Rn(i),end:Rn(o),name:r,data:{size:c,statusCode:u,decodedBodySize:s,encodedBodySize:a}}}function VI(t){const e=t.entries[t.entries.length-1];return ds(t,"largest-contentful-paint",e&&e.element?[e.element]:void 0)}function KI(t){return void 0!==t.sources}function JI(t){const e=[],n=[];for(const r of t.entries)if(KI(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 ds(t,"cumulative-layout-shift",n,e)}function XI(t){const e=t.entries[t.entries.length-1];return ds(t,"first-input-delay",e&&e.target?[e.target]:void 0)}function ZI(t){const e=t.entries[t.entries.length-1];return ds(t,"interaction-to-next-paint",e&&e.target?[e.target]:void 0)}function ds(t,e,n,r){const o=t.value,i=t.rating,s=Rn(o);return{type:"web-vital",name:e,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map((t=>mr.mirror.getId(t))):void 0,attributions:r}}}function QI(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(k1(t,n))})),r.push(b1(No(VI,t)),E1(No(JI,t)),w1(No(XI,t)),I1(No(ZI,t))),()=>{r.forEach((t=>t()))}}const oe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ek='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 tk(){const t=new Blob([ek]);return URL.createObjectURL(t)}const Cd=["info","warn","error","log"],Uo="[Replay] ";function Ga(t,e="info"){Pb({category:"console",data:{logger:"replay"},level:e,message:`${Uo}${t}`},{level:e})}function rk(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{t=n.captureExceptions,e=n.traceInternals}};return oe?(Cd.forEach((t=>{n[t]=(...n)=>{ht[t](Uo,...n),e&&Ga(n.join(""),Fb(t))}})),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),ht.error(Uo,r),t?Uu(r):e&&Ga(r,"error")},n.infoTick=(...t)=>{ht.info(Uo,...t),e&&setTimeout((()=>Ga(t[0])),0)}):Cd.forEach((t=>{n[t]=()=>{}})),n}const ae=rk();class Zu extends Error{constructor(){super(`Event buffer exceeded maximum size of ${qu}.`)}}class Jh{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?Xu(t):null}}class nk{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(){oe&&ae.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const i=({data:e})=>{const s=e;if(s.method===t&&s.id===n){if(this._worker.removeEventListener("message",i),!s.success)return oe&&ae.error("Error in compression worker: ",s.response),void o(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class ik{constructor(t){this._worker=new nk(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=Xu(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=>{oe&&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 ok{constructor(t){this._fallback=new Jh,this._compression=new ik(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(oe&&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){oe&&ae.exception(t,"Failed to add events when switching buffers.")}}}function sk({useCompression:t,workerUrl:e}){if(t&&window.Worker){const t=ak(e);if(t)return t}return oe&&ae.info("Using simple buffer"),new Jh}function ak(t){try{const e=t||uk();if(!e)return;oe&&ae.info("Using compression worker"+(t?` from ${t}`:""));const n=new Worker(e);return new ok(n)}catch(t){oe&&ae.exception(t,"Failed to create compression worker")}}function uk(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?tk():""}function Qu(){try{return"sessionStorage"in Ue&&!!Ue.sessionStorage}catch{return!1}}function ck(t){lk(),t.session=void 0}function lk(){if(Qu())try{Ue.sessionStorage.removeItem($u)}catch{}}function Xh(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{Ue.sessionStorage.setItem($u,JSON.stringify(t))}catch{}}function fk(t,e){return Xh(t)?"session":!!e&&"buffer"}function xd({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const o=Zh({sampled:fk(t,e),previousSessionId:r});return n&&ec(o),o}function dk(){if(!Qu())return null;try{const t=Ue.sessionStorage.getItem($u);if(!t)return null;const e=JSON.parse(t);return oe&&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 Ya({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const o=r.stickySession&&dk();return o?ep(o,{sessionIdleExpire:t,maxReplayDuration:e})?(oe&&ae.infoTick("Session in sessionStorage is expired, creating new one..."),xd(r,{previousSessionId:o.id})):o:(oe&&ae.infoTick("Creating new session"),xd(r,{previousSessionId:n}))}function hk(t){return t.type===me.Custom}function tc(t,e,n){return!!rp(t,e)&&(tp(t,e,n),!0)}function pk(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 o="buffer"===t.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=mk(e,t.getOptions().beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(e){const n=e&&e instanceof Zu,i=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;t.handleException(e),await t.stop({reason:i});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=Xu(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now())&&(!(n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)||(oe&&ae.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function mk(t,e){try{if("function"==typeof e&&hk(t))return e(t)}catch(t){return oe&&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 gk(t){return"replay_event"===t.type}function Rd(t){return"feedback"===t.type}function _k(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 yk(t,e);vk(t,e)}}}function yk(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 vk(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)||kn((async()=>{try{await t.sendBufferedReplayOrFlush()}catch(e){t.handleException(e)}}))}function Sk(t){return e=>{!t.isEnabled()||!rc(e)||Ek(t,e)}}function Ek(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,Xt({category:"replay.hydrate-error",data:{url:gE()}}))}}function bk(t){const e=Zt();e&&e.on("beforeAddBreadcrumb",(e=>wk(t,e)))}function wk(t,e){if(!t.isEnabled()||!np(e))return;const n=Ik(e);n&&Ai(t,n)}function Ik(t){return!np(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?kk(t):Xt(t)}function kk(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return Xt(t);let n=!1;const r=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>Mo?(n=!0,`${t.slice(0,Mo)}…`):t;if("object"==typeof t)try{const e=fr(t,7);return JSON.stringify(e).length>Mo?(n=!0,`${JSON.stringify(e,null,2).slice(0,Mo)}…`):e}catch{}return t}));return Xt({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function np(t){return!!t.category}function Ck(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 xk(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 Rk(t,e){return!("buffer"!==t.recordingMode||e.message===Hu||!e.exception||e.type)&&Xh(t.getOptions().errorSampleRate)}function Tk(t){return Object.assign(((e,n)=>!t.isEnabled()||t.isPaused()?e:gk(e)?(delete e.breadcrumbs,e):rc(e)||Su(e)||Rd(e)?t.checkAndHandleExpiredSession()?Rd(e)?(t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),xk(t,e),e):Ck(e,n)&&!t.getOptions()._experiments.captureExceptions?(oe&&ae.log("Ignoring error from rrweb internals",e),null):((Rk(t,e)||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),e):(ip(),e):e),{id:"Replay"})}function hs(t,e){return e.map((({type:e,start:n,end:r,name:o,data:i})=>{const s=t.throttledAddEvent({type:me.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof s?Promise.resolve(null):s}))}function Ak(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 Mk(t){return e=>{if(!t.isEnabled())return;const n=Ak(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(hs(t,[n]),!1))))}}function Ok(t,e){return(!oe||!t.getOptions()._experiments.traceInternals)&&Ob(e,Zt())}function op(t,e){t.isEnabled()&&null!==e&&(Ok(t,e.name)||t.addUpdate((()=>(hs(t,[e]),!0))))}function ps(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 sp(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 oe&&ae.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return oe&&ae.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Xo(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:o,method:i,statusCode:s,request:a,response:u}=e;return{type:t,start:n/1e3,end:r/1e3,name:o,data:Ht({method:i,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:o,warnings:i}=Dk(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function Eu(t,e){return Object.entries(t).reduce(((n,[r,o])=>{const i=r.toLowerCase();return e.includes(i)&&t[r]&&(n[i]=o),n}),{})}function cp(t){return new URLSearchParams(t).toString()}function Dk(t){if(!t||"string"!=typeof t)return{body:t};const e=t.length>ud,n=Nk(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 Nk(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}function Zo(t,e){return yE(Lk(t),e)}function Lk(t,e=Ue.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Ue.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 Pk(t,e,n){try{const r=up("resource.fetch",await Bk(t,e,n));op(n.replay,r)}catch(t){oe&&ae.exception(t,"Failed to capture fetch breadcrumb")}}function Fk(t,e){const{input:n,response:r}=e,o=ps(n?lp(n):void 0),i=r?sp(r.headers.get("content-length")):void 0;void 0!==o&&(t.data.request_body_size=o),void 0!==i&&(t.data.response_body_size=i)}async function Bk(t,e,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=e,{url:s,method:a,status_code:u=0,request_body_size:c,response_body_size:l}=t.data,f=Zo(s,n.networkDetailAllowUrls)&&!Zo(s,n.networkDetailDenyUrls);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:u,request:f?jk(n,e.input,c):yi(c),response:await Uk(f,n,e.response,l)}}function jk({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const o=n?$k(n,e):{};if(!t)return Or(o,r,void 0);const i=lp(n),[s,a]=ap(i),u=Or(o,r,s);return a?Xo(u,a):u}async function Uk(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,o){if(!t&&void 0!==o)return yi(o);const i=r?fp(r.headers,n):{};if(!r||!e&&void 0!==o)return Or(i,o,void 0);const[s,a]=await zk(r),u=Wk(s,{networkCaptureBodies:e,responseBodySize:o,captureDetails:t,headers:i});return a?Xo(u,a):u}function Wk(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:o}){try{const i=t&&t.length&&void 0===n?ps(t):n;return r?Or(o,i,e?t:void 0):yi(i)}catch(t){return oe&&ae.exception(t,"Failed to serialize response body"),Or(o,n,void 0)}}async function zk(t){const e=Hk(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await qk(e)]}catch(t){return t instanceof Error&&t.message.indexOf("Timeout")>-1?(oe&&ae.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(oe&&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 $k(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 Hk(t){try{return t.clone()}catch(t){oe&&ae.exception(t,"Failed to clone response body")}}function qk(t){return new Promise(((e,n)=>{const r=kn((()=>n(new Error("Timeout while trying to read response body"))),500);Gk(t).then((t=>e(t)),(t=>n(t))).finally((()=>clearTimeout(r)))}))}async function Gk(t){return await t.text()}async function Yk(t,e,n){try{const r=up("resource.xhr",Kk(t,e,n));op(n.replay,r)}catch(t){oe&&ae.exception(t,"Failed to capture xhr breadcrumb")}}function Vk(t,e){const{xhr:n,input:r}=e;if(!n)return;const o=ps(r),i=n.getResponseHeader("content-length")?sp(n.getResponseHeader("content-length")):Qk(n.response,n.responseType);void 0!==o&&(t.data.request_body_size=o),void 0!==i&&(t.data.response_body_size=i)}function Kk(t,e,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=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||!Zo(u,n.networkDetailAllowUrls)||Zo(u,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:i,url:u,method:c,statusCode:l,request:yi(f),response:yi(d)}}const h=a[U1],p=h?Eu(h.request_headers,n.networkRequestHeaders):{},m=Eu(Jk(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?ap(s):[void 0],[_,v]=n.networkCaptureBodies?Xk(a):[void 0],b=Or(p,f,y),k=Or(m,d,_);return{startTimestamp:o,endTimestamp:i,url:u,method:c,statusCode:l,request:g?Xo(b,g):b,response:v?Xo(k,v):k}}function Jk(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 Xk(t){const e=[];try{return[t.responseText]}catch(t){e.push(t)}try{return Zk(t.response,t.responseType)}catch(t){e.push(t)}return oe&&ae.warn("Failed to get xhr response body",...e),[void 0]}function Zk(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 oe&&ae.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return oe&&ae.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Qk(t,e){try{return ps("json"===e&&t&&"object"==typeof t?JSON.stringify(t):t)}catch{return}}function eC(t){const e=Zt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};e&&e.on("beforeAddBreadcrumb",((t,e)=>tC(a,t,e)))}catch{}}function tC(t,e,n){if(e.data)try{rC(e)&&iC(n)&&(Vk(e,n),Yk(e,n,t)),nC(e)&&oC(n)&&(Fk(e,n),Pk(e,n,t))}catch(t){oe&&ae.exception(t,"Error when enriching network breadcrumb")}}function rC(t){return"xhr"===t.category}function nC(t){return"fetch"===t.category}function iC(t){return t&&t.xhr}function oC(t){return t&&t.response}function sC(t){const e=Zt();O1(LI(t)),F1(Mk(t)),bk(t),eC(t);Cb(Tk(t)),e&&(e.on("beforeSendEvent",Sk(t)),e.on("afterSendEvent",_k(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 aC(t){try{return Promise.all(hs(t,[uC(Ue.performance.memory)]))}catch{return[]}}function uC(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function cC(t,e,n){let r,o,i;const s=n.maxWait?Math.max(n.maxWait,e):0;function a(){return u(),r=t(),r}function u(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function c(){return o&&clearTimeout(o),o=kn(a,e),s&&void 0===i&&(i=kn(a,s)),r}return c.cancel=u,c.flush=function(){return void 0!==o||void 0!==i?a():r},c}function lC(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return void(oe&&ae.warn("Received replay event after session expired."));const o=r||!e;e=!0,t.clickDetector&&AI(t.clickDetector,n),t.addUpdate((()=>{if("buffer"===t.recordingMode&&o&&t.setInitialState(),!tc(t,n,o))return!0;if(!o)return!1;const e=t.session;if(dC(t,o),"buffer"===t.recordingMode&&e&&t.eventBuffer){const n=t.eventBuffer.getEarliestTimestamp();n&&(oe&&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 fC(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 dC(t,e){!e||!t.session||0!==t.session.segmentId||tc(t,fC(t),!1)}function hC(t,e,n,r){return sb(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 pC({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 mC({client:t,scope:e,replayId:n,event:r}){const o={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,o);const i=await gb(t.getOptions(),r,o,e,t,Ii());if(!i)return null;i.platform=i.platform||"javascript";const s=t.getSdkMetadata(),{name:a,version:u}=s&&s.sdk||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},i}async function gC({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=pC({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&&i.sampled))return qf({});const m={type:K1,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:u,trace_ids:c,urls:a,replay_id:e,segment_id:n,replay_type:i.sampled},y=await mC({scope:d,client:f,replayId:e,event:m});if(!y)return f.recordDroppedEvent("event_processor","replay",m),oe&&ae.info("An event processor returned `null`, will not send event."),qf({});delete y.sdkProcessingMetadata;const g=hC(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 gC(t),!0}catch(n){if(n instanceof dp||n instanceof nc)throw n;if(Ib("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)=>{kn((async()=>{try{await hp(t,e),n(!0)}catch(t){r(t)}}),e.interval)}))}}const pp="__THROTTLED",_C="__SKIPPED";function yC(t,e,n){const r=new Map;let o=!1;return(...i)=>{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=o;return o=!0,t?_C:pp}o=!1;const a=r.get(s)||0;return r.set(s,a+1),t(...i)}}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:J1,sessionIdleExpire:X1},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=cC((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=yC(((t,e)=>pk(this,t,e)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(nw,n),timeout:n,scrollTimeout:iw,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new CI(this,o)),oe){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){oe&&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(oe&&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",oe&&ae.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(oe&&ae.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(oe&&ae.info("Buffering is in progress, call `flush()` to save the replay"));oe&&ae.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Ya({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(oe&&ae.info("Buffering is in progress, call `flush()` to save the replay"));oe&&ae.infoTick("Starting replay in buffer mode");const t=Ya({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:lC(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{oe&&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,ck(this)}catch(t){this.handleException(t)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),oe&&ae.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),oe&&ae.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();oe&&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=`${Ue.location.pathname}${Ue.location.hash}${Ue.location.search}`,e=`${Ue.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=Xt({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&&ju(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=sk({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=Ya({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{Ue.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ue.addEventListener("blur",this._handleWindowBlur),Ue.addEventListener("focus",this._handleWindowFocus),Ue.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(sC(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=QI(this)}_removeListeners(){try{Ue.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ue.removeEventListener("blur",this._handleWindowBlur),Ue.removeEventListener("focus",this._handleWindowFocus),Ue.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{"visible"===Ue.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Xt({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Xt({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{jI(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):oe&&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=$I(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(hs(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 aC(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 o=await this.eventBuffer.finish();await hp({replayId:t,recordingData:o,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 oe&&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(oe&&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,o=n>this._options.maxReplayDuration+5e3;if(r||o)return oe&&ae.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&oe&&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=Xt({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 vC({mask:t,unmask:e,block:n,unblock:r,ignore:o}){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(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function SC({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&t.matches(o.unmaskTextSelector)?i:n.includes(e)||"value"===e&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Ad='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',EC=["content-length","content-type","accept"];let Md=!1;const bC=t=>new ms(t);class ms{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=Z1,flushMaxDelay:e=Q1,minReplayDuration:n=ow,maxReplayDuration:r=cd,stickySession:o=!0,useCompression:i=!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=ms.id;const A=vC({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)=>SC({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,sw),maxReplayDuration:Math.min(r,cd),stickySession:o,useCompression:i,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=wC(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 wC(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Ht(t)},o=Zf(n.replaysSessionSampleRate),i=Zf(n.replaysOnErrorSampleRate);return null==o&&null==i&&Ou((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=o&&(r.sessionSampleRate=o),null!=i&&(r.errorSampleRate=i),r}function Od(t){return[...EC,...t.map((t=>t.toLowerCase()))]}ms.__initStatic();var at=Zd();const mp=()=>"object"!=typeof window;var IC={DISTRIB_RELEASE:"24.04",JDK_18:"/usr/lib/jvm/java-1.8.0-amazon-corretto",TEAMCITY_PROJECT_NAME:"Web Apps",USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/false ci/teamcity",rvm_pretty_print_flag:"0",NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS:"20",TEAMCITY_PROCESS_PARENT_FLOW_ID:"",ANDROID_SDK_HOME:"/home/teamcity/android-sdk-linux",DOTNET_CLI_TELEMETRY_OPTOUT:"true",JDK_11_x64:"/usr/lib/jvm/java-11-amazon-corretto",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",SHLVL:"0",npm_config_noproxy:"",BUILD_VCS_NUMBER:"97cf47b3e9c701aee56eb0f587f592580a450114",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/16263",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/package.json",ANDROID_SDKMANAGER_PATH:"/home/teamcity/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager",TEAMCITY_BUILD_PROPERTIES_FILE:"/mnt/agent/temp/buildTmp/teamcity.build.parameters",npm_package_engines_node:">=20.2.0",rvm_stored_umask:"0022",GRADLE_HOME:"/opt/gradle",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",npm_config_userconfig:"/home/teamcity/.npmrc",rvm_user_install_flag:"1",BUILD_VCS_NUMBER_WebApps:"97cf47b3e9c701aee56eb0f587f592580a450114",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1297",COLOR:"1",TEAMCITY_BUILDCONF_NAME:"Apps",DISTRIB_DESCRIPTION:"Ubuntu 24.04.2 LTS",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"true",TMPDIR:"/mnt/agent/temp/buildTmp",LOGNAME:"teamcity",JOURNAL_STREAM:"8:9533",TEMP:"/mnt/agent/temp/buildTmp",_:"/usr/bin/nohup",npm_config_npm_version:"10.9.2",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",rvm_bin_path:"/home/teamcity/.rvm/bin",IRBRC:"/home/teamcity/.rvm/rubies/ruby-3.3.7/.irbrc",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/teamcity-agent.service/memory.pressure",P4CONFIG:".p4config",RUBY_VERSION:"ruby-3.3.7",npm_config_cache:"/home/teamcity/.npm",DOTNET_ROOT:"/usr/share/dotnet",JDK_1_8:"/usr/lib/jvm/java-1.8.0-amazon-corretto",MNT_MOUNT:"/dev/nvme0n1 on /mnt type ext4 (rw,noatime)",TEAMCITY_GIT_PATH:"/usr/local/bin/git",AWS_SHARED_CREDENTIALS_FILE:"/mnt/agent/temp/agentTmp/aws.credentials",DISTRIB_ID:"Ubuntu",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.14.0/bin",INVOCATION_ID:"bf0f84ab1c314eab8d883b140417d45b",JDK_11_0:"/usr/lib/jvm/java-11-amazon-corretto",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",TEAMCITY_CAPTURE_ENV:'"/usr/lib/jvm/java-21-amazon-corretto/bin/java" -jar "/home/teamcity/agent/plugins/environment-fetcher/lib/environment-fetcher-bin-2024.12-174504-jar-with-dependencies.jar"',TURBO_HASH:"70c9f4881909ef89",npm_package_name:"@wellesley/error-kit",DISTRIB_CODENAME:"noble",JDK_21_0:"/usr/lib/jvm/java-21-amazon-corretto",npm_config_color:"always",DOMAIN_ENV:"test",MY_RUBY_HOME:"/home/teamcity/.rvm/rubies/ruby-3.3.7",TEAMCITY_VERSION:"2024.12.2 (build 174504)",LANG:"en_US.UTF-8",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"2216",NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS:"20",UID:"1001",AWS_PROFILE:"default",GOPATH:"/home/teamcity/go",JDK_17_0:"/usr/lib/jvm/java-17-amazon-corretto",SHELL:"/bin/bash",TEAMCITY_AGENT_OPTS:"-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs/agent_%p.hprof -Dteamcity.internal.hosted.server.technicalName=PREINIT_AGENT",USE_NPM_VENDOR:"false",npm_lifecycle_event:"build",npm_package_version:"1.0.10",JDK_1_8_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",rvm_loaded_flag:"1",rvm_prefix:"/home/teamcity",GEM_HOME:"/home/teamcity/.rvm/gems/ruby-3.3.7",TURBO_INVOCATION_DIR:"/mnt/agent/work/70fcd8585843667f",JDK_11_0_x64:"/usr/lib/jvm/java-11-amazon-corretto",JDK_21_0_x64:"/usr/lib/jvm/java-21-amazon-corretto",rvm_version:"1.29.12 (latest)",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",GEM_PATH:"/home/teamcity/.rvm/gems/ruby-3.3.7:/home/teamcity/.rvm/gems/ruby-3.3.7@global",JAVA_HOME:"/usr/lib/jvm/java-21-amazon-corretto",PWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",TEAMCITY_AGENT_MEM_OPTS:"-Xmx512m",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",ANDROID_HOME:"/home/teamcity/android-sdk-linux",JDK_11:"/usr/lib/jvm/java-11-amazon-corretto",TEAMCITY_GIT_VERSION:"2.47.1.0",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",TEAMCITY_PROCESS_FLOW_ID:"513689168158",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",USE_PACKAGES_FROM_NPM:"false",rvm_ruby_string:"ruby-3.3.7",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",rvm_path:"/home/teamcity/.rvm",EDITOR:"vi",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/error-kit"};function kC(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 CC(t){return kC(t)&&"type"in t&&"string"==typeof t.type}mp()||(window.build=IC.BUILD_NUMBER),bC(),H1(),Ub();var gp=Symbol.for("immer-nothing"),Dd=Symbol.for("immer-draftable"),Ct=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[Ct]}function _r(t){var e;return!!t&&(_p(t)||Array.isArray(t)||!!t[Dd]||!(null==(e=t.constructor)||!e[Dd])||_s(t)||ys(t))}var xC=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)===xC}function vi(t,e){0===gs(t)?Object.entries(t).forEach((([n,r])=>{e(n,r,t)})):t.forEach(((n,r)=>e(r,n,t)))}function gs(t){const e=t[Ct];return e?e.type_:Array.isArray(t)?1:_s(t)?2:ys(t)?3:0}function bu(t,e){return 2===gs(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function yp(t,e,n){const r=gs(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function RC(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function _s(t){return t instanceof Map}function ys(t){return t instanceof Set}function Gr(t){return t.copy_||t.base_}function wu(t,e){if(_s(t))return new Map(t);if(ys(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[Ct];let r=Reflect.ownKeys(n);for(let e=0;e<r.length;e++){const o=r[e],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Tn(t),n)}function ic(t,e=!1){return vs(t)||Dr(t)||!_r(t)||(gs(t)>1&&(t.set=t.add=t.clear=t.delete=TC),Object.freeze(t),e&&vi(t,((t,e)=>ic(e,!0)))),t}function TC(){$t(2)}function vs(t){return Object.isFrozen(t)}var Si,AC={};function Kr(t){const e=AC[t];return e||$t(0,t),e}function vp(){return Si}function MC(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 Iu(t){ku(t),t.drafts_.forEach(OC),t.drafts_=null}function ku(t){t===Si&&(Si=t.parent_)}function Ld(t){return Si=MC(Si,t)}function OC(t){const e=t[Ct];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[Ct].modified_&&(Iu(e),$t(4)),_r(t)&&(t=Qo(e,t),e.parent_||es(e,t)),e.patches_&&Kr("Patches").generateReplacementPatches_(n[Ct].base_,t,e.patches_,e.inversePatches_)):t=Qo(e,n,[]),Iu(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==gp?t:void 0}function Qo(t,e,n){if(vs(e))return e;const r=e[Ct];if(!r)return vi(e,((o,i)=>Fd(t,r,e,o,i,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return es(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let o=e,i=!1;3===r.type_&&(o=new Set(e),e.clear(),i=!0),vi(o,((o,s)=>Fd(t,r,e,o,s,n,i))),es(t,e,!1),n&&t.patches_&&Kr("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function Fd(t,e,n,r,o,i,s){if(Dr(o)){const s=Qo(t,o,i&&e&&3!==e.type_&&!bu(e.assigned_,r)?i.concat(r):void 0);if(yp(n,r,s),!Dr(s))return;t.canAutoFreeze_=!1}else s&&n.add(o);if(_r(o)&&!vs(o)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Qo(t,o),(!e||!e.scope_.parent_)&&es(t,o)}}function es(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ic(e,n)}function DC(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 o=r,i=oc;n&&(o=[r],i=Ei);const{revoke:s,proxy:a}=Proxy.revocable(o,i);return r.draft_=a,r.revoke_=s,a}var oc={get(t,e){if(e===Ct)return t;const n=Gr(t);if(!bu(n,e))return NC(t,n,e);const r=n[e];return t.finalized_||!_r(r)?r:r===Va(t.base_,e)?(Ka(t),t.copy_[e]=xu(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=Va(Gr(t),e),o=null==r?void 0:r[Ct];if(o&&o.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(RC(n,r)&&(void 0!==n||bu(t.base_,e)))return!0;Ka(t),Cu(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!==Va(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,Ka(t),Cu(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 Va(t,e){const n=t[Ct];return(n?Gr(n):t)[e]}function NC(t,e,n){var r;const o=Sp(e,n);return o?"value"in o?o.value:null==(r=o.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 Cu(t){t.modified_||(t.modified_=!0,t.parent_&&Cu(t.parent_))}function Ka(t){t.copy_||(t.copy_=wu(t.base_,t.scope_.immer_.useStrictShallowCopy_))}vi(oc,((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 oc.set.call(this,t[0],e,n,t[0])};var LC=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,...o){return r.produce(t,(t=>e.call(this,t,...o)))}}let r;if("function"!=typeof e&&$t(6),void 0!==n&&"function"!=typeof n&&$t(7),_r(t)){const o=Ld(this),i=xu(t,void 0);let s=!0;try{r=e(i),s=!1}finally{s?Iu(o):ku(o)}return Nd(o,n),Pd(r,o)}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=[],o=[];Kr("Patches").generateReplacementPatches_(t,r,e,o),n(e,o)}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=xu(t,void 0);return n[Ct].isManual_=!0,ku(e),n}finishDraft(t,e){const n=t&&t[Ct];(!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 xu(t,e){const n=_s(t)?Kr("MapSet").proxyMap_(t,e):ys(t)?Kr("MapSet").proxySet_(t,e):DC(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)||vs(t))return t;const e=t[Ct];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 xt=new LC,wp=xt.produce;function PC(t,e="expected a function, instead received "+typeof t){if("function"!=typeof t)throw new TypeError(e)}function FC(t,e="expected an object, instead received "+typeof t){if("object"!=typeof t)throw new TypeError(e)}function BC(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}]`)}}xt.produceWithPatches.bind(xt),xt.setAutoFreeze.bind(xt),xt.setUseStrictShallowCopy.bind(xt),xt.applyPatches.bind(xt),xt.createDraft.bind(xt),xt.finishDraft.bind(xt);var Bd=t=>Array.isArray(t)?t:[t];function jC(t){const e=Array.isArray(t[0])?t[0]:t;return BC(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function UC(t,e){const n=[],{length:r}=t;for(let o=0;o<r;o++)n.push(t[o].apply(null,e));return n}var WC=class{constructor(t){this.value=t}deref(){return this.value}},zC=typeof WeakRef<"u"?WeakRef:WC,$C=0,jd=1;function Lo(){return{s:$C,v:void 0,o:null,p:null}}function sc(t,e={}){let n=Lo();const{resultEqualityCheck:r}=e;let o,i=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=Lo(),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=Lo(),t.set(e,s)):s=n}}const u=s;let c;if(s.s===jd?c=s.v:(c=t.apply(null,arguments),i++),u.s=jd,r){const t=(null==(e=null==o?void 0:o.deref)?void 0:e.call(o))??o;null!=t&&r(t,c)&&(c=t,0!==i&&i--),o="object"==typeof c&&null!==c||"function"==typeof c?new zC(c):c}return u.v=c,c}return s.clearCache=()=>{n=Lo(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function Ip(t,...e){const n="function"==typeof t?{memoize:t,memoizeOptions:e}:t,r=(...t)=>{let e,r=0,o=0,i={},s=t.pop();"object"==typeof s&&(i=s,s=t.pop()),PC(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const a={...n,...i},{memoize:u,memoizeOptions:c=[],argsMemoize:l=sc,argsMemoizeOptions:f=[],devModeChecks:d={}}=a,h=Bd(c),p=Bd(f),m=jC(t),y=u((function(){return r++,s.apply(null,arguments)}),...h),g=l((function(){o++;const t=UC(m,arguments);return e=y.apply(null,t),e}),...p);return Object.assign(g,{resultFunc:s,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>e,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var HC=Ip(sc),qC=Object.assign(((t,e=HC)=>{FC(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:()=>qC}),GC=(...t)=>{const e=Ip(...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(kt(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=>CC(e)&&e.type===t,n}function Ud(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(kt(10));const r=n.insert(e,t);return t.set(e,r),r}function kp(t){const e={},n=[];let r;const o={addCase(t,n){const r="string"==typeof t?t:t.type;if(!r)throw new Error(kt(28));if(r in e)throw new Error(kt(29));return e[r]=n,o},addMatcher:(t,e)=>(n.push({matcher:t,reducer:e}),o),addDefaultCase:t=>(r=t,o)};return t(o),[e,n,r]}function YC(t){return"function"==typeof t}function VC(t,e){let n,[r,o,i]=kp(e);if(YC(t))n=()=>Ud(t());else{const e=Ud(t);n=()=>e}function s(t=n(),e){let s=[r[e.type],...o.filter((({matcher:t})=>t(e))).map((({reducer:t})=>t))];return 0===s.filter((t=>!!t)).length&&(s=[i]),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(kt(9))}return r}}return t}),t)}return s.getInitialState=n,s}GC(sc);var KC="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",JC=(t=21)=>{let e="",n=t;for(;n--;)e+=KC[64*Math.random()|0];return e},XC=Symbol.for("rtk-slice-createasyncthunk");function ZC(t,e){return`${t}/${e}`}function QC({creators:t}={}){var e;const n=null==(e=null==t?void 0:t.asyncThunk)?void 0:e[XC];return function(t){const{name:e,reducerPath:r=e}=t;if(!e)throw new Error(kt(11));const o=("function"==typeof t.reducers?t.reducers(rx()):t.reducers)||{},i=Object.keys(o),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(t,e){const n="string"==typeof t?t:t.type;if(!n)throw new Error(kt(12));if(n in s.sliceCaseReducersByType)throw new Error(kt(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?kp(t.extraReducers):[t.extraReducers],o={...e,...s.sliceCaseReducersByType};return VC(t.initialState,(t=>{for(let e in o)t.addCase(e,o[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)}))}i.forEach((r=>{const i=o[r],s={reducerName:r,type:ZC(e,r),createNotation:"function"==typeof t.reducers};ix(i)?sx(s,i,a,n):nx(s,i,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 o(e=c){const r=Wd(l,n,{insert:()=>new WeakMap});return Wd(r,e,{insert:()=>{const r={};for(const[o,i]of Object.entries(t.selectors??{}))r[o]=ex(i,e,h,n);return r}})}return{reducerPath:e,getSelectors:o,get selectors(){return o(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 o=e??r;return t.inject({reducerPath:o,reducer:d},n),{...m,...p(o,!0)}}};return m}}function ex(t,e,n,r){function o(o,...i){let s=e(o);return typeof s>"u"&&r&&(s=n()),t(s,...i)}return o.unwrapped=t,o}var tx=QC();function rx(){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 nx({type:t,reducerName:e,createNotation:n},r,o){let i,s;if("reducer"in r){if(n&&!ox(r))throw new Error(kt(17));i=r.reducer,s=r.prepare}else i=r;o.addCase(t,i).exposeCaseReducer(e,i).exposeAction(e,s?An(t,s):An(t))}function ix(t){return"asyncThunk"===t._reducerDefinitionType}function ox(t){return"reducerWithPrepare"===t._reducerDefinitionType}function sx({type:t,reducerName:e},n,r,o){if(!o)throw new Error(kt(18));const{payloadCreator:i,fulfilled:s,pending:a,rejected:u,settled:c,options:l}=n,f=o(t,i,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||Po,pending:a||Po,rejected:u||Po,settled:c||Po})}function Po(){}var ax=(t,e)=>{if("function"!=typeof t)throw new Error(kt(32))},ac="listenerMiddleware",ux=t=>{let{type:e,actionCreator:n,matcher:r,predicate:o,effect:i}=t;if(e)o=An(e).match;else if(n)e=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(kt(21));return ax(i),{predicate:o,type:e,effect:i}},cx=Object.assign((t=>{const{type:e,predicate:n,effect:r}=ux(t);return{id:JC(),effect:r,type:e,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(kt(22))}}}),{withTypes:()=>cx}),lx=Object.assign(An(`${ac}/add`),{withTypes:()=>lx});An(`${ac}/removeAll`);var fx=Object.assign(An(`${ac}/remove`),{withTypes:()=>fx});function kt(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};tx({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 dx=(...t)=>{let e="";for(const n of t){if(n instanceof Error){const t=n;return kb("exceptionMessage",e),void Uu(t)}if("object"!=typeof n)e+=n;else try{e+=" "+JSON.stringify(n)}catch{e+=" "+n}}wb(e)},$d=["debug","info","warn","error"],hx=(t,e)=>{const n=$d.indexOf(t);return $d.indexOf(e)>=n},Fo=(t,e,n,...r)=>{hx(e,t)&&console.log(`[${t}] ${n}`,...r)},px=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),mx=(t=!mp()&&px()||"warn")=>{let e=t;return{debug:(t,...n)=>Fo("debug",e,t,...n),info:(t,...n)=>Fo("info",e,t,...n),warn:(t,...n)=>Fo("warn",e,t,...n),error:(t,...n)=>(dx(t,...n),Fo("error",e,t,...n)),setLevel:t=>{e=t},getLevel:()=>e}},Ru=mx(),gx="https://cdn.jsdelivr.net/npm/@wellesley/error-kit/ooopsIcon.svg?no-inline";var Hd,ii={exports:{}},_x=ii.exports;
|
|
20
20
|
/**
|
|
21
21
|
* @license
|
|
22
22
|
* Lodash <https://lodash.com/>
|
|
@@ -24,7 +24,7 @@ import{logErrorToSentry as Td}from"https://cdn.jsdelivr.net/npm/@wellesley/sentr
|
|
|
24
24
|
* Released under MIT license <https://lodash.com/license>
|
|
25
25
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
26
26
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
27
|
-
*/function Yd(){return Ga||(Ga=1,t=Vt,n=Vt.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 c(t,n){return!(null==t||!t.length)&&y(t,n,0)>-1}function f(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 p(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 h(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 d(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 g(t,n,r){var e;return r(t,(function(t,r,i){if(n(t,r,i))return e=r,!1})),e}function v(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 y(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):v(t,m,r)}function _(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 b(t,n){var r=null==t?0:t.length;return r?k(t,n)/r:Q}function w(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 R(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}function E(t){return t&&t.slice(0,T(t)+1).replace(qt,"")}function j(t){return function(n){return t(n)}}function W(t,n){return l(n,(function(n){return t[n]}))}function I(t,n){return t.has(n)}function O(t,n){for(var r=-1,e=t.length;++r<e&&y(n,t[r],0)>-1;);return r}function S(t,n){for(var r=t.length;r--&&y(n,t[r],0)>-1;);return r}function C(t){return"\\"+Jn[t]}function B(t){return qn.test(t)}function D(t){var n=-1,r=Array(t.size);return t.forEach((function(t,e){r[++n]=[e,t]})),r}function L(t,n){return function(r){return t(n(r))}}function z(t,n){for(var r=-1,e=t.length,i=0,u=[];++r<e;){var o=t[r];o!==n&&o!==N||(t[r]=N,u[i++]=r)}return u}function P(t){var n=-1,r=Array(t.size);return t.forEach((function(t){r[++n]=t})),r}function $(t){return B(t)?function(t){for(var n=Fn.lastIndex=0;Fn.test(t);)++n;return n}(t):dr(t)}function V(t){return B(t)?function(t){return t.match(Fn)||[]}(t):function(t){return t.split("")}(t)}function T(t){for(var n=t.length;n--&&Kt.test(t.charAt(n)););return n}var U,F="Expected a function",M="__lodash_hash_undefined__",N="__lodash_placeholder__",q=16,K=32,Z=64,Y=128,H=256,G=1/0,J=9007199254740991,Q=NaN,X=4294967295,tt=X-1,nt=X>>>1,rt=[["ary",Y],["bind",1],["bindKey",2],["curry",8],["curryRight",q],["flip",512],["partial",K],["partialRight",Z],["rearg",H]],et="[object Arguments]",it="[object Array]",ut="[object Boolean]",ot="[object Date]",at="[object Error]",ct="[object Function]",ft="[object GeneratorFunction]",lt="[object Map]",st="[object Number]",pt="[object Object]",ht="[object Promise]",dt="[object RegExp]",gt="[object Set]",vt="[object String]",yt="[object Symbol]",_t="[object WeakMap]",mt="[object ArrayBuffer]",bt="[object DataView]",wt="[object Float32Array]",xt="[object Float64Array]",At="[object Int8Array]",kt="[object Int16Array]",Rt="[object Int32Array]",Et="[object Uint8Array]",jt="[object Uint8ClampedArray]",Wt="[object Uint16Array]",It="[object Uint32Array]",Ot=/\b__p \+= '';/g,St=/\b(__p \+=) '' \+/g,Ct=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bt=/&(?:amp|lt|gt|quot|#39);/g,Dt=/[&<>"']/g,Lt=RegExp(Bt.source),zt=RegExp(Dt.source),Pt=/<%-([\s\S]+?)%>/g,$t=/<%([\s\S]+?)%>/g,Vt=/<%=([\s\S]+?)%>/g,Tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ut=/^\w*$/,Ft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mt=/[\\^$.*+?()[\]{}|]/g,Nt=RegExp(Mt.source),qt=/^\s+/,Kt=/\s/,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ht=/,? & /,Gt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jt=/[()=,{}\[\]\/\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,cn=/($^)/,fn=/['\n\r\u2028\u2029\\]/g,ln="\\ud800-\\udfff",sn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pn="\\u2700-\\u27bf",hn="a-z\\xdf-\\xf6\\xf8-\\xff",dn="A-Z\\xc0-\\xd6\\xd8-\\xde",gn="\\ufe0e\\ufe0f",vn="\\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",yn="['’]",_n="["+ln+"]",mn="["+vn+"]",bn="["+sn+"]",wn="\\d+",xn="["+pn+"]",An="["+hn+"]",kn="[^"+ln+vn+wn+pn+hn+dn+"]",Rn="\\ud83c[\\udffb-\\udfff]",En="[^"+ln+"]",jn="(?:\\ud83c[\\udde6-\\uddff]){2}",Wn="[\\ud800-\\udbff][\\udc00-\\udfff]",In="["+dn+"]",On="\\u200d",Sn="(?:"+An+"|"+kn+")",Cn="(?:"+In+"|"+kn+")",Bn="(?:['’](?:d|ll|m|re|s|t|ve))?",Dn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ln="(?:"+bn+"|"+Rn+")?",zn="["+gn+"]?",Pn=zn+Ln+"(?:"+On+"(?:"+[En,jn,Wn].join("|")+")"+zn+Ln+")*",$n="(?:"+[xn,jn,Wn].join("|")+")"+Pn,Vn="(?:"+[En+bn+"?",bn,jn,Wn,_n].join("|")+")",Tn=RegExp(yn,"g"),Un=RegExp(bn,"g"),Fn=RegExp(Rn+"(?="+Rn+")|"+Vn+Pn,"g"),Mn=RegExp([In+"?"+An+"+"+Bn+"(?="+[mn,In,"$"].join("|")+")",Cn+"+"+Dn+"(?="+[mn,In+Sn,"$"].join("|")+")",In+"?"+Sn+"+"+Bn,In+"+"+Dn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wn,$n].join("|"),"g"),qn=RegExp("["+On+ln+sn+gn+"]"),Kn=/[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,Hn={};Hn[wt]=Hn[xt]=Hn[At]=Hn[kt]=Hn[Rt]=Hn[Et]=Hn[jt]=Hn[Wt]=Hn[It]=!0,Hn[et]=Hn[it]=Hn[mt]=Hn[ut]=Hn[bt]=Hn[ot]=Hn[at]=Hn[ct]=Hn[lt]=Hn[st]=Hn[pt]=Hn[dt]=Hn[gt]=Hn[vt]=Hn[_t]=!1;var Gn={};Gn[et]=Gn[it]=Gn[mt]=Gn[bt]=Gn[ut]=Gn[ot]=Gn[wt]=Gn[xt]=Gn[At]=Gn[kt]=Gn[Rt]=Gn[lt]=Gn[st]=Gn[pt]=Gn[dt]=Gn[gt]=Gn[vt]=Gn[yt]=Gn[Et]=Gn[jt]=Gn[Wt]=Gn[It]=!0,Gn[at]=Gn[ct]=Gn[_t]=!1;var Jn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qn=parseFloat,Xn=parseInt,tr="object"==typeof Nn&&Nn&&Nn.Object===Object&&Nn,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{}}(),cr=ar&&ar.isArrayBuffer,fr=ar&&ar.isDate,lr=ar&&ar.isMap,sr=ar&&ar.isRegExp,pr=ar&&ar.isSet,hr=ar&&ar.isTypedArray,dr=w("length"),gr=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"}),vr=x({"&":"&","<":"<",">":">",'"':""","'":"'"}),yr=x({"&":"&","<":"<",">":">",""":'"',"'":"'"}),_r=function t(n){function x(t){if(Pi(t)&&!Wa(t)&&!(t instanceof sn)){if(t instanceof ln)return t;if(ju.call(t,"__wrapped__"))return fi(t)}return new ln(t)}function Kt(){}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 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 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 dn(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.__data__=new dn;++n<r;)this.add(t[n])}function vn(t){this.size=(this.__data__=new hn(t)).size}function yn(t,n){var r=Wa(t),e=!r&&ja(t),i=!r&&!e&&Oa(t),u=!r&&!e&&!i&&La(t),o=r||e||i||u,a=o?R(t.length,bu):[],c=a.length;for(var f in t)!n&&!ju.call(t,f)||o&&("length"==f||i&&("offset"==f||"parent"==f)||u&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Ye(f,c))||a.push(f);return a}function _n(t){var n=t.length;return n?t[Br(0,n-1)]:U}function mn(t,n){return oi(le(t),Wn(n,0,t.length))}function bn(t){return oi(le(t))}function wn(t,n,r){(r===U||Ii(t[n],r))&&(r!==U||n in t)||En(t,n,r)}function xn(t,n,r){var e=t[n];ju.call(t,n)&&Ii(e,r)&&(r!==U||n in t)||En(t,n,r)}function An(t,n){for(var r=t.length;r--;)if(Ii(t[r][0],n))return r;return-1}function kn(t,n,r,e){return Eo(t,(function(t,i,u){n(e,t,r(t),u)})),e}function Rn(t,n){return t&&se(n,Ji(n),t)}function En(t,n,r){"__proto__"==n&&qu?qu(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}function jn(t,n){for(var r=-1,e=n.length,i=hu(e),u=null==t;++r<e;)i[r]=u?U:Hi(t,n[r]);return i}function Wn(t,n,r){return t==t&&(r!==U&&(t=t<=r?t:r),n!==U&&(t=t>=n?t:n)),t}function In(t,n,r,e,u,o){var a,c=1&n,f=2&n,l=4&n;if(r&&(a=u?r(t,e,u,o):r(t)),a!==U)return a;if(!zi(t))return t;var s=Wa(t);if(s){if(a=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&ju.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return le(t,a)}else{var p=$o(t),h=p==ct||p==ft;if(Oa(t))return ie(t,c);if(p==pt||p==et||h&&!u){if(a=f||h?{}:Ke(t),!c)return f?function(t,n){return se(t,Po(t),n)}(t,function(t,n){return t&&se(n,Qi(n),t)}(a,t)):function(t,n){return se(t,zo(t),n)}(t,Rn(a,t))}else{if(!Gn[p])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 bt:return function(t,n){return new t.constructor(n?ue(t.buffer):t.buffer,t.byteOffset,t.byteLength)}(t,r);case wt:case xt:case At:case kt:case Rt:case Et:case jt:case Wt:case It:return oe(t,r);case lt:return new e;case st:case vt:return new e(t);case dt:return function(t){var n=new t.constructor(t.source,tn.exec(t));return n.lastIndex=t.lastIndex,n}(t);case gt:return new e;case yt:return function(t){return Ao?_u(Ao.call(t)):{}}(t)}}(t,p,c)}}o||(o=new vn);var d=o.get(t);if(d)return d;o.set(t,a),Da(t)?t.forEach((function(e){a.add(In(e,n,r,e,t,o))})):Ca(t)&&t.forEach((function(e,i){a.set(i,In(e,n,r,i,t,o))}));var g=s?U:(l?f?$e:Pe:f?Qi:Ji)(t);return i(g||t,(function(e,i){g&&(e=t[i=e]),xn(a,i,In(e,n,r,i,t,o))})),a}function On(t,n,r){var e=r.length;if(null==t)return!e;for(t=_u(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 wu(F);return Uo((function(){t.apply(U,r)}),n)}function Cn(t,n,r,e){var i=-1,u=c,o=!0,a=t.length,s=[],p=n.length;if(!a)return s;r&&(n=l(n,j(r))),e?(u=f,o=!1):n.length>=200&&(u=I,o=!1,n=new gn(n));t:for(;++i<a;){var h=t[i],d=null==r?h:r(h);if(h=e||0!==h?h:0,o&&d==d){for(var g=p;g--;)if(n[g]===d)continue t;s.push(h)}else u(n,d,e)||s.push(h)}return s}function Bn(t,n){var r=!0;return Eo(t,(function(t,e,i){return r=!!n(t,e,i)})),r}function Dn(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,c=u}return c}function Ln(t,n){var r=[];return Eo(t,(function(t,e,i){n(t,e,i)&&r.push(t)})),r}function zn(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?zn(a,n-1,r,e,i):s(i,a):e||(i[i.length]=a)}return i}function Pn(t,n){return t&&Wo(t,n,Ji)}function $n(t,n){return t&&Io(t,n,Ji)}function Vn(t,n){return a(n,(function(n){return Bi(t[n])}))}function Fn(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 Nn(t,n,r){var e=n(t);return Wa(t)?e:s(e,r(t))}function qn(t){return null==t?t===U?"[object Undefined]":"[object Null]":Nu&&Nu in _u(t)?function(t){var n=ju.call(t,Nu),r=t[Nu];try{t[Nu]=U;var e=!0}catch{}var i=Ou.call(t);return e&&(n?t[Nu]=r:delete t[Nu]),i}(t):function(t){return Ou.call(t)}(t)}function Jn(t,n){return t>n}function tr(t,n){return null!=t&&ju.call(t,n)}function nr(t,n){return null!=t&&n in _u(t)}function er(t,n,r){for(var e=r?f:c,i=t[0].length,u=t.length,o=u,a=hu(u),s=1/0,p=[];o--;){var h=t[o];o&&n&&(h=l(h,j(n))),s=eo(h.length,s),a[o]=!r&&(n||i>=120&&h.length>=120)?new gn(o&&h):U}h=t[0];var d=-1,g=a[0];t:for(;++d<i&&p.length<s;){var v=h[d],y=n?n(v):v;if(v=r||0!==v?v:0,!(g?I(g,y):e(p,y,r))){for(o=u;--o;){var _=a[o];if(!(_?I(_,y):e(t[o],y,r)))continue t}g&&g.push(y),p.push(v)}}return p}function ir(t,n,e){var i=null==(t=ri(t,n=re(n,t)))?t:t[ai(di(n))];return null==i?U:r(i,t,e)}function or(t){return Pi(t)&&qn(t)==et}function ar(t,n,r,e,i){return t===n||(null==t||null==n||!Pi(t)&&!Pi(n)?t!=t&&n!=n:function(t,n,r,e,i,u){var o=Wa(t),a=Wa(n),c=o?it:$o(t),f=a?it:$o(n),l=(c=c==et?pt:c)==pt,s=(f=f==et?pt:f)==pt,p=c==f;if(p&&Oa(t)){if(!Oa(n))return!1;o=!0,l=!1}if(p&&!l)return u||(u=new vn),o||La(t)?Le(t,n,r,e,i,u):function(t,n,r,e,i,u,o){switch(r){case bt: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 zu(t),new zu(n)));case ut:case ot:case st:return Ii(+t,+n);case at:return t.name==n.name&&t.message==n.message;case dt:case vt:return t==n+"";case lt:var a=D;case gt:var c=1&e;if(a||(a=P),t.size!=n.size&&!c)return!1;var f=o.get(t);if(f)return f==n;e|=2,o.set(t,n);var l=Le(a(t),a(n),e,i,u,o);return o.delete(t),l;case yt:if(Ao)return Ao.call(t)==Ao.call(n)}return!1}(t,n,c,r,e,i,u);if(!(1&r)){var h=l&&ju.call(t,"__wrapped__"),d=s&&ju.call(n,"__wrapped__");if(h||d){var g=h?t.value():t,v=d?n.value():n;return u||(u=new vn),i(g,v,r,e,u)}}return!!p&&(u||(u=new vn),function(t,n,r,e,i,u){var o=1&r,a=Pe(t),c=a.length;if(c!=Pe(n).length&&!o)return!1;for(var f=c;f--;){var l=a[f];if(!(o?l in n:ju.call(n,l)))return!1}var s=u.get(t),p=u.get(n);if(s&&p)return s==n&&p==t;var h=!0;u.set(t,n),u.set(n,t);for(var d=o;++f<c;){var g=t[l=a[f]],v=n[l];if(e)var y=o?e(v,g,l,n,t,u):e(g,v,l,t,n,u);if(!(y===U?g===v||i(g,v,r,e,u):y)){h=!1;break}d||(d="constructor"==l)}if(h&&!d){var _=t.constructor,m=n.constructor;_!=m&&"constructor"in t&&"constructor"in n&&!("function"==typeof _&&_ instanceof _&&"function"==typeof m&&m instanceof m)&&(h=!1)}return u.delete(t),u.delete(n),h}(t,n,r,e,i,u))}(t,n,r,e,ar,i))}function dr(t,n,r,e){var i=r.length,u=i,o=!e;if(null==t)return!u;for(t=_u(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 c=(a=r[i])[0],f=t[c],l=a[1];if(o&&a[2]){if(f===U&&!(c in t))return!1}else{var s=new vn;if(e)var p=e(f,l,c,t,n,s);if(!(p===U?ar(l,f,3,e,s):p))return!1}}return!0}function mr(t){return!(!zi(t)||function(t){return!!Iu&&Iu in t}(t))&&(Bi(t)?Bu:en).test(ci(t))}function br(t){return"function"==typeof t?t:null==t?uu:"object"==typeof t?Wa(t)?Er(t[0],t[1]):Rr(t):fu(t)}function wr(t){if(!Qe(t))return no(t);var n=[];for(var r in _u(t))ju.call(t,r)&&"constructor"!=r&&n.push(r);return n}function xr(t){if(!zi(t))return function(t){var n=[];if(null!=t)for(var r in _u(t))n.push(r);return n}(t);var n=Qe(t),r=[];for(var e in t)("constructor"!=e||!n&&ju.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)?hu(t.length):[];return Eo(t,(function(t,i,u){e[++r]=n(t,i,u)})),e}function Rr(t){var n=Me(t);return 1==n.length&&n[0][2]?ti(n[0][0],n[0][1]):function(r){return r===t||dr(r,t,n)}}function Er(t,n){return Ge(t)&&Xe(n)?ti(ai(t),n):function(r){var e=Hi(r,t);return e===U&&e===n?Gi(r,t):ar(n,e,3)}}function jr(t,n,r,e,i){t!==n&&Wo(n,(function(u,o){if(i||(i=new vn),zi(u))!function(t,n,r,e,i,u,o){var a=ei(t,r),c=ei(n,r),f=o.get(c);if(f)return wn(t,r,f),U;var l=u?u(a,c,r+"",t,n,o):U,s=l===U;if(s){var p=Wa(c),h=!p&&Oa(c),d=!p&&!h&&La(c);l=c,p||h||d?Wa(a)?l=a:Si(a)?l=le(a):h?(s=!1,l=ie(c,!0)):d?(s=!1,l=oe(c,!0)):l=[]:Vi(c)||ja(c)?(l=a,ja(a)?l=Zi(a):zi(a)&&!Bi(a)||(l=Ke(c))):s=!1}s&&(o.set(c,l),i(l,c,e,u,o),o.delete(c)),wn(t,r,l)}(t,n,o,r,jr,e,i);else{var a=e?e(ei(t,o),u,o+"",t,n,i):U;a===U&&(a=u),wn(t,o,a)}}),Qi)}function Wr(t,n){var r=t.length;if(r)return Ye(n+=n<0?r:0,r)?t[n]:U}function Ir(t,n,r){n=n.length?l(n,(function(t){return Wa(t)?function(n){return Fn(n,1===t.length?t[0]:t)}:t})):[uu];var e=-1;return n=l(n,j(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 c=ae(i[e],u[e]);if(c)return e>=a?c:c*("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=Fn(t,o);r(a,o)&&$r(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,j(r)));++u<o;)for(var c=0,f=n[u],s=r?r(f):f;(c=i(a,s,c,e))>-1;)a!==t&&Uu.call(a,c,1),Uu.call(t,c,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+Gu(oo()*(n-t+1))}function Dr(t,n){var r="";if(!t||n<1||n>J)return r;do{n%2&&(r+=t),(n=Gu(n/2))&&(t+=t)}while(n);return r}function Lr(t,n){return Fo(ni(t,n,uu),t+"")}function zr(t){return _n(tu(t))}function Pr(t,n){var r=tu(t);return oi(r,Wn(n,0,r.length))}function $r(t,n,r,e){if(!zi(t))return t;for(var i=-1,u=(n=re(n,t)).length,o=u-1,a=t;null!=a&&++i<u;){var c=ai(n[i]),f=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=o){var l=a[c];(f=e?e(l,c,a):U)===U&&(f=zi(l)?l:Ye(n[i+1])?[]:{})}xn(a,c,f),a=a[c]}return t}function Vr(t){return oi(tu(t))}function Tr(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=hu(i);++e<i;)u[e]=t[e+n];return u}function Ur(t,n){var r;return Eo(t,(function(t,e,i){return!(r=n(t,e,i))})),!!r}function Fr(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 Mr(t,n,uu,r)}function Mr(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,c=Ui(n),f=n===U;i<u;){var l=Gu((i+u)/2),s=r(t[l]),p=s!==U,h=null===s,d=s==s,g=Ui(s);if(o)var v=e||d;else v=f?d&&(e||p):a?d&&p&&(e||!h):c?d&&p&&!h&&(e||!g):!h&&!g&&(e?s<=n:s<n);v?i=l+1:u=l}return eo(u,tt)}function Nr(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||!Ii(a,c)){var c=a;u[i++]=0===o?0:o}}return u}function qr(t){return"number"==typeof t?t:Ui(t)?Q:+t}function Kr(t){if("string"==typeof t)return t;if(Wa(t))return l(t,Kr)+"";if(Ui(t))return ko?ko.call(t):"";var n=t+"";return"0"==n&&1/t==-G?"-0":n}function Zr(t,n,r){var e=-1,i=c,u=t.length,o=!0,a=[],l=a;if(r)o=!1,i=f;else if(u>=200){var s=n?null:Do(t);if(s)return P(s);o=!1,i=I,l=new gn}else l=n?[]:a;t:for(;++e<u;){var p=t[e],h=n?n(p):p;if(p=r||0!==p?p:0,o&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue t;n&&l.push(h),a.push(p)}else i(l,h,r)||(l!==a&&l.push(h),a.push(p))}return a}function Yr(t,n){return null==(t=ri(t,n=re(n,t)))||delete t[ai(di(n))]}function Hr(t,n,r,e){return $r(t,n,r(Fn(t,n)),e)}function Gr(t,n,r,e){for(var i=t.length,u=e?i:-1;(e?u--:++u<i)&&n(t[u],u,t););return r?Tr(t,e?0:u,e?u+1:i):Tr(t,e?u+1:0,e?i:u)}function Jr(t,n){var r=t;return r instanceof sn&&(r=r.value()),p(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=hu(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(zn(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 Wa(t)?t:Ge(t,n)?[t]:Mo(Yi(t))}function ee(t,n,r){var e=t.length;return r=r===U?e:r,!n&&r>=e?t:Tr(t,n,r)}function ie(t,n){if(n)return t.slice();var r=t.length,e=Pu?Pu(r):new t.constructor(r);return t.copy(e),e}function ue(t){var n=new t.constructor(t.byteLength);return new zu(n).set(new zu(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,c=n==n,f=Ui(n);if(!a&&!f&&!u&&t>n||u&&o&&c&&!a&&!f||e&&o&&c||!r&&c||!i)return 1;if(!e&&!u&&!f&&t<n||f&&r&&i&&!e&&!u||a&&r&&i||!o&&i||!c)return-1}return 0}function ce(t,n,r,e){for(var i=-1,u=t.length,o=r.length,a=-1,c=n.length,f=ro(u-o,0),l=hu(c+f),s=!e;++a<c;)l[a]=n[a];for(;++i<o;)(s||i<u)&&(l[r[i]]=t[i]);for(;f--;)l[a++]=t[i++];return l}function fe(t,n,r,e){for(var i=-1,u=t.length,o=-1,a=r.length,c=-1,f=n.length,l=ro(u-a,0),s=hu(l+f),p=!e;++i<l;)s[i]=t[i];for(var h=i;++c<f;)s[h+c]=n[c];for(;++o<a;)(p||i<u)&&(s[h+r[o]]=t[i++]);return s}function le(t,n){var r=-1,e=t.length;for(n||(n=hu(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],c=e?e(r[a],t[a],a,r,t):U;c===U&&(c=t[a]),i?En(r,a,c):xn(r,a,c)}return r}function pe(t,n){return function(r,i){var u=Wa(r)?e:kn,o=n?n():{};return u(r,t,Ue(i,2),o)}}function he(t){return Lr((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&&He(r[0],r[1],o)&&(u=i<3?U:u,i=1),n=_u(n);++e<i;){var a=r[e];a&&t(n,a,e,u)}return n}))}function de(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=_u(r);(n?u--:++u<i)&&!1!==e(o[u],u,o););return r}}function ge(t){return function(n,r,e){for(var i=-1,u=_u(n),o=e(n),a=o.length;a--;){var c=o[t?a:++i];if(!1===r(u[c],c,u))break}return n}}function ve(t){return function(n){var r=B(n=Yi(n))?V(n):U,e=r?r[0]:n.charAt(0),i=r?ee(r,1).join(""):n.slice(1);return e[t]()+i}}function ye(t){return function(n){return p(eu(ru(n).replace(Tn,"")),t,"")}}function _e(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=Ro(t.prototype),e=t.apply(r,n);return zi(e)?e:r}}function me(t){return function(n,r,e){var i=_u(n);if(!Oi(n)){var u=Ue(r,3);n=Ji(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 be(t){return ze((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 wu(F);if(i&&!o&&"wrapper"==Ve(u))var o=new ln([],!0)}for(e=o?e:r;++e<r;){var a=Ve(u=n[e]),c="wrapper"==a?Lo(u):U;o=c&&Je(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?o[Ve(c[0])].apply(o,c[3]):1==u.length&&Je(u)?o[a]():o.thru(u)}return function(){var t=arguments,e=t[0];if(o&&1==t.length&&Wa(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 we(t,n,r,e,i,u,o,a,c,f){var l=n&Y,s=1&n,p=2&n,h=24&n,d=512&n,g=p?U:_e(t);return function v(){for(var y=arguments.length,_=hu(y),m=y;m--;)_[m]=arguments[m];if(h)var b=Te(v),w=function(t,n){for(var r=t.length,e=0;r--;)t[r]===n&&++e;return e}(_,b);if(e&&(_=ce(_,e,i,h)),u&&(_=fe(_,u,o,h)),y-=w,h&&y<f)return We(t,n,we,v.placeholder,r,_,z(_,b),a,c,f-y);var x=s?r:this,A=p?x[t]:t;return y=_.length,a?_=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}(_,a):d&&y>1&&_.reverse(),l&&c<y&&(_.length=c),this&&this!==rr&&this instanceof v&&(A=g||_e(A)),A.apply(x,_)}}function xe(t,n){return function(r,e){return function(t,n,r,e){return Pn(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=Kr(r),e=Kr(e)):(r=qr(r),e=qr(e)),i=t(r,e)}return i}}function ke(t){return ze((function(n){return n=l(n,j(Ue())),Lr((function(e){var i=this;return t(n,(function(t){return r(t,i,e)}))}))}))}function Re(t,n){var r=(n=n===U?" ":Kr(n)).length;if(r<2)return r?Dr(n,t):n;var e=Dr(n,Hu(t/$(n)));return B(n)?ee(V(e),0,t).join(""):e.slice(0,t)}function Ee(t){return function(n,r,e){return e&&"number"!=typeof e&&He(n,r,e)&&(r=e=U),n=Mi(n),r===U?(r=n,n=0):r=Mi(r),function(t,n,r,e){for(var i=-1,u=ro(Hu((n-t)/(r||1)),0),o=hu(u);u--;)o[e?u:++i]=t,t+=r;return o}(n,r,e=e===U?n<r?1:-1:Mi(e),t)}}function je(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=Ki(n),r=Ki(r)),t(n,r)}}function We(t,n,r,e,i,u,o,a,c,f){var l=8&n;n|=l?K:Z,4&(n&=~(l?Z:K))||(n&=-4);var s=[t,n,i,l?u:U,l?o:U,l?U:u,l?U:o,a,c,f],p=r.apply(U,s);return Je(t)&&To(p,s),p.placeholder=e,ii(p,t,n)}function Ie(t){var n=yu[t];return function(t,r){if(t=Ki(t),(r=null==r?0:eo(Ni(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=$o(n);return r==lt?D(n):r==gt?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,c){var f=2&n;if(!f&&"function"!=typeof t)throw new wu(F);var l=i?i.length:0;if(l||(n&=-97,i=u=U),a=a===U?a:ro(Ni(a),0),c=c===U?c:Ni(c),l-=u?u.length:0,n&Z){var s=i,p=u;i=u=U}var h=f?U:Lo(t),d=[t,n,e,i,u,s,p,o,a,c];if(h&&function(t,n){var r=t[1],e=n[1],i=r|e,u=i<131,o=e==Y&&8==r||e==Y&&r==H&&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 c=t[3];t[3]=c?ce(c,a,n[4]):a,t[4]=c?z(t[3],N):n[4]}(a=n[5])&&(c=t[5],t[5]=c?fe(c,a,n[6]):a,t[6]=c?z(t[5],N):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}(d,h),t=d[0],n=d[1],e=d[2],i=d[3],u=d[4],!(c=d[9]=d[9]===U?f?0:t.length:ro(d[9]-l,0))&&24&n&&(n&=-25),n&&1!=n)g=8==n||n==q?function(t,n,e){var i=_e(t);return function u(){for(var o=arguments.length,a=hu(o),c=o,f=Te(u);c--;)a[c]=arguments[c];var l=o<3&&a[0]!==f&&a[o-1]!==f?[]:z(a,f);return(o-=l.length)<e?We(t,n,we,u.placeholder,U,a,l,U,U,e-o):r(this&&this!==rr&&this instanceof u?i:t,this,a)}}(t,n,c):n!=K&&33!=n||u.length?we.apply(U,d):function(t,n,e,i){var u=1&n,o=_e(t);return function n(){for(var a=-1,c=arguments.length,f=-1,l=i.length,s=hu(l+c),p=this&&this!==rr&&this instanceof n?o:t;++f<l;)s[f]=i[f];for(;c--;)s[f++]=arguments[++a];return r(p,u?e:this,s)}}(t,n,e,i);else var g=function(t,n,r){var e=1&n,i=_e(t);return function n(){return(this&&this!==rr&&this instanceof n?i:t).apply(e?r:this,arguments)}}(t,n,e);return ii((h?Oo:To)(g,d),t,n)}function Ce(t,n,r,e){return t===U||Ii(t,ku[r])&&!ju.call(e,r)?n:t}function Be(t,n,r,e,i,u){return zi(t)&&zi(n)&&(u.set(n,t),jr(t,n,U,Be,u),u.delete(n)),t}function De(t){return Vi(t)?U:t}function Le(t,n,r,e,i,u){var o=1&r,a=t.length,c=n.length;if(a!=c&&!(o&&c>a))return!1;var f=u.get(t),l=u.get(n);if(f&&l)return f==n&&l==t;var s=-1,p=!0,h=2&r?new gn:U;for(u.set(t,n),u.set(n,t);++s<a;){var g=t[s],v=n[s];if(e)var y=o?e(v,g,s,n,t,u):e(g,v,s,t,n,u);if(y!==U){if(y)continue;p=!1;break}if(h){if(!d(n,(function(t,n){if(!I(h,n)&&(g===t||i(g,t,r,e,u)))return h.push(n)}))){p=!1;break}}else if(g!==v&&!i(g,v,r,e,u)){p=!1;break}}return u.delete(t),u.delete(n),p}function ze(t){return Fo(ni(t,U,pi),t+"")}function Pe(t){return Nn(t,Ji,zo)}function $e(t){return Nn(t,Qi,Po)}function Ve(t){for(var n=t.name+"",r=vo[n],e=ju.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 Te(t){return(ju.call(x,"placeholder")?x:t).placeholder}function Ue(){var t=x.iteratee||ou;return t=t===ou?br:t,arguments.length?t(arguments[0],arguments[1]):t}function Fe(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 Me(t){for(var n=Ji(t),r=n.length;r--;){var e=n[r],i=t[e];n[r]=[e,i,Xe(i)]}return n}function Ne(t,n){var r=function(t,n){return null==t?U:t[n]}(t,n);return mr(r)?r:U}function qe(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)&&Li(i)&&Ye(o,i)&&(Wa(t)||ja(t))}function Ke(t){return"function"!=typeof t.constructor||Qe(t)?{}:Ro($u(t))}function Ze(t){return Wa(t)||ja(t)||!!(Fu&&t&&t[Fu])}function Ye(t,n){var r=typeof t;return!!(n=n??J)&&("number"==r||"symbol"!=r&&on.test(t))&&t>-1&&t%1==0&&t<n}function He(t,n,r){if(!zi(r))return!1;var e=typeof n;return!!("number"==e?Oi(r)&&Ye(n,r.length):"string"==e&&n in r)&&Ii(r[n],t)}function Ge(t,n){if(Wa(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ui(t))||Ut.test(t)||!Tt.test(t)||null!=n&&t in _u(n)}function Je(t){var n=Ve(t),r=x[n];if("function"!=typeof r||!(n in sn.prototype))return!1;if(t===r)return!0;var e=Lo(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&&!zi(t)}function ti(t,n){return function(r){return null!=r&&r[t]===n&&(n!==U||t in _u(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=hu(o);++u<o;)a[u]=i[n+u];u=-1;for(var c=hu(n+1);++u<n;)c[u]=i[u];return c[n]=e(a),r(t,this,c)}}function ri(t,n){return n.length<2?t:Fn(t,Tr(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 Fo(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]&&!c(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Yt);return n?n[1].split(Ht):[]}(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==-G?"-0":n}function ci(t){if(null!=t){try{return Eu.call(t)}catch{}try{return t+""}catch{}}return""}function fi(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:Ni(r);return i<0&&(i=ro(e+i,0)),v(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=Ni(r),i=r<0?ro(e+i,0):eo(i,e-1)),v(t,Ue(n,3),i,!0)}function pi(t){return null!=t&&t.length?zn(t,1):[]}function hi(t){return t&&t.length?t[0]:U}function di(t){var n=null==t?0:t.length;return n?t[n-1]:U}function gi(t,n){return t&&t.length&&n&&n.length?Sr(t,n):t}function vi(t){return null==t?t:ao.call(t)}function yi(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})),R(n,(function(n){return l(t,w(n))}))}function _i(t,n){if(!t||!t.length)return[];var e=yi(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 bi(t,n){return n(t)}function wi(t,n){return(Wa(t)?i:Eo)(t,Ue(n,3))}function xi(t,n){return(Wa(t)?u:jo)(t,Ue(n,3))}function Ai(t,n){return(Wa(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 Ri(t,n){var r;if("function"!=typeof n)throw new wu(F);return t=Ni(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=U),r}}function Ei(t,n,r){function e(n){var r=c,e=f;return c=f=U,d=n,s=t.apply(e,r)}function i(t){var r=t-h;return h===U||r>=n||r<0||v&&t-d>=l}function u(){var t=va();return i(t)?o(t):(p=Uo(u,function(t){var r=n-(t-h);return v?eo(r,l-(t-d)):r}(t)),U)}function o(t){return p=U,y&&c?e(t):(c=f=U,s)}function a(){var t=va(),r=i(t);if(c=arguments,f=this,h=t,r){if(p===U)return function(t){return d=t,p=Uo(u,n),g?e(t):s}(h);if(v)return Bo(p),p=Uo(u,n),e(h)}return p===U&&(p=Uo(u,n)),s}var c,f,l,s,p,h,d=0,g=!1,v=!1,y=!0;if("function"!=typeof t)throw new wu(F);return n=Ki(n)||0,zi(r)&&(g=!!r.leading,l=(v="maxWait"in r)?ro(Ki(r.maxWait)||0,n):l,y="trailing"in r?!!r.trailing:y),a.cancel=function(){p!==U&&Bo(p),d=0,c=h=f=p=U},a.flush=function(){return p===U?s:o(va())},a}function ji(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new wu(F);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(ji.Cache||dn),r}function Wi(t){if("function"!=typeof t)throw new wu(F);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 Ii(t,n){return t===n||t!=t&&n!=n}function Oi(t){return null!=t&&Li(t.length)&&!Bi(t)}function Si(t){return Pi(t)&&Oi(t)}function Ci(t){if(!Pi(t))return!1;var n=qn(t);return n==at||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Vi(t)}function Bi(t){if(!zi(t))return!1;var n=qn(t);return n==ct||n==ft||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Di(t){return"number"==typeof t&&t==Ni(t)}function Li(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=J}function zi(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Pi(t){return null!=t&&"object"==typeof t}function $i(t){return"number"==typeof t||Pi(t)&&qn(t)==st}function Vi(t){if(!Pi(t)||qn(t)!=pt)return!1;var n=$u(t);if(null===n)return!0;var r=ju.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&Eu.call(r)==Su}function Ti(t){return"string"==typeof t||!Wa(t)&&Pi(t)&&qn(t)==vt}function Ui(t){return"symbol"==typeof t||Pi(t)&&qn(t)==yt}function Fi(t){if(!t)return[];if(Oi(t))return Ti(t)?V(t):le(t);if(Mu&&t[Mu])return function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}(t[Mu]());var n=$o(t);return(n==lt?D:n==gt?P:tu)(t)}function Mi(t){return t?(t=Ki(t))===G||t===-G?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Ni(t){var n=Mi(t),r=n%1;return n==n?r?n-r:n:0}function qi(t){return t?Wn(Ni(t),0,X):0}function Ki(t){if("number"==typeof t)return t;if(Ui(t))return Q;if(zi(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=zi(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=E(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?"":Kr(t)}function Hi(t,n,r){var e=null==t?U:Fn(t,n);return e===U?r:e}function Gi(t,n){return null!=t&&qe(t,n,nr)}function Ji(t){return Oi(t)?yn(t):wr(t)}function Qi(t){return Oi(t)?yn(t,!0):xr(t)}function Xi(t,n){if(null==t)return{};var r=l($e(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?[]:W(t,Ji(t))}function nu(t){return ac(Yi(t).toLowerCase())}function ru(t){return(t=Yi(t))&&t.replace(an,gr).replace(Un,"")}function eu(t,n,r){return t=Yi(t),(n=r?U:n)===U?function(t){return Kn.test(t)}(t)?function(t){return t.match(Mn)||[]}(t):function(t){return t.match(Gt)||[]}(t):t.match(n)||[]}function iu(t){return function(){return t}}function uu(t){return t}function ou(t){return br("function"==typeof t?t:In(t,1))}function au(t,n,r){var e=Ji(n),u=Vn(n,e);null!=r||zi(n)&&(u.length||!e.length)||(r=n,n=t,t=this,u=Vn(n,Ji(n)));var o=!(zi(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 cu(){}function fu(t){return Ge(t)?w(ai(t)):function(t){return function(n){return Fn(n,t)}}(t)}function lu(){return[]}function su(){return!1}var pu,hu=(n=null==n?rr:_r.defaults(rr.Object(),n,_r.pick(rr,Zn))).Array,du=n.Date,gu=n.Error,vu=n.Function,yu=n.Math,_u=n.Object,mu=n.RegExp,bu=n.String,wu=n.TypeError,xu=hu.prototype,Au=vu.prototype,ku=_u.prototype,Ru=n["__core-js_shared__"],Eu=Au.toString,ju=ku.hasOwnProperty,Wu=0,Iu=(pu=/[^.]+$/.exec(Ru&&Ru.keys&&Ru.keys.IE_PROTO||""))?"Symbol(src)_1."+pu:"",Ou=ku.toString,Su=Eu.call(_u),Cu=rr._,Bu=mu("^"+Eu.call(ju).replace(Mt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Du=ur?n.Buffer:U,Lu=n.Symbol,zu=n.Uint8Array,Pu=Du?Du.allocUnsafe:U,$u=L(_u.getPrototypeOf,_u),Vu=_u.create,Tu=ku.propertyIsEnumerable,Uu=xu.splice,Fu=Lu?Lu.isConcatSpreadable:U,Mu=Lu?Lu.iterator:U,Nu=Lu?Lu.toStringTag:U,qu=function(){try{var t=Ne(_u,"defineProperty");return t({},"",{}),t}catch{}}(),Ku=n.clearTimeout!==rr.clearTimeout&&n.clearTimeout,Zu=du&&du.now!==rr.Date.now&&du.now,Yu=n.setTimeout!==rr.setTimeout&&n.setTimeout,Hu=yu.ceil,Gu=yu.floor,Ju=_u.getOwnPropertySymbols,Qu=Du?Du.isBuffer:U,Xu=n.isFinite,to=xu.join,no=L(_u.keys,_u),ro=yu.max,eo=yu.min,io=du.now,uo=n.parseInt,oo=yu.random,ao=xu.reverse,co=Ne(n,"DataView"),fo=Ne(n,"Map"),lo=Ne(n,"Promise"),so=Ne(n,"Set"),po=Ne(n,"WeakMap"),ho=Ne(_u,"create"),go=po&&new po,vo={},yo=ci(co),_o=ci(fo),mo=ci(lo),bo=ci(so),wo=ci(po),xo=Lu?Lu.prototype:U,Ao=xo?xo.valueOf:U,ko=xo?xo.toString:U,Ro=function(){function t(){}return function(n){if(!zi(n))return{};if(Vu)return Vu(n);t.prototype=n;var r=new t;return t.prototype=U,r}}();x.templateSettings={escape:Pt,evaluate:$t,interpolate:Vt,variable:"",imports:{_:x}},x.prototype=Kt.prototype,x.prototype.constructor=x,ln.prototype=Ro(Kt.prototype),ln.prototype.constructor=ln,sn.prototype=Ro(Kt.prototype),sn.prototype.constructor=sn,pn.prototype.clear=function(){this.__data__=ho?ho(null):{},this.size=0},pn.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},pn.prototype.get=function(t){var n=this.__data__;if(ho){var r=n[t];return r===M?U:r}return ju.call(n,t)?n[t]:U},pn.prototype.has=function(t){var n=this.__data__;return ho?n[t]!==U:ju.call(n,t)},pn.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ho&&n===U?M:n,this},hn.prototype.clear=function(){this.__data__=[],this.size=0},hn.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))},hn.prototype.get=function(t){var n=this.__data__,r=An(n,t);return r<0?U:n[r][1]},hn.prototype.has=function(t){return An(this.__data__,t)>-1},hn.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},dn.prototype.clear=function(){this.size=0,this.__data__={hash:new pn,map:new(fo||hn),string:new pn}},dn.prototype.delete=function(t){var n=Fe(this,t).delete(t);return this.size-=n?1:0,n},dn.prototype.get=function(t){return Fe(this,t).get(t)},dn.prototype.has=function(t){return Fe(this,t).has(t)},dn.prototype.set=function(t,n){var r=Fe(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this},gn.prototype.add=gn.prototype.push=function(t){return this.__data__.set(t,M),this},gn.prototype.has=function(t){return this.__data__.has(t)},vn.prototype.clear=function(){this.__data__=new hn,this.size=0},vn.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},vn.prototype.get=function(t){return this.__data__.get(t)},vn.prototype.has=function(t){return this.__data__.has(t)},vn.prototype.set=function(t,n){var r=this.__data__;if(r instanceof hn){var e=r.__data__;if(!fo||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new dn(e)}return r.set(t,n),this.size=r.size,this};var Eo=de(Pn),jo=de($n,!0),Wo=ge(),Io=ge(!0),Oo=go?function(t,n){return go.set(t,n),t}:uu,So=qu?function(t,n){return qu(t,"toString",{configurable:!0,enumerable:!1,value:iu(n),writable:!0})}:uu,Co=Lr,Bo=Ku||function(t){return rr.clearTimeout(t)},Do=so&&1/P(new so([,-0]))[1]==G?function(t){return new so(t)}:cu,Lo=go?function(t){return go.get(t)}:cu,zo=Ju?function(t){return null==t?[]:(t=_u(t),a(Ju(t),(function(n){return Tu.call(t,n)})))}:lu,Po=Ju?function(t){for(var n=[];t;)s(n,zo(t)),t=$u(t);return n}:lu,$o=qn;(co&&$o(new co(new ArrayBuffer(1)))!=bt||fo&&$o(new fo)!=lt||lo&&$o(lo.resolve())!=ht||so&&$o(new so)!=gt||po&&$o(new po)!=_t)&&($o=function(t){var n=qn(t),r=n==pt?t.constructor:U,e=r?ci(r):"";if(e)switch(e){case yo:return bt;case _o:return lt;case mo:return ht;case bo:return gt;case wo:return _t}return n});var Vo=Ru?Bi:su,To=ui(Oo),Uo=Yu||function(t,n){return rr.setTimeout(t,n)},Fo=ui(So),Mo=function(t){var n=ji(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(Ft,(function(t,r,e,i){n.push(e?i.replace(Qt,"$1"):r||t)})),n})),No=Lr((function(t,n){return Si(t)?Cn(t,zn(n,1,Si,!0)):[]})),qo=Lr((function(t,n){var r=di(n);return Si(r)&&(r=U),Si(t)?Cn(t,zn(n,1,Si,!0),Ue(r,2)):[]})),Ko=Lr((function(t,n){var r=di(n);return Si(r)&&(r=U),Si(t)?Cn(t,zn(n,1,Si,!0),U,r):[]})),Zo=Lr((function(t){var n=l(t,te);return n.length&&n[0]===t[0]?er(n):[]})),Yo=Lr((function(t){var n=di(t),r=l(t,te);return n===di(r)?n=U:r.pop(),r.length&&r[0]===t[0]?er(r,Ue(n,2)):[]})),Ho=Lr((function(t){var n=di(t),r=l(t,te);return(n="function"==typeof n?n:U)&&r.pop(),r.length&&r[0]===t[0]?er(r,U,n):[]})),Go=Lr(gi),Jo=ze((function(t,n){var r=null==t?0:t.length,e=jn(t,n);return Cr(t,l(n,(function(t){return Ye(t,r)?+t:t})).sort(ae)),e})),Qo=Lr((function(t){return Zr(zn(t,1,Si,!0))})),Xo=Lr((function(t){var n=di(t);return Si(n)&&(n=U),Zr(zn(t,1,Si,!0),Ue(n,2))})),ta=Lr((function(t){var n=di(t);return n="function"==typeof n?n:U,Zr(zn(t,1,Si,!0),U,n)})),na=Lr((function(t,n){return Si(t)?Cn(t,n):[]})),ra=Lr((function(t){return Qr(a(t,Si))})),ea=Lr((function(t){var n=di(t);return Si(n)&&(n=U),Qr(a(t,Si),Ue(n,2))})),ia=Lr((function(t){var n=di(t);return n="function"==typeof n?n:U,Qr(a(t,Si),U,n)})),ua=Lr(yi),oa=Lr((function(t){var n=t.length,r=n>1?t[n-1]:U;return r="function"==typeof r?(t.pop(),r):U,_i(t,r)})),aa=ze((function(t){var n=t.length,r=n?t[0]:0,e=this.__wrapped__,i=function(n){return jn(n,t)};return!(n>1||this.__actions__.length)&&e instanceof sn&&Ye(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:bi,args:[i],thisArg:U}),new ln(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(U),t}))):this.thru(i)})),ca=pe((function(t,n,r){ju.call(t,r)?++t[r]:En(t,r,1)})),fa=me(li),la=me(si),sa=pe((function(t,n,r){ju.call(t,r)?t[r].push(n):En(t,r,[n])})),pa=Lr((function(t,n,e){var i=-1,u="function"==typeof n,o=Oi(t)?hu(t.length):[];return Eo(t,(function(t){o[++i]=u?r(n,t,e):ir(t,n,e)})),o})),ha=pe((function(t,n,r){En(t,r,n)})),da=pe((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),ga=Lr((function(t,n){if(null==t)return[];var r=n.length;return r>1&&He(t,n[0],n[1])?n=[]:r>2&&He(n[0],n[1],n[2])&&(n=[n[0]]),Ir(t,zn(n,1),[])})),va=Zu||function(){return rr.Date.now()},ya=Lr((function(t,n,r){var e=1;if(r.length){var i=z(r,Te(ya));e|=K}return Se(t,e,n,r,i)})),_a=Lr((function(t,n,r){var e=3;if(r.length){var i=z(r,Te(_a));e|=K}return Se(n,e,t,r,i)})),ma=Lr((function(t,n){return Sn(t,1,n)})),ba=Lr((function(t,n,r){return Sn(t,Ki(n)||0,r)}));ji.Cache=dn;var wa=Co((function(t,n){var e=(n=1==n.length&&Wa(n[0])?l(n[0],j(Ue())):l(zn(n,1),j(Ue()))).length;return Lr((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=Lr((function(t,n){return Se(t,K,U,n,z(n,Te(xa)))})),Aa=Lr((function(t,n){return Se(t,Z,U,n,z(n,Te(Aa)))})),ka=ze((function(t,n){return Se(t,H,U,U,U,n)})),Ra=je(Jn),Ea=je((function(t,n){return t>=n})),ja=or(function(){return arguments}())?or:function(t){return Pi(t)&&ju.call(t,"callee")&&!Tu.call(t,"callee")},Wa=hu.isArray,Ia=cr?j(cr):function(t){return Pi(t)&&qn(t)==mt},Oa=Qu||su,Sa=fr?j(fr):function(t){return Pi(t)&&qn(t)==ot},Ca=lr?j(lr):function(t){return Pi(t)&&$o(t)==lt},Ba=sr?j(sr):function(t){return Pi(t)&&qn(t)==dt},Da=pr?j(pr):function(t){return Pi(t)&&$o(t)==gt},La=hr?j(hr):function(t){return Pi(t)&&Li(t.length)&&!!Hn[qn(t)]},za=je(Ar),Pa=je((function(t,n){return t<=n})),$a=he((function(t,n){if(Qe(n)||Oi(n))return se(n,Ji(n),t),U;for(var r in n)ju.call(n,r)&&xn(t,r,n[r])})),Va=he((function(t,n){se(n,Qi(n),t)})),Ta=he((function(t,n,r,e){se(n,Qi(n),t,e)})),Ua=he((function(t,n,r,e){se(n,Ji(n),t,e)})),Fa=ze(jn),Ma=Lr((function(t,n){t=_u(t);var r=-1,e=n.length,i=e>2?n[2]:U;for(i&&He(n[0],n[1],i)&&(e=1);++r<e;)for(var u=n[r],o=Qi(u),a=-1,c=o.length;++a<c;){var f=o[a],l=t[f];(l===U||Ii(l,ku[f])&&!ju.call(t,f))&&(t[f]=u[f])}return t})),Na=Lr((function(t){return t.push(U,Be),r(Ha,U,t)})),qa=xe((function(t,n,r){null!=n&&"function"!=typeof n.toString&&(n=Ou.call(n)),t[n]=r}),iu(uu)),Ka=xe((function(t,n,r){null!=n&&"function"!=typeof n.toString&&(n=Ou.call(n)),ju.call(t,n)?t[n].push(r):t[n]=[r]}),Ue),Za=Lr(ir),Ya=he((function(t,n,r){jr(t,n,r)})),Ha=he((function(t,n,r,e){jr(t,n,r,e)})),Ga=ze((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,$e(t),r),e&&(r=In(r,7,De));for(var i=n.length;i--;)Yr(r,n[i]);return r})),Ja=ze((function(t,n){return null==t?{}:function(t,n){return Or(t,n,(function(n,r){return Gi(t,r)}))}(t,n)})),Qa=Oe(Ji),Xa=Oe(Qi),tc=ye((function(t,n,r){return n=n.toLowerCase(),t+(r?nu(n):n)})),nc=ye((function(t,n,r){return t+(r?"-":"")+n.toLowerCase()})),rc=ye((function(t,n,r){return t+(r?" ":"")+n.toLowerCase()})),ec=ve("toLowerCase"),ic=ye((function(t,n,r){return t+(r?"_":"")+n.toLowerCase()})),uc=ye((function(t,n,r){return t+(r?" ":"")+ac(n)})),oc=ye((function(t,n,r){return t+(r?" ":"")+n.toUpperCase()})),ac=ve("toUpperCase"),cc=Lr((function(t,n){try{return r(t,U,n)}catch(t){return Ci(t)?t:new gu(t)}})),fc=ze((function(t,n){return i(n,(function(n){n=ai(n),En(t,n,ya(t[n],t))})),t})),lc=be(),sc=be(!0),pc=Lr((function(t,n){return function(r){return ir(r,t,n)}})),hc=Lr((function(t,n){return function(r){return ir(t,r,n)}})),dc=ke(l),gc=ke(o),vc=ke(d),yc=Ee(),_c=Ee(!0),mc=Ae((function(t,n){return t+n}),0),bc=Ie("ceil"),wc=Ae((function(t,n){return t/n}),1),xc=Ie("floor"),Ac=Ae((function(t,n){return t*n}),1),kc=Ie("round"),Rc=Ae((function(t,n){return t-n}),0);return x.after=function(t,n){if("function"!=typeof n)throw new wu(F);return t=Ni(t),function(){if(--t<1)return n.apply(this,arguments)}},x.ary=ki,x.assign=$a,x.assignIn=Va,x.assignInWith=Ta,x.assignWith=Ua,x.at=Fa,x.before=Ri,x.bind=ya,x.bindAll=fc,x.bindKey=_a,x.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Wa(t)?t:[t]},x.chain=mi,x.chunk=function(t,n,r){n=(r?He(t,n,r):n===U)?1:ro(Ni(n),0);var e=null==t?0:t.length;if(!e||n<1)return[];for(var i=0,u=0,o=hu(Hu(e/n));i<e;)o[u++]=Tr(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=hu(t-1),r=arguments[0],e=t;e--;)n[e-1]=arguments[e];return s(Wa(r)?le(r):[r],zn(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 wu(F);return[e(t[0]),t[1]]})):[],Lr((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=Ji(t);return function(r){return On(r,t,n)}}(In(t,1))},x.constant=iu,x.countBy=ca,x.create=function(t,n){var r=Ro(t);return null==n?r:Rn(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,q,U,U,U,U,U,r=e?U:r);return i.placeholder=t.placeholder,i},x.debounce=Ei,x.defaults=Ma,x.defaultsDeep=Na,x.defer=ma,x.delay=ba,x.difference=No,x.differenceBy=qo,x.differenceWith=Ko,x.drop=function(t,n,r){var e=null==t?0:t.length;return e?Tr(t,(n=r||n===U?1:Ni(n))<0?0:n,e):[]},x.dropRight=function(t,n,r){var e=null==t?0:t.length;return e?Tr(t,0,(n=e-(n=r||n===U?1:Ni(n)))<0?0:n):[]},x.dropRightWhile=function(t,n){return t&&t.length?Gr(t,Ue(n,3),!0,!0):[]},x.dropWhile=function(t,n){return t&&t.length?Gr(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&&He(t,n,r)&&(r=0,e=i),function(t,n,r,e){var i=t.length;for((r=Ni(r))<0&&(r=-r>i?0:i+r),(e=e===U||e>i?i:Ni(e))<0&&(e+=i),e=r>e?0:qi(e);r<e;)t[r++]=n;return t}(t,n,r,e)):[]},x.filter=function(t,n){return(Wa(t)?a:Ln)(t,Ue(n,3))},x.flatMap=function(t,n){return zn(Ai(t,n),1)},x.flatMapDeep=function(t,n){return zn(Ai(t,n),G)},x.flatMapDepth=function(t,n,r){return r=r===U?1:Ni(r),zn(Ai(t,n),r)},x.flatten=pi,x.flattenDeep=function(t){return null!=t&&t.length?zn(t,G):[]},x.flattenDepth=function(t,n){return null!=t&&t.length?zn(t,n=n===U?1:Ni(n)):[]},x.flip=function(t){return Se(t,512)},x.flow=lc,x.flowRight=sc,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?[]:Vn(t,Ji(t))},x.functionsIn=function(t){return null==t?[]:Vn(t,Qi(t))},x.groupBy=sa,x.initial=function(t){return null!=t&&t.length?Tr(t,0,-1):[]},x.intersection=Zo,x.intersectionBy=Yo,x.intersectionWith=Ho,x.invert=qa,x.invertBy=Ka,x.invokeMap=pa,x.iteratee=ou,x.keyBy=ha,x.keys=Ji,x.keysIn=Qi,x.map=Ai,x.mapKeys=function(t,n){var r={};return n=Ue(n,3),Pn(t,(function(t,e,i){En(r,n(t,e,i),t)})),r},x.mapValues=function(t,n){var r={};return n=Ue(n,3),Pn(t,(function(t,e,i){En(r,e,n(t,e,i))})),r},x.matches=function(t){return Rr(In(t,1))},x.matchesProperty=function(t,n){return Er(t,In(n,1))},x.memoize=ji,x.merge=Ya,x.mergeWith=Ha,x.method=pc,x.methodOf=hc,x.mixin=au,x.negate=Wi,x.nthArg=function(t){return t=Ni(t),Lr((function(n){return Wr(n,t)}))},x.omit=Ga,x.omitBy=function(t,n){return Xi(t,Wi(Ue(n)))},x.once=function(t){return Ri(2,t)},x.orderBy=function(t,n,r,e){return null==t?[]:(Wa(n)||(n=null==n?[]:[n]),Wa(r=e?U:r)||(r=null==r?[]:[r]),Ir(t,n,r))},x.over=dc,x.overArgs=wa,x.overEvery=gc,x.overSome=vc,x.partial=xa,x.partialRight=Aa,x.partition=da,x.pick=Ja,x.pickBy=Xi,x.property=fu,x.propertyOf=function(t){return function(n){return null==t?U:Fn(t,n)}},x.pull=Go,x.pullAll=gi,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=Jo,x.range=yc,x.rangeRight=_c,x.rearg=ka,x.reject=function(t,n){return(Wa(t)?a:Ln)(t,Wi(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 wu(F);return Lr(t,n=n===U?n:Ni(n))},x.reverse=vi,x.sampleSize=function(t,n,r){return n=(r?He(t,n,r):n===U)?1:Ni(n),(Wa(t)?mn:Pr)(t,n)},x.set=function(t,n,r){return null==t?t:$r(t,n,r)},x.setWith=function(t,n,r,e){return e="function"==typeof e?e:U,null==t?t:$r(t,n,r,e)},x.shuffle=function(t){return(Wa(t)?bn:Vr)(t)},x.slice=function(t,n,r){var e=null==t?0:t.length;return e?(r&&"number"!=typeof r&&He(t,n,r)?(n=0,r=e):(n=null==n?0:Ni(n),r=r===U?e:Ni(r)),Tr(t,n,r)):[]},x.sortBy=ga,x.sortedUniq=function(t){return t&&t.length?Nr(t):[]},x.sortedUniqBy=function(t,n){return t&&t.length?Nr(t,Ue(n,2)):[]},x.split=function(t,n,r){return r&&"number"!=typeof r&&He(t,n,r)&&(n=r=U),(r=r===U?X:r>>>0)?(t=Yi(t))&&("string"==typeof n||null!=n&&!Ba(n))&&!(n=Kr(n))&&B(t)?ee(V(t),0,r):t.split(n,r):[]},x.spread=function(t,n){if("function"!=typeof t)throw new wu(F);return n=null==n?0:ro(Ni(n),0),Lr((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?Tr(t,1,n):[]},x.take=function(t,n,r){return t&&t.length?Tr(t,0,(n=r||n===U?1:Ni(n))<0?0:n):[]},x.takeRight=function(t,n,r){var e=null==t?0:t.length;return e?Tr(t,(n=e-(n=r||n===U?1:Ni(n)))<0?0:n,e):[]},x.takeRightWhile=function(t,n){return t&&t.length?Gr(t,Ue(n,3),!1,!0):[]},x.takeWhile=function(t,n){return t&&t.length?Gr(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 wu(F);return zi(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),Ei(t,n,{leading:e,maxWait:n,trailing:i})},x.thru=bi,x.toArray=Fi,x.toPairs=Qa,x.toPairsIn=Xa,x.toPath=function(t){return Wa(t)?l(t,ai):Ui(t)?[t]:le(Mo(Yi(t)))},x.toPlainObject=Zi,x.transform=function(t,n,r){var e=Wa(t),u=e||Oa(t)||La(t);if(n=Ue(n,4),null==r){var o=t&&t.constructor;r=u?e?new o:[]:zi(t)&&Bi(o)?Ro($u(t)):{}}return(u?i:Pn)(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=yi,x.unzipWith=_i,x.update=function(t,n,r){return null==t?t:Hr(t,n,ne(r))},x.updateWith=function(t,n,r,e){return e="function"==typeof e?e:U,null==t?t:Hr(t,n,ne(r),e)},x.values=tu,x.valuesIn=function(t){return null==t?[]:W(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||[],$r)},x.zipWith=oa,x.entries=Qa,x.entriesIn=Xa,x.extend=Va,x.extendWith=Ta,au(x,x),x.add=mc,x.attempt=cc,x.camelCase=tc,x.capitalize=nu,x.ceil=bc,x.clamp=function(t,n,r){return r===U&&(r=n,n=U),r!==U&&(r=(r=Ki(r))==r?r:0),n!==U&&(n=(n=Ki(n))==n?n:0),Wn(Ki(t),n,r)},x.clone=function(t){return In(t,4)},x.cloneDeep=function(t){return In(t,5)},x.cloneDeepWith=function(t,n){return In(t,5,n="function"==typeof n?n:U)},x.cloneWith=function(t,n){return In(t,4,n="function"==typeof n?n:U)},x.conformsTo=function(t,n){return null==n||On(t,n,Ji(n))},x.deburr=ru,x.defaultTo=function(t,n){return null==t||t!=t?n:t},x.divide=wc,x.endsWith=function(t,n,r){t=Yi(t),n=Kr(n);var e=t.length,i=r=r===U?e:Wn(Ni(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},x.eq=Ii,x.escape=function(t){return(t=Yi(t))&&zt.test(t)?t.replace(Dt,vr):t},x.escapeRegExp=function(t){return(t=Yi(t))&&Nt.test(t)?t.replace(Mt,"\\$&"):t},x.every=function(t,n,r){var e=Wa(t)?o:Bn;return r&&He(t,n,r)&&(n=U),e(t,Ue(n,3))},x.find=fa,x.findIndex=li,x.findKey=function(t,n){return g(t,Ue(n,3),Pn)},x.findLast=la,x.findLastIndex=si,x.findLastKey=function(t,n){return g(t,Ue(n,3),$n)},x.floor=xc,x.forEach=wi,x.forEachRight=xi,x.forIn=function(t,n){return null==t?t:Wo(t,Ue(n,3),Qi)},x.forInRight=function(t,n){return null==t?t:Io(t,Ue(n,3),Qi)},x.forOwn=function(t,n){return t&&Pn(t,Ue(n,3))},x.forOwnRight=function(t,n){return t&&$n(t,Ue(n,3))},x.get=Hi,x.gt=Ra,x.gte=Ea,x.has=function(t,n){return null!=t&&qe(t,n,tr)},x.hasIn=Gi,x.head=hi,x.identity=uu,x.includes=function(t,n,r,e){t=Oi(t)?t:tu(t),r=r&&!e?Ni(r):0;var i=t.length;return r<0&&(r=ro(i+r,0)),Ti(t)?r<=i&&t.indexOf(n,r)>-1:!!i&&y(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:Ni(r);return i<0&&(i=ro(e+i,0)),y(t,n,i)},x.inRange=function(t,n,r){return n=Mi(n),r===U?(r=n,n=0):r=Mi(r),function(t,n,r){return t>=eo(n,r)&&t<ro(n,r)}(t=Ki(t),n,r)},x.invoke=Za,x.isArguments=ja,x.isArray=Wa,x.isArrayBuffer=Ia,x.isArrayLike=Oi,x.isArrayLikeObject=Si,x.isBoolean=function(t){return!0===t||!1===t||Pi(t)&&qn(t)==ut},x.isBuffer=Oa,x.isDate=Sa,x.isElement=function(t){return Pi(t)&&1===t.nodeType&&!Vi(t)},x.isEmpty=function(t){if(null==t)return!0;if(Oi(t)&&(Wa(t)||"string"==typeof t||"function"==typeof t.splice||Oa(t)||La(t)||ja(t)))return!t.length;var n=$o(t);if(n==lt||n==gt)return!t.size;if(Qe(t))return!wr(t).length;for(var r in t)if(ju.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=Di,x.isLength=Li,x.isMap=Ca,x.isMatch=function(t,n){return t===n||dr(t,n,Me(n))},x.isMatchWith=function(t,n,r){return r="function"==typeof r?r:U,dr(t,n,Me(n),r)},x.isNaN=function(t){return $i(t)&&t!=+t},x.isNative=function(t){if(Vo(t))throw new gu("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=$i,x.isObject=zi,x.isObjectLike=Pi,x.isPlainObject=Vi,x.isRegExp=Ba,x.isSafeInteger=function(t){return Di(t)&&t>=-J&&t<=J},x.isSet=Da,x.isString=Ti,x.isSymbol=Ui,x.isTypedArray=La,x.isUndefined=function(t){return t===U},x.isWeakMap=function(t){return Pi(t)&&$o(t)==_t},x.isWeakSet=function(t){return Pi(t)&&"[object WeakSet]"==qn(t)},x.join=function(t,n){return null==t?"":to.call(t,n)},x.kebabCase=nc,x.last=di,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=Ni(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):v(t,m,i,!0)},x.lowerCase=rc,x.lowerFirst=ec,x.lt=za,x.lte=Pa,x.max=function(t){return t&&t.length?Dn(t,uu,Jn):U},x.maxBy=function(t,n){return t&&t.length?Dn(t,Ue(n,2),Jn):U},x.mean=function(t){return b(t,uu)},x.meanBy=function(t,n){return b(t,Ue(n,2))},x.min=function(t){return t&&t.length?Dn(t,uu,Ar):U},x.minBy=function(t,n){return t&&t.length?Dn(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=Ac,x.nth=function(t,n){return t&&t.length?Wr(t,Ni(n)):U},x.noConflict=function(){return rr._===this&&(rr._=Cu),this},x.noop=cu,x.now=va,x.pad=function(t,n,r){t=Yi(t);var e=(n=Ni(n))?$(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return Re(Gu(i),r)+t+Re(Hu(i),r)},x.padEnd=function(t,n,r){t=Yi(t);var e=(n=Ni(n))?$(t):0;return n&&e<n?t+Re(n-e,r):t},x.padStart=function(t,n,r){t=Yi(t);var e=(n=Ni(n))?$(t):0;return n&&e<n?Re(n-e,r)+t:t},x.parseInt=function(t,n,r){return r||null==n?n=0:n&&(n=+n),uo(Yi(t).replace(qt,""),n||0)},x.random=function(t,n,r){if(r&&"boolean"!=typeof r&&He(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=Mi(t),n===U?(n=t,t=0):n=Mi(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=Wa(t)?p:A,i=arguments.length<3;return e(t,Ue(n,4),r,i,Eo)},x.reduceRight=function(t,n,r){var e=Wa(t)?h:A,i=arguments.length<3;return e(t,Ue(n,4),r,i,jo)},x.repeat=function(t,n,r){return n=(r?He(t,n,r):n===U)?1:Ni(n),Dr(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=kc,x.runInContext=t,x.sample=function(t){return(Wa(t)?_n:zr)(t)},x.size=function(t){if(null==t)return 0;if(Oi(t))return Ti(t)?$(t):t.length;var n=$o(t);return n==lt||n==gt?t.size:wr(t).length},x.snakeCase=ic,x.some=function(t,n,r){var e=Wa(t)?d:Ur;return r&&He(t,n,r)&&(n=U),e(t,Ue(n,3))},x.sortedIndex=function(t,n){return Fr(t,n)},x.sortedIndexBy=function(t,n,r){return Mr(t,n,Ue(r,2))},x.sortedIndexOf=function(t,n){var r=null==t?0:t.length;if(r){var e=Fr(t,n);if(e<r&&Ii(t[e],n))return e}return-1},x.sortedLastIndex=function(t,n){return Fr(t,n,!0)},x.sortedLastIndexBy=function(t,n,r){return Mr(t,n,Ue(r,2),!0)},x.sortedLastIndexOf=function(t,n){if(null!=t&&t.length){var r=Fr(t,n,!0)-1;if(Ii(t[r],n))return r}return-1},x.startCase=uc,x.startsWith=function(t,n,r){return t=Yi(t),r=null==r?0:Wn(Ni(r),0,t.length),n=Kr(n),t.slice(r,r+n.length)==n},x.subtract=Rc,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&&He(t,n,r)&&(n=U),t=Yi(t),n=Ta({},n,e,Ce);var i,u,o=Ta({},n.imports,e.imports,Ce),a=Ji(o),c=W(o,a),f=0,l=n.interpolate||cn,s="__p += '",p=mu((n.escape||cn).source+"|"+l.source+"|"+(l===Vt?Xt:cn).source+"|"+(n.evaluate||cn).source+"|$","g"),h="//# sourceURL="+(ju.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yn+"]")+"\n";t.replace(p,(function(n,r,e,o,a,c){return e||(e=o),s+=t.slice(f,c).replace(fn,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'"),f=c+n.length,n})),s+="';\n";var d=ju.call(n,"variable")&&n.variable;if(d){if(Jt.test(d))throw new gu("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("+(d||"obj")+") {\n"+(d?"":"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 g=cc((function(){return vu(a,h+"return "+s).apply(U,c)}));if(g.source=s,Ci(g))throw g;return g},x.times=function(t,n){if((t=Ni(t))<1||t>J)return[];var r=X,e=eo(t,X);n=Ue(n),t-=X;for(var i=R(e,n);++r<t;)n(r);return i},x.toFinite=Mi,x.toInteger=Ni,x.toLength=qi,x.toLower=function(t){return Yi(t).toLowerCase()},x.toNumber=Ki,x.toSafeInteger=function(t){return t?Wn(Ni(t),-J,J):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 E(t);if(!t||!(n=Kr(n)))return t;var e=V(t),i=V(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,T(t)+1);if(!t||!(n=Kr(n)))return t;var e=V(t);return ee(e,0,S(e,V(n))+1).join("")},x.trimStart=function(t,n,r){if((t=Yi(t))&&(r||n===U))return t.replace(qt,"");if(!t||!(n=Kr(n)))return t;var e=V(t);return ee(e,O(e,V(n))).join("")},x.truncate=function(t,n){var r=30,e="...";if(zi(n)){var i="separator"in n?n.separator:i;r="length"in n?Ni(n.length):r,e="omission"in n?Kr(n.omission):e}var u=(t=Yi(t)).length;if(B(t)){var o=V(t);u=o.length}if(r>=u)return t;var a=r-$(e);if(a<1)return e;var c=o?ee(o,0,a).join(""):t.slice(0,a);if(i===U)return c+e;if(o&&(a+=c.length-a),Ba(i)){if(t.slice(a).search(i)){var f,l=c;for(i.global||(i=mu(i.source,Yi(tn.exec(i))+"g")),i.lastIndex=0;f=i.exec(l);)var s=f.index;c=c.slice(0,s===U?a:s)}}else if(t.indexOf(Kr(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},x.unescape=function(t){return(t=Yi(t))&&Lt.test(t)?t.replace(Bt,yr):t},x.uniqueId=function(t){var n=++Wu;return Yi(t)+n},x.upperCase=oc,x.upperFirst=ac,x.each=wi,x.eachRight=xi,x.first=hi,au(x,function(){var t={};return Pn(x,(function(n,r){ju.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(Ni(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=Lr((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(Wi(Ue(t)))},sn.prototype.slice=function(t,n){t=Ni(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=Ni(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)},Pn(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,c=o[0],f=a||Wa(n),l=function(t){var n=i.apply(x,s([t],o));return e&&p?n[0]:n};f&&r&&"function"==typeof c&&1!=c.length&&(a=f=!1);var p=this.__chain__,h=!!this.__actions__.length,d=u&&!p,g=a&&!h;if(!u&&f){n=g?n:new sn(this);var v=t.apply(n,o);return v.__actions__.push({func:bi,args:[l],thisArg:U}),new ln(v,p)}return d&&g?t.apply(this,o):(v=this.thru(l),d?e?v.value()[0]:v.value():v)})})),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(Wa(i)?i:[],t)}return this[r]((function(r){return n.apply(Wa(r)?r:[],t)}))}})),Pn(sn.prototype,(function(t,n){var r=x[n];if(r){var e=r.name+"";ju.call(vo,e)||(vo[e]=[]),vo[e].push({name:n,func:r})}})),vo[we(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=Wa(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,c=a-o,f=e?a:o-1,l=this.__iteratees__,s=l.length,p=0,h=eo(c,this.__takeCount__);if(!r||!e&&i==c&&h==c)return Jr(t,this.__actions__);var d=[];t:for(;c--&&p<h;){for(var g=-1,v=t[f+=n];++g<s;){var y=l[g],_=y.iteratee,m=y.type,b=_(v);if(2==m)v=b;else if(!b){if(1==m)continue t;break t}}d[p++]=v}return d},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__=Fi(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 Kt;){var e=fi(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:bi,args:[vi],thisArg:U}),new ln(n,this.__chain__)}return this.thru(vi)},x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=function(){return Jr(this.__wrapped__,this.__actions__)},x.prototype.first=x.prototype.head,Mu&&(x.prototype[Mu]=function(){return this}),x}();ir?((ir.exports=_r)._=_r,er._=_r):rr._=_r}.call(Jd)),Vt.exports;var t,n}var Ha,si,Qa,li,Xa,hi,ec,fi={};function Zd(){return Ha||(Ha=1,(t=fi).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}),fi;var t}function Gd(){return Qa||(Qa=1,si={}),si}function Hd(){if(Xa)return li;Xa=1;var t=Zd(),n=Gd(),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 li=function o(a,c,f,l){var s="function"==typeof c,p=c===Object(c);if(p&&(l=f,f=c,c=void 0),null==f)throw new TypeError;l||(l={});var h=!("cap"in l)||l.cap,d=!("curry"in l)||l.curry,g=!("fixed"in l)||l.fixed,v=!("immutable"in l)||l.immutable,y=!("rearg"in l)||l.rearg,_=s?f:n,m="curry"in l&&l.curry,b="fixed"in l&&l.fixed,w="rearg"in l&&l.rearg,x=s?f.runInContext():void 0,A=s?f:{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,R=A.assign,E=A.clone,j=A.curry,W=A.forEach,I=A.isArray,O=A.isError,S=A.isFunction,C=A.isWeakMap,B=A.keys,D=A.rearg,L=A.toInteger,z=A.toPath,P=B(t.aryMethod),$={castArray:function(t){return function(){var n=arguments[0];return I(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 h&&"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 W(B(n),(function(t){S(n[t])&&e.push([t,r.prototype[t]])})),t(r,Object(n)),W(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:L(n)+1;return j(t(n),r)}},rearg:function(t){return function(n,r){var e=r?r.length:0;return j(t(n,r),e)}},runInContext:function(t){return function(n){return o(a,t(n),l)}}};function V(n,r){if(h){var i=t.iterateeRearg[n];if(i)return function(t,n){return N(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)}}(D(e(t,r),n),r)}))}(r,i);var u=!s&&t.iterateeAry[n];if(u)return function(t,n){return N(t,(function(t){return"function"==typeof t?e(t,n):t}))}(r,u)}return r}function T(n,e,i){if(g&&(b||!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 y&&e>1&&(w||!t.skipRearg[n])?D(r,t.methodRearg[n]||t.aryRearg[e]):r}function F(t,n){for(var r=-1,e=(n=z(n)).length,i=e-1,u=E(Object(t)),o=u;null!=o&&++r<e;){var a=n[r],c=o[a];null!=c&&!(S(c)||O(c)||C(c))&&(o[a]=E(r==i?c:Object(c))),o=o[a]}return u}function M(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,c=R(R({},u),t);return o(n,e,a,c)}}function N(t,n){return function(){var r=arguments.length;if(!r)return t();for(var e=Array(r);r--;)e[r]=arguments[r];var i=y?0:r-1;return e[i]=n(e[i]),t.apply(void 0,e)}}function q(n,r,e){var o,a=t.aliasToReal[n]||n,c=r,f=$[a];return f?c=f(r):v&&(t.mutate.array[a]?c=u(r,i):t.mutate.object[a]?c=u(r,function(t){return function(n){return t({},n)}}(r)):t.mutate.set[a]&&(c=u(r,F))),W(P,(function(n){return W(t.aryMethod[n],(function(r){if(a==r){var e=t.methodSpread[a],i=e&&e.afterRearg;return o=i?T(a,U(a,c,n),n):U(a,T(a,c,n),n),o=function(t,n,r){return m||d&&r>1?j(n,r):n}(0,o=V(a,o),n),!1}})),!o})),o||(o=c),o==r&&(o=m?j(o,1):function(){return r.apply(this,arguments)}),o.convert=M(a,r),o.placeholder=r.placeholder=e,o}if(!p)return q(c,f,_);var K=f,Z=[];return W(P,(function(n){W(t.aryMethod[n],(function(n){var r=K[t.remap[n]||n];r&&Z.push([n,q(n,r,K)])}))})),W(B(K),(function(t){var n=K[t];if("function"==typeof n){for(var r=Z.length;r--;)if(Z[r][0]==t)return;n.convert=M(t,n),Z.push([t,n])}})),W(Z,(function(t){K[t[0]]=t[1]})),K.convert=function(t){return K.runInContext.convert(t)(void 0)},K.placeholder=K,W(B(K),(function(n){W(t.realToAlias[n]||[],(function(t){K[t]=K[n]}))})),K},li}function Qd(){if(ec)return hi;ec=1;var t=Yd().runInContext();return hi=Hd()(t,t)}var pi=Qd();const vi={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>'}},Xd=t=>{const{title:n,description:r,links:e}=t||{};return!!(n||r||e)},eg=t=>Object.keys(vi).some((n=>n==t)),Kt=t=>vi[t]||vi[500],rc=t=>{var n,r;if(!t)return Kt(500).description;if(pi.isString(t))return t;if("data"in t&&pi.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(pi.isString(r)?r:null==r?void 0:r.message)||Kt(n||500).description}return"message"in t&&t.message?t.message:"error"in t?t.error:"status"in t?Kt(t.status).description:void 0},rg="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",tg=({linksList:t})=>De.jsxs("div",{className:" relative text-slate-700",children:[De.jsx("h5",{className:"text-sm",children:"Maybe try these instead"}),De.jsx("img",{className:"absolute right-[100%] top-2 mr-1",src:rg}),De.jsx("div",{className:"mt-2",children:t.map((({text:t,link:n})=>De.jsx("a",{className:"mr-6 text-lg underline",href:n,children:t},n)))})]});var tc,nc,We=uc();
|
|
27
|
+
*/function yx(){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 o=-1,i=null==t?0:t.length;++o<i;){var s=t[o];e(r,s,n(s),t)}return r}function o(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function i(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,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}function u(t,e){return!(null==t||!t.length)&&g(t,e,0)>-1}function c(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function l(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function f(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function d(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function h(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,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,o){if(e(t,n,o))return r=n,!1})),r}function y(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function g(t,e,n){return e==e?function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):y(t,v,n)}function _(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;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,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}function E(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);i!==B&&(n=n===B?i:n+i)}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,o=0,i=[];++n<r;){var s=t[n];s!==e&&s!==H||(t[n]=H,i[o++]=n)}return i}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,K=64,Y=128,G=256,J=1/0,X=9007199254740991,Q=NaN,Z=4294967295,tt=Z-1,et=Z>>>1,nt=[["ary",Y],["bind",1],["bindKey",2],["curry",8],["curryRight",q],["flip",512],["partial",V],["partialRight",K],["rearg",G]],rt="[object Arguments]",ot="[object Array]",it="[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/,Kt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yt=/\{\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\]$/,oe=/^0o[0-7]+$/i,ie=/^(?: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,Ke={};Ke[kt]=Ke[wt]=Ke[St]=Ke[Et]=Ke[xt]=Ke[It]=Ke[Ct]=Ke[Tt]=Ke[Rt]=!0,Ke[rt]=Ke[ot]=Ke[vt]=Ke[it]=Ke[bt]=Ke[st]=Ke[at]=Ke[ut]=Ke[lt]=Ke[ft]=Ke[dt]=Ke[pt]=Ke[mt]=Ke[yt]=Ke[_t]=!1;var Ye={};Ye[rt]=Ye[ot]=Ye[vt]=Ye[bt]=Ye[it]=Ye[st]=Ye[kt]=Ye[wt]=Ye[St]=Ye[Et]=Ye[xt]=Ye[lt]=Ye[ft]=Ye[dt]=Ye[pt]=Ye[mt]=Ye[yt]=Ye[gt]=Ye[It]=Ye[Ct]=Ye[Tt]=Ye[Rt]=!0,Ye[at]=Ye[ut]=Ye[_t]=!1;var Ge={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Je=parseFloat,Xe=parseInt,Qe="object"==typeof Io&&Io&&Io.Object===Object&&Io,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({"&":"&","<":"<",">":">",'"':""","'":"'"}),yn=w({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function t(e){function w(t){if(Fo(t)&&!Ta(t)&&!(t instanceof le)){if(t instanceof ce)return t;if(Ti.call(t,"__wrapped__"))return co(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),o=!n&&!r&&Aa(t),i=!n&&!r&&!o&&La(t),s=n||r||o||i,a=s?x(t.length,ki):[],u=a.length;for(var c in t)!e&&!Ti.call(t,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Yr(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 so(lr(t),Ce(e,0,t.length))}function ve(t){return so(lr(t))}function be(t,e,n){(n===B||Ao(t[e],n))&&(n!==B||e in t)||xe(t,e,n)}function ke(t,e,n){var r=t[e];Ti.call(t,e)&&Ao(r,n)&&(n!==B||e in t)||xe(t,e,n)}function we(t,e){for(var n=t.length;n--;)if(Ao(t[n][0],e))return n;return-1}function Se(t,e,n,r){return Is(t,(function(t,o,i){e(r,t,n(t),i)})),r}function Ee(t,e){return t&&fr(e,Qo(e),t)}function xe(t,e,n){"__proto__"==e&&Vi?Vi(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ie(t,e){for(var n=-1,r=e.length,o=pi(r),i=null==t;++n<r;)o[n]=i?B:Jo(t,e[n]);return o}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,i,s){var a,u=1&e,c=2&e,l=4&e;if(n&&(a=i?n(t,r,i,s):n(t)),a!==B)return a;if(!Po(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]&&Ti.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 or(t,u);if(d==dt||d==rt||h&&!i){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,Zo(e),t)}(a,t)):function(t,e){return fr(t,js(t),e)}(t,Ee(a,t))}else{if(!Ye[d])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case vt:return ir(t);case it:case st:return new r(+t);case bt:return function(t,e){return new t.constructor(e?ir(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?vi(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,o){a.set(o,Te(r,e,n,o,t,s))}));var m=f?B:(l?c?Fr:Pr:c?Zo:Qo)(t);return o(m||t,(function(r,o){m&&(r=t[o=r]),ke(a,o,Te(r,e,n,o,t,s))})),a}function Re(t,e,n){var r=n.length;if(null==t)return!r;for(t=vi(t);r--;){var o=n[r],i=e[o],s=t[o];if(s===B&&!(o in t)||!i(s))return!1}return!0}function Ae(t,e,n){if("function"!=typeof t)throw new wi(z);return Bs((function(){t.apply(B,n)}),e)}function Me(t,e,n,r){var o=-1,i=u,s=!0,a=t.length,f=[],d=e.length;if(!a)return f;n&&(e=l(e,C(n))),r?(i=c,s=!1):e.length>=200&&(i=R,s=!1,e=new pe(e));t:for(;++o<a;){var h=t[o],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 i(e,p,r)||f.push(h)}return f}function Oe(t,e){var n=!0;return Is(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function De(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],s=e(i);if(null!=s&&(a===B?s==s&&!zo(s):n(s,a)))var a=s,u=i}return u}function Ne(t,e){var n=[];return Is(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function Le(t,e,n,r,o){var i=-1,s=t.length;for(n||(n=Kr),o||(o=[]);++i<s;){var a=t[i];e>0&&n(a)?e>1?Le(a,e-1,n,r,o):f(o,a):r||(o[o.length]=a)}return o}function je(t,e){return t&&Ts(t,e,Qo)}function Pe(t,e){return t&&Rs(t,e,Qo)}function Fe(t,e){return a(e,(function(e){return No(t[e])}))}function Be(t,e){for(var n=0,r=(e=nr(e,t)).length;null!=t&&n<r;)t=t[ao(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]":qi&&qi in vi(t)?function(t){var e=Ti.call(t,qi),n=t[qi];try{t[qi]=B;var r=!0}catch{}var o=Mi.call(t);return r&&(e?t[qi]=n:delete t[qi]),o}(t):function(t){return Mi.call(t)}(t)}function Qe(t,e){return t>e}function Ze(t,e){return null!=t&&Ti.call(t,e)}function en(t,e){return null!=t&&e in vi(t)}function nn(t,e,n){for(var r=n?c:u,o=t[0].length,i=t.length,s=i,a=pi(i),f=1/0,d=[];s--;){var h=t[s];s&&e&&(h=l(h,C(e))),f=os(h.length,f),a[s]=!n&&(e||o>=120&&h.length>=120)?new pe(s&&h):B}h=t[0];var p=-1,m=a[0];t:for(;++p<o&&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=i;--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 o=null==(t=no(t,e=nr(e,t)))?t:t[ao(mo(e))];return null==o?B:n(o,t,r)}function sn(t){return Fo(t)&&Ge(t)==rt}function hn(t,e,n,r,o){return t===e||(null==t||null==e||!Fo(t)&&!Fo(e)?t!=t&&e!=e:function(t,e,n,r,o,i){var s=Ta(t),a=Ta(e),u=s?ot:Fs(t),c=a?ot: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 i||(i=new me),s||La(t)?Lr(t,e,n,r,o,i):function(t,e,n,r,o,i,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||!i(new Pi(t),new Pi(e)));case it:case st:case ft:return Ao(+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,o,i,s);return s.delete(t),l;case gt:if(Ss)return Ss.call(t)==Ss.call(e)}return!1}(t,e,u,n,r,o,i);if(!(1&n)){var h=l&&Ti.call(t,"__wrapped__"),p=f&&Ti.call(e,"__wrapped__");if(h||p){var m=h?t.value():t,y=p?e.value():e;return i||(i=new me),o(m,y,n,r,i)}}return!!d&&(i||(i=new me),function(t,e,n,r,o,i){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:Ti.call(e,l)))return!1}var f=i.get(t),d=i.get(e);if(f&&d)return f==e&&d==t;var h=!0;i.set(t,e),i.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,i):r(m,y,l,t,e,i);if(!(g===B?m===y||o(m,y,n,r,i):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 i.delete(t),i.delete(e),h}(t,e,n,r,o,i))}(t,e,n,r,hn,o))}function _n(t,e,n,r){var o=n.length,i=o,s=!r;if(null==t)return!i;for(t=vi(t);o--;){var a=n[o];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var u=(a=n[o])[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!(!Po(t)||function(t){return!!Ai&&Ai in t}(t))&&(No(t)?Ni:re).test(uo(t))}function bn(t){return"function"==typeof t?t:null==t?si:"object"==typeof t?Ta(t)?In(t[0],t[1]):xn(t):li(t)}function kn(t){if(!Qr(t))return ns(t);var e=[];for(var n in vi(t))Ti.call(t,n)&&"constructor"!=n&&e.push(n);return e}function wn(t){if(!Po(t))return function(t){var e=[];if(null!=t)for(var n in vi(t))e.push(n);return e}(t);var e=Qr(t),n=[];for(var r in t)("constructor"!=r||!e&&Ti.call(t,r))&&n.push(r);return n}function Sn(t,e){return t<e}function En(t,e){var n=-1,r=Mo(t)?pi(t.length):[];return Is(t,(function(t,o,i){r[++n]=e(t,o,i)})),r}function xn(t){var e=$r(t);return 1==e.length&&e[0][2]?to(e[0][0],e[0][1]):function(n){return n===t||_n(n,t,e)}}function In(t,e){return Jr(t)&&Zr(e)?to(ao(t),e):function(n){var r=Jo(n,t);return r===B&&r===e?Xo(n,t):hn(e,r,3)}}function Cn(t,e,n,r,o){t!==e&&Ts(e,(function(i,s){if(o||(o=new me),Po(i))!function(t,e,n,r,o,i,s){var a=ro(t,n),u=ro(e,n),c=s.get(u);if(c)return be(t,n,c),B;var l=i?i(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:Oo(a)?l=lr(a):h?(f=!1,l=or(u,!0)):p?(f=!1,l=sr(u,!0)):l=[]:Wo(u)||Ca(u)?(l=a,Ca(a)?l=Yo(a):Po(a)&&!No(a)||(l=Vr(u))):f=!1}f&&(s.set(u,l),o(l,u,r,i,s),s.delete(u)),be(t,n,l)}(t,e,s,n,Cn,r,o);else{var a=r?r(ro(t,s),i,s+"",t,e,o):B;a===B&&(a=i),be(t,s,a)}}),Zo)}function Tn(t,e){var n=t.length;if(n)return Yr(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})):[si];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,o){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,o=t.criteria,i=e.criteria,s=o.length,a=n.length;++r<s;){var u=ar(o[r],i[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,o=e.length,i={};++r<o;){var s=e[r],a=Be(t,s);n(a,s)&&Fn(i,nr(s,t),a)}return i}function Mn(t,e,n,r){var o=r?_:g,i=-1,s=e.length,a=t;for(t===e&&(e=lr(e)),n&&(a=l(t,C(n)));++i<s;)for(var u=0,c=e[i],f=n?n(c):c;(u=o(a,f,u,r))>-1;)a!==t&&zi.call(a,u,1),zi.call(t,u,1);return t}function On(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Yr(o)?zi.call(t,o,1):Yn(t,o)}}return t}function Dn(t,e){return t+Xi(as()*(e-t+1))}function Nn(t,e){var n="";if(!t||e<1||e>X)return n;do{e%2&&(n+=t),(e=Xi(e/2))&&(t+=t)}while(e);return n}function Ln(t,e){return zs(eo(t,e,si),t+"")}function jn(t){return ge(ei(t))}function Pn(t,e){var n=ei(t);return so(n,Ce(e,0,n.length))}function Fn(t,e,n,r){if(!Po(t))return t;for(var o=-1,i=(e=nr(e,t)).length,s=i-1,a=t;null!=a&&++o<i;){var u=ao(e[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=s){var l=a[u];(c=r?r(l,u,a):B)===B&&(c=Po(l)?l:Yr(e[o+1])?[]:{})}ke(a,u,c),a=a[u]}return t}function Un(t){return so(ei(t))}function Wn(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=pi(o);++r<o;)i[r]=t[r+e];return i}function Bn(t,e){var n;return Is(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function zn(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=et){for(;r<o;){var i=r+o>>>1,s=t[i];null!==s&&!zo(s)&&(n?s<=e:s<e)?r=i+1:o=i}return o}return $n(t,e,si,n)}function $n(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var s=(e=n(e))!=e,a=null===e,u=zo(e),c=e===B;o<i;){var l=Xi((o+i)/2),f=n(t[l]),d=f!==B,h=null===f,p=f==f,m=zo(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?o=l+1:i=l}return os(i,tt)}function Hn(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Ao(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function qn(t){return"number"==typeof t?t:zo(t)?Q:+t}function Vn(t){if("string"==typeof t)return t;if(Ta(t))return l(t,Vn)+"";if(zo(t))return Es?Es.call(t):"";var e=t+"";return"0"==e&&1/t==-J?"-0":e}function Kn(t,e,n){var r=-1,o=u,i=t.length,s=!0,a=[],l=a;if(n)s=!1,o=c;else if(i>=200){var f=e?null:Ns(t);if(f)return P(f);s=!1,o=R,l=new pe}else l=e?[]:a;t:for(;++r<i;){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 o(l,h,n)||(l!==a&&l.push(h),a.push(d))}return a}function Yn(t,e){return null==(t=no(t,e=nr(e,t)))||delete t[ao(mo(e))]}function Gn(t,e,n,r){return Fn(t,e,n(Be(t,e)),r)}function Jn(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?Wn(t,r?0:i,r?i+1:o):Wn(t,r?i+1:0,r?o:i)}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?Kn(t[0]):[];for(var o=-1,i=pi(r);++o<r;)for(var s=t[o],a=-1;++a<r;)a!=o&&(i[o]=Me(i[o]||s,t[a],e,n));return Kn(Le(i,1),e,n)}function Zn(t,e,n){for(var r=-1,o=t.length,i=e.length,s={};++r<o;)n(s,t[r],r<i?e[r]:B);return s}function tr(t){return Oo(t)?t:[]}function er(t){return"function"==typeof t?t:si}function nr(t,e){return Ta(t)?t:Jr(t,e)?[t]:$s(Go(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 or(t,e){if(e)return t.slice();var n=t.length,r=Fi?Fi(n):new t.constructor(n);return t.copy(r),r}function ir(t){var e=new t.constructor(t.byteLength);return new Pi(e).set(new Pi(t)),e}function sr(t,e){return new t.constructor(e?ir(t.buffer):t.buffer,t.byteOffset,t.length)}function ar(t,e){if(t!==e){var n=t!==B,r=null===t,o=t==t,i=zo(t),s=e!==B,a=null===e,u=e==e,c=zo(e);if(!a&&!c&&!i&&t>e||i&&s&&u&&!a&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!i&&!c&&t<e||c&&n&&o&&!r&&!i||a&&n&&o||!s&&o||!u)return-1}return 0}function ur(t,e,n,r){for(var o=-1,i=t.length,s=n.length,a=-1,u=e.length,c=rs(i-s,0),l=pi(u+c),f=!r;++a<u;)l[a]=e[a];for(;++o<s;)(f||o<i)&&(l[n[o]]=t[o]);for(;c--;)l[a++]=t[o++];return l}function cr(t,e,n,r){for(var o=-1,i=t.length,s=-1,a=n.length,u=-1,c=e.length,l=rs(i-a,0),f=pi(l+c),d=!r;++o<l;)f[o]=t[o];for(var h=o;++u<c;)f[h+u]=e[u];for(;++s<a;)(d||o<i)&&(f[h+n[s]]=t[o++]);return f}function lr(t,e){var n=-1,r=t.length;for(e||(e=pi(r));++n<r;)e[n]=t[n];return e}function fr(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],u=r?r(n[a],t[a],a,n,t):B;u===B&&(u=t[a]),o?xe(n,a,u):ke(n,a,u)}return n}function dr(t,e){return function(n,o){var i=Ta(n)?r:Se,s=e?e():{};return i(n,t,Br(o,2),s)}}function hr(t){return Ln((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:B,s=o>2?n[2]:B;for(i=t.length>3&&"function"==typeof i?(o--,i):B,s&&Gr(n[0],n[1],s)&&(i=o<3?B:i,o=1),e=vi(e);++r<o;){var a=n[r];a&&t(e,a,r,i)}return e}))}function pr(t,e){return function(n,r){if(null==n)return n;if(!Mo(n))return t(n,r);for(var o=n.length,i=e?o:-1,s=vi(n);(e?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function mr(t){return function(e,n,r){for(var o=-1,i=vi(e),s=r(e),a=s.length;a--;){var u=s[t?a:++o];if(!1===n(i[u],u,i))break}return e}}function yr(t){return function(e){var n=D(e=Go(e))?U(e):B,r=n?n[0]:e.charAt(0),o=n?rr(n,1).join(""):e.slice(1);return r[t]()+o}}function gr(t){return function(e){return d(oi(ri(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 Po(r)?r:n}}function vr(t){return function(e,n,r){var o=vi(e);if(!Mo(e)){var i=Br(n,3);e=Qo(e),n=function(t){return i(o[t],t,o)}}var s=t(e,n,r);return s>-1?o[i?e[s]:s]:B}}function br(t){return jr((function(e){var n=e.length,r=n,o=ce.prototype.thru;for(t&&e.reverse();r--;){var i=e[r];if("function"!=typeof i)throw new wi(z);if(o&&!s&&"wrapper"==Ur(i))var s=new ce([],!0)}for(r=s?r:n;++r<n;){var a=Ur(i=e[r]),u="wrapper"==a?Ls(i):B;s=u&&Xr(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[Ur(u[0])].apply(s,u[3]):1==i.length&&Xr(i)?s[a]():s.thru(i)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&Ta(r))return s.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))}function kr(t,e,n,r,o,i,s,a,u,c){var l=e&Y,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,_=pi(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,o,h)),i&&(_=cr(_,i,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=os(e.length,n),o=lr(t);r--;){var i=e[r];t[r]=Yr(i,n)?o[i]: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,o,i){e(r,n(t),o,i)})),r}(n,t,e(r),{})}}function Sr(t,e){return function(n,r){var o;if(n===B&&r===B)return e;if(n!==B&&(o=n),r!==B){if(o===B)return r;"string"==typeof n||"string"==typeof r?(n=Vn(n),r=Vn(r)):(n=qn(n),r=qn(r)),o=t(n,r)}return o}}function Er(t){return jr((function(e){return e=l(e,C(Br())),Ln((function(r){var o=this;return t(e,(function(t){return n(t,o,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,Ji(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=Ho(e),n===B?(n=e,e=0):n=Ho(n),function(t,e,n,r){for(var o=-1,i=rs(Ji((e-t)/(n||1)),0),s=pi(i);i--;)s[r?i:++o]=t,t+=n;return s}(e,n,r=r===B?e<n?1:-1:Ho(r),t)}}function Cr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Ko(e),n=Ko(n)),t(e,n)}}function Tr(t,e,n,r,o,i,s,a,u,c){var l=8&e;e|=l?V:K,4&(e&=~(l?K:V))||(e&=-4);var f=[t,e,o,l?i:B,l?s:B,l?B:i,l?B:s,a,u,c],d=n.apply(B,f);return Xr(t)&&Ws(d,f),d.placeholder=r,oo(d,t,e)}function Rr(t){var e=_i[t];return function(t,n){if(t=Ko(t),(n=null==n?0:os(qo(n),292))&&ts(t)){var r=(Go(t)+"e").split("e");return+((r=(Go(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,o,i,s,a,u){var c=2&e;if(!c&&"function"!=typeof t)throw new wi(z);var l=o?o.length:0;if(l||(e&=-97,o=i=B),a=a===B?a:rs(qo(a),0),u=u===B?u:qo(u),l-=i?i.length:0,e&K){var f=o,d=i;o=i=B}var h=c?B:Ls(t),p=[t,e,r,o,i,f,d,s,a,u];if(h&&function(t,e){var n=t[1],r=e[1],o=n|r,i=o<131,s=r==Y&&8==n||r==Y&&n==G&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!i&&!s)return t;1&r&&(t[2]=e[2],o|=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&Y&&(t[8]=null==t[8]?e[8]:os(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(p,h),t=p[0],e=p[1],r=p[2],o=p[3],i=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 o=_r(t);return function i(){for(var s=arguments.length,a=pi(s),u=s,c=Wr(i);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,i.placeholder,B,a,l,B,B,r-s):n(this&&this!==tn&&this instanceof i?o:t,this,a)}}(t,e,u):e!=V&&33!=e||i.length?kr.apply(B,p):function(t,e,r,o){var i=1&e,s=_r(t);return function e(){for(var a=-1,u=arguments.length,c=-1,l=o.length,f=pi(l+u),d=this&&this!==tn&&this instanceof e?s:t;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++a];return n(d,i?r:this,f)}}(t,e,r,o);else var m=function(t,e,n){var r=1&e,o=_r(t);return function e(){return(this&&this!==tn&&this instanceof e?o:t).apply(r?n:this,arguments)}}(t,e,r);return oo((h?As:Ws)(m,p),t,e)}function Or(t,e,n,r){return t===B||Ao(t,xi[n])&&!Ti.call(r,n)?e:t}function Dr(t,e,n,r,o,i){return Po(t)&&Po(e)&&(i.set(e,t),Cn(t,e,B,Dr,i),i.delete(e)),t}function Nr(t){return Wo(t)?B:t}function Lr(t,e,n,r,o,i){var s=1&n,a=t.length,u=e.length;if(a!=u&&!(s&&u>a))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var f=-1,d=!0,h=2&n?new pe:B;for(i.set(t,e),i.set(e,t);++f<a;){var m=t[f],y=e[f];if(r)var g=s?r(y,m,f,e,t,i):r(m,y,f,t,e,i);if(g!==B){if(g)continue;d=!1;break}if(h){if(!p(e,(function(t,e){if(!R(h,e)&&(m===t||o(m,t,n,r,i)))return h.push(e)}))){d=!1;break}}else if(m!==y&&!o(m,y,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d}function jr(t){return zs(eo(t,B,ho),t+"")}function Pr(t){return $e(t,Qo,js)}function Fr(t){return $e(t,Zo,Ps)}function Ur(t){for(var e=t.name+"",n=ys[e],r=Ti.call(ys,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function Wr(t){return(Ti.call(w,"placeholder")?w:t).placeholder}function Br(){var t=w.iteratee||ai;return t=t===ai?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=Qo(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Zr(o)]}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,o=(e=nr(e,t)).length,i=!1;++r<o;){var s=ao(e[r]);if(!(i=null!=t&&n(t,s)))break;t=t[s]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&jo(o)&&Yr(s,o)&&(Ta(t)||Ca(t))}function Vr(t){return"function"!=typeof t.constructor||Qr(t)?{}:xs(Ui(t))}function Kr(t){return Ta(t)||Ca(t)||!!($i&&t&&t[$i])}function Yr(t,e){var n=typeof t;return!!(e=e??X)&&("number"==n||"symbol"!=n&&ie.test(t))&&t>-1&&t%1==0&&t<e}function Gr(t,e,n){if(!Po(n))return!1;var r=typeof e;return!!("number"==r?Mo(n)&&Yr(e,n.length):"string"==r&&e in n)&&Ao(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&&!zo(t))||Bt.test(t)||!Wt.test(t)||null!=e&&t in vi(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||xi)}function Zr(t){return t==t&&!Po(t)}function to(t,e){return function(n){return null!=n&&n[t]===e&&(e!==B||t in vi(n))}}function eo(t,e,r){return e=rs(e===B?t.length-1:e,0),function(){for(var o=arguments,i=-1,s=rs(o.length-e,0),a=pi(s);++i<s;)a[i]=o[e+i];i=-1;for(var u=pi(e+1);++i<e;)u[i]=o[i];return u[e]=r(a),n(t,this,u)}}function no(t,e){return e.length<2?t:Be(t,Wn(e,0,-1))}function ro(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function oo(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(Kt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return o(nt,(function(n){var r="_."+n[0];e&n[1]&&!u(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Yt);return e?e[1].split(Gt):[]}(r),n)))}function io(t){var e=0,n=0;return function(){var r=is(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(B,arguments)}}function so(t,e){var n=-1,r=t.length,o=r-1;for(e=e===B?r:e;++n<e;){var i=Dn(n,o),s=t[i];t[i]=t[n],t[n]=s}return t.length=e,t}function ao(t){if("string"==typeof t||zo(t))return t;var e=t+"";return"0"==e&&1/t==-J?"-0":e}function uo(t){if(null!=t){try{return Ci.call(t)}catch{}try{return t+""}catch{}}return""}function co(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 lo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:qo(n);return o<0&&(o=rs(r+o,0)),y(t,Br(e,3),o)}function fo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==B&&(o=qo(n),o=n<0?rs(r+o,0):os(o,r-1)),y(t,Br(e,3),o,!0)}function ho(t){return null!=t&&t.length?Le(t,1):[]}function po(t){return t&&t.length?t[0]:B}function mo(t){var e=null==t?0:t.length;return e?t[e-1]:B}function yo(t,e){return t&&t.length&&e&&e.length?Mn(t,e):t}function go(t){return null==t?t:us.call(t)}function _o(t){if(!t||!t.length)return[];var e=0;return t=a(t,(function(t){if(Oo(t))return e=rs(t.length,e),!0})),x(e,(function(e){return l(t,k(e))}))}function vo(t,e){if(!t||!t.length)return[];var r=_o(t);return null==e?r:l(r,(function(t){return n(e,B,t)}))}function bo(t){var e=w(t);return e.__chain__=!0,e}function ko(t,e){return e(t)}function wo(t,e){return(Ta(t)?o:Is)(t,Br(e,3))}function So(t,e){return(Ta(t)?i:Cs)(t,Br(e,3))}function Eo(t,e){return(Ta(t)?l:En)(t,Br(e,3))}function xo(t,e,n){return e=n?B:e,e=t&&null==e?t.length:e,Mr(t,Y,B,B,B,B,e)}function Io(t,e){var n;if("function"!=typeof e)throw new wi(z);return t=qo(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=B),n}}function Co(t,e,n){function r(e){var n=u,r=c;return u=c=B,p=e,f=t.apply(r,n)}function o(t){var n=t-h;return h===B||n>=e||n<0||y&&t-p>=l}function i(){var t=ya();return o(t)?s(t):(d=Bs(i,function(t){var n=e-(t-h);return y?os(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=o(t);if(u=arguments,c=this,h=t,n){if(d===B)return function(t){return p=t,d=Bs(i,e),m?r(t):f}(h);if(y)return Ds(d),d=Bs(i,e),r(h)}return d===B&&(d=Bs(i,e)),f}var u,c,l,f,d,h,p=0,m=!1,y=!1,g=!0;if("function"!=typeof t)throw new wi(z);return e=Ko(e)||0,Po(n)&&(m=!!n.leading,l=(y="maxWait"in n)?rs(Ko(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 To(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new wi(z);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(To.Cache||he),n}function Ro(t){if("function"!=typeof t)throw new wi(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 Ao(t,e){return t===e||t!=t&&e!=e}function Mo(t){return null!=t&&jo(t.length)&&!No(t)}function Oo(t){return Fo(t)&&Mo(t)}function Do(t){if(!Fo(t))return!1;var e=Ge(t);return e==at||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Wo(t)}function No(t){if(!Po(t))return!1;var e=Ge(t);return e==ut||e==ct||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Lo(t){return"number"==typeof t&&t==qo(t)}function jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=X}function Po(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Fo(t){return null!=t&&"object"==typeof t}function Uo(t){return"number"==typeof t||Fo(t)&&Ge(t)==ft}function Wo(t){if(!Fo(t)||Ge(t)!=dt)return!1;var e=Ui(t);if(null===e)return!0;var n=Ti.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ci.call(n)==Oi}function Bo(t){return"string"==typeof t||!Ta(t)&&Fo(t)&&Ge(t)==yt}function zo(t){return"symbol"==typeof t||Fo(t)&&Ge(t)==gt}function $o(t){if(!t)return[];if(Mo(t))return Bo(t)?U(t):lr(t);if(Hi&&t[Hi])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Hi]());var e=Fs(t);return(e==lt?N:e==mt?P:ei)(t)}function Ho(t){return t?(t=Ko(t))===J||t===-J?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function qo(t){var e=Ho(t),n=e%1;return e==e?n?e-n:e:0}function Vo(t){return t?Ce(qo(t),0,Z):0}function Ko(t){if("number"==typeof t)return t;if(zo(t))return Q;if(Po(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Po(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=I(t);var n=ne.test(t);return n||oe.test(t)?Xe(t.slice(2),n?2:8):ee.test(t)?Q:+t}function Yo(t){return fr(t,Zo(t))}function Go(t){return null==t?"":Vn(t)}function Jo(t,e,n){var r=null==t?B:Be(t,e);return r===B?n:r}function Xo(t,e){return null!=t&&qr(t,e,en)}function Qo(t){return Mo(t)?ye(t):kn(t)}function Zo(t){return Mo(t)?ye(t,!0):wn(t)}function ti(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 ei(t){return null==t?[]:T(t,Qo(t))}function ni(t){return au(Go(t).toLowerCase())}function ri(t){return(t=Go(t))&&t.replace(se,pn).replace(We,"")}function oi(t,e,n){return t=Go(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 ii(t){return function(){return t}}function si(t){return t}function ai(t){return bn("function"==typeof t?t:Te(t,1))}function ui(t,e,n){var r=Qo(e),i=Fe(e,r);null!=n||Po(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Fe(e,Qo(e)));var s=!(Po(n)&&"chain"in n&&!n.chain),a=No(t);return o(i,(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 ci(){}function li(t){return Jr(t)?k(ao(t)):function(t){return function(e){return Be(e,t)}}(t)}function fi(){return[]}function di(){return!1}var hi,pi=(e=null==e?tn:gn.defaults(tn.Object(),e,gn.pick(tn,qe))).Array,mi=e.Date,yi=e.Error,gi=e.Function,_i=e.Math,vi=e.Object,bi=e.RegExp,ki=e.String,wi=e.TypeError,Si=pi.prototype,Ei=gi.prototype,xi=vi.prototype,Ii=e["__core-js_shared__"],Ci=Ei.toString,Ti=xi.hasOwnProperty,Ri=0,Ai=(hi=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||""))?"Symbol(src)_1."+hi:"",Mi=xi.toString,Oi=Ci.call(vi),Di=tn._,Ni=bi("^"+Ci.call(Ti).replace($t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Li=rn?e.Buffer:B,ji=e.Symbol,Pi=e.Uint8Array,Fi=Li?Li.allocUnsafe:B,Ui=L(vi.getPrototypeOf,vi),Wi=vi.create,Bi=xi.propertyIsEnumerable,zi=Si.splice,$i=ji?ji.isConcatSpreadable:B,Hi=ji?ji.iterator:B,qi=ji?ji.toStringTag:B,Vi=function(){try{var t=Hr(vi,"defineProperty");return t({},"",{}),t}catch{}}(),Ki=e.clearTimeout!==tn.clearTimeout&&e.clearTimeout,Yi=mi&&mi.now!==tn.Date.now&&mi.now,Gi=e.setTimeout!==tn.setTimeout&&e.setTimeout,Ji=_i.ceil,Xi=_i.floor,Qi=vi.getOwnPropertySymbols,Zi=Li?Li.isBuffer:B,ts=e.isFinite,es=Si.join,ns=L(vi.keys,vi),rs=_i.max,os=_i.min,is=mi.now,ss=e.parseInt,as=_i.random,us=Si.reverse,cs=Hr(e,"DataView"),ls=Hr(e,"Map"),fs=Hr(e,"Promise"),ds=Hr(e,"Set"),hs=Hr(e,"WeakMap"),ps=Hr(vi,"create"),ms=hs&&new hs,ys={},gs=uo(cs),_s=uo(ls),vs=uo(fs),bs=uo(ds),ks=uo(hs),ws=ji?ji.prototype:B,Ss=ws?ws.valueOf:B,Es=ws?ws.toString:B,xs=function(){function t(){}return function(e){if(!Po(e))return{};if(Wi)return Wi(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 Ti.call(e,t)?e[t]:B},fe.prototype.has=function(t){var e=this.__data__;return ps?e[t]!==B:Ti.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():zi.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}:si,Ms=Vi?function(t,e){return Vi(t,"toString",{configurable:!0,enumerable:!1,value:ii(e),writable:!0})}:si,Os=Ln,Ds=Ki||function(t){return tn.clearTimeout(t)},Ns=ds&&1/P(new ds([,-0]))[1]==J?function(t){return new ds(t)}:ci,Ls=ms?function(t){return ms.get(t)}:ci,js=Qi?function(t){return null==t?[]:(t=vi(t),a(Qi(t),(function(e){return Bi.call(t,e)})))}:fi,Ps=Qi?function(t){for(var e=[];t;)f(e,js(t)),t=Ui(t);return e}:fi,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?uo(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=Ii?No:di,Ws=io(As),Bs=Gi||function(t,e){return tn.setTimeout(t,e)},zs=io(Ms),$s=function(t){var e=To(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,o){e.push(r?o.replace(Qt,"$1"):n||t)})),e})),Hs=Ln((function(t,e){return Oo(t)?Me(t,Le(e,1,Oo,!0)):[]})),qs=Ln((function(t,e){var n=mo(e);return Oo(n)&&(n=B),Oo(t)?Me(t,Le(e,1,Oo,!0),Br(n,2)):[]})),Vs=Ln((function(t,e){var n=mo(e);return Oo(n)&&(n=B),Oo(t)?Me(t,Le(e,1,Oo,!0),B,n):[]})),Ks=Ln((function(t){var e=l(t,tr);return e.length&&e[0]===t[0]?nn(e):[]})),Ys=Ln((function(t){var e=mo(t),n=l(t,tr);return e===mo(n)?e=B:n.pop(),n.length&&n[0]===t[0]?nn(n,Br(e,2)):[]})),Gs=Ln((function(t){var e=mo(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(yo),Xs=jr((function(t,e){var n=null==t?0:t.length,r=Ie(t,e);return On(t,l(e,(function(t){return Yr(t,n)?+t:t})).sort(ar)),r})),Qs=Ln((function(t){return Kn(Le(t,1,Oo,!0))})),Zs=Ln((function(t){var e=mo(t);return Oo(e)&&(e=B),Kn(Le(t,1,Oo,!0),Br(e,2))})),ta=Ln((function(t){var e=mo(t);return e="function"==typeof e?e:B,Kn(Le(t,1,Oo,!0),B,e)})),ea=Ln((function(t,e){return Oo(t)?Me(t,e):[]})),na=Ln((function(t){return Qn(a(t,Oo))})),ra=Ln((function(t){var e=mo(t);return Oo(e)&&(e=B),Qn(a(t,Oo),Br(e,2))})),oa=Ln((function(t){var e=mo(t);return e="function"==typeof e?e:B,Qn(a(t,Oo),B,e)})),ia=Ln(_o),sa=Ln((function(t){var e=t.length,n=e>1?t[e-1]:B;return n="function"==typeof n?(t.pop(),n):B,vo(t,n)})),aa=jr((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Ie(e,t)};return!(e>1||this.__actions__.length)&&r instanceof le&&Yr(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ko,args:[o],thisArg:B}),new ce(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(B),t}))):this.thru(o)})),ua=dr((function(t,e,n){Ti.call(t,n)?++t[n]:xe(t,n,1)})),ca=vr(lo),la=vr(fo),fa=dr((function(t,e,n){Ti.call(t,n)?t[n].push(e):xe(t,n,[e])})),da=Ln((function(t,e,r){var o=-1,i="function"==typeof e,s=Mo(t)?pi(t.length):[];return Is(t,(function(t){s[++o]=i?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=Yi||function(){return tn.Date.now()},ga=Ln((function(t,e,n){var r=1;if(n.length){var o=j(n,Wr(ga));r|=V}return Mr(t,r,e,n,o)})),_a=Ln((function(t,e,n){var r=3;if(n.length){var o=j(n,Wr(_a));r|=V}return Mr(e,r,t,n,o)})),va=Ln((function(t,e){return Ae(t,1,e)})),ba=Ln((function(t,e,n){return Ae(t,Ko(e)||0,n)}));To.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(o){for(var i=-1,s=os(o.length,r);++i<s;)o[i]=e[i].call(this,o[i]);return n(t,this,o)}))})),wa=Ln((function(t,e){return Mr(t,V,B,e,j(e,Wr(wa)))})),Sa=Ln((function(t,e){return Mr(t,K,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 Fo(t)&&Ti.call(t,"callee")&&!Bi.call(t,"callee")},Ta=pi.isArray,Ra=an?C(an):function(t){return Fo(t)&&Ge(t)==vt},Aa=Zi||di,Ma=un?C(un):function(t){return Fo(t)&&Ge(t)==st},Oa=cn?C(cn):function(t){return Fo(t)&&Fs(t)==lt},Da=ln?C(ln):function(t){return Fo(t)&&Ge(t)==pt},Na=fn?C(fn):function(t){return Fo(t)&&Fs(t)==mt},La=dn?C(dn):function(t){return Fo(t)&&jo(t.length)&&!!Ke[Ge(t)]},ja=Cr(Sn),Pa=Cr((function(t,e){return t<=e})),Fa=hr((function(t,e){if(Qr(e)||Mo(e))return fr(e,Qo(e),t),B;for(var n in e)Ti.call(e,n)&&ke(t,n,e[n])})),Ua=hr((function(t,e){fr(e,Zo(e),t)})),Wa=hr((function(t,e,n,r){fr(e,Zo(e),t,r)})),Ba=hr((function(t,e,n,r){fr(e,Qo(e),t,r)})),za=jr(Ie),$a=Ln((function(t,e){t=vi(t);var n=-1,r=e.length,o=r>2?e[2]:B;for(o&&Gr(e[0],e[1],o)&&(r=1);++n<r;)for(var i=e[n],s=Zo(i),a=-1,u=s.length;++a<u;){var c=s[a],l=t[c];(l===B||Ao(l,xi[c])&&!Ti.call(t,c))&&(t[c]=i[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=Mi.call(e)),t[e]=n}),ii(si)),Va=wr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mi.call(e)),Ti.call(t,e)?t[e].push(n):t[e]=[n]}),Br),Ka=Ln(on),Ya=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 o=e.length;o--;)Yn(n,e[o]);return n})),Xa=jr((function(t,e){return null==t?{}:function(t,e){return An(t,e,(function(e,n){return Xo(t,n)}))}(t,e)})),Qa=Ar(Qo),Za=Ar(Zo),tu=gr((function(t,e,n){return e=e.toLowerCase(),t+(n?ni(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"),ou=gr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),iu=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 Do(t)?t:new yi(t)}})),cu=jr((function(t,e){return o(e,(function(e){e=ao(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 wi(z);return t=qo(t),function(){if(--t<1)return e.apply(this,arguments)}},w.ary=xo,w.assign=Fa,w.assignIn=Ua,w.assignInWith=Wa,w.assignWith=Ba,w.at=za,w.before=Io,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=bo,w.chunk=function(t,e,n){e=(n?Gr(t,e,n):e===B)?1:rs(qo(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,i=0,s=pi(Ji(r/e));o<r;)s[i++]=Wn(t,o,o+=e);return s},w.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},w.concat=function(){var t=arguments.length;if(!t)return[];for(var e=pi(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 wi(z);return[r(t[0]),t[1]]})):[],Ln((function(r){for(var o=-1;++o<e;){var i=t[o];if(n(i[0],this,r))return n(i[1],this,r)}}))},w.conforms=function(t){return function(t){var e=Qo(t);return function(n){return Re(n,t,e)}}(Te(t,1))},w.constant=ii,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 o=Mr(e,8,B,B,B,B,B,n=r?B:n);return o.placeholder=t.placeholder,o},w.curryRight=function t(e,n,r){var o=Mr(e,q,B,B,B,B,B,n=r?B:n);return o.placeholder=t.placeholder,o},w.debounce=Co,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:qo(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:qo(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 o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Gr(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=qo(n))<0&&(n=-n>o?0:o+n),(r=r===B||r>o?o:qo(r))<0&&(r+=o),r=n>r?0:Vo(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(Eo(t,e),1)},w.flatMapDeep=function(t,e){return Le(Eo(t,e),J)},w.flatMapDepth=function(t,e,n){return n=n===B?1:qo(n),Le(Eo(t,e),n)},w.flatten=ho,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:qo(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 o=t[e];r[o[0]]=o[1]}return r},w.functions=function(t){return null==t?[]:Fe(t,Qo(t))},w.functionsIn=function(t){return null==t?[]:Fe(t,Zo(t))},w.groupBy=fa,w.initial=function(t){return null!=t&&t.length?Wn(t,0,-1):[]},w.intersection=Ks,w.intersectionBy=Ys,w.intersectionWith=Gs,w.invert=qa,w.invertBy=Va,w.invokeMap=da,w.iteratee=ai,w.keyBy=ha,w.keys=Qo,w.keysIn=Zo,w.map=Eo,w.mapKeys=function(t,e){var n={};return e=Br(e,3),je(t,(function(t,r,o){xe(n,e(t,r,o),t)})),n},w.mapValues=function(t,e){var n={};return e=Br(e,3),je(t,(function(t,r,o){xe(n,r,e(t,r,o))})),n},w.matches=function(t){return xn(Te(t,1))},w.matchesProperty=function(t,e){return In(t,Te(e,1))},w.memoize=To,w.merge=Ya,w.mergeWith=Ga,w.method=du,w.methodOf=hu,w.mixin=ui,w.negate=Ro,w.nthArg=function(t){return t=qo(t),Ln((function(e){return Tn(e,t)}))},w.omit=Ja,w.omitBy=function(t,e){return ti(t,Ro(Br(e)))},w.once=function(t){return Io(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=ti,w.property=li,w.propertyOf=function(t){return function(e){return null==t?B:Be(t,e)}},w.pull=Js,w.pullAll=yo,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,Ro(Br(e,3)))},w.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Br(e,3);++r<i;){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return On(t,o),n},w.rest=function(t,e){if("function"!=typeof t)throw new wi(z);return Ln(t,e=e===B?e:qo(e))},w.reverse=go,w.sampleSize=function(t,e,n){return e=(n?Gr(t,e,n):e===B)?1:qo(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:qo(e),n=n===B?r:qo(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=Go(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 wi(z);return e=null==e?0:rs(qo(e),0),Ln((function(r){var o=r[e],i=rr(r,0,e);return o&&f(i,o),n(t,this,i)}))},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:qo(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:qo(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,o=!0;if("function"!=typeof t)throw new wi(z);return Po(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Co(t,e,{leading:r,maxWait:e,trailing:o})},w.thru=ko,w.toArray=$o,w.toPairs=Qa,w.toPairsIn=Za,w.toPath=function(t){return Ta(t)?l(t,ao):zo(t)?[t]:lr($s(Go(t)))},w.toPlainObject=Yo,w.transform=function(t,e,n){var r=Ta(t),i=r||Aa(t)||La(t);if(e=Br(e,4),null==n){var s=t&&t.constructor;n=i?r?new s:[]:Po(t)&&No(s)?xs(Ui(t)):{}}return(i?o:je)(t,(function(t,r,o){return e(n,t,r,o)})),n},w.unary=function(t){return xo(t,1)},w.union=Qs,w.unionBy=Zs,w.unionWith=ta,w.uniq=function(t){return t&&t.length?Kn(t):[]},w.uniqBy=function(t,e){return t&&t.length?Kn(t,Br(e,2)):[]},w.uniqWith=function(t,e){return e="function"==typeof e?e:B,t&&t.length?Kn(t,B,e):[]},w.unset=function(t,e){return null==t||Yn(t,e)},w.unzip=_o,w.unzipWith=vo,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=ei,w.valuesIn=function(t){return null==t?[]:T(t,Zo(t))},w.without=ea,w.words=oi,w.wrap=function(t,e){return wa(er(e),t)},w.xor=na,w.xorBy=ra,w.xorWith=oa,w.zip=ia,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,ui(w,w),w.add=vu,w.attempt=uu,w.camelCase=tu,w.capitalize=ni,w.ceil=bu,w.clamp=function(t,e,n){return n===B&&(n=e,e=B),n!==B&&(n=(n=Ko(n))==n?n:0),e!==B&&(e=(e=Ko(e))==e?e:0),Ce(Ko(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,Qo(e))},w.deburr=ri,w.defaultTo=function(t,e){return null==t||t!=t?e:t},w.divide=ku,w.endsWith=function(t,e,n){t=Go(t),e=Vn(e);var r=t.length,o=n=n===B?r:Ce(qo(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},w.eq=Ao,w.escape=function(t){return(t=Go(t))&&jt.test(t)?t.replace(Nt,mn):t},w.escapeRegExp=function(t){return(t=Go(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=lo,w.findKey=function(t,e){return m(t,Br(e,3),je)},w.findLast=la,w.findLastIndex=fo,w.findLastKey=function(t,e){return m(t,Br(e,3),Pe)},w.floor=wu,w.forEach=wo,w.forEachRight=So,w.forIn=function(t,e){return null==t?t:Ts(t,Br(e,3),Zo)},w.forInRight=function(t,e){return null==t?t:Rs(t,Br(e,3),Zo)},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=Jo,w.gt=xa,w.gte=Ia,w.has=function(t,e){return null!=t&&qr(t,e,Ze)},w.hasIn=Xo,w.head=po,w.identity=si,w.includes=function(t,e,n,r){t=Mo(t)?t:ei(t),n=n&&!r?qo(n):0;var o=t.length;return n<0&&(n=rs(o+n,0)),Bo(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&g(t,e,n)>-1},w.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:qo(n);return o<0&&(o=rs(r+o,0)),g(t,e,o)},w.inRange=function(t,e,n){return e=Ho(e),n===B?(n=e,e=0):n=Ho(n),function(t,e,n){return t>=os(e,n)&&t<rs(e,n)}(t=Ko(t),e,n)},w.invoke=Ka,w.isArguments=Ca,w.isArray=Ta,w.isArrayBuffer=Ra,w.isArrayLike=Mo,w.isArrayLikeObject=Oo,w.isBoolean=function(t){return!0===t||!1===t||Fo(t)&&Ge(t)==it},w.isBuffer=Aa,w.isDate=Ma,w.isElement=function(t){return Fo(t)&&1===t.nodeType&&!Wo(t)},w.isEmpty=function(t){if(null==t)return!0;if(Mo(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(Ti.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=Do,w.isFinite=function(t){return"number"==typeof t&&ts(t)},w.isFunction=No,w.isInteger=Lo,w.isLength=jo,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 Uo(t)&&t!=+t},w.isNative=function(t){if(Us(t))throw new yi("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=Uo,w.isObject=Po,w.isObjectLike=Fo,w.isPlainObject=Wo,w.isRegExp=Da,w.isSafeInteger=function(t){return Lo(t)&&t>=-X&&t<=X},w.isSet=Na,w.isString=Bo,w.isSymbol=zo,w.isTypedArray=La,w.isUndefined=function(t){return t===B},w.isWeakMap=function(t){return Fo(t)&&Fs(t)==_t},w.isWeakSet=function(t){return Fo(t)&&"[object WeakSet]"==Ge(t)},w.join=function(t,e){return null==t?"":es.call(t,e)},w.kebabCase=eu,w.last=mo,w.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==B&&(o=(o=qo(n))<0?rs(r+o,0):os(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):y(t,v,o,!0)},w.lowerCase=nu,w.lowerFirst=ru,w.lt=ja,w.lte=Pa,w.max=function(t){return t&&t.length?De(t,si,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,si)},w.meanBy=function(t,e){return b(t,Br(e,2))},w.min=function(t){return t&&t.length?De(t,si,Sn):B},w.minBy=function(t,e){return t&&t.length?De(t,Br(e,2),Sn):B},w.stubArray=fi,w.stubFalse=di,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,qo(e)):B},w.noConflict=function(){return tn._===this&&(tn._=Di),this},w.noop=ci,w.now=ya,w.pad=function(t,e,n){t=Go(t);var r=(e=qo(e))?F(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return xr(Xi(o),n)+t+xr(Ji(o),n)},w.padEnd=function(t,e,n){t=Go(t);var r=(e=qo(e))?F(t):0;return e&&r<e?t+xr(e-r,n):t},w.padStart=function(t,e,n){t=Go(t);var r=(e=qo(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(Go(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=Ho(t),e===B?(e=t,t=0):e=Ho(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=as();return os(t+o*(e-t+Je("1e-"+((o+"").length-1))),e)}return Dn(t,e)},w.reduce=function(t,e,n){var r=Ta(t)?d:S,o=arguments.length<3;return r(t,Br(e,4),n,o,Is)},w.reduceRight=function(t,e,n){var r=Ta(t)?h:S,o=arguments.length<3;return r(t,Br(e,4),n,o,Cs)},w.repeat=function(t,e,n){return e=(n?Gr(t,e,n):e===B)?1:qo(e),Nn(Go(t),e)},w.replace=function(){var t=arguments,e=Go(t[0]);return t.length<3?e:e.replace(t[1],t[2])},w.result=function(t,e,n){var r=-1,o=(e=nr(e,t)).length;for(o||(o=1,t=B);++r<o;){var i=null==t?B:t[ao(e[r])];i===B&&(r=o,i=n),t=No(i)?i.call(t):i}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(Mo(t))return Bo(t)?F(t):t.length;var e=Fs(t);return e==lt||e==mt?t.size:kn(t).length},w.snakeCase=ou,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&&Ao(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(Ao(t[n],e))return n}return-1},w.startCase=iu,w.startsWith=function(t,e,n){return t=Go(t),n=null==n?0:Ce(qo(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,si):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=Go(t),e=Wa({},e,r,Or);var o,i,s=Wa({},e.imports,r.imports,Or),a=Qo(s),u=T(s,a),c=0,l=e.interpolate||ae,f="__p += '",d=bi((e.escape||ae).source+"|"+l.source+"|"+(l===Ut?Zt:ae).source+"|"+(e.evaluate||ae).source+"|$","g"),h="//# sourceURL="+(Ti.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&&(o=!0,f+="' +\n__e("+n+") +\n'"),a&&(i=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e})),f+="';\n";var p=Ti.call(e,"variable")&&e.variable;if(p){if(Xt.test(p))throw new yi("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(At,""):f).replace(Mt,"$1").replace(Ot,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=uu((function(){return gi(a,h+"return "+f).apply(B,u)}));if(m.source=f,Do(m))throw m;return m},w.times=function(t,e){if((t=qo(t))<1||t>X)return[];var n=Z,r=os(t,Z);e=Br(e),t-=Z;for(var o=x(r,e);++n<t;)e(n);return o},w.toFinite=Ho,w.toInteger=qo,w.toLength=Vo,w.toLower=function(t){return Go(t).toLowerCase()},w.toNumber=Ko,w.toSafeInteger=function(t){return t?Ce(qo(t),-X,X):0===t?t:0},w.toString=Go,w.toUpper=function(t){return Go(t).toUpperCase()},w.trim=function(t,e,n){if((t=Go(t))&&(n||e===B))return I(t);if(!t||!(e=Vn(e)))return t;var r=U(t),o=U(e);return rr(r,A(r,o),M(r,o)+1).join("")},w.trimEnd=function(t,e,n){if((t=Go(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=Go(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(Po(e)){var o="separator"in e?e.separator:o;n="length"in e?qo(e.length):n,r="omission"in e?Vn(e.omission):r}var i=(t=Go(t)).length;if(D(t)){var s=U(t);i=s.length}if(n>=i)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(o===B)return u+r;if(s&&(a+=u.length-a),Da(o)){if(t.slice(a).search(o)){var c,l=u;for(o.global||(o=bi(o.source,Go(te.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var f=c.index;u=u.slice(0,f===B?a:f)}}else if(t.indexOf(Vn(o),a)!=a){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r},w.unescape=function(t){return(t=Go(t))&&Lt.test(t)?t.replace(Dt,yn):t},w.uniqueId=function(t){var e=++Ri;return Go(t)+e},w.upperCase=su,w.upperFirst=au,w.each=wo,w.eachRight=So,w.first=po,ui(w,function(){var t={};return je(w,(function(e,n){Ti.call(w.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),w.VERSION="4.17.21",o(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){w[t].placeholder=w})),o(["drop","take"],(function(t,e){le.prototype[t]=function(n){n=n===B?1:rs(qo(n),0);var r=this.__filtered__&&!e?new le(this):this.clone();return r.__filtered__?r.__takeCount__=os(n,r.__takeCount__):r.__views__.push({size:os(n,Z),type:t+(r.__dir__<0?"Right":"")}),r},le.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),o(["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}})),o(["head","last"],(function(t,e){var n="take"+(e?"Right":"");le.prototype[t]=function(){return this[n](1).value()[0]}})),o(["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(si)},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(Ro(Br(t)))},le.prototype.slice=function(t,e){t=qo(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=qo(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),o=w[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(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=o.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=i&&!d,m=a&&!h;if(!i&&c){e=m?e:new le(this);var y=t.apply(e,s);return y.__actions__.push({func:ko,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)})})),o(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Si[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 o=this.value();return e.apply(Ta(o)?o:[],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+"";Ti.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,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=os(e,t+s);break;case"takeRight":t=rs(t,e-s)}}return{start:t,end:e}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,c=r?a:s-1,l=this.__iteratees__,f=l.length,d=0,h=os(u,this.__takeCount__);if(!n||!r&&o==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 bo(this)},w.prototype.commit=function(){return new ce(this.value(),this.__chain__)},w.prototype.next=function(){this.__values__===B&&(this.__values__=$o(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=co(n);r.__index__=0,r.__values__=B,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__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:ko,args:[go],thisArg:B}),new ce(e,this.__chain__)}return this.thru(go)},w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=function(){return Xn(this.__wrapped__,this.__actions__)},w.prototype.first=w.prototype.head,Hi&&(w.prototype[Hi]=function(){return this}),w}();nn?((nn.exports=gn)._=gn,en._=gn):tn._=gn}.call(_x)),ii.exports;var t,e}var qd,Xa,Gd,Za,Yd,Qa,Vd,Ja={};function vx(){return qd||(qd=1,(t=Ja).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 o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}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}),Ja;var t}function Sx(){return Gd||(Gd=1,Xa={}),Xa}function Ex(){if(Yd)return Za;Yd=1;var t=vx(),e=Sx(),n=Array.prototype.push;function r(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function o(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function i(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=e.apply(void 0,r);return t.apply(void 0,r),o}}}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(o(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],n=t(arguments[0],e),o=n.length;return h&&"number"==typeof e?(e=e>2?e-2:1,o&&o<=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 o=t.iterateeRearg[e];if(o)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,o);var i=!f&&t.iterateeAry[e];if(i)return function(t,e){return H(t,(function(t){return"function"==typeof t?r(t,e):t}))}(n,i)}return n}function W(e,r,o){if(m&&(b||!t.skipFixed[e])){var i=t.methodSpread[e],s=i&&i.start;return void 0===s?E(r,o):function(t,e){return function(){for(var r=arguments.length,o=r-1,i=Array(r);r--;)i[r]=arguments[r];var s=i[e],a=i.slice(0,e);return s&&n.apply(a,s),e!=o&&n.apply(a,i.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,o=r-1,i=I(Object(t)),s=i;null!=s&&++n<r;){var a=e[n],u=s[a];null!=u&&!(M(u)||A(u)||O(u))&&(s[a]=I(n==o?u:Object(u))),s=s[a]}return i}function $(e,n){var r=t.aliasToReal[e]||e,o=t.remap[r]||r,i=l;return function(t){var e=f?w:S,a=f?w[o]:n,u=x(x({},i),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 o=g?0:n-1;return r[o]=e(r[o]),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=i(n,o):t.mutate.object[a]?u=i(n,function(t){return function(e){return t({},e)}}(n)):t.mutate.set[a]&&(u=i(n,z))),T(P,(function(e){return T(t.aryMethod[e],(function(n){if(a==n){var r=t.methodSpread[a],o=r&&r.afterRearg;return s=o?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,K=[];return T(P,(function(e){T(t.aryMethod[e],(function(e){var n=V[t.remap[e]||e];n&&K.push([e,q(e,n,V)])}))})),T(D(V),(function(t){var e=V[t];if("function"==typeof e){for(var n=K.length;n--;)if(K[n][0]==t)return;e.convert=$(t,e),K.push([t,e])}})),T(K,(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 bx(){if(Vd)return Qa;Vd=1;var t=yx().runInContext();return Qa=Ex()(t,t)}var eu=bx();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>'}},wx=t=>{const{title:e,description:n,links:r}=t||{};return!!(e||n||r)},Ix=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},kx="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",Cx=({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:kx}),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
28
|
/**
|
|
29
29
|
* @remix-run/router v1.15.2
|
|
30
30
|
*
|
|
@@ -34,4 +34,4 @@ import{logErrorToSentry as Td}from"https://cdn.jsdelivr.net/npm/@wellesley/sentr
|
|
|
34
34
|
* LICENSE.md file in the root directory of this source tree.
|
|
35
35
|
*
|
|
36
36
|
* @license MIT
|
|
37
|
-
|
|
37
|
+
*/;var Jd,Xd;function uc(t,e){throw new Error(e)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(Jd||(Jd={})),function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(Xd||(Xd={}));const Cp=["post","put","patch","delete"];new Set(Cp);const xx=["get",...Cp];new Set(xx);const Rx=at.createContext(null),Tx=at.createContext(null),xp=at.createContext({outlet:null,matches:[],isDataRoute:!1}),Ax=at.createContext(null);function Mx(){return at.useContext(Tx).navigationType}const Ox=at.createContext(null);function Dx(t){let e=at.useContext(xp).outlet;return e&&at.createElement(Ox.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 Nx(t){let e=at.useContext(Rx);return e||uc(),e}function Lx(t){let e=at.useContext(xp);return e||uc(),e}function Px(t){let e=Lx(),n=e.matches[e.matches.length-1];return n.route.id||uc(),n.route.id}function Fx(){var t;let e=at.useContext(Ax),n=Nx(Au.UseRouteError),r=Px(Au.UseRouteError);return void 0!==e?e:null==(t=n.errors)?void 0:t[r]}function Bx(t){return Dx(t.context)}new Promise((()=>{}));const jx=(t="")=>{const e=/No route matches/gi.test(t);try{const t=Mx();e&&"PUSH"===t&&location.reload()}catch(t){Ru.warn("useRoute404Refresh: ",t)}},Ux=t=>{switch(!0){case wx(t):return t;case Ix(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})=>{jx(null==t?void 0:t.data);const{title:e,description:n,links:r}=Ux(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:gx}),e&&St.jsx("h1",{className:"mb-2 text-lg font-semibold leading-normal text-slate-700",children:e}),n&&St.jsx("p",{className:"mb-2 text-xl leading-normal text-slate-700",children:n}),null!=r&&r.length?St.jsx(Cx,{linksList:r}):null]})})},Hx=()=>{const t=Fx();return St.jsx(Rp,{error:t})},Wx=at.createContext(null),tu={didCatch:!1,error:null};class zx 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,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(e=(n=this.props).onReset)||void 0===e||e.call(n,{args:o,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 o,i;n&&null!==e.error&&$x(t.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:t.resetKeys,reason:"keys"}),this.setState(tu))}render(){const{children:t,fallbackRender:e,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let s=t;if(o){const t={error:i,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 i;s=r}}return at.createElement(Wx.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}}function $x(){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 qx=()=>St.jsx(zx,{FallbackComponent:Rp,children:St.jsx(Bx,{})}),Gx=t=>{throw t},Yx=t=>{var e;return t&&(null==(e=null==t?void 0:t.data)?void 0:e.errorCode)};export{qx as ErrorBoundaryLayout,Rp as ErrorPage,Hx as RouterErrorPage,fi as getErrorByStatusCode,Kd as getErrorMsg,Yx as getServerApiErrorCode,Gx as throwError};
|