@ohbug/extension-rrweb 1.7.0 → 1.8.1
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/LICENSE +6 -6
- package/README.md +2 -3
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +20 -55
- package/CHANGELOG.md +0 -34
- package/dist/extension.cjs.js +0 -213
- package/dist/extension.cjs.min.js +0 -15
- package/dist/extension.es.js +0 -211
- package/dist/extension.es.min.js +0 -15
- package/dist/src/extension.d.ts +0 -3
- package/dist/src/index.d.ts +0 -2
- package/dist/ui/index.d.ts +0 -4
- package/dist/ui.es.js +0 -264
- package/dist/ui.es.min.js +0 -44
package/dist/ui/index.d.ts
DELETED
package/dist/ui.es.js
DELETED
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
|
|
16
|
-
var __assign = function() {
|
|
17
|
-
__assign = Object.assign || function __assign(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
return __assign.apply(this, arguments);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
function isString(value) {
|
|
28
|
-
return typeof value === 'string';
|
|
29
|
-
}
|
|
30
|
-
function isObject(value) {
|
|
31
|
-
return Object.prototype.toString.call(value) === '[object Object]';
|
|
32
|
-
}
|
|
33
|
-
function createExtensionUI(extensionUI) {
|
|
34
|
-
return extensionUI;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
var Action = /** @class */ (function () {
|
|
38
|
-
function Action(message, data, type, timestamp) {
|
|
39
|
-
this.type = type;
|
|
40
|
-
this.timestamp = timestamp || new Date().toISOString();
|
|
41
|
-
this.message = message;
|
|
42
|
-
this.data = data;
|
|
43
|
-
}
|
|
44
|
-
return Action;
|
|
45
|
-
}());
|
|
46
|
-
function getErrorMessage(message, data) {
|
|
47
|
-
return new Error("Invalid data\n- " + message + ", got " + JSON.stringify(data));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function addMetaData(map, section, data) {
|
|
51
|
-
if (!section)
|
|
52
|
-
return;
|
|
53
|
-
map[section] = data;
|
|
54
|
-
}
|
|
55
|
-
function getMetaData(map, section) {
|
|
56
|
-
if (map[section]) {
|
|
57
|
-
return map[section];
|
|
58
|
-
}
|
|
59
|
-
return undefined;
|
|
60
|
-
}
|
|
61
|
-
function deleteMetaData(map, section) {
|
|
62
|
-
if (map[section]) {
|
|
63
|
-
return delete map[section];
|
|
64
|
-
}
|
|
65
|
-
return undefined;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** @class */ ((function () {
|
|
69
|
-
function Event(values, client) {
|
|
70
|
-
var apiKey = values.apiKey, appVersion = values.appVersion, appType = values.appType, releaseStage = values.releaseStage, timestamp = values.timestamp, category = values.category, type = values.type, sdk = values.sdk, detail = values.detail, device = values.device, user = values.user, actions = values.actions, metaData = values.metaData;
|
|
71
|
-
this.apiKey = apiKey;
|
|
72
|
-
this.appVersion = appVersion;
|
|
73
|
-
this.appType = appType;
|
|
74
|
-
this.releaseStage = releaseStage;
|
|
75
|
-
this.timestamp = timestamp;
|
|
76
|
-
this.category = category;
|
|
77
|
-
this.type = type;
|
|
78
|
-
this.sdk = sdk;
|
|
79
|
-
this.detail = detail;
|
|
80
|
-
this.device = device;
|
|
81
|
-
this.user = user;
|
|
82
|
-
this.actions = actions;
|
|
83
|
-
this.metaData = metaData;
|
|
84
|
-
this._client = client;
|
|
85
|
-
}
|
|
86
|
-
Object.defineProperty(Event.prototype, "_isOhbugEvent", {
|
|
87
|
-
get: function () {
|
|
88
|
-
return true;
|
|
89
|
-
},
|
|
90
|
-
enumerable: false,
|
|
91
|
-
configurable: true
|
|
92
|
-
});
|
|
93
|
-
/**
|
|
94
|
-
* Add an action.
|
|
95
|
-
* Once the threshold is reached, the oldest breadcrumbs will be deleted.
|
|
96
|
-
* 新增一个动作。
|
|
97
|
-
* 一旦达到阈值,最老的 Action 将被删除。
|
|
98
|
-
*
|
|
99
|
-
* @param message
|
|
100
|
-
* @param data
|
|
101
|
-
* @param type
|
|
102
|
-
* @param timestamp
|
|
103
|
-
*/
|
|
104
|
-
Event.prototype.addAction = function (message, data, type, timestamp) {
|
|
105
|
-
var _a, _b;
|
|
106
|
-
var actions = this.actions;
|
|
107
|
-
var targetMessage = isString(message) ? message : '';
|
|
108
|
-
var targetData = data || {};
|
|
109
|
-
var targetType = isString(type) ? type : '';
|
|
110
|
-
var action = new Action(targetMessage, targetData, targetType, timestamp);
|
|
111
|
-
if (actions.length >= ((_b = (_a = this._client) === null || _a === void 0 ? void 0 : _a._config.maxActions) !== null && _b !== void 0 ? _b : 30)) {
|
|
112
|
-
actions.shift();
|
|
113
|
-
}
|
|
114
|
-
actions.push(action);
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Get current user information
|
|
118
|
-
* 获取当前的用户信息
|
|
119
|
-
*/
|
|
120
|
-
Event.prototype.getUser = function () {
|
|
121
|
-
return this.user;
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Set current user information
|
|
125
|
-
* 设置当前的用户信息
|
|
126
|
-
*/
|
|
127
|
-
Event.prototype.setUser = function (user) {
|
|
128
|
-
var _a;
|
|
129
|
-
if (isObject(user) && Object.keys(user).length <= 6) {
|
|
130
|
-
this.user = __assign(__assign({}, this.user), user);
|
|
131
|
-
return this.getUser();
|
|
132
|
-
}
|
|
133
|
-
(_a = this._client) === null || _a === void 0 ? void 0 : _a._logger.warn(getErrorMessage('setUser should be an object and have up to 6 attributes', user));
|
|
134
|
-
return undefined;
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* Add metaData
|
|
138
|
-
* 新增 metaData
|
|
139
|
-
*
|
|
140
|
-
* @param section
|
|
141
|
-
* @param data
|
|
142
|
-
*/
|
|
143
|
-
Event.prototype.addMetaData = function (section, data) {
|
|
144
|
-
return addMetaData(this.metaData, section, data);
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* Get metaData
|
|
148
|
-
* 获取 metaData
|
|
149
|
-
*
|
|
150
|
-
* @param section
|
|
151
|
-
*/
|
|
152
|
-
Event.prototype.getMetaData = function (section) {
|
|
153
|
-
return getMetaData(this.metaData, section);
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* Delete metaData
|
|
157
|
-
* 删除 metaData
|
|
158
|
-
*
|
|
159
|
-
* @param section
|
|
160
|
-
*/
|
|
161
|
-
Event.prototype.deleteMetaData = function (section) {
|
|
162
|
-
return deleteMetaData(this.metaData, section);
|
|
163
|
-
};
|
|
164
|
-
Event.prototype.toJSON = function () {
|
|
165
|
-
var _a = this, apiKey = _a.apiKey, appVersion = _a.appVersion, appType = _a.appType, timestamp = _a.timestamp, category = _a.category, type = _a.type, sdk = _a.sdk, device = _a.device, detail = _a.detail, user = _a.user, actions = _a.actions, metaData = _a.metaData, releaseStage = _a.releaseStage;
|
|
166
|
-
return {
|
|
167
|
-
apiKey: apiKey,
|
|
168
|
-
appVersion: appVersion,
|
|
169
|
-
appType: appType,
|
|
170
|
-
timestamp: timestamp,
|
|
171
|
-
category: category,
|
|
172
|
-
type: type,
|
|
173
|
-
sdk: sdk,
|
|
174
|
-
device: device,
|
|
175
|
-
detail: detail,
|
|
176
|
-
user: user,
|
|
177
|
-
actions: actions,
|
|
178
|
-
metaData: metaData,
|
|
179
|
-
releaseStage: releaseStage,
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
return Event;
|
|
183
|
-
})());
|
|
184
|
-
|
|
185
|
-
function e(){}function t(e,t){for(const n in t)e[n]=t[n];return e}function n(e){return e()}function r(){return Object.create(null)}function i(e){e.forEach(n);}function o(e){return "function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function l(e,t){e.appendChild(t);}function c(e,t,n){e.insertBefore(t,n||null);}function u(e){e.parentNode.removeChild(e);}function d(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t);}function f(e){return document.createElement(e)}function p(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function h(e){return document.createTextNode(e)}function m(){return h(" ")}function v(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function g(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function y(e,t){t=""+t,e.wholeText!==t&&(e.data=t);}function w(e,t,n,r){e.style.setProperty(t,n,r?"important":"");}function b(e,t,n){e.classList[n?"add":"remove"](t);}let x;function S(e){x=e;}function E(){if(!x)throw new Error("Function called outside component initialization");return x}function k(e){E().$$.on_mount.push(e);}function T(e){E().$$.on_destroy.push(e);}function M(){const e=E();return (t,n)=>{const r=e.$$.callbacks[t];if(r){const i=function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(t,n);r.slice().forEach((t=>{t.call(e,i);}));}}}const C=[],I=[],N=[],$=[],_=Promise.resolve();let D=!1;function A(e){N.push(e);}let F=!1;const O=new Set;function L(){if(!F){F=!0;do{for(let e=0;e<C.length;e+=1){const t=C[e];S(t),P(t.$$);}for(C.length=0;I.length;)I.pop()();for(let e=0;e<N.length;e+=1){const t=N[e];O.has(t)||(O.add(t),t());}N.length=0;}while(C.length);for(;$.length;)$.pop()();D=!1,F=!1,O.clear();}}function P(e){if(null!==e.fragment){e.update(),i(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A);}}const R=new Set;let j;function z(){j={r:0,c:[],p:j};}function B(){j.r||i(j.c),j=j.p;}function q(e,t){e&&e.i&&(R.delete(e),e.i(t));}function U(e,t,n,r){if(e&&e.o){if(R.has(e))return;R.add(e),j.c.push((()=>{R.delete(e),r&&(n&&e.d(1),r());})),e.o(t);}}function V(e){e&&e.c();}function W(e,t,r){const{fragment:a,on_mount:s,on_destroy:l,after_update:c}=e.$$;a&&a.m(t,r),A((()=>{const t=s.map(n).filter(o);l?l.push(...t):i(t),e.$$.on_mount=[];})),c.forEach(A);}function X(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function Y(e,t){-1===e.$$.dirty[0]&&(C.push(e),D||(D=!0,_.then(L)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function H(t,n,o,a,s,l,c=[-1]){const d=x;S(t);const f=n.props||{},p=t.$$={fragment:null,ctx:null,props:l,update:e,not_equal:s,bound:r(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:r(),dirty:c};let h=!1;if(p.ctx=o?o(t,f,((e,n,...r)=>{const i=r.length?r[0]:n;return p.ctx&&s(p.ctx[e],p.ctx[e]=i)&&(p.bound[e]&&p.bound[e](i),h&&Y(t,e)),n})):[],p.update(),h=!0,i(p.before_update),p.fragment=!!a&&a(p.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);p.fragment&&p.fragment.l(e),e.forEach(u);}else p.fragment&&p.fragment.c();n.intro&&q(t.$$.fragment),W(t,n.target,n.anchor),L();}S(d);}class Q{$destroy(){X(this,1),this.$destroy=e;}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1);}}$set(){}}var G,J,K,Z,ee;!function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin";}(G||(G={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag";}(J||(J={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd";}(K||(K={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked";}(Z||(Z={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back";}(ee||(ee={}));
|
|
186
|
-
/*! *****************************************************************************
|
|
187
|
-
Copyright (c) Microsoft Corporation.
|
|
188
|
-
|
|
189
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
190
|
-
purpose with or without fee is hereby granted.
|
|
191
|
-
|
|
192
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
193
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
194
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
195
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
196
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
197
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
198
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
199
|
-
***************************************************************************** */
|
|
200
|
-
var te,ne=function(){return (ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function re(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value);}catch(e){i={error:e};}finally{try{r&&!r.done&&(n=o.return)&&n.call(o);}finally{if(i)throw i.error}}return a}function oe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ie(arguments[t]));return e}function ae(e){return e.nodeType===e.ELEMENT_NODE}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment";}(te||(te={}));var se=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function le(e,t){void 0===t&&(t={});var n=1,r=1;function i(e){var t=e.match(/\n/g);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=-1===i?r+e.length:e.length-i;}function o(){var e={line:n,column:r};return function(t){return t.position=new a(e),p(),t}}var a=function(e){this.start=e,this.end={line:n,column:r},this.source=t.source;};a.prototype.content=e;var s=[];function l(i){var o=new Error(t.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o;s.push(o);}function c(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){var t,n=[];for(p(),h(n);e.length&&"}"!==e.charAt(0)&&(t=T()||M());)!1!==t&&(n.push(t),h(n));return n}function f(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function p(){f(/^\s*/);}function h(e){var t;for(void 0===e&&(e=[]);t=m();)!1!==t&&e.push(t),t=m();return e}function m(){var t=o();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,i(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function v(){var e=f(/^([^{]+)/);if(e)return ce(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function g(){var e=o(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){var n=ce(t[0]);if(!f(/^:\s*/))return l("property missing ':'");var r=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),i=e({type:"declaration",property:n.replace(se,""),value:r?ce(r[0]).replace(se,""):""});return f(/^[;\s]*/),i}}function y(){var e,t=[];if(!c())return l("missing '{'");for(h(t);e=g();)!1!==e&&(t.push(e),h(t)),e=g();return u()?t:l("missing '}'")}function w(){for(var e,t=[],n=o();e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:y()})}var b,x=k("import"),S=k("charset"),E=k("namespace");function k(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=o(),r=f(t);if(r){var i={type:e};return i[e]=r[1].trim(),n(i)}}}function T(){if("@"===e[0])return function(){var e=o(),t=f(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=f(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,i=t[1];if(!c())return l("@keyframes missing '{'");for(var a=h();r=w();)a.push(r),a=a.concat(h());return u()?e({type:"keyframes",name:i,vendor:n,keyframes:a}):l("@keyframes missing '}'")}}()||function(){var e=o(),t=f(/^@media *([^{]+)/);if(t){var n=ce(t[1]);if(!c())return l("@media missing '{'");var r=h().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=o(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:ce(t[1]),media:ce(t[2])})}()||function(){var e=o(),t=f(/^@supports *([^{]+)/);if(t){var n=ce(t[1]);if(!c())return l("@supports missing '{'");var r=h().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||x()||S()||E()||function(){var e=o(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=ce(t[1]),r=ce(t[2]);if(!c())return l("@document missing '{'");var i=h().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:i}):l("@document missing '}'")}}()||function(){var e=o();if(f(/^@page */)){var t=v()||[];if(!c())return l("@page missing '{'");for(var n,r=h();n=g();)r.push(n),r=r.concat(h());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=o();if(f(/^@host\s*/)){if(!c())return l("@host missing '{'");var t=h().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=o();if(f(/^@font-face\s*/)){if(!c())return l("@font-face missing '{'");for(var t,n=h();t=g();)n.push(t),n=n.concat(h());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function M(){var e=o(),t=v();return t?(h(),e({type:"rule",selectors:t,declarations:y()})):l("selector missing")}return ue((b=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:b,parsingErrors:s}}))}function ce(e){return e?e.replace(/^\s+|\s+$/g,""):""}function ue(e,t){for(var n=e&&"string"==typeof e.type,r=n?e:t,i=0,o=Object.keys(e);i<o.length;i++){var a=e[o[i]];Array.isArray(a)?a.forEach((function(e){ue(e,r);})):a&&"object"==typeof a&&ue(a,r);}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var de={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};var fe=/([^\\]):hover/,pe=new RegExp(fe,"g");function he(e){var t=le(e,{silent:!0});if(!t.stylesheet)return e;var n=[];if(t.stylesheet.rules.forEach((function(e){"selectors"in e&&(e.selectors||[]).forEach((function(e){fe.test(e)&&n.push(e);}));})),0===n.length)return e;var r=new RegExp(n.filter((function(e,t){return n.indexOf(e)===t})).sort((function(e,t){return t.length-e.length})).map((function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})).join("|"),"g");return e.replace(r,(function(e){var t=e.replace(pe,"$1.\\:hover");return e+", "+t}))}function me(e,t){var n=t.doc,r=t.hackCss;switch(e.type){case te.Document:return n.implementation.createDocument(null,"",null);case te.DocumentType:return n.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case te.Element:var i,o=function(e){var t=de[e.tagName]?de[e.tagName]:e.tagName;return "link"===t&&e.attributes._cssText&&(t="style"),t}(e);i=e.isSVG?n.createElementNS("http://www.w3.org/2000/svg",o):n.createElement(o);var a=function(t){if(!e.attributes.hasOwnProperty(t))return "continue";var a=e.attributes[t];if(a="boolean"==typeof a||"number"==typeof a?"":a,t.startsWith("rr_")){if("canvas"===o&&"rr_dataURL"===t){var s=document.createElement("img");s.src=a,s.onload=function(){var e=i.getContext("2d");e&&e.drawImage(s,0,0,s.width,s.height);};}if("rr_width"===t&&(i.style.width=a),"rr_height"===t&&(i.style.height=a),"rr_mediaCurrentTime"===t&&(i.currentTime=e.attributes.rr_mediaCurrentTime),"rr_mediaState"===t)switch(a){case"played":i.play().catch((function(e){return console.warn("media playback error",e)}));break;case"paused":i.pause();}}else {var l="textarea"===o&&"value"===t,c="style"===o&&"_cssText"===t;if(c&&r&&(a=he(a)),l||c){for(var u=n.createTextNode(a),d=0,f=Array.from(i.childNodes);d<f.length;d++){var p=f[d];p.nodeType===i.TEXT_NODE&&i.removeChild(p);}return i.appendChild(u),"continue"}try{if(e.isSVG&&"xlink:href"===t)i.setAttributeNS("http://www.w3.org/1999/xlink",t,a);else if("onload"===t||"onclick"===t||"onmouse"===t.substring(0,7))i.setAttribute("_"+t,a);else {if("meta"===o&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"==t)return i.setAttribute("csp-content",a),"continue";i.setAttribute(t,a);}}catch(e){}}};for(var s in e.attributes)a(s);if(e.isShadowHost)if(i.shadowRoot)for(;i.shadowRoot.firstChild;)i.shadowRoot.removeChild(i.shadowRoot.firstChild);else i.attachShadow({mode:"open"});return i;case te.Text:return n.createTextNode(e.isStyle&&r?he(e.textContent):e.textContent);case te.CDATA:return n.createCDATASection(e.textContent);case te.Comment:return n.createComment(e.textContent);default:return null}}function ve(e,t){var n=t.doc,r=t.map,i=t.skipChild,o=void 0!==i&&i,a=t.hackCss,s=void 0===a||a,l=t.afterAppend,c=me(e,{doc:n,hackCss:s});if(!c)return null;if(e.rootId&&console.assert(r[e.rootId]===n,"Target document should has the same root id."),e.type===te.Document&&(n.close(),n.open(),c=n),c.__sn=e,r[e.id]=c,(e.type===te.Document||e.type===te.Element)&&!o)for(var u=0,d=e.childNodes;u<d.length;u++){var f=d[u],p=ve(f,{doc:n,map:r,skipChild:!1,hackCss:s,afterAppend:l});p?(f.isShadow&&ae(c)&&c.shadowRoot?c.shadowRoot.appendChild(p):c.appendChild(p),l&&l(p)):console.warn("Failed to rebuild",f);}return c}function ge(e,t){var n=t.doc,r=t.onVisit,i=t.hackCss,o={},a=ve(e,{doc:n,map:o,skipChild:!1,hackCss:void 0===i||i,afterAppend:t.afterAppend});return function(e,t){for(var n in e)e[n]&&(r=e[n],t(r));var r;}(o,(function(e){r&&r(e),function(e){var t=e.__sn;if(t.type===te.Element){var n=e;for(var r in t.attributes)if(t.attributes.hasOwnProperty(r)&&r.startsWith("rr_")){var i=t.attributes[r];"rr_scrollLeft"===r&&(n.scrollLeft=i),"rr_scrollTop"===r&&(n.scrollTop=i);}}}(e);})),[a,o]}var ye="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",we={map:{},getId:function(){return console.error(ye),-1},getNode:function(){return console.error(ye),null},removeNodeFromMap:function(){console.error(ye);},has:function(){return console.error(ye),!1},reset:function(){console.error(ye);}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(we=new Proxy(we,{get:function(e,t,n){return "map"===t&&console.error(ye),Reflect.get(e,t,n)}}));var be=function(){function e(){this.reset();}return e.prototype.add=function(e){var t=this.indexes.get(e.parentId),n={id:e.node.id,mutation:e,children:[],texts:[],attributes:[]};t?(n.parent=t,t.children[n.id]=n):this.tree[n.id]=n,this.indexes.set(n.id,n);},e.prototype.remove=function(e,t){var n=this,r=this.indexes.get(e.parentId),i=this.indexes.get(e.id),o=function(e){n.removeIdSet.add(e);var r=t.getNode(e);null==r||r.childNodes.forEach((function(e){"__sn"in e&&o(e.__sn.id);}));},a=function(t){n.removeIdSet.add(t.id),Object.values(t.children).forEach((function(e){return a(e)}));var r=n.indexes.get(t.id);if(r){var i=r.parent;i&&(delete r.parent,delete i.children[r.id],n.indexes.delete(e.id));}};i?r?(delete i.parent,delete r.children[i.id],this.indexes.delete(e.id),a(i)):(delete this.tree[i.id],this.indexes.delete(i.id),a(i)):(this.removeNodeMutations.push(e),o(e.id));},e.prototype.text=function(e){var t=this.indexes.get(e.id);t?t.texts.push(e):this.textMutations.push(e);},e.prototype.attribute=function(e){var t=this.indexes.get(e.id);t?t.attributes.push(e):this.attributeMutations.push(e);},e.prototype.scroll=function(e){this.scrollMap.set(e.id,e);},e.prototype.input=function(e){this.inputMap.set(e.id,e);},e.prototype.flush=function(){var e,t,n,r,i=this,o=this,a=o.tree,s=o.removeNodeMutations,l=o.textMutations,c=o.attributeMutations,u={source:J.Mutation,removes:s,texts:l,attributes:c,adds:[]},d=function(e,t){t&&i.removeIdSet.add(e.id),u.texts=u.texts.concat(t?[]:e.texts).filter((function(e){return !i.removeIdSet.has(e.id)})),u.attributes=u.attributes.concat(t?[]:e.attributes).filter((function(e){return !i.removeIdSet.has(e.id)})),i.removeIdSet.has(e.id)||i.removeIdSet.has(e.mutation.parentId)||t?Object.values(e.children).forEach((function(e){return d(e,!0)})):(u.adds.push(e.mutation),e.children&&Object.values(e.children).forEach((function(e){return d(e,!1)})));};Object.values(a).forEach((function(e){return d(e,!1)}));try{for(var f=re(this.scrollMap.keys()),p=f.next();!p.done;p=f.next()){var h=p.value;this.removeIdSet.has(h)&&this.scrollMap.delete(h);}}catch(t){e={error:t};}finally{try{p&&!p.done&&(t=f.return)&&t.call(f);}finally{if(e)throw e.error}}try{for(var m=re(this.inputMap.keys()),v=m.next();!v.done;v=m.next()){h=v.value;this.removeIdSet.has(h)&&this.inputMap.delete(h);}}catch(e){n={error:e};}finally{try{v&&!v.done&&(r=m.return)&&r.call(m);}finally{if(n)throw n.error}}var g=new Map(this.scrollMap),y=new Map(this.inputMap);return this.reset(),{mutationData:u,scrollMap:g,inputMap:y}},e.prototype.reset=function(){this.tree=[],this.indexes=new Map,this.removeNodeMutations=[],this.textMutations=[],this.attributeMutations=[],this.removeIdSet=new Set,this.scrollMap=new Map,this.inputMap=new Map;},e}();function xe(e){var t,n,r={},i=function(e,t){var n={value:e,parent:t,children:[]};return r[e.node.id]=n,n},o=[];try{for(var a=re(e),s=a.next();!s.done;s=a.next()){var l=s.value,c=l.nextId,u=l.parentId;if(c&&c in r){var d=r[c];if(d.parent){var f=d.parent.children.indexOf(d);d.parent.children.splice(f,0,i(l,d.parent));}else {f=o.indexOf(d);o.splice(f,0,i(l,null));}}else if(u in r){var p=r[u];p.children.push(i(l,p));}else o.push(i(l,null));}}catch(e){t={error:e};}finally{try{s&&!s.done&&(n=a.return)&&n.call(a);}finally{if(t)throw t.error}}return o}function Se(e,t){t(e.value);for(var n=e.children.length-1;n>=0;n--)Se(e.children[n],t);}function Ee(e){return "__sn"in e&&(e.__sn.type===te.Element&&"iframe"===e.__sn.tagName)}function ke(e,t){var n,r,i=null===(r=null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===r?void 0:r.frameElement;if(!i||i===t)return {x:0,y:0,relativeScale:1,absoluteScale:1};var o=i.getBoundingClientRect(),a=ke(i,t),s=o.height/i.clientHeight;return {x:o.x*a.relativeScale+a.x,y:o.y*a.relativeScale+a.y,relativeScale:s,absoluteScale:a.absoluteScale*s}}function Te(e){var t;return Boolean(null===(t=e)||void 0===t?void 0:t.shadowRoot)}function Me(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n);},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1);},emit:function(t,n){(e[t]||[]).slice().map((function(e){e(n);})),(e["*"]||[]).slice().map((function(e){e(t,n);}));}}}var Ce=Object.freeze({__proto__:null,default:Me});function Ie(e,t){if(void 0===e&&(e=window),void 0===t&&(t=document),!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,r=e.HTMLElement||e.Element,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?h.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset));},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?i.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)));},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;h.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t);}else {if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop));},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==t.body?(h.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"});}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);};}function s(e,t){this.scrollLeft=e,this.scrollTop=t;}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return !0;if("object"==typeof e&&"smooth"===e.behavior)return !1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return "Y"===t?e.clientHeight+a<e.scrollHeight:"X"===t?e.clientWidth+a<e.scrollWidth:void 0}function u(t,n){var r=e.getComputedStyle(t,null)["overflow"+n];return "auto"===r||"scroll"===r}function d(e){var t=c(e,"Y")&&u(e,"Y"),n=c(e,"X")&&u(e,"X");return t||n}function f(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}function p(t){var n,r,i,a=(o()-t.startTime)/468;n=function(e){return .5*(1-Math.cos(Math.PI*e))}(a=a>1?1:a),r=t.startX+(t.x-t.startX)*n,i=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,r,i),r===t.x&&i===t.y||e.requestAnimationFrame(p.bind(e,t));}function h(n,r,a){var l,c,u,d,f=o();n===t.body?(l=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=i.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,d=s),p({scrollable:l,method:d,startTime:f,startX:c,startY:u,x:r,y:a});}}var Ne,$e=function(){function e(e,t){void 0===e&&(e=[]),this.timeOffset=0,this.raf=null,this.actions=e,this.speed=t;}return e.prototype.addAction=function(e){var t=this.findActionIndex(e);this.actions.splice(t,0,e);},e.prototype.addActions=function(e){this.actions=this.actions.concat(e);},e.prototype.start=function(){this.timeOffset=0;var e=performance.now(),t=this.actions,n=this;this.raf=requestAnimationFrame((function r(){var i=performance.now();for(n.timeOffset+=(i-e)*n.speed,e=i;t.length;){var o=t[0];if(!(n.timeOffset>=o.delay))break;t.shift(),o.doAction();}(t.length>0||n.liveMode)&&(n.raf=requestAnimationFrame(r));}));},e.prototype.clear=function(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0;},e.prototype.setSpeed=function(e){this.speed=e;},e.prototype.toggleLiveMode=function(e){this.liveMode=e;},e.prototype.isActive=function(){return null!==this.raf},e.prototype.findActionIndex=function(e){for(var t=0,n=this.actions.length-1;t<=n;){var r=Math.floor((t+n)/2);if(this.actions[r].delay<e.delay)t=r+1;else {if(!(this.actions[r].delay>e.delay))return r;n=r-1;}}return t},e}();function _e(e,t){if(e.type===G.IncrementalSnapshot&&e.data.source===J.MouseMove){var n=e.data.positions[0].timeOffset,r=e.timestamp+n;return e.delay=r-t,r-t}return e.delay=e.timestamp-t,e.delay}
|
|
201
|
-
/*! *****************************************************************************
|
|
202
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
203
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
204
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
205
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
206
|
-
|
|
207
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
208
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
209
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
210
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
211
|
-
|
|
212
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
213
|
-
and limitations under the License.
|
|
214
|
-
***************************************************************************** */!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped";}(Ne||(Ne={}));var De={type:"xstate.init"};function Ae(e){return void 0===e?[]:[].concat(e)}function Fe(e){return {type:"xstate.assign",assignment:e}}function Oe(e,t){return "string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function Le(e){return function(t){return e===t}}function Pe(e){return "string"==typeof e?{type:e}:e}function Re(e,t){return {value:e,context:t,actions:[],changed:!1,matches:Le(e)}}function je(e,t){void 0===t&&(t={});var n={config:e,_options:t,initialState:{value:e.initial,actions:Ae(e.states[e.initial].entry).map((function(e){return Oe(e,t.actions)})),context:e.context,matches:Le(e.initial)},transition:function(t,r){var i,o,a="string"==typeof t?{value:t,context:e.context}:t,s=a.value,l=a.context,c=Pe(r),u=e.states[s];if(u.on){var d=Ae(u.on[c.type]),f=function(t){if(void 0===t)return {value:Re(s,l)};var r="string"==typeof t?{target:t}:t,i=r.target,o=void 0===i?s:i,a=r.actions,d=void 0===a?[]:a,f=r.cond,p=l;if((void 0===f?function(){return !0}:f)(l,c)){var h=e.states[o],m=!1,v=[].concat(u.exit,d,h.entry).filter((function(e){return e})).map((function(e){return Oe(e,n._options.actions)})).filter((function(e){if("xstate.assign"===e.type){m=!0;var t=Object.assign({},p);return "function"==typeof e.assignment?t=e.assignment(p,c):Object.keys(e.assignment).forEach((function(n){t[n]="function"==typeof e.assignment[n]?e.assignment[n](p,c):e.assignment[n];})),p=t,!1}return !0}));return {value:{value:o,context:p,actions:v,changed:o!==s||v.length>0||m,matches:Le(o)}}}};try{for(var p=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(d),h=p.next();!h.done;h=p.next()){var m=f(h.value);if("object"==typeof m)return m.value}}catch(e){i={error:e};}finally{try{h&&!h.done&&(o=p.return)&&o.call(p);}finally{if(i)throw i.error}}}return Re(s,l)}};return n}var ze=function(e,t){return e.actions.forEach((function(n){var r=n.exec;return r&&r(e.context,t)}))};function Be(e){var t=e.initialState,n=Ne.NotStarted,r=new Set,i={_machine:e,send:function(i){n===Ne.Running&&(t=e.transition(t,i),ze(t,Pe(i)),r.forEach((function(e){return e(t)})));},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(r){if(r){var o="object"==typeof r?r:{context:e.config.context,value:r};t={value:o.value,actions:[],context:o.context,matches:Le(o.value)};}return n=Ne.Running,ze(t,De),i},stop:function(){return n=Ne.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}function qe(e,t){var n=t.getCastFn,r=t.emitter;return Be(je({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Fe({lastPlayedEvent:function(e,t){return "CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}}),recordTimeOffset:Fe((function(e,t){var n=e.timeOffset;return "payload"in t&&"timeOffset"in t.payload&&(n=t.payload.timeOffset),ne(ne({},e),{timeOffset:n,baselineTime:e.events[0].timestamp+n})})),play:function(e){var t,i,o,a,s,l=e.timer,c=e.events,u=e.baselineTime,d=e.lastPlayedEvent;l.clear();try{for(var f=re(c),p=f.next();!p.done;p=f.next()){_e(p.value,u);}}catch(e){t={error:e};}finally{try{p&&!p.done&&(i=f.return)&&i.call(f);}finally{if(t)throw t.error}}var h=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.type===G.Meta&&r.timestamp<=t)return e.slice(n)}return e}(c,u),m=null==d?void 0:d.timestamp;(null==d?void 0:d.type)===G.IncrementalSnapshot&&d.data.source===J.MouseMove&&(m=d.timestamp+(null===(s=d.data.positions[0])||void 0===s?void 0:s.timeOffset)),u<(m||0)&&r.emit(ee.PlayBack);var v=new Array,g=function(e){if(m&&m<u&&(e.timestamp<=m||e===d))return "continue";var t=e.timestamp<u;if(t&&!function(e){switch(e.type){case G.DomContentLoaded:case G.Load:case G.Custom:return !1;case G.FullSnapshot:case G.Meta:case G.Plugin:return !0}switch(e.data.source){case J.MouseMove:case J.MouseInteraction:case J.TouchMove:case J.MediaInteraction:return !1;case J.ViewportResize:case J.StyleSheetRule:case J.Scroll:case J.Input:return !0}return !0}(e))return "continue";var i=n(e,t);t?i():v.push({doAction:function(){i(),r.emit(ee.EventCast,e);},delay:e.delay});};try{for(var y=re(h),w=y.next();!w.done;w=y.next()){g(w.value);}}catch(e){o={error:e};}finally{try{w&&!w.done&&(a=y.return)&&a.call(y);}finally{if(o)throw o.error}}r.emit(ee.Flush),l.addActions(v),l.start();},pause:function(e){e.timer.clear();},resetLastPlayedEvent:Fe((function(e){return ne(ne({},e),{lastPlayedEvent:null})})),startLive:Fe({baselineTime:function(e,t){return e.timer.toggleLiveMode(!0),e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime?t.payload.baselineTime:Date.now()}}),addEvent:Fe((function(e,t){var i=e.baselineTime,o=e.timer,a=e.events;if("ADD_EVENT"===t.type){var s=t.payload.event;_e(s,i);var l=a.length-1;if(!a[l]||a[l].timestamp<=s.timestamp)a.push(s);else {for(var c=-1,u=0;u<=l;){var d=Math.floor((u+l)/2);a[d].timestamp<=s.timestamp?u=d+1:l=d-1;}-1===c&&(c=u),a.splice(c,0,s);}var f=s.timestamp<i,p=n(s,f);f?p():o.isActive()&&o.addAction({doAction:function(){p(),r.emit(ee.EventCast,s);},delay:s.delay});}return ne(ne({},e),{events:a})}))}}))}var Ue=Me||Ce,Ve={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"},We=function(){function e(e,t){var n=this;if(this.mouseTail=null,this.tailPositions=[],this.emitter=Ue(),this.legacy_missingNodeRetryMap={},this.imageMap=new Map,this.mirror={map:{},getId:function(e){return e.__sn?e.__sn.id:-1},getNode:function(e){return this.map[e]||null},removeNodeFromMap:function(e){var t=this,n=e.__sn&&e.__sn.id;delete this.map[n],e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}));},has:function(e){return this.map.hasOwnProperty(e)},reset:function(){this.map={};}},this.firstFullSnapshot=null,this.newDocumentQueue=[],!(null==t?void 0:t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");var r={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Ve};this.config=Object.assign({},r,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.emitter.on(ee.Resize,this.handleResize),this.setupDom(),this.treeIndex=new be,this.fragmentParentMap=new Map,this.elementStateMap=new Map,this.emitter.on(ee.Flush,(function(){var e,t,r,i,o=n.treeIndex.flush(),a=o.scrollMap,s=o.inputMap;n.fragmentParentMap.forEach((function(e,t){return n.restoreRealParent(t,e)})),n.fragmentParentMap.clear(),n.elementStateMap.clear();try{for(var l=re(a.values()),c=l.next();!c.done;c=l.next()){var u=c.value;n.applyScroll(u);}}catch(t){e={error:t};}finally{try{c&&!c.done&&(t=l.return)&&t.call(l);}finally{if(e)throw e.error}}try{for(var d=re(s.values()),f=d.next();!f.done;f=d.next()){u=f.value;n.applyInput(u);}}catch(e){r={error:e};}finally{try{f&&!f.done&&(i=d.return)&&i.call(d);}finally{if(r)throw r.error}}})),this.emitter.on(ee.PlayBack,(function(){n.firstFullSnapshot=null,n.mirror.reset();}));var i=new $e([],(null==t?void 0:t.speed)||r.speed);this.service=qe({events:e.map((function(e){return t&&t.unpackFn?t.unpackFn(e):e})).sort((function(e,t){return e.timestamp-t.timestamp})),timer:i,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,emitter:this.emitter}),this.service.start(),this.service.subscribe((function(e){n.emitter.emit(ee.StateChange,{player:e});})),this.speedService=Be(je({id:"speed",context:{normalSpeed:-1,timer:i},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:function(e,t){"payload"in t&&e.timer.setSpeed(t.payload.speed);},recordSpeed:Fe({normalSpeed:function(e){return e.timer.speed}}),restoreSpeed:function(e){e.timer.setSpeed(e.normalSpeed);}}})),this.speedService.start(),this.speedService.subscribe((function(e){n.emitter.emit(ee.StateChange,{speed:e});}));var o=this.service.state.context.events.find((function(e){return e.type===G.Meta})),a=this.service.state.context.events.find((function(e){return e.type===G.FullSnapshot}));if(o){var s=o.data,l=s.width,c=s.height;setTimeout((function(){n.emitter.emit(ee.Resize,{width:l,height:c});}),0);}a&&setTimeout((function(){n.firstFullSnapshot||(n.firstFullSnapshot=a,n.rebuildFullSnapshot(a),n.iframe.contentWindow.scrollTo(a.data.initialOffset));}),1);}return Object.defineProperty(e.prototype,"timer",{get:function(){return this.service.state.context.timer},enumerable:!1,configurable:!0}),e.prototype.on=function(e,t){return this.emitter.on(e,t),this},e.prototype.off=function(e,t){return this.emitter.off(e,t),this},e.prototype.setConfig=function(e){var t=this;Object.keys(e).forEach((function(n){t.config[n]=e[n];})),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"));},e.prototype.getMetaData=function(){var e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return {startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}},e.prototype.getCurrentTime=function(){return this.timer.timeOffset+this.getTimeOffset()},e.prototype.getTimeOffset=function(){var e=this.service.state.context;return e.baselineTime-e.events[0].timestamp},e.prototype.getMirror=function(){return this.mirror},e.prototype.play=function(e){var t;void 0===e&&(e=0),this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null===(t=this.iframe.contentDocument)||void 0===t||t.getElementsByTagName("html")[0].classList.remove("rrweb-paused"),this.emitter.emit(ee.Start);},e.prototype.pause=function(e){var t;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null===(t=this.iframe.contentDocument)||void 0===t||t.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(ee.Pause);},e.prototype.resume=function(e){void 0===e&&(e=0),console.warn("The 'resume' will be departed in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(ee.Resume);},e.prototype.startLive=function(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}});},e.prototype.addEvent=function(e){var t=this,n=this.config.unpackFn?this.config.unpackFn(e):e;Promise.resolve().then((function(){return t.service.send({type:"ADD_EVENT",payload:{event:n}})}));},e.prototype.enableInteract=function(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto";},e.prototype.disableInteract=function(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none";},e.prototype.setupDom=function(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");var e,t=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&t.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",t.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(Ie(this.iframe.contentWindow,this.iframe.contentDocument),void 0===(e=this.iframe.contentWindow)&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return !0}while(e=e&&e.parentNode);return !1}));},e.prototype.handleResize=function(e){var t,n;this.iframe.style.display="inherit";try{for(var r=re([this.mouseTail,this.iframe]),i=r.next();!i.done;i=r.next()){var o=i.value;o&&(o.setAttribute("width",String(e.width)),o.setAttribute("height",String(e.height)));}}catch(e){t={error:e};}finally{try{i&&!i.done&&(n=r.return)&&n.call(r);}finally{if(t)throw t.error}}},e.prototype.getCastFn=function(e,t){var n,r=this;switch(void 0===t&&(t=!1),e.type){case G.DomContentLoaded:case G.Load:break;case G.Custom:n=function(){r.emitter.emit(ee.CustomEvent,e);};break;case G.Meta:n=function(){return r.emitter.emit(ee.Resize,{width:e.data.width,height:e.data.height})};break;case G.FullSnapshot:n=function(){if(r.firstFullSnapshot){if(r.firstFullSnapshot===e)return void(r.firstFullSnapshot=!0)}else r.firstFullSnapshot=!0;r.rebuildFullSnapshot(e,t),r.iframe.contentWindow.scrollTo(e.data.initialOffset);};break;case G.IncrementalSnapshot:n=function(){var n,i;if(r.applyIncremental(e,t),!t&&(e===r.nextUserInteractionEvent&&(r.nextUserInteractionEvent=null,r.backToNormal()),r.config.skipInactive&&!r.nextUserInteractionEvent)){try{for(var o=re(r.service.state.context.events),a=o.next();!a.done;a=o.next()){var s=a.value;if(!(s.timestamp<=e.timestamp)&&r.isUserInteraction(s)){s.delay-e.delay>1e4*r.speedService.state.context.timer.speed&&(r.nextUserInteractionEvent=s);break}}}catch(e){n={error:e};}finally{try{a&&!a.done&&(i=o.return)&&i.call(o);}finally{if(n)throw n.error}}if(r.nextUserInteractionEvent){var l=r.nextUserInteractionEvent.delay-e.delay,c={speed:Math.min(Math.round(l/5e3),r.config.maxSpeed)};r.speedService.send({type:"FAST_FORWARD",payload:c}),r.emitter.emit(ee.SkipStart,c);}}};}return function(){var i,o;n&&n();try{for(var a=re(r.config.plugins||[]),s=a.next();!s.done;s=a.next()){s.value.handler(e,t,{replayer:r});}}catch(e){i={error:e};}finally{try{s&&!s.done&&(o=a.return)&&o.call(a);}finally{if(i)throw i.error}}r.service.send({type:"CAST_EVENT",payload:{event:e}});var l=r.service.state.context.events.length-1;if(e===r.service.state.context.events[l]){var c=function(){l<r.service.state.context.events.length-1||(r.backToNormal(),r.service.send("END"),r.emitter.emit(ee.Finish));};e.type===G.IncrementalSnapshot&&e.data.source===J.MouseMove&&e.data.positions.length?setTimeout((function(){c();}),Math.max(0,50-e.data.positions[0].timeOffset)):c();}}},e.prototype.rebuildFullSnapshot=function(e,t){var n,r,i=this;if(void 0===t&&(t=!1),!this.iframe.contentDocument)return console.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&console.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};var o=[];this.mirror.map=ge(e.data.node,{doc:this.iframe.contentDocument,afterAppend:function(e){i.collectIframeAndAttachDocument(o,e);}})[1];var a=function(e,t){if(s.attachDocumentToIframe(e,t),s.newDocumentQueue=s.newDocumentQueue.filter((function(t){return t!==e})),t.contentDocument){var n=t.contentDocument,r=n.documentElement,i=n.head;s.insertStyleRules(r,i);}},s=this;try{for(var l=re(o),c=l.next();!c.done;c=l.next()){var u=c.value;a(u.mutationInQueue,u.builtNode);}}catch(e){n={error:e};}finally{try{c&&!c.done&&(r=l.return)&&r.call(l);}finally{if(n)throw n.error}}var d=this.iframe.contentDocument,f=d.documentElement,p=d.head;this.insertStyleRules(f,p),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(ee.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages();},e.prototype.insertStyleRules=function(e,t){var n=document.createElement("style");e.insertBefore(n,t);var r,i=(r=this.config.blockClass,["."+r+" { background: #ccc }","noscript { display: none !important; }"]).concat(this.config.insertStyleRules);this.config.pauseAnimation&&i.push("html.rrweb-paused * { animation-play-state: paused !important; }");for(var o=0;o<i.length;o++)n.sheet.insertRule(i[o],o);},e.prototype.attachDocumentToIframe=function(e,t){var n,r,i=this,o=[];if(!t.contentDocument)for(var a=t.parentNode;a;){if(this.fragmentParentMap.has(a)){var s=a,l=this.fragmentParentMap.get(s);this.restoreRealParent(s,l);break}a=a.parentNode;}ve(e.node,{doc:t.contentDocument,map:this.mirror.map,hackCss:!0,skipChild:!1,afterAppend:function(e){i.collectIframeAndAttachDocument(o,e);}});var c=function(e,t){if(u.attachDocumentToIframe(e,t),u.newDocumentQueue=u.newDocumentQueue.filter((function(t){return t!==e})),t.contentDocument){var n=t.contentDocument,r=n.documentElement,i=n.head;u.insertStyleRules(r,i);}},u=this;try{for(var d=re(o),f=d.next();!f.done;f=d.next()){var p=f.value;c(p.mutationInQueue,p.builtNode);}}catch(e){n={error:e};}finally{try{f&&!f.done&&(r=d.return)&&r.call(d);}finally{if(n)throw n.error}}},e.prototype.collectIframeAndAttachDocument=function(e,t){if(Ee(t)){var n=this.newDocumentQueue.find((function(e){return e.parentId===t.__sn.id}));n&&e.push({mutationInQueue:n,builtNode:t});}},e.prototype.waitForStylesheetLoad=function(){var e,t=this,n=null===(e=this.iframe.contentDocument)||void 0===e?void 0:e.head;if(n){var r,i=new Set,o=this.service.state,a=function(){o=t.service.state;};this.emitter.on(ee.Start,a),this.emitter.on(ee.Pause,a);var s=function(){t.emitter.off(ee.Start,a),t.emitter.off(ee.Pause,a);};n.querySelectorAll('link[rel="stylesheet"]').forEach((function(e){e.sheet||(i.add(e),e.addEventListener("load",(function(){i.delete(e),0===i.size&&-1!==r&&(o.matches("playing")&&t.play(t.getCurrentTime()),t.emitter.emit(ee.LoadStylesheetEnd),r&&window.clearTimeout(r),s());})));})),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(ee.LoadStylesheetStart),r=window.setTimeout((function(){o.matches("playing")&&t.play(t.getCurrentTime()),r=-1,s();}),this.config.loadTimeout));}},e.prototype.preloadAllImages=function(){var e,t,n=this;this.service.state;var r=function(){n.service.state;};this.emitter.on(ee.Start,r),this.emitter.on(ee.Pause,r);var i=0;try{for(var o=re(this.service.state.context.events),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.type===G.IncrementalSnapshot&&s.data.source===J.CanvasMutation&&"drawImage"===s.data.property&&"string"==typeof s.data.args[0]&&!this.imageMap.has(s)){i++;var l=document.createElement("canvas"),c=l.getContext("2d"),u=null==c?void 0:c.createImageData(l.width,l.height);null==u||u.data;JSON.parse(s.data.args[0]),null==c||c.putImageData(u,0,0);}}}catch(t){e={error:t};}finally{try{a&&!a.done&&(t=o.return)&&t.call(o);}finally{if(e)throw e.error}}0!==i&&this.service.send({type:"PAUSE"});},e.prototype.applyIncremental=function(e,t){var n,r,i=this,o=e.data;switch(o.source){case J.Mutation:t&&(o.adds.forEach((function(e){return i.treeIndex.add(e)})),o.texts.forEach((function(e){return i.treeIndex.text(e)})),o.attributes.forEach((function(e){return i.treeIndex.attribute(e)})),o.removes.forEach((function(e){return i.treeIndex.remove(e,i.mirror)}))),this.applyMutation(o,t);break;case J.Drag:case J.TouchMove:case J.MouseMove:if(t){var a=o.positions[o.positions.length-1];this.moveAndHover(o,a.x,a.y,a.id);}else o.positions.forEach((function(t){var n={doAction:function(){i.moveAndHover(o,t.x,t.y,t.id);},delay:t.timeOffset+e.timestamp-i.service.state.context.baselineTime};i.timer.addAction(n);})),this.timer.addAction({doAction:function(){},delay:e.delay-(null===(n=o.positions[0])||void 0===n?void 0:n.timeOffset)});break;case J.MouseInteraction:if(-1===o.id)break;var s=new Event(K[o.type].toLowerCase());if(!(v=this.mirror.getNode(o.id)))return this.debugNodeNotFound(o,o.id);this.emitter.emit(ee.MouseInteraction,{type:o.type,target:v});var l=this.config.triggerFocus;switch(o.type){case K.Blur:"blur"in v&&v.blur();break;case K.Focus:l&&v.focus&&v.focus({preventScroll:!0});break;case K.Click:case K.TouchStart:case K.TouchEnd:t||(this.moveAndHover(o,o.x,o.y,o.id),this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active"));break;default:v.dispatchEvent(s);}break;case J.Scroll:if(-1===o.id)break;if(t){this.treeIndex.scroll(o);break}this.applyScroll(o);break;case J.ViewportResize:this.emitter.emit(ee.Resize,{width:o.width,height:o.height});break;case J.Input:if(-1===o.id)break;if(t){this.treeIndex.input(o);break}this.applyInput(o);break;case J.MediaInteraction:if(!(v=this.mirror.getNode(o.id)))return this.debugNodeNotFound(o,o.id);var c=v;try{o.currentTime&&(c.currentTime=o.currentTime),o.type===Z.Pause&&c.pause(),o.type===Z.Play&&c.play();}catch(e){this.config.showWarning&&console.warn("Failed to replay media interactions: "+(e.message||e));}break;case J.StyleSheetRule:if(!(v=this.mirror.getNode(o.id)))return this.debugNodeNotFound(o,o.id);var u=v,d=v.parentNode,f=this.fragmentParentMap.has(d),p=void 0;if(f){var h=this.fragmentParentMap.get(v.parentNode);p=document.createTextNode(""),d.replaceChild(p,v),h.appendChild(v);}var m=u.sheet;o.adds&&o.adds.forEach((function(e){var t=e.rule,n=e.index;try{var r=void 0===n?void 0:Math.min(n,m.rules.length);try{m.insertRule(t,r);}catch(e){}}catch(e){}})),o.removes&&o.removes.forEach((function(e){var t=e.index;try{m.deleteRule(t);}catch(e){}})),f&&p&&d.replaceChild(v,p);break;case J.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;var v;if(!(v=this.mirror.getNode(o.id)))return this.debugNodeNotFound(o,o.id);try{var g=v.getContext("2d");if(o.setter)return void(g[o.property]=o.args[0]);var y=g[o.property];if("drawImage"===o.property&&"string"==typeof o.args[0]){var w=this.imageMap.get(e);o.args[0]=w,y.apply(g,o.args);}else y.apply(g,o.args);}catch(e){this.warnCanvasMutationFailed(o,o.id,e);}break;case J.Font:try{var b=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);null===(r=this.iframe.contentDocument)||void 0===r||r.fonts.add(b);}catch(e){this.config.showWarning&&console.warn(e);}}},e.prototype.applyMutation=function(e,t){var n,r,i=this;e.removes.forEach((function(t){var n=i.mirror.getNode(t.id);if(!n)return i.warnNodeNotFound(e,t.id);var r=i.mirror.getNode(t.parentId);if(!r)return i.warnNodeNotFound(e,t.parentId);if(t.isShadow&&Te(r)&&(r=r.shadowRoot),i.mirror.removeNodeFromMap(n),r){var o="__sn"in r?i.fragmentParentMap.get(r):void 0;if(o&&o.contains(n))o.removeChild(n);else if(i.fragmentParentMap.has(n)){var a=i.fragmentParentMap.get(n);r.removeChild(a),i.fragmentParentMap.delete(n);}else r.removeChild(n);}}));var o=ne({},this.legacy_missingNodeRetryMap),a=[],s=function(e){var n,r;if(!i.iframe.contentDocument)return console.warn("Looks like your replayer has been destroyed.");var s=i.mirror.getNode(e.parentId);if(!s)return e.node.type===te.Document?i.newDocumentQueue.push(e):a.push(e);var l=null;i.iframe.contentDocument.contains?l=i.iframe.contentDocument.contains(s):i.iframe.contentDocument.body.contains&&(l=i.iframe.contentDocument.body.contains(s));var c=(null===(r=(n=s).getElementsByTagName)||void 0===r?void 0:r.call(n,"iframe").length)>0;if(t&&l&&!Ee(s)&&!c){var u=document.createDocumentFragment();for(i.mirror.map[e.parentId]=u,i.fragmentParentMap.set(u,s),i.storeState(s);s.firstChild;)u.appendChild(s.firstChild);s=u;}e.node.isShadow&&Te(s)&&(s=s.shadowRoot);var d=null,f=null;if(e.previousId&&(d=i.mirror.getNode(e.previousId)),e.nextId&&(f=i.mirror.getNode(e.nextId)),function(e){var t=null;return e.nextId&&(t=i.mirror.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t}(e))return a.push(e);if(!e.node.rootId||i.mirror.getNode(e.node.rootId)){var p=e.node.rootId?i.mirror.getNode(e.node.rootId):i.iframe.contentDocument;if(Ee(s))i.attachDocumentToIframe(e,s);else {var h=ve(e.node,{doc:p,map:i.mirror.map,skipChild:!0,hackCss:!0});if(-1!==e.previousId&&-1!==e.nextId){if(d&&d.nextSibling&&d.nextSibling.parentNode)s.insertBefore(h,d.nextSibling);else if(f&&f.parentNode)s.contains(f)?s.insertBefore(h,f):s.insertBefore(h,null);else {if(s===p)for(;p.firstChild;)p.removeChild(p.firstChild);s.appendChild(h);}if(Ee(h)){var m=i.newDocumentQueue.find((function(e){return e.parentId===h.__sn.id}));if(m&&(i.attachDocumentToIframe(m,h),i.newDocumentQueue=i.newDocumentQueue.filter((function(e){return e!==m}))),h.contentDocument){var v=h.contentDocument,g=v.documentElement,y=v.head;i.insertStyleRules(g,y);}}(e.previousId||e.nextId)&&i.legacy_resolveMissingNode(o,s,h,e);}else o[e.node.id]={node:h,mutation:e};}}};e.adds.forEach((function(e){s(e);}));for(var l=Date.now();a.length;){var c=xe(a);if(a.length=0,Date.now()-l>500){this.warn("Timeout in the loop, please check the resolve tree data:",c);break}try{for(var u=(n=void 0,re(c)),d=u.next();!d.done;d=u.next()){var f=d.value;this.mirror.getNode(f.value.parentId)?Se(f,(function(e){s(e);})):this.debug("Drop resolve tree since there is no parent for the root node.",f);}}catch(e){n={error:e};}finally{try{d&&!d.done&&(r=u.return)&&r.call(u);}finally{if(n)throw n.error}}}Object.keys(o).length&&Object.assign(this.legacy_missingNodeRetryMap,o),e.texts.forEach((function(t){var n=i.mirror.getNode(t.id);if(!n)return i.warnNodeNotFound(e,t.id);i.fragmentParentMap.has(n)&&(n=i.fragmentParentMap.get(n)),n.textContent=t.value;})),e.attributes.forEach((function(t){var n=i.mirror.getNode(t.id);if(!n)return i.warnNodeNotFound(e,t.id);for(var r in i.fragmentParentMap.has(n)&&(n=i.fragmentParentMap.get(n)),t.attributes)if("string"==typeof r){var o=t.attributes[r];try{null!==o?n.setAttribute(r,o):n.removeAttribute(r);}catch(e){i.config.showWarning&&console.warn("An error occurred may due to the checkout feature.",e);}}}));},e.prototype.applyScroll=function(e){var t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);if(t===this.iframe.contentDocument)this.iframe.contentWindow.scrollTo({top:e.y,left:e.x,behavior:"smooth"});else try{t.scrollTop=e.y,t.scrollLeft=e.x;}catch(e){}},e.prototype.applyInput=function(e){var t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text;}catch(e){}},e.prototype.legacy_resolveMissingNode=function(e,t,n,r){var i=r.previousId,o=r.nextId,a=i&&e[i],s=o&&e[o];if(a){var l=a,c=l.node,u=l.mutation;t.insertBefore(c,n),delete e[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(e,t,c,u);}if(s){var d=s;c=d.node,u=d.mutation;t.insertBefore(c,n.nextSibling),delete e[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(e,t,c,u);}},e.prototype.moveAndHover=function(e,t,n,r){var i=this.mirror.getNode(r);if(!i)return this.debugNodeNotFound(e,r);var o=ke(i,this.iframe),a=t*o.absoluteScale+o.x,s=n*o.absoluteScale+o.y;this.mouse.style.left=a+"px",this.mouse.style.top=s+"px",this.drawMouseTail({x:a,y:s}),this.hoverElements(i);},e.prototype.drawMouseTail=function(e){var t=this;if(this.mouseTail){var n=!0===this.config.mouseTail?Ve:Object.assign({},Ve,this.config.mouseTail),r=n.lineCap,i=n.lineWidth,o=n.strokeStyle,a=n.duration,s=function(){if(t.mouseTail){var e=t.mouseTail.getContext("2d");e&&t.tailPositions.length&&(e.clearRect(0,0,t.mouseTail.width,t.mouseTail.height),e.beginPath(),e.lineWidth=i,e.lineCap=r,e.strokeStyle=o,e.moveTo(t.tailPositions[0].x,t.tailPositions[0].y),t.tailPositions.forEach((function(t){return e.lineTo(t.x,t.y)})),e.stroke());}};this.tailPositions.push(e),s(),setTimeout((function(){t.tailPositions=t.tailPositions.filter((function(t){return t!==e})),s();}),a/this.speedService.state.context.timer.speed);}},e.prototype.hoverElements=function(e){var t;null===(t=this.iframe.contentDocument)||void 0===t||t.querySelectorAll(".\\:hover").forEach((function(e){e.classList.remove(":hover");}));for(var n=e;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement;},e.prototype.isUserInteraction=function(e){return e.type===G.IncrementalSnapshot&&(e.data.source>J.Mutation&&e.data.source<=J.Input)},e.prototype.backToNormal=function(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(ee.SkipEnd,{speed:this.speedService.state.context.normalSpeed}));},e.prototype.restoreRealParent=function(e,t){this.mirror.map[t.__sn.id]=t,t.__sn.type===te.Element&&"textarea"===t.__sn.tagName&&e.textContent&&(t.value=e.textContent),t.appendChild(e),this.restoreState(t);},e.prototype.storeState=function(e){var t,n;if(e&&e.nodeType===e.ELEMENT_NODE){var r=e;(r.scrollLeft||r.scrollTop)&&this.elementStateMap.set(e,{scroll:[r.scrollLeft,r.scrollTop]});var i=r.children;try{for(var o=re(Array.from(i)),a=o.next();!a.done;a=o.next()){var s=a.value;this.storeState(s);}}catch(e){t={error:e};}finally{try{a&&!a.done&&(n=o.return)&&n.call(o);}finally{if(t)throw t.error}}}},e.prototype.restoreState=function(e){var t,n;if(e.nodeType===e.ELEMENT_NODE){var r=e;if(this.elementStateMap.has(e)){var i=this.elementStateMap.get(e);i.scroll&&(r.scrollLeft=i.scroll[0],r.scrollTop=i.scroll[1]),this.elementStateMap.delete(e);}var o=r.children;try{for(var a=re(Array.from(o)),s=a.next();!s.done;s=a.next()){var l=s.value;this.restoreState(l);}}catch(e){t={error:e};}finally{try{s&&!s.done&&(n=a.return)&&n.call(a);}finally{if(t)throw t.error}}}},e.prototype.warnNodeNotFound=function(e,t){this.warn("Node with id '"+t+"' not found in",e);},e.prototype.warnCanvasMutationFailed=function(e,t,n){this.warn("Has error on update canvas '"+t+"'",e,n);},e.prototype.debugNodeNotFound=function(e,t){this.debug("[replayer]","Node with id '"+t+"' not found in",e);},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.config.showWarning&&console.warn.apply(console,oe(["[replayer]"],e));},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.config.showDebug&&console.log.apply(console,oe(["[replayer]"],e));},e}(),Xe=Uint8Array,Ye=Uint16Array,He=Uint32Array,Qe=new Xe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ge=new Xe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Je=new Xe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ke=function(e,t){for(var n=new Ye(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new He(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return [n,i]},Ze=Ke(Qe,2),et=Ze[0],tt=Ze[1];et[28]=258,tt[258]=28;for(var nt=Ke(Ge,0)[0],rt=new Ye(32768),it=0;it<32768;++it){var ot=(43690&it)>>>1|(21845&it)<<1;ot=(61680&(ot=(52428&ot)>>>2|(13107&ot)<<2))>>>4|(3855&ot)<<4,rt[it]=((65280&ot)>>>8|(255&ot)<<8)>>>1;}var at=function(e,t,n){for(var r=e.length,i=0,o=new Ye(t);i<r;++i)++o[e[i]-1];var a,s=new Ye(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;if(n){a=new Ye(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],d=s[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)a[rt[d]>>>l]=c;}else for(a=new Ye(r),i=0;i<r;++i)a[i]=rt[s[e[i]-1]++]>>>15-e[i];return a},st=new Xe(288);for(it=0;it<144;++it)st[it]=8;for(it=144;it<256;++it)st[it]=9;for(it=256;it<280;++it)st[it]=7;for(it=280;it<288;++it)st[it]=8;var lt=new Xe(32);for(it=0;it<32;++it)lt[it]=5;at(st,9,0);var ct=at(st,9,1);at(lt,5,0);var ut=at(lt,5,1),dt=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},ft=function(e,t,n){var r=t/8>>0;return (e[r]|e[r+1]<<8)>>>(7&t)&n},pt=function(e,t){var n=t/8>>0;return (e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},ht=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof Ye?Ye:e instanceof He?He:Xe)(n-t);return r.set(e.subarray(t,n)),r},mt=new He(256);for(it=0;it<256;++it){for(var vt=it,gt=9;--gt;)vt=(1&vt&&3988292384)^vt>>>1;mt[it]=vt;}function yt(e,t){return function(e,t,n){var r=e.length,i=!t||n,o=!n||n.i;n||(n={}),t||(t=new Xe(3*r));var a=function(e){var n=t.length;if(e>n){var r=new Xe(Math.max(2*n,e));r.set(t),t=r;}},s=n.f||0,l=n.p||0,c=n.b||0,u=n.l,d=n.d,f=n.m,p=n.n;if(s&&!u)return t;var h,m=8*r;do{if(!u){n.f=s=ft(e,l,1);var v=ft(e,l+1,3);if(l+=3,!v){var g=e[(I=((h=l)/8>>0)+(7&h&&1)+4)-4]|e[I-3]<<8,y=I+g;if(y>r){if(o)throw "unexpected EOF";break}i&&a(c+g),t.set(e.subarray(I,y),c),n.b=c+=g,n.p=l=8*y;continue}if(1==v)u=ct,d=ut,f=9,p=5;else {if(2!=v)throw "invalid block type";var w=ft(e,l,31)+257,b=ft(e,l+10,15)+4,x=w+ft(e,l+5,31)+1;l+=14;for(var S=new Xe(x),E=new Xe(19),k=0;k<b;++k)E[Je[k]]=ft(e,l+3*k,7);l+=3*b;var T=dt(E),M=(1<<T)-1;if(!o&&l+x*(T+7)>m)break;var C=at(E,T,1);for(k=0;k<x;){var I,N=C[ft(e,l,M)];if(l+=15&N,(I=N>>>4)<16)S[k++]=I;else {var $=0,_=0;for(16==I?(_=3+ft(e,l,3),l+=2,$=S[k-1]):17==I?(_=3+ft(e,l,7),l+=3):18==I&&(_=11+ft(e,l,127),l+=7);_--;)S[k++]=$;}}var D=S.subarray(0,w),A=S.subarray(w);f=dt(D),p=dt(A),u=at(D,f,1),d=at(A,p,1);}if(l>m)throw "unexpected EOF"}i&&a(c+131072);for(var F=(1<<f)-1,O=(1<<p)-1,L=f+p+18;o||l+L<m;){var P=($=u[pt(e,l)&F])>>>4;if((l+=15&$)>m)throw "unexpected EOF";if(!$)throw "invalid length/literal";if(P<256)t[c++]=P;else {if(256==P){u=null;break}var R=P-254;if(P>264){var j=Qe[k=P-257];R=ft(e,l,(1<<j)-1)+et[k],l+=j;}var z=d[pt(e,l)&O],B=z>>>4;if(!z)throw "invalid distance";if(l+=15&z,A=nt[B],B>3&&(j=Ge[B],A+=pt(e,l)&(1<<j)-1,l+=j),l>m)throw "unexpected EOF";i&&a(c+131072);for(var q=c+R;c<q;c+=4)t[c]=t[c-A],t[c+1]=t[c+1-A],t[c+2]=t[c+2-A],t[c+3]=t[c+3-A];c=q;}}n.l=u,n.p=l,n.b=c,u&&(s=1,n.m=f,n.d=d,n.n=p);}while(!s);return c==t.length?t:ht(t,0,c)}((function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw "invalid zlib data";if(32&e[1])throw "invalid zlib data: preset dictionaries not supported"}(e),e.subarray(2,-4)),t)}var wt=function(e){if("string"!=typeof e)return e;try{if((t=JSON.parse(e)).timestamp)return t}catch(e){}try{var t;if("v1"===(t=JSON.parse(function(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return (new TextDecoder).decode(e);for(var r=0;r<e.length;){var i=e[r++];i<128||t?n+=String.fromCharCode(i):i<224?n+=String.fromCharCode((31&i)<<6|63&e[r++]):i<240?n+=String.fromCharCode((15&i)<<12|(63&e[r++])<<6|63&e[r++]):(i=((15&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i));}return n}(yt(function(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return (new TextEncoder).encode(e);for(var r=new Xe(e.length+(e.length>>>1)),i=0,o=function(e){r[i++]=e;},a=0;a<n;++a){if(i+5>r.length){var s=new Xe(i+8+(n-a<<1));s.set(r),r=s;}var l=e.charCodeAt(a);l<128||t?o(l):l<2048?(o(192|l>>>6),o(128|63&l)):l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++a))>>>18),o(128|l>>>12&63),o(128|l>>>6&63),o(128|63&l)):(o(224|l>>>12),o(128|l>>>6&63),o(128|63&l));}return ht(r,0,i)}(e,!0))))).v)return t;throw new Error("These events were packed with packer "+t.v+" which is incompatible with current packer v1.")}catch(e){throw console.error(e),new Error("Unknown data format.")}};function bt(e){let t="";return Object.keys(e).forEach((n=>{t+=`${n}: ${e[n]};`;})),t}function xt(e,t=2){let n=String(e);const r=Math.pow(10,t-1);if(e<r)for(;String(r).length>n.length;)n="0"+e;return n}function St(e){if(e<=0)return "00:00";const t=Math.floor(e/36e5);e%=36e5;const n=Math.floor(e/6e4);e%=6e4;const r=Math.floor(e/1e3);return t?`${xt(t)}:${xt(n)}:${xt(r)}`:`${xt(n)}:${xt(r)}`}function Et(){return document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement}function kt(e){return {"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(e)]}function Tt(t){let n,r,i,o,a,s,d,p,w;return {c(){n=f("div"),r=f("input"),i=m(),o=f("label"),a=m(),s=f("span"),d=h(t[3]),g(r,"type","checkbox"),g(r,"id",t[2]),r.disabled=t[1],g(r,"class","svelte-9brlez"),g(o,"for",t[2]),g(o,"class","svelte-9brlez"),g(s,"class","label svelte-9brlez"),g(n,"class","switch svelte-9brlez"),b(n,"disabled",t[1]);},m(e,u){c(e,n,u),l(n,r),r.checked=t[0],l(n,i),l(n,o),l(n,a),l(n,s),l(s,d),p||(w=v(r,"change",t[4]),p=!0);},p(e,[t]){4&t&&g(r,"id",e[2]),2&t&&(r.disabled=e[1]),1&t&&(r.checked=e[0]),4&t&&g(o,"for",e[2]),8&t&&y(d,e[3]),2&t&&b(n,"disabled",e[1]);},i:e,o:e,d(e){e&&u(n),p=!1,w();}}}function Mt(e,t,n){let{disabled:r}=t,{checked:i}=t,{id:o}=t,{label:a}=t;return e.$set=e=>{"disabled"in e&&n(1,r=e.disabled),"checked"in e&&n(0,i=e.checked),"id"in e&&n(2,o=e.id),"label"in e&&n(3,a=e.label);},[i,r,o,a,function(){i=this.checked,n(0,i);}]}class Ct extends Q{constructor(e){super(),H(this,e,Mt,Tt,a,{disabled:1,checked:0,id:2,label:3});}}function It(e,t,n){const r=e.slice();return r[33]=t[n],r}function Nt(e,t,n){const r=e.slice();return r[36]=t[n],r}function $t(e){let t,n,r,o,a,s,p,x,S,E,k,T,M,C,N,_,D,A,F,O,L,P,R,j,z,B=St(e[6])+"",Y=St(e[11].totalTime)+"",H=e[13],Q=[];for(let t=0;t<H.length;t+=1)Q[t]=_t(Nt(e,H,t));function G(e,t){return "playing"===e[7]?At:Dt}let J=G(e),K=J(e),Z=e[3],ee=[];for(let t=0;t<Z.length;t+=1)ee[t]=Ft(It(e,Z,t));function te(t){e[27].call(null,t);}let ne={id:"skip",disabled:"skipping"===e[8],label:"skip inactive"};return void 0!==e[0]&&(ne.checked=e[0]),F=new Ct({props:ne}),I.push((()=>function(e,t,n){const r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]));}(F,"checked",te))),{c(){t=f("div"),n=f("div"),r=f("span"),o=h(B),a=m(),s=f("div"),p=f("div"),x=m();for(let e=0;e<Q.length;e+=1)Q[e].c();S=m(),E=f("div"),k=m(),T=f("span"),M=h(Y),C=m(),N=f("div"),_=f("button"),K.c(),D=m();for(let e=0;e<ee.length;e+=1)ee[e].c();A=m(),V(F.$$.fragment),L=m(),P=f("button"),P.innerHTML='<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M916 380c-26.4 0-48-21.6-48-48L868 223.2 613.6 477.6c-18.4\n 18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4\n 0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0\n 224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48\n 48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48\n 48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4\n 68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z" p-id="1286"></path></svg>',g(r,"class","rr-timeline__time svelte-19ke1iv"),g(p,"class","rr-progress__step svelte-19ke1iv"),w(p,"width",e[12]),g(E,"class","rr-progress__handler svelte-19ke1iv"),w(E,"left",e[12]),g(s,"class","rr-progress svelte-19ke1iv"),b(s,"disabled","skipping"===e[8]),g(T,"class","rr-timeline__time svelte-19ke1iv"),g(n,"class","rr-timeline svelte-19ke1iv"),g(_,"class","svelte-19ke1iv"),g(P,"class","svelte-19ke1iv"),g(N,"class","rr-controller__btns svelte-19ke1iv"),g(t,"class","rr-controller svelte-19ke1iv");},m(i,u){c(i,t,u),l(t,n),l(n,r),l(r,o),l(n,a),l(n,s),l(s,p),e[23](p),l(s,x);for(let e=0;e<Q.length;e+=1)Q[e].m(s,null);l(s,S),l(s,E),e[24](s),l(n,k),l(n,T),l(T,M),l(t,C),l(t,N),l(N,_),K.m(_,null),l(N,D);for(let e=0;e<ee.length;e+=1)ee[e].m(N,null);l(N,A),W(F,N,null),l(N,L),l(N,P),R=!0,j||(z=[v(s,"click",e[25]),v(_,"click",e[4]),v(P,"click",e[28])],j=!0);},p(e,t){if((!R||64&t[0])&&B!==(B=St(e[6])+"")&&y(o,B),(!R||4096&t[0])&&w(p,"width",e[12]),8192&t[0]){let n;for(H=e[13],n=0;n<H.length;n+=1){const r=Nt(e,H,n);Q[n]?Q[n].p(r,t):(Q[n]=_t(r),Q[n].c(),Q[n].m(s,S));}for(;n<Q.length;n+=1)Q[n].d(1);Q.length=H.length;}if((!R||4096&t[0])&&w(E,"left",e[12]),256&t[0]&&b(s,"disabled","skipping"===e[8]),(!R||2048&t[0])&&Y!==(Y=St(e[11].totalTime)+"")&&y(M,Y),J!==(J=G(e))&&(K.d(1),K=J(e),K&&(K.c(),K.m(_,null))),298&t[0]){let n;for(Z=e[3],n=0;n<Z.length;n+=1){const r=It(e,Z,n);ee[n]?ee[n].p(r,t):(ee[n]=Ft(r),ee[n].c(),ee[n].m(N,A));}for(;n<ee.length;n+=1)ee[n].d(1);ee.length=Z.length;}const n={};var r;256&t[0]&&(n.disabled="skipping"===e[8]),!O&&1&t[0]&&(O=!0,n.checked=e[0],r=()=>O=!1,$.push(r)),F.$set(n);},i(e){R||(q(F.$$.fragment,e),R=!0);},o(e){U(F.$$.fragment,e),R=!1;},d(n){n&&u(t),e[23](null),d(Q,n),e[24](null),K.d(),d(ee,n),X(F),j=!1,i(z);}}}function _t(e){let t,n;return {c(){t=f("div"),g(t,"title",n=e[36].name),w(t,"width","10px"),w(t,"height","5px"),w(t,"position","absolute"),w(t,"top","2px"),w(t,"transform","translate(-50%, -50%)"),w(t,"background",e[36].background),w(t,"left",e[36].position);},m(e,n){c(e,t,n);},p(e,r){8192&r[0]&&n!==(n=e[36].name)&&g(t,"title",n),8192&r[0]&&w(t,"background",e[36].background),8192&r[0]&&w(t,"left",e[36].position);},d(e){e&&u(t);}}}function Dt(e){let t,n;return {c(){t=p("svg"),n=p("path"),g(n,"d","M170.65984 896l0-768 640 384zM644.66944\n 512l-388.66944-233.32864 0 466.65728z"),g(t,"class","icon"),g(t,"viewBox","0 0 1024 1024"),g(t,"version","1.1"),g(t,"xmlns","http://www.w3.org/2000/svg"),g(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),g(t,"width","16"),g(t,"height","16");},m(e,r){c(e,t,r),l(t,n);},d(e){e&&u(t);}}}function At(e){let t,n;return {c(){t=p("svg"),n=p("path"),g(n,"d","M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0\n 512q0 53.00224-37.49888 90.50112t-90.50112\n 37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224\n 37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0\n 90.50112 37.49888t37.49888 90.50112l0 512q0 53.00224-37.49888\n 90.50112t-90.50112\n 37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224\n 37.49888-90.50112t90.50112-37.49888zM341.34016 213.34016q-17.67424\n 0-30.16704 12.4928t-12.4928 30.16704l0 512q0 17.67424 12.4928\n 30.16704t30.16704 12.4928 30.16704-12.4928\n 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984\n 213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0\n 17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928\n 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"),g(t,"class","icon"),g(t,"viewBox","0 0 1024 1024"),g(t,"version","1.1"),g(t,"xmlns","http://www.w3.org/2000/svg"),g(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),g(t,"width","16"),g(t,"height","16");},m(e,r){c(e,t,r),l(t,n);},d(e){e&&u(t);}}}function Ft(e){let t,n,r,i,o,a,s=e[33]+"";function d(...t){return e[26](e[33],...t)}return {c(){t=f("button"),n=h(s),r=h("x"),t.disabled=i="skipping"===e[8],g(t,"class","svelte-19ke1iv"),b(t,"active",e[33]===e[1]&&"skipping"!==e[8]);},m(e,i){c(e,t,i),l(t,n),l(t,r),o||(a=v(t,"click",d),o=!0);},p(r,o){e=r,8&o[0]&&s!==(s=e[33]+"")&&y(n,s),256&o[0]&&i!==(i="skipping"===e[8])&&(t.disabled=i),266&o[0]&&b(t,"active",e[33]===e[1]&&"skipping"!==e[8]);},d(e){e&&u(t),o=!1,a();}}}function Ot(e){let t,n,r=e[2]&&$t(e);return {c(){r&&r.c(),t=h("");},m(e,i){r&&r.m(e,i),c(e,t,i),n=!0;},p(e,n){e[2]?r?(r.p(e,n),4&n[0]&&q(r,1)):(r=$t(e),r.c(),q(r,1),r.m(t.parentNode,t)):r&&(z(),U(r,1,1,(()=>{r=null;})),B());},i(e){n||(q(r),n=!0);},o(e){U(r),n=!1;},d(e){r&&r.d(e),e&&u(t);}}}function Lt(e,t,n){const r=M();let i,o,a,s,l,c,u,d,{replayer:f}=t,{showController:p}=t,{autoPlay:h}=t,{skipInactive:m}=t,{speedOption:v}=t,{speed:g=(v.length?v[0]:1)}=t,{tags:y={}}=t,w=0,b=null;const x=()=>{b&&(cancelAnimationFrame(b),b=null);},S=()=>{"paused"===i&&(l?(f.play(),l=!1):f.play(w));},C=()=>{"playing"===i&&f.pause();},N=(e,t)=>{n(6,w=e);("boolean"==typeof t?t:"playing"===i)?f.play(e):f.pause(e);},$=e=>{if("skipping"===o)return;const t=a.getBoundingClientRect();let n=(e.clientX-t.left)/t.width;n<0?n=0:n>1&&(n=1);const r=c.totalTime*n;N(r);},_=e=>{let t="playing"===i;n(1,g=e),t&&f.pause(),f.setConfig({speed:g}),t&&f.play(w);};var D;k((()=>{n(7,i=f.service.state.value),n(8,o=f.speedService.state.value),f.on("state-change",(e=>{const{player:t,speed:r}=e;if((null==t?void 0:t.value)&&i!==t.value)switch(n(7,i=t.value),i){case"playing":x(),b=requestAnimationFrame((function e(){n(6,w=f.getCurrentTime()),w<c.totalTime&&(b=requestAnimationFrame(e));}));break;case"paused":x();}(null==r?void 0:r.value)&&o!==r.value&&n(8,o=r.value);})),f.on("finish",(()=>{l=!0;})),h&&f.play();})),D=()=>{m!==f.config.skipInactive&&f.setConfig({skipInactive:m});},E().$$.after_update.push(D),T((()=>{f.pause(),x();}));return e.$set=e=>{"replayer"in e&&n(16,f=e.replayer),"showController"in e&&n(2,p=e.showController),"autoPlay"in e&&n(17,h=e.autoPlay),"skipInactive"in e&&n(0,m=e.skipInactive),"speedOption"in e&&n(3,v=e.speedOption),"speed"in e&&n(1,g=e.speed),"tags"in e&&n(18,y=e.tags);},e.$$.update=()=>{if(64&e.$$.dirty[0]&&r("ui-update-current-time",{payload:w}),128&e.$$.dirty[0]&&r("ui-update-player-state",{payload:i}),65536&e.$$.dirty[0]&&n(11,c=f.getMetaData()),2112&e.$$.dirty[0]){const e=Math.min(1,w/c.totalTime);n(12,u=100*e+"%"),r("ui-update-progress",{payload:e});}327680&e.$$.dirty[0]&&n(13,d=(()=>{const{context:e}=f.service.state,t=e.events.length,n=e.events[0].timestamp,r=e.events[t-1].timestamp,i=[];return e.events.forEach((e=>{if(e.type===G.Custom){const s={name:e.data.tag,background:y[e.data.tag]||"rgb(73, 80, 246)",position:`${t=n,o=r,a=e.timestamp,(100-(o-a)/(o-t)*100).toFixed(2)}%`};i.push(s);}var t,o,a;})),i})());},[m,g,p,v,()=>{switch(i){case"playing":C();break;case"paused":S();}},_,w,i,o,a,s,c,u,d,r,$,f,h,y,S,C,N,()=>{n(0,m=!m);},function(e){I[e?"unshift":"push"]((()=>{s=e,n(10,s);}));},function(e){I[e?"unshift":"push"]((()=>{a=e,n(9,a);}));},e=>$(e),e=>_(e),function(e){m=e,n(0,m);},()=>r("fullscreen")]}class Pt extends Q{constructor(e){super(),H(this,e,Lt,Ot,a,{replayer:16,showController:2,autoPlay:17,skipInactive:0,speedOption:3,speed:1,tags:18,toggle:4,play:19,pause:20,goto:21,setSpeed:5,toggleSkipInactive:22},[-1,-1]);}get toggle(){return this.$$.ctx[4]}get play(){return this.$$.ctx[19]}get pause(){return this.$$.ctx[20]}get goto(){return this.$$.ctx[21]}get setSpeed(){return this.$$.ctx[5]}get toggleSkipInactive(){return this.$$.ctx[22]}}function Rt(e){let t,n,r={replayer:e[6],showController:e[3],autoPlay:e[1],speedOption:e[2],skipInactive:e[0],tags:e[4]};return t=new Pt({props:r}),e[29](t),t.$on("fullscreen",e[30]),{c(){V(t.$$.fragment);},m(e,r){W(t,e,r),n=!0;},p(e,n){const r={};64&n[0]&&(r.replayer=e[6]),8&n[0]&&(r.showController=e[3]),2&n[0]&&(r.autoPlay=e[1]),4&n[0]&&(r.speedOption=e[2]),1&n[0]&&(r.skipInactive=e[0]),16&n[0]&&(r.tags=e[4]),t.$set(r);},i(e){n||(q(t.$$.fragment,e),n=!0);},o(e){U(t.$$.fragment,e),n=!1;},d(n){e[29](null),X(t,n);}}}function jt(e){let t,n,r,i,o=e[6]&&Rt(e);return {c(){t=f("div"),n=f("div"),r=m(),o&&o.c(),g(n,"class","rr-player__frame"),g(n,"style",e[10]),g(t,"class","rr-player"),g(t,"style",e[11]);},m(a,s){c(a,t,s),l(t,n),e[28](n),l(t,r),o&&o.m(t,null),e[31](t),i=!0;},p(e,r){(!i||1024&r[0])&&g(n,"style",e[10]),e[6]?o?(o.p(e,r),64&r[0]&&q(o,1)):(o=Rt(e),o.c(),q(o,1),o.m(t,null)):o&&(z(),U(o,1,1,(()=>{o=null;})),B()),(!i||2048&r[0])&&g(t,"style",e[11]);},i(e){i||(q(o),i=!0);},o(e){U(o),i=!1;},d(n){n&&u(t),e[28](null),o&&o.d(),e[31](null);}}}function zt(e,n,r){let i,{width:o=1024}=n,{height:a=576}=n,{events:l=[]}=n,{skipInactive:c=!0}=n,{autoPlay:u=!0}=n,{speedOption:d=[1,2,4,8]}=n,{speed:f=1}=n,{showController:p=!0}=n,{tags:h={}}=n;let m,v,g,y,w,b,x=o,S=a;const E=(e,t)=>{const n=o/t.width,r=a/t.height;e.style.transform=`scale(${Math.min(n,r,1)})translate(-50%, -50%)`;},M=()=>{var e;m&&(Et()?document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():(e=m).requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen());};k((()=>{if(void 0!==d&&"array"!==kt(d))throw new Error("speedOption must be array");if(d.forEach((e=>{if("number"!==kt(e))throw new Error("item of speedOption must be number")})),d.indexOf(f)<0)throw new Error(`speed must be one of speedOption,\n current config:\n {\n ...\n speed: ${f},\n speedOption: [${d.toString()}]\n ...\n }\n `);var e;r(6,i=new We(l,Object.assign({speed:f,root:v,unpackFn:wt},n))),i.on("resize",(e=>{E(i.wrapper,e);})),e=()=>{Et()?setTimeout((()=>{x=o,S=a,r(12,o=m.offsetWidth),r(13,a=m.offsetHeight),E(i.wrapper,{width:i.iframe.offsetWidth,height:i.iframe.offsetHeight});}),0):(r(12,o=x),r(13,a=S),E(i.wrapper,{width:i.iframe.offsetWidth,height:i.iframe.offsetHeight}));},document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),g=()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e);};})),T((()=>{g&&g();}));return e.$set=e=>{r(36,n=t(t({},n),s(e))),"width"in e&&r(12,o=e.width),"height"in e&&r(13,a=e.height),"events"in e&&r(14,l=e.events),"skipInactive"in e&&r(0,c=e.skipInactive),"autoPlay"in e&&r(1,u=e.autoPlay),"speedOption"in e&&r(2,d=e.speedOption),"speed"in e&&r(15,f=e.speed),"showController"in e&&r(3,p=e.showController),"tags"in e&&r(4,h=e.tags);},e.$$.update=()=>{12288&e.$$.dirty[0]&&r(10,w=bt({width:`${o}px`,height:`${a}px`})),12296&e.$$.dirty[0]&&r(11,b=bt({width:`${o}px`,height:`${a+(p?80:0)}px`}));},n=s(n),[c,u,d,p,h,M,i,m,v,y,w,b,o,a,l,f,()=>i.getMirror(),()=>{E(i.wrapper,{width:i.iframe.offsetWidth,height:i.iframe.offsetHeight});},(e,t)=>{switch(i.on(e,t),e){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":y.$on(e,(({detail:e})=>t(e)));}},e=>{i.addEvent(e);},()=>i.getMetaData(),()=>i,()=>{y.toggle();},e=>{y.setSpeed(e);},()=>{y.toggleSkipInactive();},()=>{y.play();},()=>{y.pause();},(e,t)=>{y.goto(e,t);},function(e){I[e?"unshift":"push"]((()=>{v=e,r(8,v);}));},function(e){I[e?"unshift":"push"]((()=>{y=e,r(9,y);}));},()=>M(),function(e){I[e?"unshift":"push"]((()=>{m=e,r(7,m);}));}]}class Bt extends Q{constructor(e){super(),H(this,e,zt,jt,a,{width:12,height:13,events:14,skipInactive:0,autoPlay:1,speedOption:2,speed:15,showController:3,tags:4,getMirror:16,triggerResize:17,toggleFullscreen:5,addEventListener:18,addEvent:19,getMetaData:20,getReplayer:21,toggle:22,setSpeed:23,toggleSkipInactive:24,play:25,pause:26,goto:27},[-1,-1]);}get getMirror(){return this.$$.ctx[16]}get triggerResize(){return this.$$.ctx[17]}get toggleFullscreen(){return this.$$.ctx[5]}get addEventListener(){return this.$$.ctx[18]}get addEvent(){return this.$$.ctx[19]}get getMetaData(){return this.$$.ctx[20]}get getReplayer(){return this.$$.ctx[21]}get toggle(){return this.$$.ctx[22]}get setSpeed(){return this.$$.ctx[23]}get toggleSkipInactive(){return this.$$.ctx[24]}get play(){return this.$$.ctx[25]}get pause(){return this.$$.ctx[26]}get goto(){return this.$$.ctx[27]}}class RrwebPlayer extends Bt{constructor(e){super({target:e.target,props:e.data||e.props});}}
|
|
215
|
-
|
|
216
|
-
function styleInject(css, ref) {
|
|
217
|
-
if ( ref === void 0 ) ref = {};
|
|
218
|
-
var insertAt = ref.insertAt;
|
|
219
|
-
|
|
220
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
221
|
-
|
|
222
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
223
|
-
var style = document.createElement('style');
|
|
224
|
-
style.type = 'text/css';
|
|
225
|
-
|
|
226
|
-
if (insertAt === 'top') {
|
|
227
|
-
if (head.firstChild) {
|
|
228
|
-
head.insertBefore(style, head.firstChild);
|
|
229
|
-
} else {
|
|
230
|
-
head.appendChild(style);
|
|
231
|
-
}
|
|
232
|
-
} else {
|
|
233
|
-
head.appendChild(style);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (style.styleSheet) {
|
|
237
|
-
style.styleSheet.cssText = css;
|
|
238
|
-
} else {
|
|
239
|
-
style.appendChild(document.createTextNode(css));
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
var css_248z = ".replayer-wrapper{position:relative}.replayer-mouse{position:absolute;width:20px;height:20px;transition:.05s linear;background-size:contain;background-position:50%;background-repeat:no-repeat;background-image:url(\"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjMwMCIgd2lkdGg9IjMwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBkYXRhLW5hbWU9IkxheWVyIDEiIHZpZXdCb3g9IjAgMCA1MCA1MCI+PHBhdGggZD0iTTQ4LjcxIDQyLjkxTDM0LjA4IDI4LjI5IDQ0LjMzIDE4YTEgMSAwIDAwLS4zMy0xLjYxTDIuMzUgMS4wNmExIDEgMCAwMC0xLjI5IDEuMjlMMTYuMzkgNDRhMSAxIDAgMDAxLjY1LjM2bDEwLjI1LTEwLjI4IDE0LjYyIDE0LjYzYTEgMSAwIDAwMS40MSAwbDQuMzgtNC4zOGExIDEgMCAwMC4wMS0xLjQyem0tNS4wOSAzLjY3TDI5IDMyYTEgMSAwIDAwLTEuNDEgMGwtOS44NSA5Ljg1TDMuNjkgMy42OWwzOC4xMiAxNEwzMiAyNy41OEExIDEgMCAwMDMyIDI5bDE0LjU5IDE0LjYyeiIvPjwvc3ZnPg==\")}.replayer-mouse:after{content:\"\";display:inline-block;width:20px;height:20px;border-radius:10px;background:#4950f6;transform:translate(-10px,-10px);opacity:.3}.replayer-mouse.active:after{animation:click .2s ease-in-out 1}.replayer-mouse-tail{position:absolute;pointer-events:none}@keyframes click{0%{opacity:.3;width:20px;height:20px;border-radius:10px;transform:translate(-10px,-10px)}50%{opacity:.5;width:10px;height:10px;border-radius:5px;transform:translate(-5px,-5px)}}.rr-player{position:relative;background:white;float:left;border-radius:5px;box-shadow:0 24px 48px rgba(17, 16, 62, 0.12)}.rr-player__frame{overflow:hidden}.replayer-wrapper{float:left;clear:both;transform-origin:top left;left:50%;top:50%}.replayer-wrapper>iframe{border:none}.rr-controller.svelte-19ke1iv.svelte-19ke1iv{width:100%;height:80px;background:#fff;display:flex;flex-direction:column;justify-content:space-around;align-items:center;border-radius:0 0 5px 5px}.rr-timeline.svelte-19ke1iv.svelte-19ke1iv{width:80%;display:flex;align-items:center}.rr-timeline__time.svelte-19ke1iv.svelte-19ke1iv{display:inline-block;width:100px;text-align:center;color:#11103e}.rr-progress.svelte-19ke1iv.svelte-19ke1iv{flex:1;height:12px;background:#eee;position:relative;border-radius:3px;cursor:pointer;box-sizing:border-box;border-top:solid 4px #fff;border-bottom:solid 4px #fff}.rr-progress.disabled.svelte-19ke1iv.svelte-19ke1iv{cursor:not-allowed}.rr-progress__step.svelte-19ke1iv.svelte-19ke1iv{height:100%;position:absolute;left:0;top:0;background:#e0e1fe}.rr-progress__handler.svelte-19ke1iv.svelte-19ke1iv{width:20px;height:20px;border-radius:10px;position:absolute;top:2px;transform:translate(-50%, -50%);background:rgb(73, 80, 246)}.rr-controller__btns.svelte-19ke1iv.svelte-19ke1iv{display:flex;align-items:center;justify-content:center;font-size:13px}.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv{width:32px;height:32px;display:flex;padding:0;align-items:center;justify-content:center;background:none;border:none;border-radius:50%;cursor:pointer}.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv:active{background:#e0e1fe}.rr-controller__btns.svelte-19ke1iv button.active.svelte-19ke1iv{color:#fff;background:rgb(73, 80, 246)}.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv:disabled{cursor:not-allowed}.switch.svelte-9brlez.svelte-9brlez{height:1em;display:flex;align-items:center}.switch.disabled.svelte-9brlez.svelte-9brlez{opacity:0.5}.label.svelte-9brlez.svelte-9brlez{margin:0 8px}.switch.svelte-9brlez input[type='checkbox'].svelte-9brlez{position:absolute;opacity:0}.switch.svelte-9brlez label.svelte-9brlez{width:2em;height:1em;position:relative;cursor:pointer;display:block}.switch.disabled.svelte-9brlez label.svelte-9brlez{cursor:not-allowed}.switch.svelte-9brlez label.svelte-9brlez:before{content:'';position:absolute;width:2em;height:1em;left:0.1em;transition:background 0.1s ease;background:rgba(73, 80, 246, 0.5);border-radius:50px}.switch.svelte-9brlez label.svelte-9brlez:after{content:'';position:absolute;width:1em;height:1em;border-radius:50px;left:0;transition:all 0.2s ease;box-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.3);background:#fcfff4;animation:switch-off 0.2s ease-out;z-index:2}.switch input[type='checkbox']:checked+label.svelte-9brlez.svelte-9brlez:before{background:rgb(73, 80, 246)}.switch input[type='checkbox']:checked+label.svelte-9brlez.svelte-9brlez:after{animation:switch-on 0.2s ease-out;left:1.1em}";
|
|
244
|
-
styleInject(css_248z);
|
|
245
|
-
|
|
246
|
-
var index = createExtensionUI({
|
|
247
|
-
name: 'OhbugExtensionUIRrweb',
|
|
248
|
-
key: 'rrweb',
|
|
249
|
-
component: (event, root) => {
|
|
250
|
-
var _a;
|
|
251
|
-
const events = ((_a = event === null || event === void 0 ? void 0 : event.metaData) === null || _a === void 0 ? void 0 : _a.rrweb)
|
|
252
|
-
? JSON.parse(JSON.stringify(event.metaData.rrweb))
|
|
253
|
-
: [];
|
|
254
|
-
// eslint-disable-next-line no-new
|
|
255
|
-
new RrwebPlayer({
|
|
256
|
-
target: root,
|
|
257
|
-
props: {
|
|
258
|
-
events,
|
|
259
|
-
},
|
|
260
|
-
});
|
|
261
|
-
},
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
export { index as default };
|