harperdb 4.7.18 → 4.7.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/bin/harperdb.js +57 -57
  3. package/bin/lite.js +54 -54
  4. package/components/EntryHandler.d.ts +2 -1
  5. package/components/Logger.d.ts +12 -0
  6. package/components/OptionsWatcher.d.ts +2 -1
  7. package/components/Scope.d.ts +16 -5
  8. package/index.d.ts +20 -9
  9. package/index.js +3 -0
  10. package/launchServiceScripts/launchNatsIngestService.js +54 -54
  11. package/launchServiceScripts/launchNatsReplyService.js +54 -54
  12. package/launchServiceScripts/launchUpdateNodes4-0-0.js +54 -54
  13. package/npm-shrinkwrap.json +346 -335
  14. package/package.json +1 -1
  15. package/resources/Table.d.ts +10 -4
  16. package/resources/databases.d.ts +12 -2
  17. package/server/jobs/jobProcess.js +54 -54
  18. package/server/threads/threadServer.js +54 -54
  19. package/studio/web/assets/{index-reMfz-PE.js → index-D-fcKyYx.js} +1 -1
  20. package/studio/web/assets/{index-C7BE1t1i.js → index-JYy8fJSs.js} +1 -1
  21. package/studio/web/assets/index-Zl65hD8K.css +1 -0
  22. package/studio/web/assets/index-oKJ2dNTo.js +234 -0
  23. package/studio/web/assets/{index.lazy-DG7DUk1C.js → index.lazy-C7Y8KaC7.js} +1 -1
  24. package/studio/web/assets/profiler-CxDJoqcP.js +1 -0
  25. package/studio/web/assets/{react-redux-4JeOy3fU.js → react-redux-LHAYowSO.js} +1 -1
  26. package/studio/web/assets/startRecording-CTUOSIln.js +2 -0
  27. package/studio/web/index.html +2 -2
  28. package/utility/scripts/restartHdb.js +54 -54
  29. package/v1.d.ts +8 -16
  30. package/v1.js +3 -0
  31. package/v2.d.ts +8 -16
  32. package/v2.js +41 -0
  33. package/studio/web/assets/index-BZ1HpJ7A.css +0 -1
  34. package/studio/web/assets/index-Bu-PphJh.js +0 -234
  35. package/studio/web/assets/profiler-B4vE9rPH.js +0 -1
  36. package/studio/web/assets/startRecording-B3i2VhSx.js +0 -2
