ripplo 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/assets/rrweb-replay.js +2 -2
- package/dist/index.js +139 -133
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,9 @@ verifies the complete visible and application-state result.
|
|
|
6
6
|
Ripplo writes and owns the workflows. Install `@ripplo/auth`, then comment `@ripplo review` on a
|
|
7
7
|
pull request. Ripplo reads the preview URL from the deploy bot's comment. Pass it yourself when
|
|
8
8
|
there is none: `@ripplo review <preview-url>`. To sign in through a saved connection other than
|
|
9
|
-
the project default, add `auth=<connection name>`.
|
|
9
|
+
the project default, add `auth=<connection name>`. A review takes about 15 minutes. For a longer
|
|
10
|
+
one that tries harder to break the change, comment `@ripplo review deep`. Your repository holds no
|
|
11
|
+
workflow files.
|
|
10
12
|
|
|
11
13
|
## Setup
|
|
12
14
|
|
|
@@ -30,7 +32,7 @@ npx ripplo setup # connect this repository to Ripplo
|
|
|
30
32
|
npx ripplo setup --app-url <url> --sign-in-page <path> --redirect-uri <url> # same, without prompts
|
|
31
33
|
npx ripplo login # sign in through your browser
|
|
32
34
|
npx ripplo logout # remove the saved token
|
|
33
|
-
npx ripplo review <codeReviewId> # issues of the
|
|
35
|
+
npx ripplo review <codeReviewId> # open issues of the review (JSON)
|
|
34
36
|
npx ripplo explain <runId> # failures per step with nearby evidence (JSON)
|
|
35
37
|
npx ripplo snapshot <runId> --offset <ms> # PNG and rrweb-tagged HTML of that frame
|
|
36
38
|
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var il=Object.defineProperty,nl=(s,e,t)=>e in s?il(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,b=(s,e,t)=>nl(s,typeof e!="symbol"?e+"":e,t),Fi,ol=Object.defineProperty,al=(s,e,t)=>e in s?ol(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Ui=(s,e,t)=>al(s,typeof e!="symbol"?e+"":e,t),M=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(M||{}),Bi={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Wi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ot={},ll=()=>!!globalThis.Zone;function li(s){if(Ot[s])return Ot[s];let e=globalThis[s],t=e.prototype,r=s in Bi?Bi[s]:void 0,i=!!(r&&r.every(a=>{var l,u;return!!((u=(l=Object.getOwnPropertyDescriptor(t,a))==null?void 0:l.get)!=null&&u.toString().includes("[native code]"))})),n=s in Wi?Wi[s]:void 0,o=!!(n&&n.every(a=>{var l;return typeof t[a]=="function"&&((l=t[a])==null?void 0:l.toString().includes("[native code]"))}));if(i&&o&&!ll())return Ot[s]=e.prototype,e.prototype;try{let a=document.createElement("iframe");document.body.appendChild(a);let l=a.contentWindow;if(!l)return e.prototype;let u=l[s].prototype;return document.body.removeChild(a),u?Ot[s]=u:t}catch{return t}}var Yr={};function Se(s,e,t){var r;let i=`${s}.${String(t)}`;if(Yr[i])return Yr[i].call(e);let n=li(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Yr[i]=o,o.call(e)):e[t]}var Hr={};function Qn(s,e,t){let r=`${s}.${String(t)}`;if(Hr[r])return Hr[r].bind(e);let n=li(s)[t];return typeof n!="function"?e[t]:(Hr[r]=n,n.bind(e))}function ul(s){return Se("Node",s,"ownerDocument")}function cl(s){return Se("Node",s,"childNodes")}function hl(s){return Se("Node",s,"parentNode")}function fl(s){return Se("Node",s,"parentElement")}function dl(s){return Se("Node",s,"textContent")}function pl(s,e){return Qn("Node",s,"contains")(e)}function ml(s){return Qn("Node",s,"getRootNode")()}function gl(s){return!s||!("host"in s)?null:Se("ShadowRoot",s,"host")}function yl(s){return s.styleSheets}function wl(s){return!s||!("shadowRoot"in s)?null:Se("Element",s,"shadowRoot")}function bl(s,e){return Se("Element",s,"querySelector")(e)}function Sl(s,e){return Se("Element",s,"querySelectorAll")(e)}function vl(){return li("MutationObserver").constructor}function Cl(s,e,t){try{if(!(e in s))return()=>{};let r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch{return()=>{}}}var Q={ownerDocument:ul,childNodes:cl,parentNode:hl,parentElement:fl,textContent:dl,contains:pl,getRootNode:ml,host:gl,styleSheets:yl,shadowRoot:wl,querySelector:bl,querySelectorAll:Sl,mutationObserver:vl,patch:Cl};function ui(s){return s.nodeType===s.ELEMENT_NODE}function at(s){let e=s&&"host"in s&&"mode"in s&&Q.host(s)||null;return!!(e&&"shadowRoot"in e&&Q.shadowRoot(e)===s)}function lt(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Il(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function El(s){let{cssText:e}=s;if(e.split('"').length<3)return e;let t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function ls(s){try{let e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&(t=s.ownerNode.baseURI);let r=Array.from(e,i=>qn(i,t)).join("");return Il(r)}catch{return null}}function qn(s,e){if(Ml(s)){let t;try{t=ls(s.styleSheet)||El(s)}catch{t=s.cssText}return s.styleSheet.href?lr(t,s.styleSheet.href):t}else{let t=s.cssText;return Nl(s)&&s.selectorText.includes(":")&&(t=xl(t)),e?lr(t,e):t}}function xl(s){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Ml(s){return"styleSheet"in s}function Nl(s){return"selectorText"in s}var ft=class{constructor(){Ui(this,"idNodeMap",new Map),Ui(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?((t=this.getMeta(e))==null?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function eo(){return new ft}function or({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"",a=r&&xe(r);return(e[t.toLowerCase()]||a&&e[a])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function xe(s){return s.toLowerCase()}var zi="__rrweb_original__";function Rl(s){let e=s.getContext("2d");if(!e)return!0;let t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){let n=e.getImageData,o=zi in n?n[zi]:n;if(new Uint32Array(o.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function Al(s,e){return!s||!e||s.type!==e.type?!1:s.type===M.Document?s.compatMode===e.compatMode:s.type===M.DocumentType?s.name===e.name&&s.publicId===e.publicId&&s.systemId===e.systemId:s.type===M.Comment||s.type===M.Text||s.type===M.CDATA?s.textContent===e.textContent:s.type===M.Element?s.tagName===e.tagName&&JSON.stringify(s.attributes)===JSON.stringify(e.attributes)&&s.isSVG===e.isSVG&&s.needBlock===e.needBlock:!1}function ar(s){let e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?xe(e):null}function ci(s,e){let t;try{t=new URL(s,e??window.location.href)}catch{return null}let r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return i?.[1]??null}function Ol(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}var Dl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Tl=/^(?:[a-z+]+:)?\/\//i,_l=/^www\..*/i,kl=/^(data:)([^,]*),(.*)/i;function lr(s,e){return(s||"").replace(Dl,(t,r,i,n,o,a)=>{let l=i||o||a,u=r||n||"";if(!l)return t;if(Tl.test(l)||_l.test(l))return`url(${u}${l}${u})`;if(kl.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${Ol(e)+l}${u})`;let c=e.split("/"),h=l.split("/");c.pop();for(let f of h)f!=="."&&(f===".."?c.pop():c.push(f));return`url(${u}${c.join("/")}${u})`})}function Dt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function $l(s,e,t=!1){let r=Array.from(e.childNodes),i=[],n=0;if(r.length>1&&s&&typeof s=="string"){let o=Dt(s,t),a=o.length/s.length;for(let l=1;l<r.length;l++)if(r[l].textContent&&typeof r[l].textContent=="string"){let u=Dt(r[l].textContent,t),c=100,h=3;for(;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,h),1)!==-1);h++);for(;h<u.length;h++){let f=u.substring(0,h),g=o.split(f),p=-1;if(g.length===2)p=g[0].length;else if(g.length>2&&g[0]===""&&r[l-1].textContent!=="")p=o.indexOf(f,1);else if(g.length===1){if(f=f.substring(0,f.length-1),g=o.split(f),g.length<=1)return i.push(s),i;h=c+1}else h===u.length-1&&(p=o.indexOf(f));if(g.length>=2&&h>c){let m=r[l-1].textContent;if(m&&typeof m=="string"){let d=Dt(m).length;p=o.indexOf(f,d)}p===-1&&(p=g[0].length)}if(p!==-1){let m=Math.floor(p/a);for(;m>0&&m<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;let d=Dt(s.substring(0,m),t);if(d.length===p){i.push(s.substring(0,m)),s=s.substring(m),o=o.substring(p);break}else d.length<p?m+=Math.max(1,Math.floor((p-d.length)/a)):m-=Math.max(1,Math.floor((d.length-p)*a))}break}}}}return i.push(s),i}function Pl(s,e){return $l(s,e).join("/* rr_split */")}var Ll=1,Fl=new RegExp("[^a-z0-9-_:]"),dt=-2;function to(){return Ll++}function Ul(s){if(s instanceof HTMLFormElement)return"form";let e=xe(s.tagName);return Fl.test(e)?"div":e}var Pe,Vi,Bl=/^[^ \t\n\r\u000c]+/,Wl=/^[, \t\n\r\u000c]+/;function zl(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o,a=n.exec(e.substring(t));return a?(o=a[0],t+=o.length,o):""}let i=[];for(;r(Wl),!(t>=e.length);){let n=r(Bl);if(n.slice(-1)===",")n=Be(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=Be(s,n);let a=!1;for(;;){let l=e.charAt(t);if(l===""){i.push((n+o).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){t+=1,i.push((n+o).trim());break}else l==="("&&(a=!0);o+=l,t+=1}}}return i.join(", ")}var Gi=new WeakMap;function Be(s,e){return!e||e.trim()===""?e:hi(s,e)}function Vl(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function hi(s,e){let t=Gi.get(s);if(t||(t=s.createElement("a"),Gi.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function ro(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&["table","td","th"].includes(e)?Be(s,r):t==="srcset"?zl(s,r):t==="style"?lr(r,hi(s)):e==="object"&&t==="data"?Be(s,r):r)}function so(s,e,t){return["video","audio"].includes(s)&&e==="autoplay"}function Gl(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){let i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch{}return!1}function ur(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?ur(Q.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){let i=s.classList[r];if(e.test(i))return!0}return t?ur(Q.parentNode(s),e,t):!1}function io(s,e,t,r){let i;if(ui(s)){if(i=s,!Q.childNodes(i).length)return!1}else{if(Q.parentElement(s)===null)return!1;i=Q.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(ur(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch{}return!1}function jl(s,e,t){let r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch{return}if(n!=="complete"){let a=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(a),i=!0,e()});return}let o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function Yl(s,e,t){let r=!1,i;try{i=s.sheet}catch{return}if(i)return;let n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Hl(s,e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:o,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:f,recordCanvas:g,keepIframeSrcFn:p,newlyAddedElement:m=!1,cssCaptured:d=!1}=e,y=Zl(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:M.Document,childNodes:[],compatMode:s.compatMode}:{type:M.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:M.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:y};case s.ELEMENT_NODE:return Jl(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:l,maskInputFn:c,dataURLOptions:h,inlineImages:f,recordCanvas:g,keepIframeSrcFn:p,newlyAddedElement:m,rootId:y});case s.TEXT_NODE:return Xl(s,{doc:t,needsMask:o,maskTextFn:u,rootId:y,cssCaptured:d});case s.CDATA_SECTION_NODE:return{type:M.CDATA,textContent:"",rootId:y};case s.COMMENT_NODE:return{type:M.Comment,textContent:Q.textContent(s)||"",rootId:y};default:return!1}}function Zl(s,e){if(!e.hasNode(s))return;let t=e.getId(s);return t===1?void 0:t}function Xl(s,e){let{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,o=Q.parentNode(s),a=o&&o.tagName,l="",u=a==="STYLE"?!0:void 0,c=a==="SCRIPT"?!0:void 0;return c?l="SCRIPT_PLACEHOLDER":n||(l=Q.textContent(s),u&&l&&(l=lr(l,hi(e.doc)))),!u&&!c&&l&&t&&(l=r?r(l,Q.parentElement(s)):l.replace(/[\S]/g,"*")),{type:M.Text,textContent:l||"",rootId:i}}function Jl(s,e){let{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:a,dataURLOptions:l={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:g}=e,p=Gl(s,r,i),m=Ul(s),d={},y=s.attributes.length;for(let w=0;w<y;w++){let v=s.attributes[w];so(m,v.name,v.value)||(d[v.name]=ro(t,m,xe(v.name),v.value))}if(m==="link"&&n){let w=Array.from(t.styleSheets).find(x=>x.href===s.href),v=null;w&&(v=ls(w)),v&&(delete d.rel,delete d.href,d._cssText=v)}if(m==="style"&&s.sheet){let w=ls(s.sheet);w&&(s.childNodes.length>1&&(w=Pl(w,s)),d._cssText=w)}if(["input","textarea","select"].includes(m)){let w=s.value,v=s.checked;d.type!=="radio"&&d.type!=="checkbox"&&d.type!=="submit"&&d.type!=="button"&&w?d.value=or({element:s,type:ar(s),tagName:m,value:w,maskInputOptions:o,maskInputFn:a}):v&&(d.checked=v)}if(m==="option"&&(s.selected&&!o.select?d.selected=!0:delete d.selected),m==="dialog"&&s.open&&(d.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),m==="canvas"&&c){if(s.__context==="2d")Rl(s)||(d.rr_dataURL=s.toDataURL(l.type,l.quality));else if(!("__context"in s)){let w=s.toDataURL(l.type,l.quality),v=t.createElement("canvas");v.width=s.width,v.height=s.height;let x=v.toDataURL(l.type,l.quality);w!==x&&(d.rr_dataURL=w)}}if(m==="img"&&u){Pe||(Pe=t.createElement("canvas"),Vi=Pe.getContext("2d"));let w=s,v=w.currentSrc||w.getAttribute("src")||"<unknown-src>",x=w.crossOrigin,N=()=>{w.removeEventListener("load",N);try{Pe.width=w.naturalWidth,Pe.height=w.naturalHeight,Vi.drawImage(w,0,0),d.rr_dataURL=Pe.toDataURL(l.type,l.quality)}catch(B){if(w.crossOrigin!=="anonymous"){w.crossOrigin="anonymous",w.complete&&w.naturalWidth!==0?N():w.addEventListener("load",N);return}else console.warn(`Cannot inline img src=${v}! Error: ${B}`)}w.crossOrigin==="anonymous"&&(x?d.crossOrigin=x:w.removeAttribute("crossorigin"))};w.complete&&w.naturalWidth!==0?N():w.addEventListener("load",N)}if(["audio","video"].includes(m)){let w=d;w.rr_mediaState=s.paused?"paused":"played",w.rr_mediaCurrentTime=s.currentTime,w.rr_mediaPlaybackRate=s.playbackRate,w.rr_mediaMuted=s.muted,w.rr_mediaLoop=s.loop,w.rr_mediaVolume=s.volume}if(f||(s.scrollLeft&&(d.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(d.rr_scrollTop=s.scrollTop)),p){let{width:w,height:v}=s.getBoundingClientRect();d={class:d.class,rr_width:`${w}px`,rr_height:`${v}px`}}m==="iframe"&&!h(d.src)&&(s.contentDocument||(d.rr_src=d.src),delete d.src);let S;try{customElements.get(m)&&(S=!0)}catch{}return{type:M.Element,tagName:m,attributes:d,childNodes:[],isSVG:Vl(s)||void 0,needBlock:p,rootId:g,isCustom:S}}function W(s){return s==null?"":s.toLowerCase()}function no(s){return s===!0||s==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:s==="all",headMetaDescKeywords:s==="all",headTitleMutations:s==="all"}:s||{}}function Kl(s,e){if(e.comment&&s.type===M.Comment)return!0;if(s.type===M.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&ci(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(W(s.attributes.name).match(/^msapplication-tile(image|color)$/)||W(s.attributes.name)==="application-name"||W(s.attributes.rel)==="icon"||W(s.attributes.rel)==="apple-touch-icon"||W(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&W(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(W(s.attributes.property).match(/^(og|twitter|fb):/)||W(s.attributes.name).match(/^(og|twitter):/)||W(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(W(s.attributes.name)==="robots"||W(s.attributes.name)==="googlebot"||W(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(W(s.attributes.name)==="author"||W(s.attributes.name)==="generator"||W(s.attributes.name)==="framework"||W(s.attributes.name)==="publisher"||W(s.attributes.name)==="progid"||W(s.attributes.property).match(/^article:/)||W(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(W(s.attributes.name)==="google-site-verification"||W(s.attributes.name)==="yandex-verification"||W(s.attributes.name)==="csrf-token"||W(s.attributes.name)==="p:domain_verify"||W(s.attributes.name)==="verify-v1"||W(s.attributes.name)==="verification"||W(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function We(s,e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:f,slimDOMOptions:g,dataURLOptions:p={},inlineImages:m=!1,recordCanvas:d=!1,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:w=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:N=()=>!1,newlyAddedElement:B=!1,cssCaptured:F=!1}=e,{needsMask:Y}=e,{preserveWhiteSpace:K=!0}=e;Y||(Y=io(s,o,a,Y===void 0));let te=Hl(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:Y,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,dataURLOptions:p,inlineImages:m,recordCanvas:d,keepIframeSrcFn:N,newlyAddedElement:B,cssCaptured:F});if(!te)return console.warn(s,"not serialized"),null;let re;r.hasNode(s)?re=r.getId(s):Kl(te,g)||!K&&te.type===M.Text&&!te.textContent.replace(/^\s+|\s+$/gm,"").length?re=dt:re=to();let A=Object.assign(te,{id:re});if(r.add(s,A),re===dt)return null;y&&y(s);let Me=!l;if(A.type===M.Element){Me=Me&&!A.needBlock,delete A.needBlock;let H=Q.shadowRoot(s);H&<(H)&&(A.isShadowHost=!0)}if((A.type===M.Document||A.type===M.Element)&&Me){g.headWhitespace&&A.type===M.Element&&A.tagName==="head"&&(K=!1);let H={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:l,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:g,dataURLOptions:p,inlineImages:m,recordCanvas:d,preserveWhiteSpace:K,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:x,keepIframeSrcFn:N,cssCaptured:!1};if(!(A.type===M.Element&&A.tagName==="textarea"&&A.attributes.value!==void 0)){A.type===M.Element&&A.attributes._cssText!==void 0&&typeof A.attributes._cssText=="string"&&(H.cssCaptured=!0);for(let oe of Array.from(Q.childNodes(s))){let se=We(oe,H);se&&A.childNodes.push(se)}}let $=null;if(ui(s)&&($=Q.shadowRoot(s)))for(let oe of Array.from(Q.childNodes($))){let se=We(oe,H);se&&(lt($)&&(se.isShadow=!0),A.childNodes.push(se))}}let Ne=Q.parentNode(s);return Ne&&at(Ne)&<(Ne)&&(A.isShadow=!0),A.type===M.Element&&A.tagName==="iframe"&&jl(s,()=>{let H=s.contentDocument;if(H&&S){let $=We(H,{doc:H,mirror:r,blockClass:i,blockSelector:n,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:g,dataURLOptions:p,inlineImages:m,recordCanvas:d,preserveWhiteSpace:K,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:x,keepIframeSrcFn:N});$&&S(s,$)}},w),A.type===M.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&ci(A.attributes.href)==="css")&&Yl(s,()=>{if(v){let H=We(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:g,dataURLOptions:p,inlineImages:m,recordCanvas:d,preserveWhiteSpace:K,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:x,keepIframeSrcFn:N});H&&v(s,H)}},x),A}function Ql(s,e){let{mirror:t=new ft,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:f,slimDOM:g=!1,dataURLOptions:p,preserveWhiteSpace:m,onSerialize:d,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:v,keepIframeSrcFn:x=()=>!1}=e||{},N=c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c===!1?{password:!0}:c,B=no(g);return We(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:N,maskTextFn:h,maskInputFn:f,slimDOMOptions:B,dataURLOptions:p,inlineImages:l,recordCanvas:u,preserveWhiteSpace:m,onSerialize:d,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:v,keepIframeSrcFn:x,newlyAddedElement:!1})}var ql=/(max|min)-device-(width|height)/,ji=new RegExp(ql.source,"g"),eu={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(s){s.params.match(ji)&&(s.params=s.params.replace(ji,"$1-$2"))}}}},tu={postcssPlugin:"postcss-hover-classes",prepare:function(){let s=[];return{Rule:function(e){s.indexOf(e)===-1&&(s.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
|
|
2
|
-
`+t.replace(/:hover/g,"
|
|
1
|
+
"use strict";(()=>{var il=Object.defineProperty,nl=(s,e,t)=>e in s?il(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,b=(s,e,t)=>nl(s,typeof e!="symbol"?e+"":e,t),Fi,ol=Object.defineProperty,al=(s,e,t)=>e in s?ol(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Ui=(s,e,t)=>al(s,typeof e!="symbol"?e+"":e,t),M=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(M||{}),Bi={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Wi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ot={},ll=()=>!!globalThis.Zone;function li(s){if(Ot[s])return Ot[s];let e=globalThis[s],t=e.prototype,r=s in Bi?Bi[s]:void 0,i=!!(r&&r.every(a=>{var l,u;return!!((u=(l=Object.getOwnPropertyDescriptor(t,a))==null?void 0:l.get)!=null&&u.toString().includes("[native code]"))})),n=s in Wi?Wi[s]:void 0,o=!!(n&&n.every(a=>{var l;return typeof t[a]=="function"&&((l=t[a])==null?void 0:l.toString().includes("[native code]"))}));if(i&&o&&!ll())return Ot[s]=e.prototype,e.prototype;try{let a=document.createElement("iframe");document.body.appendChild(a);let l=a.contentWindow;if(!l)return e.prototype;let u=l[s].prototype;return document.body.removeChild(a),u?Ot[s]=u:t}catch{return t}}var Yr={};function Se(s,e,t){var r;let i=`${s}.${String(t)}`;if(Yr[i])return Yr[i].call(e);let n=li(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Yr[i]=o,o.call(e)):e[t]}var Hr={};function Qn(s,e,t){let r=`${s}.${String(t)}`;if(Hr[r])return Hr[r].bind(e);let n=li(s)[t];return typeof n!="function"?e[t]:(Hr[r]=n,n.bind(e))}function ul(s){return Se("Node",s,"ownerDocument")}function cl(s){return Se("Node",s,"childNodes")}function hl(s){return Se("Node",s,"parentNode")}function fl(s){return Se("Node",s,"parentElement")}function dl(s){return Se("Node",s,"textContent")}function pl(s,e){return Qn("Node",s,"contains")(e)}function ml(s){return Qn("Node",s,"getRootNode")()}function gl(s){return!s||!("host"in s)?null:Se("ShadowRoot",s,"host")}function yl(s){return s.styleSheets}function wl(s){return!s||!("shadowRoot"in s)?null:Se("Element",s,"shadowRoot")}function bl(s,e){return Se("Element",s,"querySelector")(e)}function Sl(s,e){return Se("Element",s,"querySelectorAll")(e)}function vl(){return li("MutationObserver").constructor}function Cl(s,e,t){try{if(!(e in s))return()=>{};let r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch{return()=>{}}}var Q={ownerDocument:ul,childNodes:cl,parentNode:hl,parentElement:fl,textContent:dl,contains:pl,getRootNode:ml,host:gl,styleSheets:yl,shadowRoot:wl,querySelector:bl,querySelectorAll:Sl,mutationObserver:vl,patch:Cl};function ui(s){return s.nodeType===s.ELEMENT_NODE}function at(s){let e=s&&"host"in s&&"mode"in s&&Q.host(s)||null;return!!(e&&"shadowRoot"in e&&Q.shadowRoot(e)===s)}function lt(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Il(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function El(s){let{cssText:e}=s;if(e.split('"').length<3)return e;let t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function ls(s){try{let e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&(t=s.ownerNode.baseURI);let r=Array.from(e,i=>qn(i,t)).join("");return Il(r)}catch{return null}}function qn(s,e){if(Ml(s)){let t;try{t=ls(s.styleSheet)||El(s)}catch{t=s.cssText}return s.styleSheet.href?lr(t,s.styleSheet.href):t}else{let t=s.cssText;return Nl(s)&&s.selectorText.includes(":")&&(t=xl(t)),e?lr(t,e):t}}function xl(s){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Ml(s){return"styleSheet"in s}function Nl(s){return"selectorText"in s}var ft=class{constructor(){Ui(this,"idNodeMap",new Map),Ui(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?((t=this.getMeta(e))==null?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function eo(){return new ft}function or({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"",a=r&&xe(r);return(e[t.toLowerCase()]||a&&e[a])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function xe(s){return s.toLowerCase()}var zi="__rrweb_original__";function Rl(s){let e=s.getContext("2d");if(!e)return!0;let t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){let n=e.getImageData,o=zi in n?n[zi]:n;if(new Uint32Array(o.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function Al(s,e){return!s||!e||s.type!==e.type?!1:s.type===M.Document?s.compatMode===e.compatMode:s.type===M.DocumentType?s.name===e.name&&s.publicId===e.publicId&&s.systemId===e.systemId:s.type===M.Comment||s.type===M.Text||s.type===M.CDATA?s.textContent===e.textContent:s.type===M.Element?s.tagName===e.tagName&&JSON.stringify(s.attributes)===JSON.stringify(e.attributes)&&s.isSVG===e.isSVG&&s.needBlock===e.needBlock:!1}function ar(s){let e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?xe(e):null}function ci(s,e){let t;try{t=new URL(s,e??window.location.href)}catch{return null}let r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return i?.[1]??null}function Ol(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}var Dl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Tl=/^(?:[a-z+]+:)?\/\//i,_l=/^www\..*/i,kl=/^(data:)([^,]*),(.*)/i;function lr(s,e){return(s||"").replace(Dl,(t,r,i,n,o,a)=>{let l=i||o||a,u=r||n||"";if(!l)return t;if(Tl.test(l)||_l.test(l))return`url(${u}${l}${u})`;if(kl.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${Ol(e)+l}${u})`;let c=e.split("/"),h=l.split("/");c.pop();for(let f of h)f!=="."&&(f===".."?c.pop():c.push(f));return`url(${u}${c.join("/")}${u})`})}function Dt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function $l(s,e,t=!1){let r=Array.from(e.childNodes),i=[],n=0;if(r.length>1&&s&&typeof s=="string"){let o=Dt(s,t),a=o.length/s.length;for(let l=1;l<r.length;l++)if(r[l].textContent&&typeof r[l].textContent=="string"){let u=Dt(r[l].textContent,t),c=100,h=3;for(;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,h),1)!==-1);h++);for(;h<u.length;h++){let f=u.substring(0,h),g=o.split(f),p=-1;if(g.length===2)p=g[0].length;else if(g.length>2&&g[0]===""&&r[l-1].textContent!=="")p=o.indexOf(f,1);else if(g.length===1){if(f=f.substring(0,f.length-1),g=o.split(f),g.length<=1)return i.push(s),i;h=c+1}else h===u.length-1&&(p=o.indexOf(f));if(g.length>=2&&h>c){let m=r[l-1].textContent;if(m&&typeof m=="string"){let d=Dt(m).length;p=o.indexOf(f,d)}p===-1&&(p=g[0].length)}if(p!==-1){let m=Math.floor(p/a);for(;m>0&&m<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;let d=Dt(s.substring(0,m),t);if(d.length===p){i.push(s.substring(0,m)),s=s.substring(m),o=o.substring(p);break}else d.length<p?m+=Math.max(1,Math.floor((p-d.length)/a)):m-=Math.max(1,Math.floor((d.length-p)*a))}break}}}}return i.push(s),i}function Pl(s,e){return $l(s,e).join("/* rr_split */")}var Ll=1,Fl=new RegExp("[^a-z0-9-_:]"),dt=-2;function to(){return Ll++}function Ul(s){if(s instanceof HTMLFormElement)return"form";let e=xe(s.tagName);return Fl.test(e)?"div":e}var Pe,Vi,Bl=/^[^ \t\n\r\u000c]+/,Wl=/^[, \t\n\r\u000c]+/;function zl(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o,a=n.exec(e.substring(t));return a?(o=a[0],t+=o.length,o):""}let i=[];for(;r(Wl),!(t>=e.length);){let n=r(Bl);if(n.slice(-1)===",")n=Be(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=Be(s,n);let a=!1;for(;;){let l=e.charAt(t);if(l===""){i.push((n+o).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){t+=1,i.push((n+o).trim());break}else l==="("&&(a=!0);o+=l,t+=1}}}return i.join(", ")}var Gi=new WeakMap;function Be(s,e){return!e||e.trim()===""?e:hi(s,e)}function Vl(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function hi(s,e){let t=Gi.get(s);if(t||(t=s.createElement("a"),Gi.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function ro(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&["table","td","th"].includes(e)?Be(s,r):t==="srcset"?zl(s,r):t==="style"?lr(r,hi(s)):e==="object"&&t==="data"?Be(s,r):r)}function so(s,e,t){return["video","audio"].includes(s)&&e==="autoplay"}function Gl(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){let i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch{}return!1}function ur(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?ur(Q.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){let i=s.classList[r];if(e.test(i))return!0}return t?ur(Q.parentNode(s),e,t):!1}function io(s,e,t,r){let i;if(ui(s)){if(i=s,!Q.childNodes(i).length)return!1}else{if(Q.parentElement(s)===null)return!1;i=Q.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(ur(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch{}return!1}function jl(s,e,t){let r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch{return}if(n!=="complete"){let a=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(a),i=!0,e()});return}let o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function Yl(s,e,t){let r=!1,i;try{i=s.sheet}catch{return}if(i)return;let n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Hl(s,e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:o,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:f,recordCanvas:g,keepIframeSrcFn:p,newlyAddedElement:m=!1,cssCaptured:d=!1}=e,y=Zl(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:M.Document,childNodes:[],compatMode:s.compatMode}:{type:M.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:M.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:y};case s.ELEMENT_NODE:return Jl(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:l,maskInputFn:c,dataURLOptions:h,inlineImages:f,recordCanvas:g,keepIframeSrcFn:p,newlyAddedElement:m,rootId:y});case s.TEXT_NODE:return Xl(s,{doc:t,needsMask:o,maskTextFn:u,rootId:y,cssCaptured:d});case s.CDATA_SECTION_NODE:return{type:M.CDATA,textContent:"",rootId:y};case s.COMMENT_NODE:return{type:M.Comment,textContent:Q.textContent(s)||"",rootId:y};default:return!1}}function Zl(s,e){if(!e.hasNode(s))return;let t=e.getId(s);return t===1?void 0:t}function Xl(s,e){let{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,o=Q.parentNode(s),a=o&&o.tagName,l="",u=a==="STYLE"?!0:void 0,c=a==="SCRIPT"?!0:void 0;return c?l="SCRIPT_PLACEHOLDER":n||(l=Q.textContent(s),u&&l&&(l=lr(l,hi(e.doc)))),!u&&!c&&l&&t&&(l=r?r(l,Q.parentElement(s)):l.replace(/[\S]/g,"*")),{type:M.Text,textContent:l||"",rootId:i}}function Jl(s,e){let{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:a,dataURLOptions:l={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:g}=e,p=Gl(s,r,i),m=Ul(s),d={},y=s.attributes.length;for(let w=0;w<y;w++){let v=s.attributes[w];so(m,v.name,v.value)||(d[v.name]=ro(t,m,xe(v.name),v.value))}if(m==="link"&&n){let w=Array.from(t.styleSheets).find(x=>x.href===s.href),v=null;w&&(v=ls(w)),v&&(delete d.rel,delete d.href,d._cssText=v)}if(m==="style"&&s.sheet){let w=ls(s.sheet);w&&(s.childNodes.length>1&&(w=Pl(w,s)),d._cssText=w)}if(["input","textarea","select"].includes(m)){let w=s.value,v=s.checked;d.type!=="radio"&&d.type!=="checkbox"&&d.type!=="submit"&&d.type!=="button"&&w?d.value=or({element:s,type:ar(s),tagName:m,value:w,maskInputOptions:o,maskInputFn:a}):v&&(d.checked=v)}if(m==="option"&&(s.selected&&!o.select?d.selected=!0:delete d.selected),m==="dialog"&&s.open&&(d.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),m==="canvas"&&c){if(s.__context==="2d")Rl(s)||(d.rr_dataURL=s.toDataURL(l.type,l.quality));else if(!("__context"in s)){let w=s.toDataURL(l.type,l.quality),v=t.createElement("canvas");v.width=s.width,v.height=s.height;let x=v.toDataURL(l.type,l.quality);w!==x&&(d.rr_dataURL=w)}}if(m==="img"&&u){Pe||(Pe=t.createElement("canvas"),Vi=Pe.getContext("2d"));let w=s,v=w.currentSrc||w.getAttribute("src")||"<unknown-src>",x=w.crossOrigin,N=()=>{w.removeEventListener("load",N);try{Pe.width=w.naturalWidth,Pe.height=w.naturalHeight,Vi.drawImage(w,0,0),d.rr_dataURL=Pe.toDataURL(l.type,l.quality)}catch(B){if(w.crossOrigin!=="anonymous"){w.crossOrigin="anonymous",w.complete&&w.naturalWidth!==0?N():w.addEventListener("load",N);return}else console.warn(`Cannot inline img src=${v}! Error: ${B}`)}w.crossOrigin==="anonymous"&&(x?d.crossOrigin=x:w.removeAttribute("crossorigin"))};w.complete&&w.naturalWidth!==0?N():w.addEventListener("load",N)}if(["audio","video"].includes(m)){let w=d;w.rr_mediaState=s.paused?"paused":"played",w.rr_mediaCurrentTime=s.currentTime,w.rr_mediaPlaybackRate=s.playbackRate,w.rr_mediaMuted=s.muted,w.rr_mediaLoop=s.loop,w.rr_mediaVolume=s.volume}if(f||(s.scrollLeft&&(d.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(d.rr_scrollTop=s.scrollTop)),p){let{width:w,height:v}=s.getBoundingClientRect();d={class:d.class,rr_width:`${w}px`,rr_height:`${v}px`}}m==="iframe"&&!h(d.src)&&(s.contentDocument||(d.rr_src=d.src),delete d.src);let S;try{customElements.get(m)&&(S=!0)}catch{}return{type:M.Element,tagName:m,attributes:d,childNodes:[],isSVG:Vl(s)||void 0,needBlock:p,rootId:g,isCustom:S}}function W(s){return s==null?"":s.toLowerCase()}function no(s){return s===!0||s==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:s==="all",headMetaDescKeywords:s==="all",headTitleMutations:s==="all"}:s||{}}function Kl(s,e){if(e.comment&&s.type===M.Comment)return!0;if(s.type===M.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&ci(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(W(s.attributes.name).match(/^msapplication-tile(image|color)$/)||W(s.attributes.name)==="application-name"||W(s.attributes.rel)==="icon"||W(s.attributes.rel)==="apple-touch-icon"||W(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&W(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(W(s.attributes.property).match(/^(og|twitter|fb):/)||W(s.attributes.name).match(/^(og|twitter):/)||W(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(W(s.attributes.name)==="robots"||W(s.attributes.name)==="googlebot"||W(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(W(s.attributes.name)==="author"||W(s.attributes.name)==="generator"||W(s.attributes.name)==="framework"||W(s.attributes.name)==="publisher"||W(s.attributes.name)==="progid"||W(s.attributes.property).match(/^article:/)||W(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(W(s.attributes.name)==="google-site-verification"||W(s.attributes.name)==="yandex-verification"||W(s.attributes.name)==="csrf-token"||W(s.attributes.name)==="p:domain_verify"||W(s.attributes.name)==="verify-v1"||W(s.attributes.name)==="verification"||W(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function We(s,e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:f,slimDOMOptions:g,dataURLOptions:p={},inlineImages:m=!1,recordCanvas:d=!1,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:w=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:N=()=>!1,newlyAddedElement:B=!1,cssCaptured:F=!1}=e,{needsMask:Y}=e,{preserveWhiteSpace:K=!0}=e;Y||(Y=io(s,o,a,Y===void 0));let te=Hl(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:Y,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,dataURLOptions:p,inlineImages:m,recordCanvas:d,keepIframeSrcFn:N,newlyAddedElement:B,cssCaptured:F});if(!te)return console.warn(s,"not serialized"),null;let re;r.hasNode(s)?re=r.getId(s):Kl(te,g)||!K&&te.type===M.Text&&!te.textContent.replace(/^\s+|\s+$/gm,"").length?re=dt:re=to();let A=Object.assign(te,{id:re});if(r.add(s,A),re===dt)return null;y&&y(s);let Me=!l;if(A.type===M.Element){Me=Me&&!A.needBlock,delete A.needBlock;let H=Q.shadowRoot(s);H&<(H)&&(A.isShadowHost=!0)}if((A.type===M.Document||A.type===M.Element)&&Me){g.headWhitespace&&A.type===M.Element&&A.tagName==="head"&&(K=!1);let H={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:l,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:g,dataURLOptions:p,inlineImages:m,recordCanvas:d,preserveWhiteSpace:K,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:x,keepIframeSrcFn:N,cssCaptured:!1};if(!(A.type===M.Element&&A.tagName==="textarea"&&A.attributes.value!==void 0)){A.type===M.Element&&A.attributes._cssText!==void 0&&typeof A.attributes._cssText=="string"&&(H.cssCaptured=!0);for(let oe of Array.from(Q.childNodes(s))){let se=We(oe,H);se&&A.childNodes.push(se)}}let $=null;if(ui(s)&&($=Q.shadowRoot(s)))for(let oe of Array.from(Q.childNodes($))){let se=We(oe,H);se&&(lt($)&&(se.isShadow=!0),A.childNodes.push(se))}}let Ne=Q.parentNode(s);return Ne&&at(Ne)&<(Ne)&&(A.isShadow=!0),A.type===M.Element&&A.tagName==="iframe"&&jl(s,()=>{let H=s.contentDocument;if(H&&S){let $=We(H,{doc:H,mirror:r,blockClass:i,blockSelector:n,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:g,dataURLOptions:p,inlineImages:m,recordCanvas:d,preserveWhiteSpace:K,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:x,keepIframeSrcFn:N});$&&S(s,$)}},w),A.type===M.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&ci(A.attributes.href)==="css")&&Yl(s,()=>{if(v){let H=We(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:g,dataURLOptions:p,inlineImages:m,recordCanvas:d,preserveWhiteSpace:K,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:x,keepIframeSrcFn:N});H&&v(s,H)}},x),A}function Ql(s,e){let{mirror:t=new ft,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:f,slimDOM:g=!1,dataURLOptions:p,preserveWhiteSpace:m,onSerialize:d,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:v,keepIframeSrcFn:x=()=>!1}=e||{},N=c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c===!1?{password:!0}:c,B=no(g);return We(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:N,maskTextFn:h,maskInputFn:f,slimDOMOptions:B,dataURLOptions:p,inlineImages:l,recordCanvas:u,preserveWhiteSpace:m,onSerialize:d,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:v,keepIframeSrcFn:x,newlyAddedElement:!1})}var ql=/(max|min)-device-(width|height)/,ji=new RegExp(ql.source,"g"),eu={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(s){s.params.match(ji)&&(s.params=s.params.replace(ji,"$1-$2"))}}}},tu={postcssPlugin:"postcss-hover-classes",prepare:function(){let s=[];return{Rule:function(e){s.indexOf(e)===-1&&(s.push(e),e.selectors.forEach(function(t){/:(hover|focus-visible|focus-within|focus)(?![\w-])/.test(t)&&(e.selector+=`,
|
|
2
|
+
`+t.replace(/:(hover|focus-visible|focus-within|focus)(?![\w-])/g,".\\:$1"))}))}}}};function ru(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function su(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var fi={exports:{}},z=String,oo=function(){return{isColorSupported:!1,reset:z,bold:z,dim:z,italic:z,underline:z,inverse:z,hidden:z,strikethrough:z,black:z,red:z,green:z,yellow:z,blue:z,magenta:z,cyan:z,white:z,gray:z,bgBlack:z,bgRed:z,bgGreen:z,bgYellow:z,bgBlue:z,bgMagenta:z,bgCyan:z,bgWhite:z}};fi.exports=oo();fi.exports.createColors=oo;var iu=fi.exports,nu={},ou=Object.freeze(Object.defineProperty({__proto__:null,default:nu},Symbol.toStringTag,{value:"Module"})),ce=su(ou),Yi=iu,Hi=ce,us=class ao extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,ao)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Yi.isColorSupported),Hi&&e&&(t=Hi(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,a,l;if(e){let{bold:u,gray:c,red:h}=Yi.createColors(!0);a=f=>u(h(f)),l=f=>c(f)}else a=l=u=>u;return r.slice(i,n).map((u,c)=>{let h=i+1+c,f=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let g=l(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+u+`
|
|
3
3
|
`+g+a("^")}return" "+l(f)+u}).join(`
|
|
4
4
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
5
5
|
|