harperdb 4.7.0-beta.8 → 4.7.0
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/README.md +1 -1
- package/bin/harperdb.js +78 -78
- package/bin/lite.js +30 -30
- package/launchServiceScripts/launchNatsIngestService.js +30 -30
- package/launchServiceScripts/launchNatsReplyService.js +30 -30
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +29 -29
- package/npm-shrinkwrap.json +228 -228
- package/package.json +1 -1
- package/resources/Resource.d.ts +1 -1
- package/resources/ResourceInterface.d.ts +1 -0
- package/resources/Table.d.ts +3 -3
- package/resources/analytics/profile.d.ts +1 -1
- package/server/jobs/jobProcess.js +29 -29
- package/server/threads/threadServer.js +29 -29
- package/studio/web/assets/index-BllUWRY2.css +4 -0
- package/studio/web/assets/index-BmjwYzCO.js +60 -0
- package/studio/web/assets/index-C03Y4API.css +1 -0
- package/studio/web/assets/{index-CJvpTf9-.js → index-DpJURxqP.js} +1 -1
- package/studio/web/assets/index-Du-A5IyF.js +485 -0
- package/studio/web/assets/index.lazy-DBx9Ig9S.js +287 -0
- package/studio/web/assets/{profiler-B8yj6Bha.js → profiler-mTxViYKx.js} +1 -1
- package/studio/web/assets/react-redux-cZLDk-ho.js +13 -0
- package/studio/web/assets/{startRecording-CcwcHomr.js → startRecording-DOAvMlMp.js} +1 -1
- package/studio/web/harper-fabric_black.png +0 -0
- package/studio/web/harper-fabric_white.png +0 -0
- package/studio/web/index.html +3 -3
- package/utility/scripts/restartHdb.js +29 -29
- package/studio/web/assets/index-CxvGFSCT.js +0 -479
- package/studio/web/assets/index-DLf_pzXW.css +0 -4
- package/studio/web/assets/index-DN9-aQdO.js +0 -52
- /package/studio/web/{logo_harper_db_studio.png → harper-studio_white.png} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as J,X,aj as z,ak as K,al as x,am as Q,an as b,q as P,ao as W,ap as g,aq as Y,O as Z,M as $,l as ee,ar as te,as as ne}from"./index-
|
|
1
|
+
import{R as J,X,aj as z,ak as K,al as x,am as Q,an as b,q as P,ao as W,ap as g,aq as Y,O as Z,M as $,l as ee,ar as te,as as ne}from"./index-Du-A5IyF.js";function se(e){let t=0;for(const r of e)r.stackId!==void 0&&t++;return t}const h=new Map;function re(e,t){h.set(t,e)}function oe(e){return h.get(e)}function O(e){for(const t of h.keys())t<e&&h.delete(t)}function ae({rawRumEvent:e,startTime:t}){if(e.type!==J.LONG_TASK)return;const r=e.long_task.id;re(r,t)}function ie(e,t,r){const o={application:{id:t}};r&&(o.session={id:r});const{ids:l,names:p}=le(e.views);l.length&&(o.view={id:l,name:p});const u=e.longTasks.map(f=>f.id).filter(f=>f!==void 0);return u.length&&(o.long_task={id:u}),o}function le(e){const t={ids:[],names:[]};for(const r of e)t.ids.push(r.viewId),r.viewName&&t.names.push(r.viewName);return t.names=Array.from(new Set(t.names)),t}const ce=(e,t,r)=>{const{profilingEndpointBuilder:o,applicationId:l}=t,p=ue(e,t,r),u=fe(e,p),f=o.build("fetch",u);return X("Sending profile to public profiling intake",{profilingIntakeURL:f,applicationId:l,sessionId:r}),fetch(f,{body:u.data,method:"POST"})};function ue(e,t,r){const o=z(t),l=ie(e,t.applicationId,r),p=de(o);return{...l,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:p.join(","),_dd:{clock_drift:K()}}}function de(e){return e.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"])}function fe(e,t){const r=new Blob([JSON.stringify(e)],{type:"application/json"}),o=new FormData;return o.append("event",new Blob([JSON.stringify(t)],{type:"application/json"}),"event.json"),o.append("wall-time.json",r,"wall-time.json"),{data:o,bytesCount:0}}const pe={sendProfile:ce},me=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g;function ve(e){return e?e.replace(me,"/?"):"/"}const _=(e,t)=>e||ve(t),be={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function he(e,t,r,o,l=be){const p=x(Q.LONG_ANIMATION_FRAME);let u;const f=[];let a={state:"stopped"};function N(n){a.state!=="running"&&(u=n?{startClocks:n.startClocks,viewId:n.id,viewName:_(n.name,document.location.pathname)}:void 0,f.push(P(e,window,"visibilitychange",R).stop,P(e,window,"beforeunload",j).stop),v())}async function L(){await T("stopped"),f.forEach(n=>n()),O(b().relative),o.set({status:"stopped",error_reason:void 0})}function D(n){if(n.state==="running")return{cleanupTasks:n.cleanupTasks,observer:n.observer};const s=[];let i;if(e.trackLongTasks){i=new PerformanceObserver(A),i.observe({entryTypes:[B()]});const c=t.subscribe(12,m=>{ae(m)});s.push(()=>i?.disconnect()),s.push(c.unsubscribe)}const d=t.subscribe(2,c=>{const m={viewId:c.id,viewName:_(c.name,document.location.pathname),startClocks:c.startClocks};w(m),u=m});return s.push(d.unsubscribe),{cleanupTasks:s,observer:i}}function v(){const n=W().Profiler;if(!n)throw o.set({status:"error",error_reason:"not-supported-by-browser"}),new Error("RUM Profiler is not supported in this browser.");k(a).catch(g);const{cleanupTasks:s,observer:i}=D(a);let d;try{d=new n({sampleInterval:l.sampleIntervalMs,maxBufferSize:Math.round(l.collectIntervalMs*1.5/l.sampleIntervalMs)})}catch(c){c instanceof Error&&c.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.",c),o.set({status:"error",error_reason:"missing-document-policy-header"})):o.set({status:"error",error_reason:"unexpected-exception"});return}o.set({status:"running",error_reason:void 0}),a={state:"running",startClocks:b(),profiler:d,timeoutId:Z(v,l.collectIntervalMs),longTasks:[],views:[],cleanupTasks:s,observer:i},w(u),d.addEventListener("samplebufferfull",y)}async function k(n){var s,i;if(n.state!=="running")return;E((i=(s=n.observer)===null||s===void 0?void 0:s.takeRecords())!==null&&i!==void 0?i:[]),$(n.timeoutId),n.profiler.removeEventListener("samplebufferfull",y);const{startClocks:d,longTasks:c,views:m}=n,V=b();await n.profiler.stop().then(I=>{const S=b(),G=c.length>0,H=ee(d.timeStamp,S.timeStamp)<l.minProfileDurationMs,q=se(I.samples)<l.minNumberOfSamples;!G&&(H||q)||(M(Object.assign(I,{startClocks:d,endClocks:S,clocksOrigin:te(),longTasks:c,views:m,sampleInterval:l.sampleIntervalMs})),O(V.relative))}).catch(g)}async function T(n){a.state==="running"&&(a.cleanupTasks.forEach(s=>s()),await k(a),a={state:n})}function w(n){a.state!=="running"||!n||a.views.push(n)}function M(n){var s;const i=(s=r.findTrackedSession())===null||s===void 0?void 0:s.id;pe.sendProfile(n,e,i).catch(g)}function y(){v()}function A(n){E(n.getEntries())}function E(n){if(a.state==="running")for(const s of n){if(s.duration<l.sampleIntervalMs)continue;const i=ne(s.startTime),d=oe(i.relative);a.longTasks.push({id:d,duration:s.duration,entryType:s.entryType,startClocks:i})}}function R(){document.visibilityState==="hidden"&&a.state==="running"?T("paused").catch(g):document.visibilityState==="visible"&&a.state==="paused"&&v()}function j(){v()}function B(){return p?"long-animation-frame":"longtask"}function C(){return a.state==="stopped"}function F(){return a.state==="running"}function U(){return a.state==="paused"}return{start:N,stop:L,isStopped:C,isRunning:F,isPaused:U}}export{be as DEFAULT_RUM_PROFILER_CONFIGURATION,he as createRumProfiler};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import{aH as Te,a6 as b}from"./index-Du-A5IyF.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 Dt(...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 Kt(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={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-with-selector.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var fe;function De(){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 Ke(){return le||(le=1,G.exports=De()),G.exports}Ke();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),D=b.useRef(!1),K=b.useRef(void 0);L(()=>(D.current=!0,()=>{D.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,D,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 K.current&&(C.message+=`
|
|
10
|
+
The error may be correlated with this previous error:
|
|
11
|
+
${K.current.stack}
|
|
12
|
+
|
|
13
|
+
`),C}L(()=>{K.current=void 0,F.current=void 0,z.current=k});const B=b.useMemo(()=>b.createElement(d,{...k,ref:j}),[j,d,k]);return b.useMemo(()=>p?b.createElement(M.Provider,{value:ne},B):B,[M,B,ne])}const O=b.memo(g);if(O.WrappedComponent=d,O.displayName=g.displayName=h,u){const _=b.forwardRef(function(N,M){return b.createElement(O,{...N,reactReduxForwardedRef:M})});return _.displayName=h,_.WrappedComponent=d,J(_,d)}return J(O,d)}}var Bt=Ut;function Lt(e){const{children:t,context:r,serverState:s,store:n}=e,o=b.useMemo(()=>{const u=ge(n);return{store:n,subscription:u,getServerState:s?()=>s:void 0}},[n,s]),c=b.useMemo(()=>n.getState(),[n]);L(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),c!==n.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,c]);const a=r||Ce;return b.createElement(a.Provider,{value:o},t)}var qt=Lt;export{qt as P,Ae as a,Vt as b,_e as c,Dt as d,ze as e,Bt as f,Se as g,zt as h,Kt as i};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as O,C as b,b as gt,i as j,g as V,N as S,P as q,S as Tt,a as G,c as Et,d as yt,e as J,r as Nt,f as wt,h as vt,j as Mt,k as Q,t as v,l as Z,m as tt,n as A,o as R,p as M,q as It,u as et,v as nt,w as Ct,x as C,y as D,R as Rt,A as xt,z as x,B as bt,D as _t,E as Dt,F as Lt,G as At,H as zt,I as Ot,J as Vt,K as Pt,L as kt,M as Ft,O as Bt,Q as Ut,T as Ht,U as Gt,V as Wt,W as $t,X as Yt}from"./index-CxvGFSCT.js";const P=new WeakMap;function w(t){return P.has(t)}function Xt(t){let n=t;for(;n;){if(!w(n)&&!j(n))return!1;n=V(n)}return!0}function g(t){return P.get(t)}function Kt(t,n){P.set(t,n)}function k(t,n){const e=t.tagName,o=t.value;if(O(t,n)){const s=t.type;return e==="INPUT"&&(s==="button"||s==="submit"||s==="reset")?o:!o||e==="OPTION"?void 0:b}if(e==="OPTION"||e==="SELECT")return t.value;if(!(e!=="INPUT"&&e!=="TEXTAREA"))return o}const jt=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,qt=/^[A-Za-z]+:|^\/\//,Jt=/^["']?data:.*,/i;function Qt(t,n){return t.replace(jt,(e,o,s,r,a,i)=>{const u=s||a||i;if(!n||!u||qt.test(u)||Jt.test(u))return e;const f=o||r||"";return`url(${f}${Zt(u,n)}${f})`})}function Zt(t,n){try{return gt(t,n).href}catch{return t}}const te=/[^a-z1-6-_]/;function st(t){const n=t.toLowerCase().trim();return te.test(n)?"div":n}function W(t,n){return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${n}' style='background-color:silver'%3E%3C/svg%3E`}const N={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},I={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},T={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},E={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},$={Play:0,Pause:1};function ot(t){if(!(t===void 0||t.length===0))return t.map(n=>{const e=n.cssRules||n.rules;return{cssRules:Array.from(e,r=>r.cssText),disabled:n.disabled||void 0,media:n.media.length>0?Array.from(n.media):void 0}})}const ee=1e6;function rt(t,n,e,o){if(n===S.HIDDEN)return null;const s=t.getAttribute(e);if(n===S.MASK&&e!==q&&!Tt.includes(e)&&e!==o.actionNameAttribute){const r=t.tagName;switch(e){case"title":case"alt":case"placeholder":return b}if(r==="IMG"&&(e==="src"||e==="srcset")){const a=t;if(a.naturalWidth>0)return W(a.naturalWidth,a.naturalHeight);const{width:i,height:u}=t.getBoundingClientRect();return i>0||u>0?W(i,u):G}if(r==="SOURCE"&&(e==="src"||e==="srcset"))return G;if(r==="A"&&e==="href")return b;if(s&&e.startsWith("data-"))return b;if(r==="IFRAME"&&e==="srcdoc")return b}return!s||typeof s!="string"?s:Et(s,ee)}function F(){return{cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}}}function L(t,n,e){t[n].count+=1,t[n].max=Math.max(t[n].max,e),t[n].sum+=e}function ne(t,n){for(const e of["cssText","serializationDuration"])t[e].count+=n[e].count,t[e].max=Math.max(t[e].max,n[e].max),t[e].sum+=n[e].sum}function se(t,n,e){if(n===S.HIDDEN)return{};const o={},s=st(t.tagName),r=t.ownerDocument;for(let c=0;c<t.attributes.length;c+=1){const l=t.attributes.item(c).name,m=rt(t,n,l,e.configuration);m!==null&&(o[l]=m)}if(t.value&&(s==="textarea"||s==="select"||s==="option"||s==="input")){const c=k(t,n);c!==void 0&&(o.value=c)}if(s==="option"&&n===S.ALLOW){const c=t;c.selected&&(o.selected=c.selected)}if(s==="link"){const c=Array.from(r.styleSheets).find(l=>l.href===t.href),d=z(c);d&&c&&(L(e.serializationContext.serializationStats,"cssText",d.length),o._cssText=d)}if(s==="style"&&t.sheet){const c=z(t.sheet);c&&(L(e.serializationContext.serializationStats,"cssText",c.length),o._cssText=c)}const a=t;if(s==="input"&&(a.type==="radio"||a.type==="checkbox")&&(n===S.ALLOW?o.checked=!!a.checked:O(a,n)&&delete o.checked),s==="audio"||s==="video"){const c=t;o.rr_mediaState=c.paused?"paused":"played"}let i,u;const f=e.serializationContext;switch(f.status){case 0:i=Math.round(t.scrollTop),u=Math.round(t.scrollLeft),(i||u)&&f.elementsScrollPositions.set(t,{scrollTop:i,scrollLeft:u});break;case 1:f.elementsScrollPositions.has(t)&&({scrollTop:i,scrollLeft:u}=f.elementsScrollPositions.get(t));break}return u&&(o.rr_scrollLeft=u),i&&(o.rr_scrollTop=i),o}function z(t){if(!t)return null;let n;try{n=t.rules||t.cssRules}catch{}if(!n)return null;const e=Array.from(n,yt()?oe:it).join("");return Qt(e,t.href)}function oe(t){if(ie(t)&&t.selectorText.includes(":")){const n=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(n,"$1\\$2")}return it(t)}function it(t){return re(t)&&z(t.styleSheet)||t.cssText}function re(t){return"styleSheet"in t}function ie(t){return"selectorText"in t}function B(t,n){const e=ce(t,n);if(!e)return null;const o=g(t)||ue(),s=e;return s.id=o,Kt(t,o),n.serializedNodeIds&&n.serializedNodeIds.add(o),s}let ae=1;function ue(){return ae++}function U(t,n){const e=[];return Q(t,o=>{const s=B(o,n);s&&e.push(s)}),e}function ce(t,n){switch(t.nodeType){case t.DOCUMENT_NODE:return le(t,n);case t.DOCUMENT_FRAGMENT_NODE:return de(t,n);case t.DOCUMENT_TYPE_NODE:return fe(t);case t.ELEMENT_NODE:return pe(t,n);case t.TEXT_NODE:return me(t,n);case t.CDATA_SECTION_NODE:return Se()}}function le(t,n){return{type:I.Document,childNodes:U(t,n),adoptedStyleSheets:ot(t.adoptedStyleSheets)}}function de(t,n){const e=j(t);return e&&n.serializationContext.shadowRootsController.addShadowRoot(t),{type:I.DocumentFragment,childNodes:U(t,n),isShadowRoot:e,adoptedStyleSheets:e?ot(t.adoptedStyleSheets):void 0}}function fe(t){return{type:I.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId}}function pe(t,n){const e=st(t.tagName),o=he(t)||void 0,s=Nt(wt(t),n.parentNodePrivacyLevel);if(s===S.HIDDEN){const{width:i,height:u}=t.getBoundingClientRect();return{type:I.Element,tagName:e,attributes:{rr_width:`${i}px`,rr_height:`${u}px`,[q]:vt},childNodes:[],isSVG:o}}if(s===S.IGNORE)return;const r=se(t,s,n);let a=[];if(Mt(t)&&e!=="style"){let i;n.parentNodePrivacyLevel===s&&n.ignoreWhiteSpace===(e==="head")?i=n:i={...n,parentNodePrivacyLevel:s,ignoreWhiteSpace:e==="head"},a=U(t,i)}return{type:I.Element,tagName:e,attributes:r,childNodes:a,isSVG:o}}function he(t){return t.tagName==="svg"||t instanceof SVGElement}function me(t,n){const e=J(t,n.ignoreWhiteSpace||!1,n.parentNodePrivacyLevel);if(e!==void 0)return{type:I.Text,textContent:e}}function Se(){return{type:I.CDATA,textContent:""}}function ge(t,n,e){const o=v(),s=B(t,{serializationContext:e,parentNodePrivacyLevel:n.defaultPrivacyLevel,configuration:n});return L(e.serializationStats,"serializationDuration",Z(o,v())),s}function at(t){return!!t.changedTouches}function _(t){return t.composed===!0&&tt(t.target)?t.composedPath()[0]:t.target}const Y=25;function Te(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>Y||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>Y}const Ee=(t,n)=>{const e=window.visualViewport,o={layoutViewportX:t,layoutViewportY:n,visualViewportX:t,visualViewportY:n};if(e)Te(e)?(o.layoutViewportX=Math.round(t+e.offsetLeft),o.layoutViewportY=Math.round(n+e.offsetTop)):(o.visualViewportX=Math.round(t-e.offsetLeft),o.visualViewportY=Math.round(n-e.offsetTop));else return o;return o},ut=t=>({scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width});function y(t,n){return{data:{source:t,...n},type:N.IncrementalSnapshot,timestamp:v()}}const ye=50;function Ne(t,n){const{throttled:e,cancel:o}=A(r=>{const a=_(r);if(w(a)){const i=ct(r);if(!i)return;const u={id:g(a),timeOffset:0,x:i.x,y:i.y};n(y(at(r)?T.TouchMove:T.MouseMove,{positions:[u]}))}},ye,{trailing:!1}),{stop:s}=R(t,document,["mousemove","touchmove"],e,{capture:!0,passive:!0});return{stop:()=>{s(),o()}}}function ct(t){let{clientX:n,clientY:e}=at(t)?t.changedTouches[0]:t;if(window.visualViewport){const{visualViewportX:o,visualViewportY:s}=Ee(n,e);n=o,e=s}if(!(!Number.isFinite(n)||!Number.isFinite(e)))return{x:n,y:e}}const X={pointerup:E.MouseUp,mousedown:E.MouseDown,click:E.Click,contextmenu:E.ContextMenu,dblclick:E.DblClick,focus:E.Focus,blur:E.Blur,touchstart:E.TouchStart,touchend:E.TouchEnd};function we(t,n,e){const o=s=>{const r=_(s);if(M(r,t.defaultPrivacyLevel)===S.HIDDEN||!w(r))return;const a=g(r),i=X[s.type];let u;if(i!==E.Blur&&i!==E.Focus){const c=ct(s);if(!c)return;u={id:a,type:i,x:c.x,y:c.y}}else u={id:a,type:i};const f={id:e.getIdForEvent(s),...y(T.MouseInteraction,u)};n(f)};return R(t,document,Object.keys(X),o,{capture:!0,passive:!0})}const ve=100;function lt(t,n,e,o=document){const{throttled:s,cancel:r}=A(i=>{const u=_(i);if(!u||M(u,t.defaultPrivacyLevel)===S.HIDDEN||!w(u))return;const f=g(u),c=u===document?{scrollTop:nt(),scrollLeft:et()}:{scrollTop:Math.round(u.scrollTop),scrollLeft:Math.round(u.scrollLeft)};e.set(u,c),n(y(T.Scroll,{id:f,x:c.scrollLeft,y:c.scrollTop}))},ve),{stop:a}=It(t,o,"scroll",s,{capture:!0,passive:!0});return{stop:()=>{a(),r()}}}const Me=200;function Ie(t,n){const e=Ct(t).subscribe(o=>{n(y(T.ViewportResize,o))});return{stop:()=>{e.unsubscribe()}}}function Ce(t,n){const e=window.visualViewport;if(!e)return{stop:C};const{throttled:o,cancel:s}=A(()=>{n({data:ut(e),type:N.VisualViewport,timestamp:v()})},Me,{trailing:!1}),{stop:r}=R(t,e,["resize","scroll"],o,{capture:!0,passive:!0});return{stop:()=>{r(),s()}}}function Re(t,n){return R(t,document,["play","pause"],e=>{const o=_(e);!o||M(o,t.defaultPrivacyLevel)===S.HIDDEN||!w(o)||n(y(T.MediaInteraction,{id:g(o),type:e.type==="play"?$.Play:$.Pause}))},{capture:!0,passive:!0})}function xe(t){function n(s,r){s&&w(s.ownerNode)&&r(g(s.ownerNode))}const e=[D(CSSStyleSheet.prototype,"insertRule",({target:s,parameters:[r,a]})=>{n(s,i=>t(y(T.StyleSheetRule,{id:i,adds:[{rule:r,index:a}]})))}),D(CSSStyleSheet.prototype,"deleteRule",({target:s,parameters:[r]})=>{n(s,a=>t(y(T.StyleSheetRule,{id:a,removes:[{index:r}]})))})];typeof CSSGroupingRule<"u"?o(CSSGroupingRule):(o(CSSMediaRule),o(CSSSupportsRule));function o(s){e.push(D(s.prototype,"insertRule",({target:r,parameters:[a,i]})=>{n(r.parentStyleSheet,u=>{const f=K(r);f&&(f.push(i||0),t(y(T.StyleSheetRule,{id:u,adds:[{rule:a,index:f}]})))})}),D(s.prototype,"deleteRule",({target:r,parameters:[a]})=>{n(r.parentStyleSheet,i=>{const u=K(r);u&&(u.push(a),t(y(T.StyleSheetRule,{id:i,removes:[{index:u}]})))})}))}return{stop:()=>{e.forEach(s=>s.stop())}}}function K(t){const n=[];let e=t;for(;e.parentRule;){const a=Array.from(e.parentRule.cssRules).indexOf(e);n.unshift(a),e=e.parentRule}if(!e.parentStyleSheet)return;const s=Array.from(e.parentStyleSheet.cssRules).indexOf(e);return n.unshift(s),n}function be(t,n){return R(t,window,["focus","blur"],()=>{n({data:{has_focus:document.hasFocus()},type:N.Focus,timestamp:v()})})}function _e(t,n,e){const o=t.subscribe(12,s=>{var r,a;s.rawRumEvent.type===Rt.ACTION&&s.rawRumEvent.action.type===xt.CLICK&&(!((a=(r=s.rawRumEvent.action.frustration)===null||r===void 0?void 0:r.type)===null||a===void 0)&&a.length)&&"events"in s.domainContext&&s.domainContext.events&&s.domainContext.events.length&&n({timestamp:s.rawRumEvent.date,type:N.FrustrationRecord,data:{frustrationTypes:s.rawRumEvent.action.frustration.type,recordIds:s.domainContext.events.map(i=>e.getIdForEvent(i))}})});return{stop:()=>{o.unsubscribe()}}}function De(t,n){const e=t.subscribe(5,()=>{n({timestamp:v(),type:N.ViewEnd})});return{stop:()=>{e.unsubscribe()}}}function dt(t,n,e=document){const o=t.defaultPrivacyLevel,s=new WeakMap,r=e!==document,{stop:a}=R(t,e,r?["change"]:["input","change"],c=>{const d=_(c);(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement||d instanceof HTMLSelectElement)&&u(d)},{capture:!0,passive:!0});let i;if(r)i=C;else{const c=[x(HTMLInputElement.prototype,"value",u),x(HTMLInputElement.prototype,"checked",u),x(HTMLSelectElement.prototype,"value",u),x(HTMLTextAreaElement.prototype,"value",u),x(HTMLSelectElement.prototype,"selectedIndex",u)];i=()=>{c.forEach(d=>d.stop())}}return{stop:()=>{i(),a()}};function u(c){const d=M(c,o);if(d===S.HIDDEN)return;const l=c.type;let m;if(l==="radio"||l==="checkbox"){if(O(c,d))return;m={isChecked:c.checked}}else{const p=k(c,d);if(p===void 0)return;m={text:p}}f(c,m);const h=c.name;l==="radio"&&h&&c.checked&&document.querySelectorAll(`input[type="radio"][name="${CSS.escape(h)}"]`).forEach(p=>{p!==c&&f(p,{isChecked:!1})})}function f(c,d){if(!w(c))return;const l=s.get(c);(!l||l.text!==d.text||l.isChecked!==d.isChecked)&&(s.set(c,d),n(y(T.Input,{id:g(c),...d})))}}const Le=100,Ae=16;function ze(t){let n=C,e=[];function o(){n(),t(e),e=[]}const{throttled:s,cancel:r}=A(o,Ae,{leading:!1});return{addMutations:a=>{e.length===0&&(n=bt(s,{timeout:Le})),e.push(...a)},flush:o,stop:()=>{n(),r()}}}function ft(t,n,e,o){const s=_t();if(!s)return{stop:C,flush:C};const r=ze(i=>{Oe(i.concat(a.takeRecords()),t,n,e)}),a=new s(Dt(r.addMutations));return a.observe(o,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:()=>{a.disconnect(),r.stop()},flush:()=>{r.flush()}}}function Oe(t,n,e,o){const s=new Map;t.filter(l=>l.type==="childList").forEach(l=>{l.removedNodes.forEach(m=>{pt(m,o.removeShadowRoot)})});const r=t.filter(l=>l.target.isConnected&&Xt(l.target)&&M(l.target,e.defaultPrivacyLevel,s)!==S.HIDDEN),a=F(),{adds:i,removes:u,hasBeenSerialized:f}=Ve(r.filter(l=>l.type==="childList"),e,a,o,s),c=Pe(r.filter(l=>l.type==="characterData"&&!f(l.target)),e,s),d=ke(r.filter(l=>l.type==="attributes"&&!f(l.target)),e,s);!c.length&&!d.length&&!u.length&&!i.length||n(y(T.Mutation,{adds:i,removes:u,texts:c,attributes:d}),a)}function Ve(t,n,e,o,s){const r=new Set,a=new Map;for(const h of t)h.addedNodes.forEach(p=>{r.add(p)}),h.removedNodes.forEach(p=>{r.has(p)||a.set(p,h.target),r.delete(p)});const i=Array.from(r);Fe(i);const u=new Set,f={status:2,serializationStats:e,shadowRootsController:o},c=[];for(const h of i){if(l(h))continue;const p=M(h.parentNode,n.defaultPrivacyLevel,s);if(p===S.HIDDEN||p===S.IGNORE)continue;const mt=v(),H=B(h,{serializedNodeIds:u,parentNodePrivacyLevel:p,serializationContext:f,configuration:n});if(L(e,"serializationDuration",Z(mt,v())),!H)continue;const St=V(h);c.push({nextId:m(h),parentId:g(St),node:H})}const d=[];return a.forEach((h,p)=>{w(p)&&d.push({parentId:g(h),id:g(p)})}),{adds:c,removes:d,hasBeenSerialized:l};function l(h){return w(h)&&u.has(g(h))}function m(h){let p=h.nextSibling;for(;p;){if(w(p))return g(p);p=p.nextSibling}return null}}function Pe(t,n,e){var o;const s=[],r=new Set,a=t.filter(i=>r.has(i.target)?!1:(r.add(i.target),!0));for(const i of a){if(i.target.textContent===i.oldValue)continue;const f=M(V(i.target),n.defaultPrivacyLevel,e);f===S.HIDDEN||f===S.IGNORE||s.push({id:g(i.target),value:(o=J(i.target,!1,f))!==null&&o!==void 0?o:null})}return s}function ke(t,n,e){const o=[],s=new Map,r=t.filter(i=>{const u=s.get(i.target);return u&&u.has(i.attributeName)?!1:(u?u.add(i.attributeName):s.set(i.target,new Set([i.attributeName])),!0)}),a=new Map;for(const i of r){if(i.target.getAttribute(i.attributeName)===i.oldValue)continue;const f=M(i.target,n.defaultPrivacyLevel,e),c=rt(i.target,f,i.attributeName,n);let d;if(i.attributeName==="value"){const m=k(i.target,f);if(m===void 0)continue;d=m}else typeof c=="string"?d=c:d=null;let l=a.get(i.target);l||(l={id:g(i.target),attributes:{}},o.push(l),a.set(i.target,l)),l.attributes[i.attributeName]=d}return o}function Fe(t){t.sort((n,e)=>{const o=n.compareDocumentPosition(e);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 pt(t,n){tt(t)&&n(t.shadowRoot),Q(t,e=>pt(e,n))}function Be(){const t=new WeakMap;return{set(n,e){n===document&&!document.scrollingElement||t.set(n===document?document.scrollingElement:n,e)},get(n){return t.get(n)},has(n){return t.has(n)}}}const Ue=(t,n,e)=>{const o=new Map,s={addShadowRoot:r=>{if(o.has(r))return;const a=ft(n,t,s,r),i=dt(t,n,r),u=lt(t,n,e,r);o.set(r,{flush:()=>a.flush(),stop:()=>{a.stop(),i.stop(),u.stop()}})},removeShadowRoot:r=>{const a=o.get(r);a&&(a.stop(),o.delete(r))},stop:()=>{o.forEach(({stop:r})=>r())},flush:()=>{o.forEach(({flush:r})=>r())}};return s};function He(t,n,e,o,s,r){const a=(u,f)=>{const{width:c,height:d}=Lt();r({data:{height:d,href:window.location.href,width:c},type:N.Meta,timestamp:u}),r({data:{has_focus:document.hasFocus()},type:N.Focus,timestamp:u});const l=F();r({data:{node:ge(document,o,{status:f,elementsScrollPositions:t,serializationStats:l,shadowRootsController:n}),initialOffset:{left:et(),top:nt()}},type:N.FullSnapshot,timestamp:u},l),window.visualViewport&&r({data:ut(window.visualViewport),type:N.VisualViewport,timestamp:u})};a(v(),0);const{unsubscribe:i}=e.subscribe(2,u=>{s(),a(u.startClocks.timeStamp,1)});return{stop:i}}function Ge(){const t=new WeakMap;let n=1;return{getIdForEvent(e){return t.has(e)||t.set(e,n++),t.get(e)}}}function We(t){const{emit:n,configuration:e,lifeCycle:o}=t;if(!n)throw new Error("emit function is required");const s=(l,m)=>{n(l,m),At("record",{record:l});const h=t.viewHistory.findView();zt(h.id)},r=Be(),a=Ue(e,s,r),{stop:i}=He(r,a,o,e,u,s);function u(){a.flush(),c.flush()}const f=Ge(),c=ft(s,e,a,document),d=[c,Ne(e,s),we(e,s,f),lt(e,s,r,document),Ie(e,s),dt(e,s),Re(e,s),xe(s),be(e,s),Ce(e,s),_e(o,s,f),De(o,l=>{u(),s(l)})];return{stop:()=>{a.stop(),d.forEach(l=>l.stop()),i()},flushMutations:u,shadowRootsController:a}}function $e(t,n,e,o){const s=new FormData;s.append("segment",new Blob([t],{type:"application/octet-stream"}),`${n.session.id}-${n.start}`);const r={raw_segment_size:o,compressed_segment_size:t.byteLength,...n},a=JSON.stringify(r);return s.append("event",new Blob([a],{type:"application/json"})),{data:s,bytesCount:t.byteLength,cssText:e.cssText,isFullSnapshot:n.index_in_view===0,rawSize:o,recordCount:n.records_count,serializationDuration:e.serializationDuration}}function Ye({context:t,creationReason:n,encoder:e}){let o=0;const s=t.view.id,r=Ot(s),a={start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:r,source:"browser",...t},i=F();Vt(s);function u(c,d,l){a.start=Math.min(a.start,c.timestamp),a.end=Math.max(a.end,c.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=c.type===N.FullSnapshot),d&&ne(i,d);const m=e.isEmpty?'{"records":[':",";e.write(m+JSON.stringify(c),h=>{o+=h,l(o)})}function f(c){if(e.isEmpty)throw new Error("Empty segment flushed");e.write(`],${JSON.stringify(a).slice(1)}
|
|
1
|
+
import{s as O,C as b,b as gt,i as j,g as V,N as S,P as q,S as Tt,a as G,c as Et,d as yt,e as J,r as Nt,f as wt,h as vt,j as Mt,k as Q,t as v,l as Z,m as tt,n as A,o as R,p as M,q as It,u as et,v as nt,w as Ct,x as C,y as D,R as Rt,A as xt,z as x,B as bt,D as _t,E as Dt,F as Lt,G as At,H as zt,I as Ot,J as Vt,K as Pt,L as kt,M as Ft,O as Bt,Q as Ut,T as Ht,U as Gt,V as Wt,W as $t,X as Yt}from"./index-Du-A5IyF.js";const P=new WeakMap;function w(t){return P.has(t)}function Xt(t){let n=t;for(;n;){if(!w(n)&&!j(n))return!1;n=V(n)}return!0}function g(t){return P.get(t)}function Kt(t,n){P.set(t,n)}function k(t,n){const e=t.tagName,o=t.value;if(O(t,n)){const s=t.type;return e==="INPUT"&&(s==="button"||s==="submit"||s==="reset")?o:!o||e==="OPTION"?void 0:b}if(e==="OPTION"||e==="SELECT")return t.value;if(!(e!=="INPUT"&&e!=="TEXTAREA"))return o}const jt=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,qt=/^[A-Za-z]+:|^\/\//,Jt=/^["']?data:.*,/i;function Qt(t,n){return t.replace(jt,(e,o,s,r,a,i)=>{const u=s||a||i;if(!n||!u||qt.test(u)||Jt.test(u))return e;const f=o||r||"";return`url(${f}${Zt(u,n)}${f})`})}function Zt(t,n){try{return gt(t,n).href}catch{return t}}const te=/[^a-z1-6-_]/;function st(t){const n=t.toLowerCase().trim();return te.test(n)?"div":n}function W(t,n){return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${n}' style='background-color:silver'%3E%3C/svg%3E`}const N={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},I={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},T={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},E={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},$={Play:0,Pause:1};function ot(t){if(!(t===void 0||t.length===0))return t.map(n=>{const e=n.cssRules||n.rules;return{cssRules:Array.from(e,r=>r.cssText),disabled:n.disabled||void 0,media:n.media.length>0?Array.from(n.media):void 0}})}const ee=1e6;function rt(t,n,e,o){if(n===S.HIDDEN)return null;const s=t.getAttribute(e);if(n===S.MASK&&e!==q&&!Tt.includes(e)&&e!==o.actionNameAttribute){const r=t.tagName;switch(e){case"title":case"alt":case"placeholder":return b}if(r==="IMG"&&(e==="src"||e==="srcset")){const a=t;if(a.naturalWidth>0)return W(a.naturalWidth,a.naturalHeight);const{width:i,height:u}=t.getBoundingClientRect();return i>0||u>0?W(i,u):G}if(r==="SOURCE"&&(e==="src"||e==="srcset"))return G;if(r==="A"&&e==="href")return b;if(s&&e.startsWith("data-"))return b;if(r==="IFRAME"&&e==="srcdoc")return b}return!s||typeof s!="string"?s:Et(s,ee)}function F(){return{cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}}}function L(t,n,e){t[n].count+=1,t[n].max=Math.max(t[n].max,e),t[n].sum+=e}function ne(t,n){for(const e of["cssText","serializationDuration"])t[e].count+=n[e].count,t[e].max=Math.max(t[e].max,n[e].max),t[e].sum+=n[e].sum}function se(t,n,e){if(n===S.HIDDEN)return{};const o={},s=st(t.tagName),r=t.ownerDocument;for(let c=0;c<t.attributes.length;c+=1){const l=t.attributes.item(c).name,m=rt(t,n,l,e.configuration);m!==null&&(o[l]=m)}if(t.value&&(s==="textarea"||s==="select"||s==="option"||s==="input")){const c=k(t,n);c!==void 0&&(o.value=c)}if(s==="option"&&n===S.ALLOW){const c=t;c.selected&&(o.selected=c.selected)}if(s==="link"){const c=Array.from(r.styleSheets).find(l=>l.href===t.href),d=z(c);d&&c&&(L(e.serializationContext.serializationStats,"cssText",d.length),o._cssText=d)}if(s==="style"&&t.sheet){const c=z(t.sheet);c&&(L(e.serializationContext.serializationStats,"cssText",c.length),o._cssText=c)}const a=t;if(s==="input"&&(a.type==="radio"||a.type==="checkbox")&&(n===S.ALLOW?o.checked=!!a.checked:O(a,n)&&delete o.checked),s==="audio"||s==="video"){const c=t;o.rr_mediaState=c.paused?"paused":"played"}let i,u;const f=e.serializationContext;switch(f.status){case 0:i=Math.round(t.scrollTop),u=Math.round(t.scrollLeft),(i||u)&&f.elementsScrollPositions.set(t,{scrollTop:i,scrollLeft:u});break;case 1:f.elementsScrollPositions.has(t)&&({scrollTop:i,scrollLeft:u}=f.elementsScrollPositions.get(t));break}return u&&(o.rr_scrollLeft=u),i&&(o.rr_scrollTop=i),o}function z(t){if(!t)return null;let n;try{n=t.rules||t.cssRules}catch{}if(!n)return null;const e=Array.from(n,yt()?oe:it).join("");return Qt(e,t.href)}function oe(t){if(ie(t)&&t.selectorText.includes(":")){const n=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(n,"$1\\$2")}return it(t)}function it(t){return re(t)&&z(t.styleSheet)||t.cssText}function re(t){return"styleSheet"in t}function ie(t){return"selectorText"in t}function B(t,n){const e=ce(t,n);if(!e)return null;const o=g(t)||ue(),s=e;return s.id=o,Kt(t,o),n.serializedNodeIds&&n.serializedNodeIds.add(o),s}let ae=1;function ue(){return ae++}function U(t,n){const e=[];return Q(t,o=>{const s=B(o,n);s&&e.push(s)}),e}function ce(t,n){switch(t.nodeType){case t.DOCUMENT_NODE:return le(t,n);case t.DOCUMENT_FRAGMENT_NODE:return de(t,n);case t.DOCUMENT_TYPE_NODE:return fe(t);case t.ELEMENT_NODE:return pe(t,n);case t.TEXT_NODE:return me(t,n);case t.CDATA_SECTION_NODE:return Se()}}function le(t,n){return{type:I.Document,childNodes:U(t,n),adoptedStyleSheets:ot(t.adoptedStyleSheets)}}function de(t,n){const e=j(t);return e&&n.serializationContext.shadowRootsController.addShadowRoot(t),{type:I.DocumentFragment,childNodes:U(t,n),isShadowRoot:e,adoptedStyleSheets:e?ot(t.adoptedStyleSheets):void 0}}function fe(t){return{type:I.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId}}function pe(t,n){const e=st(t.tagName),o=he(t)||void 0,s=Nt(wt(t),n.parentNodePrivacyLevel);if(s===S.HIDDEN){const{width:i,height:u}=t.getBoundingClientRect();return{type:I.Element,tagName:e,attributes:{rr_width:`${i}px`,rr_height:`${u}px`,[q]:vt},childNodes:[],isSVG:o}}if(s===S.IGNORE)return;const r=se(t,s,n);let a=[];if(Mt(t)&&e!=="style"){let i;n.parentNodePrivacyLevel===s&&n.ignoreWhiteSpace===(e==="head")?i=n:i={...n,parentNodePrivacyLevel:s,ignoreWhiteSpace:e==="head"},a=U(t,i)}return{type:I.Element,tagName:e,attributes:r,childNodes:a,isSVG:o}}function he(t){return t.tagName==="svg"||t instanceof SVGElement}function me(t,n){const e=J(t,n.ignoreWhiteSpace||!1,n.parentNodePrivacyLevel);if(e!==void 0)return{type:I.Text,textContent:e}}function Se(){return{type:I.CDATA,textContent:""}}function ge(t,n,e){const o=v(),s=B(t,{serializationContext:e,parentNodePrivacyLevel:n.defaultPrivacyLevel,configuration:n});return L(e.serializationStats,"serializationDuration",Z(o,v())),s}function at(t){return!!t.changedTouches}function _(t){return t.composed===!0&&tt(t.target)?t.composedPath()[0]:t.target}const Y=25;function Te(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>Y||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>Y}const Ee=(t,n)=>{const e=window.visualViewport,o={layoutViewportX:t,layoutViewportY:n,visualViewportX:t,visualViewportY:n};if(e)Te(e)?(o.layoutViewportX=Math.round(t+e.offsetLeft),o.layoutViewportY=Math.round(n+e.offsetTop)):(o.visualViewportX=Math.round(t-e.offsetLeft),o.visualViewportY=Math.round(n-e.offsetTop));else return o;return o},ut=t=>({scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width});function y(t,n){return{data:{source:t,...n},type:N.IncrementalSnapshot,timestamp:v()}}const ye=50;function Ne(t,n){const{throttled:e,cancel:o}=A(r=>{const a=_(r);if(w(a)){const i=ct(r);if(!i)return;const u={id:g(a),timeOffset:0,x:i.x,y:i.y};n(y(at(r)?T.TouchMove:T.MouseMove,{positions:[u]}))}},ye,{trailing:!1}),{stop:s}=R(t,document,["mousemove","touchmove"],e,{capture:!0,passive:!0});return{stop:()=>{s(),o()}}}function ct(t){let{clientX:n,clientY:e}=at(t)?t.changedTouches[0]:t;if(window.visualViewport){const{visualViewportX:o,visualViewportY:s}=Ee(n,e);n=o,e=s}if(!(!Number.isFinite(n)||!Number.isFinite(e)))return{x:n,y:e}}const X={pointerup:E.MouseUp,mousedown:E.MouseDown,click:E.Click,contextmenu:E.ContextMenu,dblclick:E.DblClick,focus:E.Focus,blur:E.Blur,touchstart:E.TouchStart,touchend:E.TouchEnd};function we(t,n,e){const o=s=>{const r=_(s);if(M(r,t.defaultPrivacyLevel)===S.HIDDEN||!w(r))return;const a=g(r),i=X[s.type];let u;if(i!==E.Blur&&i!==E.Focus){const c=ct(s);if(!c)return;u={id:a,type:i,x:c.x,y:c.y}}else u={id:a,type:i};const f={id:e.getIdForEvent(s),...y(T.MouseInteraction,u)};n(f)};return R(t,document,Object.keys(X),o,{capture:!0,passive:!0})}const ve=100;function lt(t,n,e,o=document){const{throttled:s,cancel:r}=A(i=>{const u=_(i);if(!u||M(u,t.defaultPrivacyLevel)===S.HIDDEN||!w(u))return;const f=g(u),c=u===document?{scrollTop:nt(),scrollLeft:et()}:{scrollTop:Math.round(u.scrollTop),scrollLeft:Math.round(u.scrollLeft)};e.set(u,c),n(y(T.Scroll,{id:f,x:c.scrollLeft,y:c.scrollTop}))},ve),{stop:a}=It(t,o,"scroll",s,{capture:!0,passive:!0});return{stop:()=>{a(),r()}}}const Me=200;function Ie(t,n){const e=Ct(t).subscribe(o=>{n(y(T.ViewportResize,o))});return{stop:()=>{e.unsubscribe()}}}function Ce(t,n){const e=window.visualViewport;if(!e)return{stop:C};const{throttled:o,cancel:s}=A(()=>{n({data:ut(e),type:N.VisualViewport,timestamp:v()})},Me,{trailing:!1}),{stop:r}=R(t,e,["resize","scroll"],o,{capture:!0,passive:!0});return{stop:()=>{r(),s()}}}function Re(t,n){return R(t,document,["play","pause"],e=>{const o=_(e);!o||M(o,t.defaultPrivacyLevel)===S.HIDDEN||!w(o)||n(y(T.MediaInteraction,{id:g(o),type:e.type==="play"?$.Play:$.Pause}))},{capture:!0,passive:!0})}function xe(t){function n(s,r){s&&w(s.ownerNode)&&r(g(s.ownerNode))}const e=[D(CSSStyleSheet.prototype,"insertRule",({target:s,parameters:[r,a]})=>{n(s,i=>t(y(T.StyleSheetRule,{id:i,adds:[{rule:r,index:a}]})))}),D(CSSStyleSheet.prototype,"deleteRule",({target:s,parameters:[r]})=>{n(s,a=>t(y(T.StyleSheetRule,{id:a,removes:[{index:r}]})))})];typeof CSSGroupingRule<"u"?o(CSSGroupingRule):(o(CSSMediaRule),o(CSSSupportsRule));function o(s){e.push(D(s.prototype,"insertRule",({target:r,parameters:[a,i]})=>{n(r.parentStyleSheet,u=>{const f=K(r);f&&(f.push(i||0),t(y(T.StyleSheetRule,{id:u,adds:[{rule:a,index:f}]})))})}),D(s.prototype,"deleteRule",({target:r,parameters:[a]})=>{n(r.parentStyleSheet,i=>{const u=K(r);u&&(u.push(a),t(y(T.StyleSheetRule,{id:i,removes:[{index:u}]})))})}))}return{stop:()=>{e.forEach(s=>s.stop())}}}function K(t){const n=[];let e=t;for(;e.parentRule;){const a=Array.from(e.parentRule.cssRules).indexOf(e);n.unshift(a),e=e.parentRule}if(!e.parentStyleSheet)return;const s=Array.from(e.parentStyleSheet.cssRules).indexOf(e);return n.unshift(s),n}function be(t,n){return R(t,window,["focus","blur"],()=>{n({data:{has_focus:document.hasFocus()},type:N.Focus,timestamp:v()})})}function _e(t,n,e){const o=t.subscribe(12,s=>{var r,a;s.rawRumEvent.type===Rt.ACTION&&s.rawRumEvent.action.type===xt.CLICK&&(!((a=(r=s.rawRumEvent.action.frustration)===null||r===void 0?void 0:r.type)===null||a===void 0)&&a.length)&&"events"in s.domainContext&&s.domainContext.events&&s.domainContext.events.length&&n({timestamp:s.rawRumEvent.date,type:N.FrustrationRecord,data:{frustrationTypes:s.rawRumEvent.action.frustration.type,recordIds:s.domainContext.events.map(i=>e.getIdForEvent(i))}})});return{stop:()=>{o.unsubscribe()}}}function De(t,n){const e=t.subscribe(5,()=>{n({timestamp:v(),type:N.ViewEnd})});return{stop:()=>{e.unsubscribe()}}}function dt(t,n,e=document){const o=t.defaultPrivacyLevel,s=new WeakMap,r=e!==document,{stop:a}=R(t,e,r?["change"]:["input","change"],c=>{const d=_(c);(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement||d instanceof HTMLSelectElement)&&u(d)},{capture:!0,passive:!0});let i;if(r)i=C;else{const c=[x(HTMLInputElement.prototype,"value",u),x(HTMLInputElement.prototype,"checked",u),x(HTMLSelectElement.prototype,"value",u),x(HTMLTextAreaElement.prototype,"value",u),x(HTMLSelectElement.prototype,"selectedIndex",u)];i=()=>{c.forEach(d=>d.stop())}}return{stop:()=>{i(),a()}};function u(c){const d=M(c,o);if(d===S.HIDDEN)return;const l=c.type;let m;if(l==="radio"||l==="checkbox"){if(O(c,d))return;m={isChecked:c.checked}}else{const p=k(c,d);if(p===void 0)return;m={text:p}}f(c,m);const h=c.name;l==="radio"&&h&&c.checked&&document.querySelectorAll(`input[type="radio"][name="${CSS.escape(h)}"]`).forEach(p=>{p!==c&&f(p,{isChecked:!1})})}function f(c,d){if(!w(c))return;const l=s.get(c);(!l||l.text!==d.text||l.isChecked!==d.isChecked)&&(s.set(c,d),n(y(T.Input,{id:g(c),...d})))}}const Le=100,Ae=16;function ze(t){let n=C,e=[];function o(){n(),t(e),e=[]}const{throttled:s,cancel:r}=A(o,Ae,{leading:!1});return{addMutations:a=>{e.length===0&&(n=bt(s,{timeout:Le})),e.push(...a)},flush:o,stop:()=>{n(),r()}}}function ft(t,n,e,o){const s=_t();if(!s)return{stop:C,flush:C};const r=ze(i=>{Oe(i.concat(a.takeRecords()),t,n,e)}),a=new s(Dt(r.addMutations));return a.observe(o,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:()=>{a.disconnect(),r.stop()},flush:()=>{r.flush()}}}function Oe(t,n,e,o){const s=new Map;t.filter(l=>l.type==="childList").forEach(l=>{l.removedNodes.forEach(m=>{pt(m,o.removeShadowRoot)})});const r=t.filter(l=>l.target.isConnected&&Xt(l.target)&&M(l.target,e.defaultPrivacyLevel,s)!==S.HIDDEN),a=F(),{adds:i,removes:u,hasBeenSerialized:f}=Ve(r.filter(l=>l.type==="childList"),e,a,o,s),c=Pe(r.filter(l=>l.type==="characterData"&&!f(l.target)),e,s),d=ke(r.filter(l=>l.type==="attributes"&&!f(l.target)),e,s);!c.length&&!d.length&&!u.length&&!i.length||n(y(T.Mutation,{adds:i,removes:u,texts:c,attributes:d}),a)}function Ve(t,n,e,o,s){const r=new Set,a=new Map;for(const h of t)h.addedNodes.forEach(p=>{r.add(p)}),h.removedNodes.forEach(p=>{r.has(p)||a.set(p,h.target),r.delete(p)});const i=Array.from(r);Fe(i);const u=new Set,f={status:2,serializationStats:e,shadowRootsController:o},c=[];for(const h of i){if(l(h))continue;const p=M(h.parentNode,n.defaultPrivacyLevel,s);if(p===S.HIDDEN||p===S.IGNORE)continue;const mt=v(),H=B(h,{serializedNodeIds:u,parentNodePrivacyLevel:p,serializationContext:f,configuration:n});if(L(e,"serializationDuration",Z(mt,v())),!H)continue;const St=V(h);c.push({nextId:m(h),parentId:g(St),node:H})}const d=[];return a.forEach((h,p)=>{w(p)&&d.push({parentId:g(h),id:g(p)})}),{adds:c,removes:d,hasBeenSerialized:l};function l(h){return w(h)&&u.has(g(h))}function m(h){let p=h.nextSibling;for(;p;){if(w(p))return g(p);p=p.nextSibling}return null}}function Pe(t,n,e){var o;const s=[],r=new Set,a=t.filter(i=>r.has(i.target)?!1:(r.add(i.target),!0));for(const i of a){if(i.target.textContent===i.oldValue)continue;const f=M(V(i.target),n.defaultPrivacyLevel,e);f===S.HIDDEN||f===S.IGNORE||s.push({id:g(i.target),value:(o=J(i.target,!1,f))!==null&&o!==void 0?o:null})}return s}function ke(t,n,e){const o=[],s=new Map,r=t.filter(i=>{const u=s.get(i.target);return u&&u.has(i.attributeName)?!1:(u?u.add(i.attributeName):s.set(i.target,new Set([i.attributeName])),!0)}),a=new Map;for(const i of r){if(i.target.getAttribute(i.attributeName)===i.oldValue)continue;const f=M(i.target,n.defaultPrivacyLevel,e),c=rt(i.target,f,i.attributeName,n);let d;if(i.attributeName==="value"){const m=k(i.target,f);if(m===void 0)continue;d=m}else typeof c=="string"?d=c:d=null;let l=a.get(i.target);l||(l={id:g(i.target),attributes:{}},o.push(l),a.set(i.target,l)),l.attributes[i.attributeName]=d}return o}function Fe(t){t.sort((n,e)=>{const o=n.compareDocumentPosition(e);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 pt(t,n){tt(t)&&n(t.shadowRoot),Q(t,e=>pt(e,n))}function Be(){const t=new WeakMap;return{set(n,e){n===document&&!document.scrollingElement||t.set(n===document?document.scrollingElement:n,e)},get(n){return t.get(n)},has(n){return t.has(n)}}}const Ue=(t,n,e)=>{const o=new Map,s={addShadowRoot:r=>{if(o.has(r))return;const a=ft(n,t,s,r),i=dt(t,n,r),u=lt(t,n,e,r);o.set(r,{flush:()=>a.flush(),stop:()=>{a.stop(),i.stop(),u.stop()}})},removeShadowRoot:r=>{const a=o.get(r);a&&(a.stop(),o.delete(r))},stop:()=>{o.forEach(({stop:r})=>r())},flush:()=>{o.forEach(({flush:r})=>r())}};return s};function He(t,n,e,o,s,r){const a=(u,f)=>{const{width:c,height:d}=Lt();r({data:{height:d,href:window.location.href,width:c},type:N.Meta,timestamp:u}),r({data:{has_focus:document.hasFocus()},type:N.Focus,timestamp:u});const l=F();r({data:{node:ge(document,o,{status:f,elementsScrollPositions:t,serializationStats:l,shadowRootsController:n}),initialOffset:{left:et(),top:nt()}},type:N.FullSnapshot,timestamp:u},l),window.visualViewport&&r({data:ut(window.visualViewport),type:N.VisualViewport,timestamp:u})};a(v(),0);const{unsubscribe:i}=e.subscribe(2,u=>{s(),a(u.startClocks.timeStamp,1)});return{stop:i}}function Ge(){const t=new WeakMap;let n=1;return{getIdForEvent(e){return t.has(e)||t.set(e,n++),t.get(e)}}}function We(t){const{emit:n,configuration:e,lifeCycle:o}=t;if(!n)throw new Error("emit function is required");const s=(l,m)=>{n(l,m),At("record",{record:l});const h=t.viewHistory.findView();zt(h.id)},r=Be(),a=Ue(e,s,r),{stop:i}=He(r,a,o,e,u,s);function u(){a.flush(),c.flush()}const f=Ge(),c=ft(s,e,a,document),d=[c,Ne(e,s),we(e,s,f),lt(e,s,r,document),Ie(e,s),dt(e,s),Re(e,s),xe(s),be(e,s),Ce(e,s),_e(o,s,f),De(o,l=>{u(),s(l)})];return{stop:()=>{a.stop(),d.forEach(l=>l.stop()),i()},flushMutations:u,shadowRootsController:a}}function $e(t,n,e,o){const s=new FormData;s.append("segment",new Blob([t],{type:"application/octet-stream"}),`${n.session.id}-${n.start}`);const r={raw_segment_size:o,compressed_segment_size:t.byteLength,...n},a=JSON.stringify(r);return s.append("event",new Blob([a],{type:"application/json"})),{data:s,bytesCount:t.byteLength,cssText:e.cssText,isFullSnapshot:n.index_in_view===0,rawSize:o,recordCount:n.records_count,serializationDuration:e.serializationDuration}}function Ye({context:t,creationReason:n,encoder:e}){let o=0;const s=t.view.id,r=Ot(s),a={start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:r,source:"browser",...t},i=F();Vt(s);function u(c,d,l){a.start=Math.min(a.start,c.timestamp),a.end=Math.max(a.end,c.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=c.type===N.FullSnapshot),d&&ne(i,d);const m=e.isEmpty?'{"records":[':",";e.write(m+JSON.stringify(c),h=>{o+=h,l(o)})}function f(c){if(e.isEmpty)throw new Error("Empty segment flushed");e.write(`],${JSON.stringify(a).slice(1)}
|
|
2
2
|
`),e.finish(d=>{Pt(a.view.id,d.rawBytesCount),c(a,i,d)})}return{addRecord:u,flush:f}}const Xe=5*Ut;let ht=6e4;function Ke(t,n,e,o,s,r){return je(t,()=>qe(n.applicationId,e,o),s,r)}function je(t,n,e,o){let s={status:0,nextSegmentCreationReason:"init"};const{unsubscribe:r}=t.subscribe(2,()=>{i("view_change")}),{unsubscribe:a}=t.subscribe(11,u=>{i(u.reason)});function i(u){s.status===1&&(s.segment.flush((f,c,d)=>{const l=$e(d.output,f,c,d.rawBytesCount);kt(u)?e.sendOnExit(l):e.send(l)}),Ft(s.expirationTimeoutId)),u!=="stop"?s={status:0,nextSegmentCreationReason:u}:s={status:2}}return{addRecord:(u,f)=>{if(s.status!==2){if(s.status===0){const c=n();if(!c)return;s={status:1,segment:Ye({encoder:o,context:c,creationReason:s.nextSegmentCreationReason}),expirationTimeoutId:Bt(()=>{i("segment_duration_limit")},Xe)}}s.segment.addRecord(u,f,c=>{c>ht&&i("segment_bytes_limit")})}},stop:()=>{i("stop"),r(),a()}}}function qe(t,n,e){const o=n.findTrackedSession(),s=e.findView();if(!(!o||!s))return{application:{id:t},session:{id:o.id},view:{id:s.id}}}function Je(t,n){if(!t.metricsEnabled)return{stop:C};const{unsubscribe:e}=n.subscribe(o=>{if(o.type==="failure"||o.type==="queue-full"||o.type==="success"&&o.payload.isFullSnapshot){const s=Qe(o.type,o.bandwidth,o.payload);Ht("Segment network request metrics",{metrics:s})}});return{stop:e}}function Qe(t,n,e){return{cssText:{count:e.cssText.count,max:e.cssText.max,sum:e.cssText.sum},isFullSnapshot:e.isFullSnapshot,ongoingRequests:{count:n.ongoingRequestCount,totalSize:n.ongoingByteCount},recordCount:e.recordCount,result:t,serializationDuration:{count:e.serializationDuration.count,max:e.serializationDuration.max,sum:e.serializationDuration.sum},size:{compressed:e.bytesCount,raw:e.rawSize}}}function Ze(t){const n=Gt();return{addRecord:e=>{const o=t.findView();n.send("record",e,o.id)}}}function en(t,n,e,o,s,r,a){const i=[],u=l=>{t.notify(14,{error:l}),Yt("Error reported to customer",{"error.message":l.message})},f=a||Wt([n.sessionReplayEndpointBuilder],ht,u);let c;if($t())({addRecord:c}=Ze(o));else{const l=Ke(t,n,e,o,f,s);c=l.addRecord,i.push(l.stop);const m=Je(r,f.observable);i.push(m.stop)}const{stop:d}=We({emit:c,configuration:n,lifeCycle:t,viewHistory:o});return i.push(d),{stop:()=>{i.forEach(l=>l())}}}export{en as startRecording};
|
|
Binary file
|
|
Binary file
|
package/studio/web/index.html
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/HDBDogOnly.svg" />
|
|
7
7
|
<link rel="icon" type="dynamic-favicon" href="/favicon_purple.png" />
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
9
|
-
<title>Harper
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
9
|
+
<title>Harper Fabric</title>
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-Du-A5IyF.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BllUWRY2.css">
|
|
12
12
|
</head>
|
|
13
13
|
|
|
14
14
|
<body>
|