@@ -1,4 +1,4 @@
1
- import{aw as rF,ax as p9,a8 as mr,ab as Bi,ad as bi,ay as D2,az as d9,a9 as h9,aA as m9,aB as g9,aC as y9,aD as v9,aE as b9,aF as F2,aG as E9,aH as S9,aI as ot,aJ as Lr,aK as nF,aL as Xn,aM as Ri,aN as hr,aO as _9,aP as w9,aQ as x9,aR as id,aS as A9,aT as O9,aU as C9,aV as R9,aW as I9,aX as q2,al as T9,aY as P9,aZ as k9}from"./index-Bu-PphJh.js";import{c as j9,a as N9,b as M9,d as D9,e as F9,f as q9,P as B9}from"./react-redux-4JeOy3fU.js";function C_(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const $9={fn:{requestSnippetGenerator_fetch:t=>{const e=new URL(t.get("url"));let r=!1;const n=t.get("headers");n&&n.size&&n.map((o,u)=>{r=r||/^content-type$/i.test(u)&&/^multipart\/form-data$/i.test(o)});let i=t.get("body");const s=t.get("method");if(i){if(r&&["POST","PUT","PATCH"].includes(s))return'throw new Error("Currently unsupported content-type: /^multipart\\/form-data$/i");';typeof i!="string"&&(i=JSON.stringify(i,null," "))}else!i&&s==="POST"&&(i="");const a="`"+(i||"").replace(/\\n/g,`
1
+ import{aw as rF,ax as p9,a8 as mr,ab as Bi,ad as bi,ay as D2,az as d9,a9 as h9,aA as m9,aB as g9,aC as y9,aD as v9,aE as b9,aF as F2,aG as E9,aH as S9,aI as ot,aJ as Lr,aK as nF,aL as Xn,aM as Ri,aN as hr,aO as _9,aP as w9,aQ as x9,aR as id,aS as A9,aT as O9,aU as C9,aV as R9,aW as I9,aX as q2,al as T9,aY as P9,aZ as k9}from"./index-oKJ2dNTo.js";import{c as j9,a as N9,b as M9,d as D9,e as F9,f as q9,P as B9}from"./react-redux-LHAYowSO.js";function C_(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const $9={fn:{requestSnippetGenerator_fetch:t=>{const e=new URL(t.get("url"));let r=!1;const n=t.get("headers");n&&n.size&&n.map((o,u)=>{r=r||/^content-type$/i.test(u)&&/^multipart\/form-data$/i.test(o)});let i=t.get("body");const s=t.get("method");if(i){if(r&&["POST","PUT","PATCH"].includes(s))return'throw new Error("Currently unsupported content-type: /^multipart\\/form-data$/i");';typeof i!="string"&&(i=JSON.stringify(i,null," "))}else!i&&s==="POST"&&(i="");const a="`"+(i||"").replace(/\\n/g,`
2
2
  `).replace(/`/g,"\\`")+"`";return`const response = await fetch("${e.toString()}", {
3
3
  method: "${t.get("method")}",${n&&n.size?`
4
4
  headers: {
@@ -0,0 +1 @@
1
+ import{Y as H,an as D,ao as q,_ as x,ap as C,aq as G,y as _,ar as X,as as Y,U as J,at as N,T as K,o as Q,au as W,av as Z}from"./index-oKJ2dNTo.js";function $(e,s,o,i){const p=a=>{s.notify(14,{error:a}),x("Error reported to customer",{"error.message":a.message})},d=H([e.profilingEndpointBuilder],p),c=o(i);return{async send({event:a,...E}){const f=new FormData,m=D(a);if(!m)throw new Error("Failed to serialize event");f.append("event",new Blob([m],{type:"application/json"}),"event.json");let n=m.length;for(const[v,k]of q(E)){const w=D(k);if(!w)throw new Error("Failed to serialize attachment");const g=await ee(c,w);n+=g.outputBytesCount,f.append(v,new Blob([g.output]),v)}d.send({data:f,bytesCount:n})}}}function ee(e,s){return new Promise(o=>{e.write(s),e.finish(i=>{o(i)})})}function te(e){let s=0;for(const o of e)o.stackId!==void 0&&s++;return s}const se=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g;function ne(e){return e?e.replace(se,"/?"):"/"}const O=(e,s)=>e||ne(s);function re(e,s,o){const{ids:i,names:p}=oe(e.views),d=e.longTasks.map(a=>a.id).filter(a=>a!==void 0),c={application:{id:s}};return o&&(c.session={id:o}),i.length&&(c.view={id:i,name:p}),d.length&&(c.long_task={id:d}),c}function oe(e){const s={ids:[],names:[]};for(const o of e)s.ids.push(o.viewId),o.viewName&&s.names.push(o.viewName);return s.names=Array.from(new Set(s.names)),s}function ae(e,s,o){return{event:ie(e,s,o),"wall-time.json":e}}function ie(e,s,o){const i=C(s),p=re(e,s.applicationId,o),d=le(i);return{...p,attachments:["wall-time.json"],start:new Date(e.startClocks.timeStamp).toISOString(),end:new Date(e.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:d.join(","),_dd:{clock_drift:G()}}}function le(e){return e.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"])}const ue={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function de(e,s,o,i,p,d,c,a=ue){const E=$(e,s,d,6);let f;const m=[];let n={state:"stopped",stateReason:"initializing"};s.subscribe(9,()=>{w("session-expired")}),s.subscribe(10,()=>{n.state==="stopped"&&n.stateReason==="session-expired"&&v()});function v(){if(n.state==="running")return;const t=c.findView();f=t?{startClocks:t.startClocks,viewId:t.id,viewName:O(t.name,document.location.pathname)}:void 0,m.push(_(e,window,"visibilitychange",A).stop,_(e,window,"beforeunload",B).stop),b()}function k(){w("stopped-by-user")}function w(t){j(t),m.forEach(r=>r()),i.set({status:"stopped",error_reason:void 0})}function g(t){if(t.state==="running")return{cleanupTasks:t.cleanupTasks};const r=[],u=s.subscribe(2,l=>{const h={viewId:l.id,viewName:O(l.name,document.location.pathname),startClocks:l.startClocks};I(h),f=h});return r.push(u.unsubscribe),{cleanupTasks:r}}function b(){const t=X().Profiler;if(!t)throw i.set({status:"error",error_reason:"not-supported-by-browser"}),new Error("RUM Profiler is not supported in this browser.");n.state==="running"&&y(n);const{cleanupTasks:r}=g(n);let u;try{u=new t({sampleInterval:a.sampleIntervalMs,maxBufferSize:Math.round(a.collectIntervalMs*1.5/a.sampleIntervalMs)})}catch(l){l instanceof Error&&l.message.includes("disabled by Document Policy")?(Y.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",l),i.set({status:"error",error_reason:"missing-document-policy-header"})):i.set({status:"error",error_reason:"unexpected-exception"});return}i.set({status:"running",error_reason:void 0}),n={state:"running",startClocks:N(),profiler:u,timeoutId:J(b,a.collectIntervalMs),views:[],cleanupTasks:r,longTasks:[]},I(f),u.addEventListener("samplebufferfull",T)}function y(t){K(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",T);const{startClocks:r,views:u}=t;t.profiler.stop().then(l=>{const h=N(),P=Q(r.timeStamp,h.timeStamp),S=p.findLongTasks(r.relative,P),U=P<a.minProfileDurationMs,z=te(l.samples)<a.minNumberOfSamples;S.length===0&&(U||z)||R(Object.assign(l,{startClocks:r,endClocks:h,clocksOrigin:W(),longTasks:S,views:u,sampleInterval:a.sampleIntervalMs}))}).catch(Z)}function j(t){if(n.state==="paused"){n={state:"stopped",stateReason:t};return}if(n.state!=="running")return;const r=n;n={state:"stopped",stateReason:t},r.cleanupTasks.forEach(u=>u()),y(r)}function M(){if(n.state!=="running")return;const t=n;n={state:"paused"},t.cleanupTasks.forEach(r=>r()),y(t)}function I(t){n.state!=="running"||!t||n.views.push(t)}function R(t){var r;const u=(r=o.findTrackedSession())===null||r===void 0?void 0:r.id,l=ae(t,e,u);E.send(l)}function T(){b()}function A(){document.visibilityState==="hidden"&&n.state==="running"?M():document.visibilityState==="visible"&&n.state==="paused"&&b()}function B(){b()}function L(){return n.state==="stopped"}function V(){return n.state==="running"}function F(){return n.state==="paused"}return{start:v,stop:k,isStopped:L,isRunning:V,isPaused:F}}export{ue as DEFAULT_RUM_PROFILER_CONFIGURATION,de as createRumProfiler};
@@ -1,4 +1,4 @@
1
- import{aK as Te,a8 as b}from"./index-Bu-PphJh.js";function E(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ne=typeof Symbol=="function"&&Symbol.observable||"@@observable",ue=Ne,q=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${q()}`,REPLACE:`@@redux/REPLACE${q()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${q()}`},U=xe;function Se(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _e(e,t,r){if(typeof e!="function")throw new Error(E(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(E(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(E(1));return r(_e)(e,t)}let s=e,n=t,o=new Map,c=o,a=0,u=!1;function i(){c===o&&(c=new Map,o.forEach((d,S)=>{c.set(S,d)}))}function f(){if(u)throw new Error(E(3));return n}function l(d){if(typeof d!="function")throw new Error(E(4));if(u)throw new Error(E(5));let S=!0;i();const h=a++;return c.set(h,d),function(){if(S){if(u)throw new Error(E(6));S=!1,i(),c.delete(h),o=null}}}function y(d){if(!Se(d))throw new Error(E(7));if(typeof d.type>"u")throw new Error(E(8));if(typeof d.type!="string")throw new Error(E(17));if(u)throw new Error(E(9));try{u=!0,n=s(n,d)}finally{u=!1}return(o=c).forEach(h=>{h()}),d}function v(d){if(typeof d!="function")throw new Error(E(10));s=d,y({type:U.REPLACE})}function p(){const d=l;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(E(11));function h(){const g=S;g.next&&g.next(f())}return h(),{unsubscribe:d(h)}},[ue](){return this}}}return y({type:U.INIT}),{dispatch:y,subscribe:l,getState:f,replaceReducer:v,[ue]:p}}function Me(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:U.INIT})>"u")throw new Error(E(12));if(typeof r(void 0,{type:U.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(E(13))})}function zt(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const c=t[o];typeof e[c]=="function"&&(r[c]=e[c])}const s=Object.keys(r);let n;try{Me(r)}catch(o){n=o}return function(c={},a){if(n)throw n;let u=!1;const i={};for(let f=0;f<s.length;f++){const l=s[f],y=r[l],v=c[l],p=y(v,a);if(typeof p>"u")throw a&&a.type,new Error(E(14));i[l]=p,u=u||p!==v}return u=u||s.length!==Object.keys(c).length,u?i:c}}function ce(e,t){return function(...r){return t(e.apply(this,r))}}function Vt(e,t){if(typeof e=="function")return ce(e,t);if(typeof e!="object"||e===null)throw new Error(E(16));const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=ce(n,t))}return r}function Ae(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...s)=>t(r(...s)))}function Kt(...e){return t=>(r,s)=>{const n=t(r,s);let o=()=>{throw new Error(E(15))};const c={getState:n.getState,dispatch:(u,...i)=>o(u,...i)},a=e.map(u=>u(c));return o=Ae(...a)(n.dispatch),{...n,dispatch:o}}}function Dt(e){return Se(e)&&"type"in e&&typeof e.type=="string"}function Ie(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Fe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function $e(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(s=>typeof s=="function"?`function ${s.name||"unnamed"}()`:typeof s).join(", ");throw new TypeError(`${t}[${r}]`)}}var ie=e=>Array.isArray(e)?e:[e];function ke(e){const t=Array.isArray(e[0])?e[0]:e;return $e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function We(e,t){const r=[],{length:s}=e;for(let n=0;n<s;n++)r.push(e[n].apply(null,t));return r}var Ue=class{constructor(e){this.value=e}deref(){return this.value}},Le=typeof WeakRef<"u"?WeakRef:Ue,je=0,ae=1;function W(){return{s:je,v:void 0,o:null,p:null}}function me(e,t={}){let r=W();const{resultEqualityCheck:s}=t;let n,o=0;function c(){let a=r;const{length:u}=arguments;for(let l=0,y=u;l<y;l++){const v=arguments[l];if(typeof v=="function"||typeof v=="object"&&v!==null){let p=a.o;p===null&&(a.o=p=new WeakMap);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}else{let p=a.p;p===null&&(a.p=p=new Map);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}}const i=a;let f;if(a.s===ae)f=a.v;else if(f=e.apply(null,arguments),o++,s){const l=n?.deref?.()??n;l!=null&&s(l,f)&&(f=l,o!==0&&o--),n=typeof f=="object"&&f!==null||typeof f=="function"?new Le(f):f}return i.s=ae,i.v=f,f}return c.clearCache=()=>{r=W(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}function Ye(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,s=(...n)=>{let o=0,c=0,a,u={},i=n.pop();typeof i=="object"&&(u=i,i=n.pop()),Ie(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const f={...r,...u},{memoize:l,memoizeOptions:y=[],argsMemoize:v=me,argsMemoizeOptions:p=[]}=f,w=ie(y),d=ie(p),S=ke(n),h=l(function(){return o++,i.apply(null,arguments)},...w),m=v(function(){c++;const R=We(S,arguments);return a=h.apply(null,R),a},...d);return Object.assign(m,{resultFunc:i,memoizedResultFunc:h,dependencies:S,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:l,argsMemoize:v})};return Object.assign(s,{withTypes:()=>s}),s}var ze=Ye(me),Ve=Object.assign((e,t=ze)=>{Fe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),s=r.map(o=>e[o]);return t(s,(...o)=>o.reduce((c,a,u)=>(c[r[u]]=a,c),{}))},{withTypes:()=>Ve}),G={exports:{}},H={};var fe;function Ke(){if(fe)return H;fe=1;var e=Te();function t(u,i){return u===i&&(u!==0||1/u===1/i)||u!==u&&i!==i}var r=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,n=e.useRef,o=e.useEffect,c=e.useMemo,a=e.useDebugValue;return H.useSyncExternalStoreWithSelector=function(u,i,f,l,y){var v=n(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=c(function(){function d(R){if(!S){if(S=!0,h=R,R=l(R),y!==void 0&&p.hasValue){var O=p.value;if(y(O,R))return m=O}return m=R}if(O=m,r(h,R))return O;var P=l(R);return y!==void 0&&y(O,P)?(h=R,O):(h=R,m=P)}var S=!1,h,m,g=f===void 0?null:f;return[function(){return d(i())},g===null?void 0:function(){return d(g())}]},[i,f,l,y]);var w=s(u,v[0],v[1]);return o(function(){p.hasValue=!0,p.value=w},[w]),a(w),w},H}var le;function De(){return le||(le=1,G.exports=Ke()),G.exports}De();var Be=b.version.startsWith("19"),qe=Symbol.for(Be?"react.transitional.element":"react.element"),Ge=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Ze=Symbol.for("react.profiler"),Je=Symbol.for("react.consumer"),Qe=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),nt=we,ot=Q;function st(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case qe:switch(e=e.type,e){case He:case Ze:case Xe:case et:case tt:return e;default:switch(e=e&&e.$$typeof,e){case Qe:case we:case rt:case Q:return e;case Je:return e;default:return t}}case Ge:return t}}}function ut(e){return st(e)===Q}function ct(e,t,r,s,{areStatesEqual:n,areOwnPropsEqual:o,areStatePropsEqual:c}){let a=!1,u,i,f,l,y;function v(h,m){return u=h,i=m,f=e(u,i),l=t(s,i),y=r(f,l,i),a=!0,y}function p(){return f=e(u,i),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function w(){return e.dependsOnOwnProps&&(f=e(u,i)),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function d(){const h=e(u,i),m=!c(h,f);return f=h,m&&(y=r(f,l,i)),y}function S(h,m){const g=!o(m,i),R=!n(h,u,m,i);return u=h,i=m,g&&R?p():g?w():R?d():y}return function(m,g){return a?S(m,g):v(m,g)}}function it(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:s,...n}){const o=t(e,n),c=r(e,n),a=s(e,n);return ct(o,c,a,e,n)}function at(e,t){const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=(...o)=>t(n(...o)))}return r}function Z(e){return function(r){const s=e(r);function n(){return s}return n.dependsOnOwnProps=!1,n}}function de(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Ee(e,t){return function(s,{displayName:n}){const o=function(a,u){return o.dependsOnOwnProps?o.mapToProps(a,u):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,u){o.mapToProps=e,o.dependsOnOwnProps=de(e);let i=o(a,u);return typeof i=="function"&&(o.mapToProps=i,o.dependsOnOwnProps=de(i),i=o(a,u)),i},o}}function ee(e,t){return(r,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function ft(e){return e&&typeof e=="object"?Z(t=>at(e,t)):e?typeof e=="function"?Ee(e):ee(e,"mapDispatchToProps"):Z(t=>({dispatch:t}))}function lt(e){return e?typeof e=="function"?Ee(e):ee(e,"mapStateToProps"):Z(()=>({}))}function dt(e,t,r){return{...r,...e,...t}}function pt(e){return function(r,{displayName:s,areMergedPropsEqual:n}){let o=!1,c;return function(u,i,f){const l=e(u,i,f);return o?n(l,c)||(c=l):(o=!0,c=l),c}}}function yt(e){return e?typeof e=="function"?pt(e):ee(e,"mergeProps"):()=>dt}function bt(e){e()}function vt(){let e=null,t=null;return{clear(){e=null,t=null},notify(){bt(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let s=e;for(;s;)r.push(s),s=s.next;return r},subscribe(r){let s=!0;const n=t={callback:r,next:null,prev:t};return n.prev?n.prev.next=n:e=n,function(){!s||e===null||(s=!1,n.next?n.next.prev=n.prev:t=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}var pe={notify(){},get:()=>[]};function ge(e,t){let r,s=pe,n=0,o=!1;function c(w){f();const d=s.subscribe(w);let S=!1;return()=>{S||(S=!0,d(),l())}}function a(){s.notify()}function u(){p.onStateChange&&p.onStateChange()}function i(){return o}function f(){n++,r||(r=t?t.addNestedSub(u):e.subscribe(u),s=vt())}function l(){n--,r&&n===0&&(r(),r=void 0,s.clear(),s=pe)}function y(){o||(o=!0,f())}function v(){o&&(o=!1,l())}const p={addNestedSub:c,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:i,trySubscribe:y,tryUnsubscribe:v,getListeners:()=>s};return p}var ht=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",St=ht(),mt=()=>typeof navigator<"u"&&navigator.product==="ReactNative",wt=mt(),Et=()=>St||wt?b.useLayoutEffect:b.useEffect,L=Et();function ye(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function X(e,t){if(ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!ye(e[r[n]],t[r[n]]))return!1;return!0}var gt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Rt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ct={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Re={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ot={[nt]:Ct,[ot]:Re};function be(e){return ut(e)?Re:Ot[e.$$typeof]||gt}var Pt=Object.defineProperty,Tt=Object.getOwnPropertyNames,ve=Object.getOwnPropertySymbols,Nt=Object.getOwnPropertyDescriptor,xt=Object.getPrototypeOf,he=Object.prototype;function J(e,t){if(typeof t!="string"){if(he){const o=xt(t);o&&o!==he&&J(e,o)}let r=Tt(t);ve&&(r=r.concat(ve(t)));const s=be(e),n=be(t);for(let o=0;o<r.length;++o){const c=r[o];if(!Rt[c]&&!(n&&n[c])&&!(s&&s[c])){const a=Nt(t,c);try{Pt(e,c,a)}catch{}}}}return e}var _t=Symbol.for("react-redux-context"),Mt=typeof globalThis<"u"?globalThis:{};function At(){if(!b.createContext)return{};const e=Mt[_t]??=new Map;let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var Ce=At(),It=[null,null];function Ft(e,t,r){L(()=>e(...t),r)}function $t(e,t,r,s,n,o){e.current=s,r.current=!1,n.current&&(n.current=null,o())}function kt(e,t,r,s,n,o,c,a,u,i,f){if(!e)return()=>{};let l=!1,y=null;const v=()=>{if(l||!a.current)return;const w=t.getState();let d,S;try{d=s(w,n.current)}catch(h){S=h,y=h}S||(y=null),d===o.current?c.current||i():(o.current=d,u.current=d,c.current=!0,f())};return r.onStateChange=v,r.trySubscribe(),v(),()=>{if(l=!0,r.tryUnsubscribe(),r.onStateChange=null,y)throw y}}function Wt(e,t){return e===t}function Ut(e,t,r,{pure:s,areStatesEqual:n=Wt,areOwnPropsEqual:o=X,areStatePropsEqual:c=X,areMergedPropsEqual:a=X,forwardRef:u=!1,context:i=Ce}={}){const f=i,l=lt(e),y=ft(t),v=yt(r),p=!!e;return d=>{const S=d.displayName||d.name||"Component",h=`Connect(${S})`,m={shouldHandleStateChanges:p,displayName:h,wrappedComponentName:S,WrappedComponent:d,initMapStateToProps:l,initMapDispatchToProps:y,initMergeProps:v,areStatesEqual:n,areStatePropsEqual:c,areOwnPropsEqual:o,areMergedPropsEqual:a};function g(P){const[_,j,N]=b.useMemo(()=>{const{reactReduxForwardedRef:C,...$}=P;return[P.context,C,$]},[P]),M=b.useMemo(()=>{let C=f;return _?.Consumer,C},[_,f]),T=b.useContext(M),A=!!P.store&&!!P.store.getState&&!!P.store.dispatch,Oe=!!T&&!!T.store,x=A?P.store:T.store,te=Oe?T.getServerState:x.getState,Y=b.useMemo(()=>it(x.dispatch,m),[x]),[I,re]=b.useMemo(()=>{if(!p)return It;const C=ge(x,A?void 0:T.subscription),$=C.notifyNestedSubs.bind(C);return[C,$]},[x,A,T]),ne=b.useMemo(()=>A?T:{...T,subscription:I},[A,T,I]),z=b.useRef(void 0),V=b.useRef(N),F=b.useRef(void 0),oe=b.useRef(!1),K=b.useRef(!1),D=b.useRef(void 0);L(()=>(K.current=!0,()=>{K.current=!1}),[]);const se=b.useMemo(()=>()=>F.current&&N===V.current?F.current:Y(x.getState(),N),[x,N]),Pe=b.useMemo(()=>$=>I?kt(p,x,I,Y,V,z,oe,K,F,re,$):()=>{},[I]);Ft($t,[V,z,oe,N,F,re]);let k;try{k=b.useSyncExternalStore(Pe,se,te?()=>Y(te(),N):se)}catch(C){throw D.current&&(C.message+=`
1
+ import{aK as Te,a8 as b}from"./index-oKJ2dNTo.js";function E(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ne=typeof Symbol=="function"&&Symbol.observable||"@@observable",ue=Ne,q=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${q()}`,REPLACE:`@@redux/REPLACE${q()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${q()}`},U=xe;function Se(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _e(e,t,r){if(typeof e!="function")throw new Error(E(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(E(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(E(1));return r(_e)(e,t)}let s=e,n=t,o=new Map,c=o,a=0,u=!1;function i(){c===o&&(c=new Map,o.forEach((d,S)=>{c.set(S,d)}))}function f(){if(u)throw new Error(E(3));return n}function l(d){if(typeof d!="function")throw new Error(E(4));if(u)throw new Error(E(5));let S=!0;i();const h=a++;return c.set(h,d),function(){if(S){if(u)throw new Error(E(6));S=!1,i(),c.delete(h),o=null}}}function y(d){if(!Se(d))throw new Error(E(7));if(typeof d.type>"u")throw new Error(E(8));if(typeof d.type!="string")throw new Error(E(17));if(u)throw new Error(E(9));try{u=!0,n=s(n,d)}finally{u=!1}return(o=c).forEach(h=>{h()}),d}function v(d){if(typeof d!="function")throw new Error(E(10));s=d,y({type:U.REPLACE})}function p(){const d=l;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(E(11));function h(){const g=S;g.next&&g.next(f())}return h(),{unsubscribe:d(h)}},[ue](){return this}}}return y({type:U.INIT}),{dispatch:y,subscribe:l,getState:f,replaceReducer:v,[ue]:p}}function Me(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:U.INIT})>"u")throw new Error(E(12));if(typeof r(void 0,{type:U.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(E(13))})}function zt(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const c=t[o];typeof e[c]=="function"&&(r[c]=e[c])}const s=Object.keys(r);let n;try{Me(r)}catch(o){n=o}return function(c={},a){if(n)throw n;let u=!1;const i={};for(let f=0;f<s.length;f++){const l=s[f],y=r[l],v=c[l],p=y(v,a);if(typeof p>"u")throw a&&a.type,new Error(E(14));i[l]=p,u=u||p!==v}return u=u||s.length!==Object.keys(c).length,u?i:c}}function ce(e,t){return function(...r){return t(e.apply(this,r))}}function Vt(e,t){if(typeof e=="function")return ce(e,t);if(typeof e!="object"||e===null)throw new Error(E(16));const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=ce(n,t))}return r}function Ae(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...s)=>t(r(...s)))}function Kt(...e){return t=>(r,s)=>{const n=t(r,s);let o=()=>{throw new Error(E(15))};const c={getState:n.getState,dispatch:(u,...i)=>o(u,...i)},a=e.map(u=>u(c));return o=Ae(...a)(n.dispatch),{...n,dispatch:o}}}function Dt(e){return Se(e)&&"type"in e&&typeof e.type=="string"}function Ie(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Fe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function $e(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(s=>typeof s=="function"?`function ${s.name||"unnamed"}()`:typeof s).join(", ");throw new TypeError(`${t}[${r}]`)}}var ie=e=>Array.isArray(e)?e:[e];function ke(e){const t=Array.isArray(e[0])?e[0]:e;return $e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function We(e,t){const r=[],{length:s}=e;for(let n=0;n<s;n++)r.push(e[n].apply(null,t));return r}var Ue=class{constructor(e){this.value=e}deref(){return this.value}},Le=typeof WeakRef<"u"?WeakRef:Ue,je=0,ae=1;function W(){return{s:je,v:void 0,o:null,p:null}}function me(e,t={}){let r=W();const{resultEqualityCheck:s}=t;let n,o=0;function c(){let a=r;const{length:u}=arguments;for(let l=0,y=u;l<y;l++){const v=arguments[l];if(typeof v=="function"||typeof v=="object"&&v!==null){let p=a.o;p===null&&(a.o=p=new WeakMap);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}else{let p=a.p;p===null&&(a.p=p=new Map);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}}const i=a;let f;if(a.s===ae)f=a.v;else if(f=e.apply(null,arguments),o++,s){const l=n?.deref?.()??n;l!=null&&s(l,f)&&(f=l,o!==0&&o--),n=typeof f=="object"&&f!==null||typeof f=="function"?new Le(f):f}return i.s=ae,i.v=f,f}return c.clearCache=()=>{r=W(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}function Ye(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,s=(...n)=>{let o=0,c=0,a,u={},i=n.pop();typeof i=="object"&&(u=i,i=n.pop()),Ie(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const f={...r,...u},{memoize:l,memoizeOptions:y=[],argsMemoize:v=me,argsMemoizeOptions:p=[]}=f,w=ie(y),d=ie(p),S=ke(n),h=l(function(){return o++,i.apply(null,arguments)},...w),m=v(function(){c++;const R=We(S,arguments);return a=h.apply(null,R),a},...d);return Object.assign(m,{resultFunc:i,memoizedResultFunc:h,dependencies:S,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:l,argsMemoize:v})};return Object.assign(s,{withTypes:()=>s}),s}var ze=Ye(me),Ve=Object.assign((e,t=ze)=>{Fe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),s=r.map(o=>e[o]);return t(s,(...o)=>o.reduce((c,a,u)=>(c[r[u]]=a,c),{}))},{withTypes:()=>Ve}),G={exports:{}},H={};var fe;function Ke(){if(fe)return H;fe=1;var e=Te();function t(u,i){return u===i&&(u!==0||1/u===1/i)||u!==u&&i!==i}var r=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,n=e.useRef,o=e.useEffect,c=e.useMemo,a=e.useDebugValue;return H.useSyncExternalStoreWithSelector=function(u,i,f,l,y){var v=n(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=c(function(){function d(R){if(!S){if(S=!0,h=R,R=l(R),y!==void 0&&p.hasValue){var O=p.value;if(y(O,R))return m=O}return m=R}if(O=m,r(h,R))return O;var P=l(R);return y!==void 0&&y(O,P)?(h=R,O):(h=R,m=P)}var S=!1,h,m,g=f===void 0?null:f;return[function(){return d(i())},g===null?void 0:function(){return d(g())}]},[i,f,l,y]);var w=s(u,v[0],v[1]);return o(function(){p.hasValue=!0,p.value=w},[w]),a(w),w},H}var le;function De(){return le||(le=1,G.exports=Ke()),G.exports}De();var Be=b.version.startsWith("19"),qe=Symbol.for(Be?"react.transitional.element":"react.element"),Ge=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Ze=Symbol.for("react.profiler"),Je=Symbol.for("react.consumer"),Qe=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),nt=we,ot=Q;function st(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case qe:switch(e=e.type,e){case He:case Ze:case Xe:case et:case tt:return e;default:switch(e=e&&e.$$typeof,e){case Qe:case we:case rt:case Q:return e;case Je:return e;default:return t}}case Ge:return t}}}function ut(e){return st(e)===Q}function ct(e,t,r,s,{areStatesEqual:n,areOwnPropsEqual:o,areStatePropsEqual:c}){let a=!1,u,i,f,l,y;function v(h,m){return u=h,i=m,f=e(u,i),l=t(s,i),y=r(f,l,i),a=!0,y}function p(){return f=e(u,i),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function w(){return e.dependsOnOwnProps&&(f=e(u,i)),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function d(){const h=e(u,i),m=!c(h,f);return f=h,m&&(y=r(f,l,i)),y}function S(h,m){const g=!o(m,i),R=!n(h,u,m,i);return u=h,i=m,g&&R?p():g?w():R?d():y}return function(m,g){return a?S(m,g):v(m,g)}}function it(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:s,...n}){const o=t(e,n),c=r(e,n),a=s(e,n);return ct(o,c,a,e,n)}function at(e,t){const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=(...o)=>t(n(...o)))}return r}function Z(e){return function(r){const s=e(r);function n(){return s}return n.dependsOnOwnProps=!1,n}}function de(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Ee(e,t){return function(s,{displayName:n}){const o=function(a,u){return o.dependsOnOwnProps?o.mapToProps(a,u):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,u){o.mapToProps=e,o.dependsOnOwnProps=de(e);let i=o(a,u);return typeof i=="function"&&(o.mapToProps=i,o.dependsOnOwnProps=de(i),i=o(a,u)),i},o}}function ee(e,t){return(r,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function ft(e){return e&&typeof e=="object"?Z(t=>at(e,t)):e?typeof e=="function"?Ee(e):ee(e,"mapDispatchToProps"):Z(t=>({dispatch:t}))}function lt(e){return e?typeof e=="function"?Ee(e):ee(e,"mapStateToProps"):Z(()=>({}))}function dt(e,t,r){return{...r,...e,...t}}function pt(e){return function(r,{displayName:s,areMergedPropsEqual:n}){let o=!1,c;return function(u,i,f){const l=e(u,i,f);return o?n(l,c)||(c=l):(o=!0,c=l),c}}}function yt(e){return e?typeof e=="function"?pt(e):ee(e,"mergeProps"):()=>dt}function bt(e){e()}function vt(){let e=null,t=null;return{clear(){e=null,t=null},notify(){bt(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let s=e;for(;s;)r.push(s),s=s.next;return r},subscribe(r){let s=!0;const n=t={callback:r,next:null,prev:t};return n.prev?n.prev.next=n:e=n,function(){!s||e===null||(s=!1,n.next?n.next.prev=n.prev:t=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}var pe={notify(){},get:()=>[]};function ge(e,t){let r,s=pe,n=0,o=!1;function c(w){f();const d=s.subscribe(w);let S=!1;return()=>{S||(S=!0,d(),l())}}function a(){s.notify()}function u(){p.onStateChange&&p.onStateChange()}function i(){return o}function f(){n++,r||(r=t?t.addNestedSub(u):e.subscribe(u),s=vt())}function l(){n--,r&&n===0&&(r(),r=void 0,s.clear(),s=pe)}function y(){o||(o=!0,f())}function v(){o&&(o=!1,l())}const p={addNestedSub:c,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:i,trySubscribe:y,tryUnsubscribe:v,getListeners:()=>s};return p}var ht=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",St=ht(),mt=()=>typeof navigator<"u"&&navigator.product==="ReactNative",wt=mt(),Et=()=>St||wt?b.useLayoutEffect:b.useEffect,L=Et();function ye(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function X(e,t){if(ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!ye(e[r[n]],t[r[n]]))return!1;return!0}var gt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Rt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ct={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Re={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ot={[nt]:Ct,[ot]:Re};function be(e){return ut(e)?Re:Ot[e.$$typeof]||gt}var Pt=Object.defineProperty,Tt=Object.getOwnPropertyNames,ve=Object.getOwnPropertySymbols,Nt=Object.getOwnPropertyDescriptor,xt=Object.getPrototypeOf,he=Object.prototype;function J(e,t){if(typeof t!="string"){if(he){const o=xt(t);o&&o!==he&&J(e,o)}let r=Tt(t);ve&&(r=r.concat(ve(t)));const s=be(e),n=be(t);for(let o=0;o<r.length;++o){const c=r[o];if(!Rt[c]&&!(n&&n[c])&&!(s&&s[c])){const a=Nt(t,c);try{Pt(e,c,a)}catch{}}}}return e}var _t=Symbol.for("react-redux-context"),Mt=typeof globalThis<"u"?globalThis:{};function At(){if(!b.createContext)return{};const e=Mt[_t]??=new Map;let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var Ce=At(),It=[null,null];function Ft(e,t,r){L(()=>e(...t),r)}function $t(e,t,r,s,n,o){e.current=s,r.current=!1,n.current&&(n.current=null,o())}function kt(e,t,r,s,n,o,c,a,u,i,f){if(!e)return()=>{};let l=!1,y=null;const v=()=>{if(l||!a.current)return;const w=t.getState();let d,S;try{d=s(w,n.current)}catch(h){S=h,y=h}S||(y=null),d===o.current?c.current||i():(o.current=d,u.current=d,c.current=!0,f())};return r.onStateChange=v,r.trySubscribe(),v(),()=>{if(l=!0,r.tryUnsubscribe(),r.onStateChange=null,y)throw y}}function Wt(e,t){return e===t}function Ut(e,t,r,{pure:s,areStatesEqual:n=Wt,areOwnPropsEqual:o=X,areStatePropsEqual:c=X,areMergedPropsEqual:a=X,forwardRef:u=!1,context:i=Ce}={}){const f=i,l=lt(e),y=ft(t),v=yt(r),p=!!e;return d=>{const S=d.displayName||d.name||"Component",h=`Connect(${S})`,m={shouldHandleStateChanges:p,displayName:h,wrappedComponentName:S,WrappedComponent:d,initMapStateToProps:l,initMapDispatchToProps:y,initMergeProps:v,areStatesEqual:n,areStatePropsEqual:c,areOwnPropsEqual:o,areMergedPropsEqual:a};function g(P){const[_,j,N]=b.useMemo(()=>{const{reactReduxForwardedRef:C,...$}=P;return[P.context,C,$]},[P]),M=b.useMemo(()=>{let C=f;return _?.Consumer,C},[_,f]),T=b.useContext(M),A=!!P.store&&!!P.store.getState&&!!P.store.dispatch,Oe=!!T&&!!T.store,x=A?P.store:T.store,te=Oe?T.getServerState:x.getState,Y=b.useMemo(()=>it(x.dispatch,m),[x]),[I,re]=b.useMemo(()=>{if(!p)return It;const C=ge(x,A?void 0:T.subscription),$=C.notifyNestedSubs.bind(C);return[C,$]},[x,A,T]),ne=b.useMemo(()=>A?T:{...T,subscription:I},[A,T,I]),z=b.useRef(void 0),V=b.useRef(N),F=b.useRef(void 0),oe=b.useRef(!1),K=b.useRef(!1),D=b.useRef(void 0);L(()=>(K.current=!0,()=>{K.current=!1}),[]);const se=b.useMemo(()=>()=>F.current&&N===V.current?F.current:Y(x.getState(),N),[x,N]),Pe=b.useMemo(()=>$=>I?kt(p,x,I,Y,V,z,oe,K,F,re,$):()=>{},[I]);Ft($t,[V,z,oe,N,F,re]);let k;try{k=b.useSyncExternalStore(Pe,se,te?()=>Y(te(),N):se)}catch(C){throw D.current&&(C.message+=`
2
2
  The error may be correlated with this previous error:
3
3
  ${D.current.stack}
4
4
 
@@ -0,0 +1,2 @@
1
+ import{s as D,C as Z,b as Me,N as g,a as ve,c as X,d as Re,i as _e,g as L,r as Q,e as ee,P as te,f as ne,h as De,j as P,k,l as xe,m as V,n as F,t as y,o as oe,p as Ae,q as se,E as ie,u as re,v as O,w,x as I,y as Oe,z as ze,A as b,B as _,R as Le,D as Pe,F as v,G as ke,H as Ve,I as Fe,J as U,K as Ue,L as He,M as Be,O as Ge,Q as Ye,S as $e,T as Xe,U as We,V as je,W as qe,X as Je,Y as Ke,Z as Ze,_ as Qe}from"./index-oKJ2dNTo.js";const m={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9,Change:12},C={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},h={AddString:0,AddNode:1,RemoveNode:2,Attribute:3,Text:4,Size:5,ScrollPosition:6,AddStyleSheet:7,AttachedStyleSheets:8,MediaPlaybackState:9,VisualViewport:10},S={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},N={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},x={Play:0,Pause:1};function et(e){return tt(void 0,void 0,e)}function tt(e,t,n){let o={container:void 0,parentId:e,previousSiblingId:void 0,nextSiblingId:t};const s=i=>o.previousSiblingId===i-1?0:o.nextSiblingId!==void 0?o.nextSiblingId-i:o.parentId!==void 0?i-o.parentId:null;return{advance(i){const r=n.getOrInsert(i),a=s(r);return o.previousSiblingId=r,{nodeId:r,insertionPoint:a}},ascend(){o.container&&(o=o.container)},descend(){o.previousSiblingId!==void 0&&(o={container:o,parentId:o.previousSiblingId,previousSiblingId:void 0,nextSiblingId:void 0})}}}function H(e,t){const n=e.tagName,o=e.value;if(D(e,t)){const s=e.type;return n==="INPUT"&&(s==="button"||s==="submit"||s==="reset")?o:!o||n==="OPTION"?void 0:Z}if(n==="OPTION"||n==="SELECT")return e.value;if(!(n!=="INPUT"&&n!=="TEXTAREA"))return o}const nt=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,ot=/^[A-Za-z]+:|^\/\//,st=/^["']?data:.*,/i;function it(e,t){return e.replace(nt,(n,o,s,i,r,a)=>{const u=s||r||a;if(!t||!u||ot.test(u)||st.test(u))return n;const c=o||i||"";return`url(${c}${rt(u,t)}${c})`})}function rt(e,t){try{return Me(e,t).href}catch{return e}}const at=/[^a-z1-6-_]/;function ut(e){const t=e.toLowerCase().trim();return at.test(t)?"div":t}function ae(e){return e.tagName.toLowerCase()}function W(e,t){return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${t}' style='background-color:silver'%3E%3C/svg%3E`}function ue(e,t){if(e===void 0||e.length===0)return;const n=s=>{const i=s.cssRules||s.rules,r=Array.from(i,u=>u.cssText);return t.addMetric("cssText",r.reduce((u,c)=>u+c.length,0)),{cssRules:r,disabled:s.disabled||void 0,media:s.media.length>0?Array.from(s.media):void 0}},o=[];for(let s=0;s<e.length;s++)o.push(n(e[s]));return o}const ct=1e6;function ce(e,t,n,o){if(t===g.HIDDEN)return null;const s=e.getAttribute(n),i=e.tagName;if(ve(i,n,s,t,o)){if(i==="IMG"){const r=e;if(r.naturalWidth>0)return W(r.naturalWidth,r.naturalHeight);const{width:a,height:u}=e.getBoundingClientRect();return a>0||u>0?W(a,u):X}return i==="SOURCE"?X:Z}return s&&Re(s,ct)}function dt(e,t,n){return{...de(e,t,n),...le(e,t,n)}}function de(e,t,n){if(t===g.HIDDEN)return{};const o={},s=ae(e);for(let r=0;r<e.attributes.length;r+=1){const u=e.attributes.item(r).name,c=ce(e,t,u,n.scope.configuration);c!==null&&(o[u]=c)}if(e.value&&(s==="textarea"||s==="select"||s==="option"||s==="input")){const r=H(e,t);r!==void 0&&(o.value=r)}if(s==="option"){const r=e;r.selected&&!D(r,t)?o.selected="":delete o.selected}const i=e;return s==="input"&&(i.type==="radio"||i.type==="checkbox")&&(i.checked&&!D(i,t)?o.checked="":delete o.checked),o}function le(e,t,n){if(t===g.HIDDEN)return{};const o={},s=e.ownerDocument,i=ae(e);if(i==="link"){const u=Array.from(s.styleSheets).find(l=>l.href===e.href),c=z(u);c&&u&&(n.addMetric("cssText",c.length),o._cssText=c)}if(i==="style"&&e.sheet){const u=z(e.sheet);u&&(n.addMetric("cssText",u.length),o._cssText=u)}if(i==="audio"||i==="video"){const u=e;o.rr_mediaState=u.paused?"paused":"played"}let r,a;switch(n.kind){case 0:r=Math.round(e.scrollTop),a=Math.round(e.scrollLeft),(r||a)&&n.scope.elementsScrollPositions.set(e,{scrollTop:r,scrollLeft:a});break;case 1:n.scope.elementsScrollPositions.has(e)&&({scrollTop:r,scrollLeft:a}=n.scope.elementsScrollPositions.get(e));break}return a&&(o.rr_scrollLeft=a),r&&(o.rr_scrollTop=r),o}function z(e){if(!e)return null;let t;try{t=e.rules||e.cssRules}catch{}if(!t)return null;const n=Array.from(t,_e()?lt:fe).join("");return it(n,e.href)}function lt(e){if(pt(e)&&e.selectorText.includes(":")){const t=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return e.cssText.replace(t,"$1\\$2")}return fe(e)}function fe(e){return ft(e)&&z(e.styleSheet)||e.cssText}function ft(e){return"styleSheet"in e}function pt(e){return"selectorText"in e}function B(e,t,n){switch(e.nodeType){case e.DOCUMENT_NODE:return ht(e,t,n);case e.DOCUMENT_FRAGMENT_NODE:return gt(e,t,n);case e.DOCUMENT_TYPE_NODE:return St(e,n);case e.ELEMENT_NODE:return mt(e,t,n);case e.TEXT_NODE:return Nt(e,t,n);case e.CDATA_SECTION_NODE:return Tt(e,n);default:return null}}function G(e,t,n){const o=[];return k(e,s=>{const i=B(s,t,n);i&&o.push(i)}),o}function ht(e,t,n){return{type:C.Document,id:n.assignId(e),childNodes:G(e,t,n),adoptedStyleSheets:ue(e.adoptedStyleSheets,n)}}function gt(e,t,n){const o=P(e);return o&&n.scope.shadowRootsController.addShadowRoot(e,n.scope),{type:C.DocumentFragment,id:n.assignId(e),childNodes:G(e,t,n),isShadowRoot:o,adoptedStyleSheets:o?ue(e.adoptedStyleSheets,n):void 0}}function St(e,t){return{type:C.DocumentType,id:t.assignId(e),name:e.name,publicId:e.publicId,systemId:e.systemId}}function mt(e,t,n){const o=ut(e.tagName),s=Et(e)||void 0,i=Q(ee(e),t);if(i===g.HIDDEN){const{width:c,height:l}=e.getBoundingClientRect();return{type:C.Element,id:n.assignId(e),tagName:o,attributes:{rr_width:`${c}px`,rr_height:`${l}px`,[ne]:te},childNodes:[],isSVG:s}}if(i===g.IGNORE)return null;const r=n.assignId(e),a=dt(e,i,n);let u=[];return De(e)&&o!=="style"&&(u=G(e,i,n)),{type:C.Element,id:r,tagName:o,attributes:a,childNodes:u,isSVG:s}}function Et(e){return e.tagName==="svg"||e instanceof SVGElement}function Nt(e,t,n){const o=L(e,t);return o===void 0?null:{type:C.Text,id:n.assignId(e),textContent:o}}function Tt(e,t){return{type:C.CDATA,id:t.assignId(e),textContent:""}}function yt(e,t){const n=t.scope.configuration.defaultPrivacyLevel;return B(e,n,t)}function pe(e,t,n,o){let s;const i=ee(t);if(i?s=Q(i,n):s=n,s===g.HIDDEN){Rt(e,t,o);return}if(s!==g.IGNORE){switch(t.nodeType){case t.CDATA_SECTION_NODE:vt(e,t,o);break;case t.DOCUMENT_NODE:It(e,t,o);break;case t.DOCUMENT_FRAGMENT_NODE:bt(e,t,o);break;case t.DOCUMENT_TYPE_NODE:Ct(e,t,o);break;case t.ELEMENT_NODE:wt(e,t,s,o);break;case t.TEXT_NODE:Mt(e,t,s,o);break;default:return}switch(t.nodeType){case t.CDATA_SECTION_NODE:case t.DOCUMENT_TYPE_NODE:case t.TEXT_NODE:return}t.nodeName!=="STYLE"&&(e.descend(),k(t,r=>{pe(e,r,s,o)}),e.ascend())}}function It(e,t,n){const{nodeId:o,insertionPoint:s}=e.advance(t);n.addNode(s,"#document"),n.setScrollPosition(o,V(),F()),he(t.adoptedStyleSheets,o,n)}function bt(e,t,n){const{nodeId:o,insertionPoint:s}=e.advance(t);if(!P(t)){n.addNode(s,"#document-fragment");return}n.addNode(s,"#shadow-root"),n.scope.shadowRootsController.addShadowRoot(t,n.scope),he(t.adoptedStyleSheets,o,n)}function Ct(e,t,n){const{insertionPoint:o}=e.advance(t);n.addNode(o,"#doctype",t.name,t.publicId,t.systemId)}function wt(e,t,n,o){const{nodeId:s,insertionPoint:i}=e.advance(t),r=Object.entries(de(t,n,o));o.addNode(i,ge(t),...r);const{_cssText:a,rr_mediaState:u,rr_scrollLeft:c,rr_scrollTop:l}=le(t,n,o),d=t;if(a!==void 0&&d.sheet){const f=o.scope.styleSheetIds.getOrInsert(d.sheet);o.addStyleSheet(a),o.attachStyleSheets(s,[f])}u==="played"?o.setMediaPlaybackState(s,x.Play):u==="paused"&&o.setMediaPlaybackState(s,x.Pause),(c!==void 0||l!==void 0)&&o.setScrollPosition(s,c||0,l||0)}function Mt(e,t,n,o){const s=L(t,n);if(s===void 0)return;const{insertionPoint:i}=e.advance(t);o.addNode(i,"#text",s)}function vt(e,t,n){const{insertionPoint:o}=e.advance(t);n.addNode(o,"#cdata-section")}function Rt(e,t,n){if(!xe(t))return;const{nodeId:o,insertionPoint:s}=e.advance(t);n.addNode(s,ge(t),[ne,te]);const{width:i,height:r}=t.getBoundingClientRect();n.setSize(o,i,r)}function he(e,t,n){!e||e.length===0||n.attachStyleSheets(t,e.map(o=>_t(o,n)))}function _t(e,t){const n=Array.from(e.cssRules||e.rules,s=>s.cssText),o=e.media.length>0?Array.from(e.media):void 0;return t.addMetric("cssText",n.reduce((s,i)=>s+i.length,0)),t.addStyleSheet(n,o,e.disabled),t.scope.styleSheetIds.getOrInsert(e)}function ge(e){const t=e.nodeName;return Dt(e)?`svg>${t}`:t}function Dt(e){return e.namespaceURI==="http://www.w3.org/2000/svg"}function Y(){return{cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}}}function A(e,t,n){e[t].count+=1,e[t].max=Math.max(e[t].max,n),e[t].sum+=n}function xt(e,t){for(const n of["cssText","serializationDuration"])e[n].count+=t[n].count,e[n].max=Math.max(e[n].max,t[n].max),e[n].sum+=t[n].sum}function At(e){let t={};const n=i=>{for(let r=0,a=i.length;r<a;r++){const u=i[r];if(typeof u=="string"){const c=e.size;i[r]=e.getOrInsert(u),e.size>c&&o(h.AddString,u)}else Array.isArray(u)&&n(u)}},o=(i,r)=>{i in t||(t[i]=[i]),i!==h.AddString&&Array.isArray(r)&&n(r),t[i].push(r)};return{add:o,flush:()=>{const i=[];return[h.AddString,h.AddNode,h.RemoveNode,h.Attribute,h.Text,h.Size,h.ScrollPosition,h.AddStyleSheet,h.AttachedStyleSheets,h.MediaPlaybackState,h.VisualViewport].forEach(r=>{const a=t[r];a&&i.push(a)}),t={},i}}}function Se(e,t,n,o,s){const i=[],r=Y(),a={add(c){i.push(c)},addMetric(c,l){A(r,c,l)},assignId(c){const l=o.nodeIds.getOrInsert(c);return a.serializedNodeIds&&a.serializedNodeIds.add(l),l},kind:e,scope:o},u=y();s(a),A(r,"serializationDuration",oe(u,y()));for(const c of i)t(c);n(r)}function Ot(e,t,n,o,s,i){const r=At(o.stringIds),a=Y(),u={addMetric(d,f){A(a,d,f)},addNode(...d){r.add(h.AddNode,d)},addStyleSheet(d,f,p){p?r.add(h.AddStyleSheet,[d,f||[],p]):f?r.add(h.AddStyleSheet,[d,f]):r.add(h.AddStyleSheet,[d])},attachStyleSheets(d,f){const p=[d];for(const E of f)p.push(E);r.add(h.AttachedStyleSheets,p)},setMediaPlaybackState(d,f){r.add(h.MediaPlaybackState,[d,f])},setScrollPosition(d,f,p){r.add(h.ScrollPosition,[d,f,p])},setSize(d,f,p){r.add(h.Size,[d,f,p])},kind:e,scope:o},c=y();i(u),A(a,"serializationDuration",oe(c,y()));const l=r.flush();l.length>0&&t({data:l,type:m.Change,timestamp:s}),n(a)}const j=25;function zt(e){return Math.abs(e.pageTop-e.offsetTop-window.scrollY)>j||Math.abs(e.pageLeft-e.offsetLeft-window.scrollX)>j}const Lt=(e,t)=>{const n=window.visualViewport,o={layoutViewportX:e,layoutViewportY:t,visualViewportX:e,visualViewportY:t};if(n)zt(n)?(o.layoutViewportX=Math.round(e+n.offsetLeft),o.layoutViewportY=Math.round(t+n.offsetTop)):(o.visualViewportX=Math.round(e-n.offsetLeft),o.visualViewportY=Math.round(t-n.offsetTop));else return o;return o},me=e=>({scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width});function Pt(e,t,n,o,s){q(y(),0,t,n,s);const{unsubscribe:i}=e.subscribe(2,r=>{o(),q(r.startClocks.timeStamp,1,t,n,s)});return{stop:i}}function q(e,t,n,o,s){const{width:i,height:r}=Ae();n({data:{height:r,href:window.location.href,width:i},type:m.Meta,timestamp:e}),n({data:{has_focus:document.hasFocus()},type:m.Focus,timestamp:e}),se(ie.USE_CHANGE_RECORDS)?(t===1&&s.resetIds(),Ot(t,n,o,s,e,a=>{pe(et(s.nodeIds),document,s.configuration.defaultPrivacyLevel,a)})):Se(t,n,o,s,a=>{a.add(kt(e,a))}),window.visualViewport&&n({data:me(window.visualViewport),type:m.VisualViewport,timestamp:e})}function kt(e,t){return{data:{node:yt(document,t),initialOffset:{left:V(),top:F()}},type:m.FullSnapshot,timestamp:e}}function Vt(){return $(1)}function Ft(){return $(0)}function Ut(){return Bt(0)}function Ht(){return $(0)}function Bt(e){return Ee(()=>new Map,e)}function $(e){return Ee(()=>new WeakMap,e)}function Ee(e,t){let n=e(),o=t;const s=i=>n.get(i);return{clear(){n=e(),o=t},get:s,getOrInsert(i){let r=s(i);return r===void 0&&(r=o++,n.set(i,r)),r},get size(){return o-t}}}function Gt(e,t,n){const o=Vt(),s=Ft(),i=Ut(),r=Ht();return{resetIds(){o.clear(),s.clear(),i.clear(),r.clear()},configuration:e,elementsScrollPositions:t,eventIds:o,nodeIds:s,shadowRootsController:n,stringIds:i,styleSheetIds:r}}function Yt(){const e=new WeakMap;return{set(t,n){t===document&&!document.scrollingElement||e.set(t===document?document.scrollingElement:t,n)},get(t){return e.get(t)},has(t){return e.has(t)}}}function Ne(e){return!!e.changedTouches}function R(e){return e.composed===!0&&re(e.target)?e.composedPath()[0]:e.target}function T(e,t){return{data:{source:e,...t},type:m.IncrementalSnapshot,timestamp:y()}}const $t=50;function Xt(e,t){const{throttled:n,cancel:o}=O(i=>{const r=R(i),a=t.nodeIds.get(r);if(a===void 0)return;const u=Te(i);if(!u)return;const c={id:a,timeOffset:0,x:u.x,y:u.y};e(T(Ne(i)?S.TouchMove:S.MouseMove,{positions:[c]}))},$t,{trailing:!1}),{stop:s}=w(t.configuration,document,["mousemove","touchmove"],n,{capture:!0,passive:!0});return{stop:()=>{s(),o()}}}function Te(e){let{clientX:t,clientY:n}=Ne(e)?e.changedTouches[0]:e;if(window.visualViewport){const{visualViewportX:o,visualViewportY:s}=Lt(t,n);t=o,n=s}if(!(!Number.isFinite(t)||!Number.isFinite(n)))return{x:t,y:n}}const J={pointerup:N.MouseUp,mousedown:N.MouseDown,click:N.Click,contextmenu:N.ContextMenu,dblclick:N.DblClick,focus:N.Focus,blur:N.Blur,touchstart:N.TouchStart,touchend:N.TouchEnd};function Wt(e,t){const n=o=>{const s=R(o),i=t.nodeIds.get(s);if(i===void 0||I(s,t.configuration.defaultPrivacyLevel)===g.HIDDEN)return;const r=J[o.type];let a;if(r!==N.Blur&&r!==N.Focus){const u=Te(o);if(!u)return;a={id:i,type:r,x:u.x,y:u.y}}else a={id:i,type:r};e({id:t.eventIds.getOrInsert(o),...T(S.MouseInteraction,a)})};return w(t.configuration,document,Object.keys(J),n,{capture:!0,passive:!0})}const jt=100;function ye(e,t,n){const{throttled:o,cancel:s}=O(r=>{const a=R(r);if(!a)return;const u=n.nodeIds.get(a);if(u===void 0||I(a,n.configuration.defaultPrivacyLevel)===g.HIDDEN)return;const c=a===document?{scrollTop:F(),scrollLeft:V()}:{scrollTop:Math.round(a.scrollTop),scrollLeft:Math.round(a.scrollLeft)};n.elementsScrollPositions.set(a,c),t(T(S.Scroll,{id:u,x:c.scrollLeft,y:c.scrollTop}))},jt),{stop:i}=Oe(n.configuration,e,"scroll",o,{capture:!0,passive:!0});return{stop:()=>{i(),s()}}}const qt=200;function Jt(e,t){const n=ze(t.configuration).subscribe(o=>{e(T(S.ViewportResize,o))});return{stop:()=>{n.unsubscribe()}}}function Kt(e,t){const n=window.visualViewport;if(!n)return{stop:b};const{throttled:o,cancel:s}=O(()=>{e({data:me(n),type:m.VisualViewport,timestamp:y()})},qt,{trailing:!1}),{stop:i}=w(t.configuration,n,["resize","scroll"],o,{capture:!0,passive:!0});return{stop:()=>{i(),s()}}}function Zt(e,t){return w(t.configuration,document,["play","pause"],n=>{const o=R(n);if(!o)return;const s=t.nodeIds.get(o);s===void 0||I(o,t.configuration.defaultPrivacyLevel)===g.HIDDEN||e(T(S.MediaInteraction,{id:s,type:n.type==="play"?x.Play:x.Pause}))},{capture:!0,passive:!0})}function Qt(e,t){function n(i,r){if(!i||!i.ownerNode)return;const a=t.nodeIds.get(i.ownerNode);a!==void 0&&r(a)}const o=[_(CSSStyleSheet.prototype,"insertRule",({target:i,parameters:[r,a]})=>{n(i,u=>e(T(S.StyleSheetRule,{id:u,adds:[{rule:r,index:a}]})))}),_(CSSStyleSheet.prototype,"deleteRule",({target:i,parameters:[r]})=>{n(i,a=>e(T(S.StyleSheetRule,{id:a,removes:[{index:r}]})))})];typeof CSSGroupingRule<"u"?s(CSSGroupingRule):(s(CSSMediaRule),s(CSSSupportsRule));function s(i){o.push(_(i.prototype,"insertRule",({target:r,parameters:[a,u]})=>{n(r.parentStyleSheet,c=>{const l=K(r);l&&(l.push(u||0),e(T(S.StyleSheetRule,{id:c,adds:[{rule:a,index:l}]})))})}),_(i.prototype,"deleteRule",({target:r,parameters:[a]})=>{n(r.parentStyleSheet,u=>{const c=K(r);c&&(c.push(a),e(T(S.StyleSheetRule,{id:u,removes:[{index:c}]})))})}))}return{stop:()=>{o.forEach(i=>i.stop())}}}function K(e){const t=[];let n=e;for(;n.parentRule;){const r=Array.from(n.parentRule.cssRules).indexOf(n);t.unshift(r),n=n.parentRule}if(!n.parentStyleSheet)return;const s=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return t.unshift(s),t}function en(e,t){return w(t.configuration,window,["focus","blur"],()=>{e({data:{has_focus:document.hasFocus()},type:m.Focus,timestamp:y()})})}function tn(e,t,n){const o=e.subscribe(12,s=>{var i,r;s.rawRumEvent.type===Le.ACTION&&s.rawRumEvent.action.type===Pe.CLICK&&(!((r=(i=s.rawRumEvent.action.frustration)===null||i===void 0?void 0:i.type)===null||r===void 0)&&r.length)&&"events"in s.domainContext&&s.domainContext.events&&s.domainContext.events.length&&t({timestamp:s.rawRumEvent.date,type:m.FrustrationRecord,data:{frustrationTypes:s.rawRumEvent.action.frustration.type,recordIds:s.domainContext.events.map(a=>n.eventIds.getOrInsert(a))}})});return{stop:()=>{o.unsubscribe()}}}function nn(e,t,n){const o=e.subscribe(5,()=>{n(),t({timestamp:y(),type:m.ViewEnd})});return{stop:()=>{o.unsubscribe()}}}function Ie(e,t,n){const o=n.configuration.defaultPrivacyLevel,s=new WeakMap,i=e!==document,{stop:r}=w(n.configuration,e,i?["change"]:["input","change"],l=>{const d=R(l);(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement||d instanceof HTMLSelectElement)&&u(d)},{capture:!0,passive:!0});let a;if(i)a=b;else{const l=[v(HTMLInputElement.prototype,"value",u),v(HTMLInputElement.prototype,"checked",u),v(HTMLSelectElement.prototype,"value",u),v(HTMLTextAreaElement.prototype,"value",u),v(HTMLSelectElement.prototype,"selectedIndex",u)];a=()=>{l.forEach(d=>d.stop())}}return{stop:()=>{a(),r()}};function u(l){const d=I(l,o);if(d===g.HIDDEN)return;const f=l.type;let p;if(f==="radio"||f==="checkbox"){if(D(l,d))return;p={isChecked:l.checked}}else{const M=H(l,d);if(M===void 0)return;p={text:M}}c(l,p);const E=l.name;f==="radio"&&E&&l.checked&&document.querySelectorAll(`input[type="radio"][name="${CSS.escape(E)}"]`).forEach(M=>{M!==l&&c(M,{isChecked:!1})})}function c(l,d){const f=n.nodeIds.get(l);if(f===void 0)return;const p=s.get(l);(!p||p.text!==d.text||p.isChecked!==d.isChecked)&&(s.set(l,d),t(T(S.Input,{id:f,...d})))}}const on=100,sn=16;function rn(e){let t=b,n=[];function o(){t(),e(n),n=[]}const{throttled:s,cancel:i}=O(o,sn,{leading:!1});return{addMutations:r=>{n.length===0&&(t=ke(s,{timeout:on})),n.push(...r)},flush:o,stop:()=>{t(),i()}}}function be(e,t,n,o){const s=Ve();if(!s)return{stop:b,flush:b};const i=rn(a=>{Se(2,t,n,o,u=>an(a.concat(r.takeRecords()),u))}),r=new s(Fe(i.addMutations));return r.observe(e,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:()=>{r.disconnect(),i.stop()},flush:()=>{i.flush()}}}function an(e,t){const n=new Map;e.filter(c=>c.type==="childList").forEach(c=>{c.removedNodes.forEach(l=>{Ce(l,t.scope.shadowRootsController.removeShadowRoot)})});const o=e.filter(c=>c.target.isConnected&&fn(c.target,t.scope.nodeIds)&&I(c.target,t.scope.configuration.defaultPrivacyLevel,n)!==g.HIDDEN),{adds:s,removes:i,hasBeenSerialized:r}=un(o.filter(c=>c.type==="childList"),n,t),a=cn(o.filter(c=>c.type==="characterData"&&!r(c.target)),n,t),u=dn(o.filter(c=>c.type==="attributes"&&!r(c.target)),n,t);!a.length&&!u.length&&!i.length&&!s.length||t.add(T(S.Mutation,{adds:s,removes:i,texts:a,attributes:u}))}function un(e,t,n){const o=new Set,s=new Map;for(const l of e)l.addedNodes.forEach(d=>{o.add(d)}),l.removedNodes.forEach(d=>{o.has(d)||s.set(d,l.target),o.delete(d)});const i=Array.from(o);ln(i),n.serializedNodeIds=new Set;const r=[];for(const l of i){if(u(l))continue;const d=I(l.parentNode,n.scope.configuration.defaultPrivacyLevel,t);if(d===g.HIDDEN||d===g.IGNORE)continue;const f=B(l,d,n);if(!f)continue;const p=U(l);r.push({nextId:c(l),parentId:n.scope.nodeIds.get(p),node:f})}const a=[];return s.forEach((l,d)=>{const f=n.scope.nodeIds.get(l),p=n.scope.nodeIds.get(d);f!==void 0&&p!==void 0&&a.push({parentId:f,id:p})}),{adds:r,removes:a,hasBeenSerialized:u};function u(l){var d;const f=n.scope.nodeIds.get(l);return f!==void 0&&((d=n.serializedNodeIds)===null||d===void 0?void 0:d.has(f))}function c(l){let d=l.nextSibling;for(;d;){const f=n.scope.nodeIds.get(d);if(f!==void 0)return f;d=d.nextSibling}return null}}function cn(e,t,n){var o;const s=[],i=new Set,r=e.filter(a=>i.has(a.target)?!1:(i.add(a.target),!0));for(const a of r){if(a.target.textContent===a.oldValue)continue;const c=n.scope.nodeIds.get(a.target);if(c===void 0)continue;const l=I(U(a.target),n.scope.configuration.defaultPrivacyLevel,t);l===g.HIDDEN||l===g.IGNORE||s.push({id:c,value:(o=L(a.target,l))!==null&&o!==void 0?o:null})}return s}function dn(e,t,n){const o=[],s=new Map,i=e.filter(a=>{const u=s.get(a.target);return u&&u.has(a.attributeName)?!1:(u?u.add(a.attributeName):s.set(a.target,new Set([a.attributeName])),!0)}),r=new Map;for(const a of i){if(a.target.getAttribute(a.attributeName)===a.oldValue)continue;const c=n.scope.nodeIds.get(a.target);if(c===void 0)continue;const l=I(a.target,n.scope.configuration.defaultPrivacyLevel,t),d=ce(a.target,l,a.attributeName,n.scope.configuration);let f;if(a.attributeName==="value"){const E=H(a.target,l);if(E===void 0)continue;f=E}else typeof d=="string"?f=d:f=null;let p=r.get(a.target);p||(p={id:c,attributes:{}},o.push(p),r.set(a.target,p)),p.attributes[a.attributeName]=f}return o}function ln(e){e.sort((t,n)=>{const o=t.compareDocumentPosition(n);return o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_CONTAINS||o&Node.DOCUMENT_POSITION_FOLLOWING?1:o&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function Ce(e,t){re(e)&&t(e.shadowRoot),k(e,n=>Ce(n,t))}function fn(e,t){let n=e;for(;n;){if(t.get(n)===void 0&&!P(n))return!1;n=U(n)}return!0}const pn=(e,t)=>{const n=new Map;return{addShadowRoot:(s,i)=>{if(n.has(s))return;const r=be(s,e,t,i),a=Ie(s,e,i),u=ye(s,e,i);n.set(s,{flush:()=>r.flush(),stop:()=>{r.stop(),a.stop(),u.stop()}})},removeShadowRoot:s=>{const i=n.get(s);i&&(i.stop(),n.delete(s))},stop:()=>{n.forEach(({stop:s})=>s())},flush:()=>{n.forEach(({flush:s})=>s())}}};function hn(e){const{emitRecord:t,emitStats:n,configuration:o,lifeCycle:s}=e;if(!t||!n)throw new Error("emit functions are required");const i=f=>{t(f),Ue("record",{record:f});const p=e.viewHistory.findView();He(p.id)},r=pn(i,n),a=Gt(o,Yt(),r),{stop:u}=Pt(s,i,n,c,a);function c(){r.flush(),l.flush()}const l=be(document,i,n,a),d=[l,Xt(i,a),Wt(i,a),ye(document,i,a),Jt(i,a),Ie(document,i,a),Zt(i,a),Qt(i,a),en(i,a),Kt(i,a),tn(s,i,a),nn(s,i,c)];return{stop:()=>{r.stop(),d.forEach(f=>f.stop()),u()},flushMutations:c,shadowRootsController:r}}function gn(e,t,n,o){const s=new FormData;s.append("segment",new Blob([e],{type:"application/octet-stream"}),`${t.session.id}-${t.start}`);const i={raw_segment_size:o,compressed_segment_size:e.byteLength,...t},r=JSON.stringify(i);return s.append("event",new Blob([r],{type:"application/json"})),{data:s,bytesCount:e.byteLength,cssText:n.cssText,isFullSnapshot:t.index_in_view===0,rawSize:o,recordCount:t.records_count,serializationDuration:n.serializationDuration}}function Sn({context:e,creationReason:t,encoder:n}){let o=0;const s=e.view.id,i=Be(s),r={start:1/0,end:-1/0,creation_reason:t,records_count:0,has_full_snapshot:!1,index_in_view:i,source:"browser",...e},a=Y();Ge(s);function u(d,f){r.start=Math.min(r.start,d.timestamp),r.end=Math.max(r.end,d.timestamp),r.records_count+=1,r.has_full_snapshot||(r.has_full_snapshot=d.type===m.FullSnapshot||d.type===m.Change&&r.index_in_view===0);const p=n.isEmpty?'{"records":[':",";n.write(p+JSON.stringify(d),E=>{o+=E,f(o)})}function c(d){xt(a,d)}function l(d){if(n.isEmpty)throw new Error("Empty segment flushed");n.write(`],${JSON.stringify(r).slice(1)}
2
+ `),n.finish(f=>{Ye(r.view.id,f.rawBytesCount),d(r,a,f)})}return{addRecord:u,addStats:c,flush:l}}const mn=5*je;let we=6e4;function En(e,t,n,o,s,i){return Nn(e,()=>Tn(t.applicationId,n,o),s,i)}function Nn(e,t,n,o){let s={status:0,nextSegmentCreationReason:"init"};const{unsubscribe:i}=e.subscribe(2,()=>{a("view_change")}),{unsubscribe:r}=e.subscribe(11,u=>{a(u.reason)});function a(u){s.status===1&&(s.segment.flush((c,l,d)=>{const f=gn(d.output,c,l,d.rawBytesCount);$e(u)?n.sendOnExit(f):n.send(f)}),Xe(s.expirationTimeoutId)),u!=="stop"?s={status:0,nextSegmentCreationReason:u}:s={status:2}}return{addRecord:u=>{if(s.status!==2){if(s.status===0){const c=t();if(!c)return;s={status:1,segment:Sn({encoder:o,context:c,creationReason:s.nextSegmentCreationReason}),expirationTimeoutId:We(()=>{a("segment_duration_limit")},mn)}}s.segment.addRecord(u,c=>{c>we&&a("segment_bytes_limit")})}},addStats:u=>{s.status===1&&s.segment.addStats(u)},stop:()=>{a("stop"),i(),r()}}}function Tn(e,t,n){const o=t.findTrackedSession(),s=n.findView();if(!(!o||!s))return{application:{id:e},session:{id:o.id},view:{id:s.id}}}function yn(e,t){if(!e.metricsEnabled)return{stop:b};const{unsubscribe:n}=t.subscribe(o=>{if(o.type==="failure"||o.type==="queue-full"||o.type==="success"&&o.payload.isFullSnapshot){const s=In(o.type,o.bandwidth,o.payload);qe("Segment network request metrics",{metrics:s})}});return{stop:n}}function In(e,t,n){return{cssText:{count:n.cssText.count,max:n.cssText.max,sum:n.cssText.sum},encoding:{fullSnapshot:se(ie.USE_CHANGE_RECORDS)?"change":"v1",incrementalSnapshot:"v1"},isFullSnapshot:n.isFullSnapshot,ongoingRequests:{count:t.ongoingRequestCount,totalSize:t.ongoingByteCount},recordCount:n.recordCount,result:e,serializationDuration:{count:n.serializationDuration.count,max:n.serializationDuration.max,sum:n.serializationDuration.sum},size:{compressed:n.bytesCount,raw:n.rawSize}}}function bn(e){const t=Je();return{addRecord:n=>{const o=e.findView();t.send("record",n,o.id)}}}function wn(e,t,n,o,s,i,r){const a=[],u=p=>{e.notify(14,{error:p}),Qe("Error reported to customer",{"error.message":p.message})},c=r||Ke([t.sessionReplayEndpointBuilder],u,we);let l,d;if(Ze())({addRecord:l}=bn(o)),d=b;else{const p=En(e,t,n,o,c,s);l=p.addRecord,d=p.addStats,a.push(p.stop);const E=yn(i,c.observable);a.push(E.stop)}const{stop:f}=hn({emitRecord:l,emitStats:d,configuration:t,lifeCycle:e,viewHistory:o});return a.push(f),{stop:()=>{a.forEach(p=>p())}}}export{wn as startRecording};
@@ -6,8 +6,8 @@
6
6
  <link rel="icon" type="dynamic-favicon" href="/favicon_purple.png" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
8
  <title>Harper Fabric</title>
9
- <script type="module" crossorigin src="/assets/index-Bu-PphJh.js"></script>
10
- <link rel="stylesheet" crossorigin href="/assets/index-BZ1HpJ7A.css">
9
+ <script type="module" crossorigin src="/assets/index-oKJ2dNTo.js"></script>
10
+ <link rel="stylesheet" crossorigin href="/assets/index-Zl65hD8K.css">
11
11
  </head>
12
12
 
13
13
  <body>