PageSourceSearch

https://www.phonepe.com/webstatic/14967/b3a13d7d-372213fcb1cde0afffb1.js

js phonepe.com collected 2026-09-24 07:27:22 UTC 141,804 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkphonepe_website=self.webpackChunkphonepe_website||[]).push([[7996],{98442:function(t,e,n){n.d(e,{e:function(){return Hn}});var s=n(86641),a=n(83741),i=n(22486),r=n(49475),o=n(16341),l=n(17412),c=n(42181),d=n(19766),u=n(6936),h=n(89092),p=n(68411),m=n(39653),f=n(89297),_=n(28880),g=n(36284);const y=o.OW,b="sentryReplaySession",w="Unable to send Replay",v=15e4,k=5e3;var S;function E(t){const e=null==t?void 0:t.host;return Boolean(e&&e.shadowRoot&&e.shadowRoot===t)}function x({maskInputOptions:t,tagName:e,type:n}){"option"===e.toLowerCase()&&(e="select");const s="string"==typeof n?n.toLowerCase():void 0;return t[e.toLowerCase()]||s&&t[s]||"password"===s||"input"===e&&!n&&t.text}function T({input:t,maskInputSelector:e,unmaskInputSelector:n,maskInputOptions:s,tagName:a,type:i,value:r,maskInputFn:o}){let l=r||"";return n&&t.matches(n)||(t.hasAttribute("data-rr-is-password")&&(i="password"),(x({maskInputOptions:s,tagName:a,type:i})||e&&t.matches(e))&&(l=o?o(l):"*".repeat(l.length))),l}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(S||(S={}));const R="__rrweb_original__";function C(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?e.toLowerCase():null}function I(t,e,n){return"string"==typeof n&&n.toLowerCase(),"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}let A=1;const D=new RegExp("[^a-z0-9-_:]");function O(t){return t?t.replace(/[\S]/g,"*"):""}function N(t){try{const e=t.rules||t.cssRules;return e?Array.from(e).map(z).join(""):null}catch(e){return null}}function z(t){let e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=N(t.styleSheet)||e}catch(n){}return M(e)}function M(t){if(t.indexOf(":")>-1){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}return t}let L,F;const U=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,B=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,P=/^(data:)([^,]*),(.*)/i;function H(t,e){return(t||"").replace(U,(t,n,s,a,i,r)=>{const o=s||i||r,l=n||a||"";if(!o)return t;if(!B.test(o))return`url(${l}${o}${l})`;if(P.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+o}${l})`;const c=e.split("/"),d=o.split("/");c.pop();for(const e of d)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}const Z=/^[^ \t\n\r\u000c]+/,G=/^[, \t\n\r\u000c]+/;function j(t,e){if(!e||""===e.trim())return e;const n=t.createElement("a");return n.href=e,n.href}function Y(){const t=document.createElement("a");return t.href="",t.href}function W(t,e,n,s,a,i,r,o){if(!a)return a;const l=s.toLowerCase(),c=n.toLowerCase();return"src"===l||"href"===l||"xlink:href"===l&&"#"!==a[0]?j(t,a):"background"!==l||"table"!==c&&"td"!==c&&"th"!==c?"srcset"===l?function(t,e){if(""===e.trim())return e;let n=0;function s(t){let s,a=t.exec(e.substring(n));return a?(s=a[0],n+=s.length,s):""}let a=[];for(;s(G),!(n>=e.length);){let i=s(Z);if(","===i.slice(-1))i=j(t,i.substring(0,i.length-1)),a.push(i);else{let s="";i=j(t,i);let r=!1;for(;;){let t=e.charAt(n);if(""===t){a.push((i+s).trim());break}if(r)")"===t&&(r=!1);else{if(","===t){n+=1,a.push((i+s).trim());break}"("===t&&(r=!0)}s+=t,n+=1}}}return a.join(", ")}(t,a):"style"===l?H(a,Y()):"object"===c&&"data"===l?j(t,a):i&&function(t,e,n,s){if(s&&t.matches(s))return!1;return["placeholder","title","aria-label"].indexOf(e)>-1||"input"===n&&"value"===e&&t.hasAttribute("type")&&["submit","button"].indexOf(t.getAttribute("type").toLowerCase())>-1}(e,l,c,r)?o?o(a):O(a):a:j(t,a)}function $(t,e,n,s,a){if(!t)return!1;
1if(t.nodeType!==t.ELEMENT_NODE)return $(t.parentNode,e,n,s,a);if(s&&(t.matches(s)||t.closest(s)))return!1;if(a)return!0;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let i=0;i<t.classList.length;i++){const n=t.classList[i];if(e.test(n))return!0}return!(!n||!t.matches(n))||$(t.parentNode,e,n,s,a)}function q(t,e){var n;const{doc:s,blockClass:a,blockSelector:i,unblockSelector:r,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:c,inlineStylesheet:d,maskInputSelector:u,unmaskInputSelector:h,maskAllText:p,maskInputOptions:m={},maskTextFn:f,maskInputFn:_,dataURLOptions:g={},inlineImages:y,recordCanvas:b,keepIframeSrcFn:w}=e;let v;if(s.__sn){const t=s.__sn.id;v=1===t?void 0:t}switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:S.Document,childNodes:[],compatMode:t.compatMode,rootId:v}:{type:S.Document,childNodes:[],rootId:v};case t.DOCUMENT_TYPE_NODE:return{type:S.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:v};case t.ELEMENT_NODE:const e=function(t,e,n,s){if(s&&t.matches(s))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let a=0;a<t.classList.length;a++){const n=t.classList[a];if(e.test(n))return!0}return!!n&&t.matches(n)}(t,a,i,r),A=function(t){if(t instanceof HTMLFormElement)return"form";const e=t.tagName.toLowerCase().trim();return D.test(e)?"div":e}(t);let z={};for(const{name:n,value:a}of Array.from(t.attributes))X(A,n)||(z[n]=W(s,t,A,n,a,p,c,f));if("link"===A&&d){const e=Array.from(s.styleSheets).find(e=>e.href===t.href);let n=null;e&&(n=N(e)),n&&(delete z.rel,delete z.href,z._cssText=H(n,e.href))}if("style"===A&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=N(t.sheet);e&&(z._cssText=H(e,Y()))}if("input"===A||"textarea"===A||"select"===A||"option"===A){const e=t,n=C(e),s=I(e,A.toUpperCase(),n),a=t.checked;"submit"!==n&&"button"!==n&&s&&(z.value=T({input:e,type:n,tagName:A,value:s,maskInputSelector:u,unmaskInputSelector:h,maskInputOptions:m,maskInputFn:_})),a&&(z.checked=a)}if("option"===A&&(t.selected&&!m.select?z.selected=!0:delete z.selected),"canvas"===A&&b)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let s=0;s<t.height;s+=50){const a=e.getImageData,i=R in a?a[R]:a;if(new Uint32Array(i.call(e,n,s,Math.min(50,t.width-n),Math.min(50,t.height-s)).data.buffer).some(t=>0!==t))return!1}return!0})(t)||(z.rr_dataURL=t.toDataURL(g.type,g.quality));else if(!("__context"in t)){const e=t.toDataURL(g.type,g.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height;e!==n.toDataURL(g.type,g.quality)&&(z.rr_dataURL=e)}if("img"===A&&y){L||(L=s.createElement("canvas"),F=L.getContext("2d"));const e=t,n=e.crossOrigin;e.crossOrigin="anonymous";const a=()=>{try{L.width=e.naturalWidth,L.height=e.naturalHeight,F.drawImage(e,0,0),z.rr_dataURL=L.toDataURL(g.type,g.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}n?z.crossOrigin=n:delete z.crossOrigin};e.complete&&0!==e.naturalWidth?a():e.onload=a}if("audio"!==A&&"video"!==A||(z.rr_mediaState=t.paused?"paused":"played",z.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(z.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(z.rr_scrollTop=t.scrollTop),e){const{width:e,height:n}=t.getBoundingClientRect();z={class:z.class,rr_width:`${e}px`,rr_height:`${n}px`}}return"iframe"!==A||w(z.src)||(t.contentDocument||(z.rr_src=z.src),delete z.src),{type:S.Element,tagName:A,attributes:z,childNodes:[],isSVG:(E=t,Boolean("svg"===E.tagName||E.ownerSVGElement)||void 0),needBlock:e,rootId:v};case t.TEXT_NODE:const U=t.parentNode&&t.parentNode.tagName;let B=t.textContent;const P="STYLE"===U||void 0,Z="SCRIPT"===U||void 0;if(P&&B){try{t.nextSibling||t.previousSibling||(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(B=(k=t.parentNode.sheet).cssRules?Array.from(k.cssRules).map(t=>t.cssText?M(t.cssText):"").join(""):"")}catch(x){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${x}`,t)}B=H(B,Y())}if(Z&&(B="SCRIPT_PLACEHOLDER"),"TEXTAREA"===U&&B)B="";else if("OPTION"===U&&B){B=T({input:t.parentNode,type:null,tagName:U,value:B,maskInputSelector:u,unmaskInputSelector:h,maskInputOptions:m,maskInputFn:_})}else!P&&!Z&&$(t,o,l,c,p)&&B&&(B=f?f(B):O(B));return{type:S.Text,textContent:B||"",isStyle:P,rootId:v};case t.CDATA_SECTION_NODE:return{type:S.CDATA,textContent:"",rootId:v};case t.COMMENT_NODE:return{type:S.Comment,textContent:t.textContent||"",rootId:v};default:return!1}var k,E}function K(t){return null==t?"":t.toLowerCase()}function V(t,e){const{doc:n,map:s,blockClass:a,blockSelector:i,unblockSelector:r,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:c,skipChild:d=!1,inl
1ineStylesheet:u=!0,maskInputSelector:h,unmaskInputSelector:p,maskAllText:m,maskInputOptions:f={},maskTextFn:_,maskInputFn:g,slimDOMOptions:y,dataURLOptions:b={},inlineImages:w=!1,recordCanvas:v=!1,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:T=5e3,keepIframeSrcFn:R=()=>!1}=e;let{preserveWhiteSpace:C=!0}=e;const I=q(t,{doc:n,blockClass:a,blockSelector:i,unblockSelector:r,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:c,inlineStylesheet:u,maskInputSelector:h,unmaskInputSelector:p,maskAllText:m,maskInputOptions:f,maskTextFn:_,maskInputFn:g,dataURLOptions:b,inlineImages:w,recordCanvas:v,keepIframeSrcFn:R});if(!I)return console.warn(t,"not serialized"),null;let D;D="__sn"in t?t.__sn.id:!function(t,e){if(e.comment&&t.type===S.Comment)return!0;if(t.type===S.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(K(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===K(t.attributes.name)||"icon"===K(t.attributes.rel)||"apple-touch-icon"===K(t.attributes.rel)||"shortcut icon"===K(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&K(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(K(t.attributes.property).match(/^(og|twitter|fb):/)||K(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===K(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===K(t.attributes.name)||"googlebot"===K(t.attributes.name)||"bingbot"===K(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===K(t.attributes.name)||"generator"===K(t.attributes.name)||"framework"===K(t.attributes.name)||"publisher"===K(t.attributes.name)||"progid"===K(t.attributes.name)||K(t.attributes.property).match(/^article:/)||K(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===K(t.attributes.name)||"yandex-verification"===K(t.attributes.name)||"csrf-token"===K(t.attributes.name)||"p:domain_verify"===K(t.attributes.name)||"verify-v1"===K(t.attributes.name)||"verification"===K(t.attributes.name)||"shopify-checkout-api-token"===K(t.attributes.name)))return!0}}return!1}(I,y)&&(C||I.type!==S.Text||I.isStyle||I.textContent.replace(/^\s+|\s+$/gm,"").length)?A++:-2;const O=Object.assign(I,{id:D});if(t.__sn=O,-2===D)return null;s[D]=t,k&&k(t);let N=!d;if(O.type===S.Element&&(N=N&&!O.needBlock,delete O.needBlock,t.shadowRoot&&(O.isShadowHost=!0)),(O.type===S.Document||O.type===S.Element)&&N){y.headWhitespace&&I.type===S.Element&&"head"===I.tagName&&(C=!1);const e={doc:n,map:s,blockClass:a,blockSelector:i,unblockSelector:r,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:c,skipChild:d,inlineStylesheet:u,maskInputSelector:h,unmaskInputSelector:p,maskAllText:m,maskInputOptions:f,maskTextFn:_,maskInputFn:g,slimDOMOptions:y,dataURLOptions:b,inlineImages:w,recordCanvas:v,preserveWhiteSpace:C,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:T,keepIframeSrcFn:R};for(const n of Array.from(t.childNodes)){const t=V(n,e);t&&O.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const t=V(n,e);t&&(t.isShadow=!0,O.childNodes.push(t))}}return t.parentNode&&E(t.parentNode)&&(O.isShadow=!0),O.type===S.Element&&"iframe"===O.tagName&&function(t,e,n){const s=t.contentWindow;if(!s)return;let a,i=!1;try{a=s.document.readyState}catch(o){return}if("complete"!==a){const s=setTimeout(()=>{i||(e(),i=!0)},n);return void t.addEventListener("load",()=>{clearTimeout(s),i=!0,e()})}const r="about:blank";s.location.href===r&&t.src!==r&&""!==t.src?t.addEventListener("load",e):setTimeout(e,0)}(t,()=>{const e=t.contentDocument;if(e&&x){const n=V(e,{doc:e,map:s,blockClass:a,blockSelector:i,unblockSelector:r,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:u,maskInputSelector:h,unmaskInputSelector:p,maskAllText:m,maskInputOptions:f,maskTextFn:_,maskInputFn:g,slimDOMOptions:y,dataURLOptions:b,inlineImages:w,recordCanvas:v,preserveWhiteSpace:C,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:T,keepIframeSrcFn:R});n&&x(t,n)}},T),O}function X(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}var J,Q,tt,et,nt,st;function at(t,e,n=document){const s={capture:!0,passive:!0};return n.addEventListener(t,e,s),()=>n.removeEventListener(t,e,s)}!function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"}(J||(J={})),function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.In
1put=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration"}(Q||(Q={})),function(t){t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel"}(tt||(tt={})),function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"}(et||(et={})),function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"}(nt||(nt={})),function(t){t.Start="start",t.Pause="pause",t.Resume="resume",t.Resize="resize",t.Finish="finish",t.FullsnapshotRebuilded="fullsnapshot-rebuilded",t.LoadStylesheetStart="load-stylesheet-start",t.LoadStylesheetEnd="load-stylesheet-end",t.SkipStart="skip-start",t.SkipEnd="skip-end",t.MouseInteraction="mouse-interaction",t.EventCast="event-cast",t.CustomEvent="custom-event",t.Flush="flush",t.StateChange="state-change",t.PlayBack="play-back"}(st||(st={}));const it="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let rt={map:{},getId(){return console.error(it),-1},getNode(){return console.error(it),null},removeNodeFromMap(){console.error(it)},has(){return console.error(it),!1},reset(){console.error(it)}};function ot(t,e,n={}){let s=null,a=0;return function(i){let r=Date.now();a||!1!==n.leading||(a=r);let o=e-(r-a),l=this,c=arguments;o<=0||o>e?(s&&(clearTimeout(s),s=null),a=r,t.apply(l,c)):s||!1===n.trailing||(s=setTimeout(()=>{a=!1===n.leading?0:Date.now(),s=null,t.apply(l,c)},o))}}function lt(t,e,n,s,a=window){const i=a.Object.getOwnPropertyDescriptor(t,e);return a.Object.defineProperty(t,e,s?n:{set(t){setTimeout(()=>{n.set.call(this,t)},0),i&&i.set&&i.set.call(this,t)}}),()=>lt(t,e,i||{},!0)}function ct(t,e,n){try{if(!(e in t))return()=>{};const s=t[e],a=n(s);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:s}})),t[e]=a,()=>{t[e]=s}}catch(s){return()=>{}}}function dt(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ut(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ht(t,e,n,s){if(!t)return!1;
1if(t.nodeType===t.ELEMENT_NODE){let a=!1;const i=s&&t.matches(s);return"string"==typeof e?a=void 0!==t.closest?!i&&null!==t.closest("."+e):!i&&t.classList.contains(e):!i&&t.classList.forEach(t=>{e.test(t)&&(a=!0)}),!a&&n&&(a=t.matches(n)),!i&&a||ht(t.parentNode,e,n,s)}return t.nodeType,t.TEXT_NODE,ht(t.parentNode,e,n,s)}function pt(t){return"__sn"in t&&-2===t.__sn.id}function mt(t,e){if(E(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||mt(t.parentNode,e))}function ft(t){return Boolean(t.changedTouches)}function _t(t){return"__sn"in t&&(t.__sn.type===S.Element&&"iframe"===t.__sn.tagName)}function gt(t){return Boolean(null==t?void 0:t.shadowRoot)}function yt(t){return"__ln"in t}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(rt=new Proxy(rt,{get(t,e,n){return"map"===e&&console.error(it),Reflect.get(t,e,n)}}));class bt{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=(null==e?void 0:e.next)||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&yt(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&yt(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next&&(e.next.previous=e.previous)):(this.head=e.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}}const wt=(t,e)=>`${t}@${e}`;function vt(t){return"__sn"in t}class kt{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new bt,n=t=>{let e=t,n=-2;for(;-2===n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},s=s=>{var a,i,r,o,l;const c=s.getRootNode?null===(a=s.getRootNode())||void 0===a?void 0:a.host:null;let d=c;for(;null===(r=null===(i=null==d?void 0:d.getRootNode)||void 0===i?void 0:i.call(d))||void 0===r?void 0:r.host;)d=(null===(l=null===(o=null==d?void 0:d.getRootNode)||void 0===o?void 0:o.call(d))||void 0===l?void 0:l.host)||null;const u=!(this.doc.contains(s)||d&&this.doc.contains(d));if(!s.parentNode||u)return;const h=E(s.parentNode)?this.mirror.getId(c):this.mirror.getId(s.parentNode),p=n(s);if(-1===h||-1===p)return e.addNode(s);let m=V(s,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{_t(t)&&this.iframeManager.addIframe(t),gt(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,document)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)}});m&&t.push({parentId:h,nextId:p,node:m})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const r of this.movedSet)Et(this.removes,r,this.mirror)&&!this.movedSet.has(r.parentNode)||s(r);for(const r of this.addedSet)xt(this.droppedSet,r)||Et(this.removes,r,this.mirror)?xt(this.movedSet,r)?s(r):this.droppedSet.add(r):s(r);let a=null;for(;e.length;){let t=null;if(a){const e=this.mirror.getId(a.value.parentNode),s=n(a.value);-1!==e&&-1!==s&&(t=a)}if(!t)for(let s=e.length-1;s>=0;s--){const a=e.get(s);if(a){const e=this.mirror.getId(a.value.parentNode),s=n(a.value);if(-1!==e&&-1!==s){t=a;break}}}if(!t){for(;e.head;)e.removeNode(e.head.value);break}a=t.previous,e.removeNode(t.value),s(t.value)}const i={texts:this.texts.map(t=>({id:this.mirror.getId(t.node),value:t.value})).filter(t=>this.mirror.has(t.id)),attributes:this.attributes.map(t=>({id:this.mirror.getId(t.node),attributes:t.attributes})).filter(t=>this.mirror.has(t.id)),removes:this.removes,adds:t};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=t=>{if(!pt(t.target))switch(t.type){case"characterData":{const e=t.target.textContent;ht(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||e===t.oldValue||this.texts.push({value:$(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const n=t.target;let s=n.getAttribute(t.attributeName);if("value"===t.attributeName&&(s=T({input:n,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:n.getAttribute("type"),value:s,maskInputFn:this.maskInputFn})),ht(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||s===t.oldValue)return;let a=this.attributes.find(e=>e.node===t.target);if(a||(a={node:t.target,attributes:{}},this.attributes.push(a)),"type"===t.attributeName&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),"style"===t.attributeName){const s=this.doc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue),void 0!==a.attributes.style&&null!==a.attributes.style||(a.attributes.style={});try{const t=a.attributes.style;for(const e of Array.from(n.style)){const a=n.style.getPropertyValue(e),i=n.style.getPropertyPriority(e);a===s.style.getPropertyValue(e)&&i===s.style.getPropertyPriority(e)||(t[e]=""===i?a:[a,i])}for(const e of Array.from(s.style))""===n.style.getPropertyValue(e)&&(t[e]=!1)}catch(e){console.warn("[rrweb] Error when parsing update to style attribute:",e)}}else{const e=t.target;a.attributes[t.attributeName]=W(this.doc,e,e.tagName,t.attributeName,s,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}
1case"childList":t.addedNodes.forEach(e=>this.genAdds(e,t.target)),t.removedNodes.forEach(e=>{const n=this.mirror.getId(e),s=E(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ht(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||pt(e)||(this.addedSet.has(e)?(St(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||mt(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[wt(n,s)]?St(this.movedSet,e):this.removes.push({parentId:s,id:n,isShadow:!!E(t.target)||void 0})),this.mapRemoves.push(e))})}},this.genAdds=(t,e)=>{if(!e||!ht(e,this.blockClass,this.blockSelector,this.unblockSelector)){if(vt(t)){if(pt(t))return;this.movedSet.add(t);let n=null;e&&vt(e)&&(n=e.__sn.id),n&&(this.movedMap[wt(t.__sn.id,n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ht(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach(t=>this.genAdds(t))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function St(t,e){t.delete(e),e.childNodes.forEach(e=>St(t,e))}function Et(t,e,n){const{parentNode:s}=e;if(!s)return!1;const a=n.getId(s);return!!t.some(t=>t.id===a)||Et(t,s,n)}function xt(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||xt(t,n))}const Tt=t=>(...e)=>{try{return t(...e)}catch(n){try{n.__rrweb__=!0}catch(s){}throw n}},Rt=[];function Ct(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(e){}return t&&t.target}function It(t,e){var n,s;const a=new kt;Rt.push(a),a.init(t);let i=window.MutationObserver||window.__rrMutationObserver;const r=null===(s=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===s?void 0:s.call(n,"MutationObserver");r&&window[r]&&(i=window[r]);const o=new i(Tt(e=>{t.onMutation&&!1===t.onMutation(e)||a.processMutations(e)}));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function At({mouseInteractionCb:t,doc:e,mirror:n,blockClass:s,blockSelector:a,unblockSelector:i,sampling:r}){if(!1===r.mouseInteraction)return()=>{};const o=!0===r.mouseInteraction||void 0===r.mouseInteraction?{}:r.mouseInteraction,l=[];return Object.keys(tt).filter(t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==o[t]).forEach(r=>{const o=r.toLowerCase(),c=Tt((e=>r=>{const o=Ct(r);if(ht(o,s,a,i))return;const l=ft(r)?r.changedTouches[0]:r;if(!l)return;const c=n.getId(o),{clientX:d,clientY:u}=l;Tt(t)({type:tt[e],id:c,x:d,y:u})})(r));l.push(at(o,c,e))}),Tt(()=>{l.forEach(t=>t())})}function Dt({scrollCb:t,doc:e,mirror:n,blockClass:s,blockSelector:a,unblockSelector:i,sampling:r}){const o=ot(r=>{const o=Ct(r);if(!o||ht(o,s,a,i))return;const l=n.getId(o);if(o===e){const n=e.scrollingElement||e.documentElement;Tt(t)({id:l,x:n.scrollLeft,y:n.scrollTop})}else Tt(t)({id:l,x:o.scrollLeft,y:o.scrollTop})},r.scroll||100);return at("scroll",Tt(o),e)}function Ot(t,e){const n=Object.assign({},t);return e||delete n.userTriggered,n}const Nt=["INPUT","TEXTAREA","SELECT"],zt=new WeakMap;function Mt({inputCb:t,doc:e,mirror:n,blockClass:s,blockSelector:a,unblockSelector:i,ignoreClass:r,ignoreSelector:o,maskInputSelector:l,unmaskInputSelector:c,maskInputOptions:d,maskInputFn:u,sampling:h,userTriggeredOnInput:p}){function m(t){let n=Ct(t);const h=n&&n.tagName,m=t.isTrusted;if("OPTION"===h&&(n=n.parentElement),!n||!h||Nt.indexOf(h)<0||ht(n,s,a,i))return;const _=n,g=C(_);if(_.classList.contains(r)||o&&_.matches(o))return;let y=I(_,h,g),b=!1;"radio"!==g&&"checkbox"!==g||(b=n.checked),function({tagName:t,type:e,maskInputOptions:n,maskInputSelector:s}){return s||x({maskInputOptions:n,tagName:t,type:e})}({maskInputOptions:d,maskInputSelector:l,tagName:h,type:g}
1)&&(y=T({input:_,maskInputOptions:d,maskInputSelector:l,unmaskInputSelector:c,tagName:h,type:g,value:y,maskInputFn:u})),f(n,Tt(Ot)({text:y,isChecked:b,userTriggered:m},p));const w=n.name;"radio"===g&&w&&b&&e.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(t=>{if(t!==n){const e=T({input:t,maskInputOptions:d,maskInputSelector:l,unmaskInputSelector:c,tagName:h,type:g,value:I(t,h,g),maskInputFn:u});f(t,Tt(Ot)({text:e,isChecked:!b,userTriggered:!1},p))}})}function f(e,s){const a=zt.get(e);if(!a||a.text!==s.text||a.isChecked!==s.isChecked){zt.set(e,s);const a=n.getId(e);t(Object.assign(Object.assign({},s),{id:a}))}}const _=("last"===h.input?["change"]:["input","change"]).map(t=>at(t,Tt(m),e)),g=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),y=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return g&&g.set&&_.push(...y.map(t=>lt(t[0],t[1],{set(){Tt(m)({target:this})}}))),Tt(()=>{_.forEach(t=>t())})}function Lt(t){return function(t,e){if(Ut("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Ut("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Ut("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Ut("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else{const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function Ft(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};!function(t,e){const{mutationCb:n,mousemoveCb:s,mouseInteractionCb:a,scrollCb:i,viewportResizeCb:r,inputCb:o,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:d,canvasMutationCb:u,fontCb:h}=t;t.mutationCb=(...t)=>{e.mutation&&e.mutation(...t),n(...t)},t.mousemoveCb=(...t)=>{e.mousemove&&e.mousemove(...t),s(...t)},t.mouseInteractionCb=(...t)=>{e.mouseInteraction&&e.mouseInteraction(...t),a(...t)},t.scrollCb=(...t)=>{e.scroll&&e.scroll(...t),i(...t)},t.viewportResizeCb=(...t)=>{e.viewportResize&&e.viewportResize(...t),r(...t)},t.inputCb=(...t)=>{e.input&&e.input(...t),o(...t)},t.mediaInteractionCb=(...t)=>{e.mediaInteaction&&e.mediaInteaction(...t),l(...t)},t.styleSheetRuleCb=(...t)=>{e.styleSheetRule&&e.styleSheetRule(...t),c(...t)},t.styleDeclarationCb=(...t)=>{e.styleDeclaration&&e.styleDeclaration(...t),d(...t)},t.canvasMutationCb=(...t)=>{e.canvasMutation&&e.canvasMutation(...t),u(...t)},t.fontCb=(...t)=>{e.font&&e.font(...t),h(...t)}}(t,e);const s=It(t,t.doc),a=function({mousemoveCb:t,sampling:e,doc:n,mirror:s}){if(!1===e.mousemove)return()=>{};const a="number"==typeof e.mousemove?e.mousemove:50,i="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let r,o=[];const l=ot(e=>{const n=Date.now()-r;Tt(t)(o.map(t=>(t.timeOffset-=n,t)),e),o=[],r=null},i),c=ot(t=>{const e=Ct(t),{clientX:n,clientY:a}=ft(t)?t.changedTouches[0]:t;r||(r=Date.now()),o.push({x:n,y:a,id:s.getId(e),timeOffset:Date.now()-r}),l("undefined"!=typeof DragEvent&&t instanceof DragEvent?Q.Drag:t instanceof MouseEvent?Q.MouseMove:Q.TouchMove)},a,{trailing:!1}),d=[at("mousemove",Tt(c),n),at("touchmove",Tt(c),n),at("drag",Tt(c),n)];return Tt(()=>{d.forEach(t=>t())})}(t),i=At(t),r=Dt(t),o=function({viewportResizeCb:t}){let e=-1,n=-1;const s=ot(()=>{const s=dt(),a=ut();e===s&&n===a||(Tt(t)({width:Number(a),height:Number(s)}),e=s,n=a)},200);return at("resize",Tt(s),window)}(t),l=Mt(t),c=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:s,mirror:a,sampling:i}){const r=r=>ot(Tt(i=>{const o=Ct(i);if(!o||ht(o,e,n,s))return;const{currentTime:l,volume:c,muted:d}=o;t({type:r,id:a.getId(o),currentTime:l,volume:c,muted:d})}),i.media||500),o=[at("play",r(0)),at("pause",r(1)),at("seeked",r(2)),at("volumechange",r(3))];return Tt(()=>{o.forEach(t=>t())})}(t),d=function({styleSheetRuleCb:t,mirror:e},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Tt((n,s,a)=>{const[i,r]=a,o=e.getId(s.ownerNode);return-1!==o&&t({id:o,adds:[{rule:i,index:r}]}),n.apply(s,a)})});const a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Tt((n,s,a)=>{const[i]=a,r=e.getId(s.ownerNode);return-1!==r&&t({id:r,removes:[{index:i}]}),n.apply(s,a)})});const i={};Bt("CSSGroupingRule")?i.CSSGroupingRule=n.CSSGroupingRule:(Bt("CSSMediaRule")&&(i.CSSMediaRule=n.CSSMediaRule),Bt("CSSConditionRule")&&(i.CSSConditionRule=n.CSSConditionRule),Bt("CSSSupportsRule")&&(i.CSSSupportsRule=n.CSSSupportsRule));const r={};
1return Object.entries(i).forEach(([n,s])=>{r[n]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(r[n].insertRule,{apply:Tt((n,s,a)=>{const[i,r]=a,o=e.getId(s.parentStyleSheet.ownerNode);return-1!==o&&t({id:o,adds:[{rule:i,index:[...Lt(s),r||0]}]}),n.apply(s,a)})}),s.prototype.deleteRule=new Proxy(r[n].deleteRule,{apply:Tt((n,s,a)=>{const[i]=a,r=e.getId(s.parentStyleSheet.ownerNode);return-1!==r&&t({id:r,removes:[{index:[...Lt(s),i]}]}),n.apply(s,a)})})}),Tt(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,Object.entries(i).forEach(([t,e])=>{e.prototype.insertRule=r[t].insertRule,e.prototype.deleteRule=r[t].deleteRule})})}(t,{win:n}),u=function({styleDeclarationCb:t,mirror:e},{win:n}){const s=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Tt((n,s,a)=>{var i,r;const[o,l,c]=a,d=e.getId(null===(r=null===(i=s.parentRule)||void 0===i?void 0:i.parentStyleSheet)||void 0===r?void 0:r.ownerNode);return-1!==d&&t({id:d,set:{property:o,value:l,priority:c},index:Lt(s.parentRule)}),n.apply(s,a)})});const a=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:Tt((n,s,a)=>{var i,r;const[o]=a,l=e.getId(null===(r=null===(i=s.parentRule)||void 0===i?void 0:i.parentStyleSheet)||void 0===r?void 0:r.ownerNode);return-1!==l&&t({id:l,remove:{property:o},index:Lt(s.parentRule)}),n.apply(s,a)})}),Tt(()=>{n.CSSStyleDeclaration.prototype.setProperty=s,n.CSSStyleDeclaration.prototype.removeProperty=a})}(t,{win:n}),h=t.collectFonts?function({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const s=[],a=new WeakMap,i=n.FontFace;n.FontFace=function(t,e,n){const s=new i(t,e,n);return a.set(s,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),s};const r=ct(e.fonts,"add",function(e){return function(n){return setTimeout(()=>{const e=a.get(n);e&&(t(e),a.delete(n))},0),e.apply(this,[n])}});return s.push(()=>{n.FontFace=i}),s.push(r),Tt(()=>{s.forEach(t=>t())})}(t):()=>{},p=[];for(const m of t.plugins)p.push(m.observer(m.callback,n,m.options));return Tt(()=>{Rt.forEach(t=>t.reset()),s.disconnect(),a(),i(),r(),o(),l(),c();try{d(),u()}catch(t){}h(),p.forEach(t=>t())})}function Ut(t){return void 0!==window[t]}function Bt(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class Pt{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){var n;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,t)}}class Ht{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const e=this;this.restorePatches.push(ct(HTMLElement.prototype,"attachShadow",function(t){return function(){const n=t.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,this.ownerDocument),n}}))}addShadowRoot(t,e){It(Object.assign(Object.assign({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),Dt(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const e=this;this.restorePatches.push(ct(t.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){const s=n.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,t.contentDocument),s}}))}}reset(){this.restorePatches.forEach(t=>t())}}for(var Zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),jt=0;jt<64;jt++)Gt[Zt.charCodeAt(jt)]=jt;const Yt=new Map;const Wt=(t,e,n)=>{if(!t||!Kt(t,e)&&"object"!=typeof t)return;const s=function(t,e){let n=Yt.get(t);return n||(n=new Map,Yt.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name);let a=s.indexOf(t);return-1===a&&(a=s.length,s.push(t)),a};function $t(t,e,n){if(t instanceof Array)return t.map(t=>$t(t,e,n));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){return{rr_type:t.constructor.name,args:[Object.values(t)]}}if(t instanceof ArrayBuffer){const e=t.constructor.name,n=function(t){var e,n=new Uint8Array(t),s=n.length,a="";for(e=0;e<s;e+=3)a+=Zt[n[e]>>2],a+=Zt[(3&n[e])<<4|n[e+1]>>4],a+=Zt[(15&n[e+1])<<2|n[e+2]>>6],a+=Zt[63&n[e+2]];return s%3==2?a=a.substring(0,a.length-1)+"=":s%3==1&&(a=a.substring(0,a.length-2)+"=="),a}(t);return{rr_type:e,base64:n}}if(t instanceof DataView){return{rr_type:t.constructor.name,args:[$t(t.buffer,e,n),t.byteOffset,t.byteLength]}}if(t instanceof HTMLImageElement){const e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}if(t instanceof ImageData){return{rr_type:t.constructor.name,args:[$t(t.data,e,
1n),t.width,t.height]}}if(Kt(t,e)||"object"==typeof t){return{rr_type:t.constructor.name,index:Wt(t,e,n)}}return t}const qt=(t,e,n)=>[...t].map(t=>$t(t,e,n)),Kt=(t,e)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(t=>"function"==typeof e[t]);return Boolean(n.find(n=>t instanceof e[n]))};function Vt(t,e,n,s,a,i,r,o){const l=[],c=Object.getOwnPropertyNames(t);for(const u of c)try{if("function"!=typeof t[u])continue;const c=ct(t,u,function(l){return function(...c){const d=l.apply(this,c);if(Wt(d,o,t),!ht(this.canvas,s,i,a)){r.getId(this.canvas);const s=qt([...c],o,t),a={type:e,property:u,args:s};n(this.canvas,a)}return d}});l.push(c)}catch(d){const s=lt(t,u,{set(t){n(this.canvas,{type:e,property:u,args:[t],setter:!0})}});l.push(s)}return l}class Xt{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(t,e){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,!0===t.recordCanvas&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,e,n,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=function(t,e,n,s){const a=[];try{const i=ct(t.HTMLCanvasElement.prototype,"getContext",function(t){return function(a,...i){return ht(this,e,n,s)||"__context"in this||(this.__context=a),t.apply(this,[a,...i])}});a.push(i)}catch(i){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(t=>t())}}(t,e,s,n),i=function(t,e,n,s,a){const i=[],r=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const l of r)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[l])continue;const r=ct(e.CanvasRenderingContext2D.prototype,l,function(e){return function(...i){return ht(this.canvas,n,a,s)||setTimeout(()=>{const e=[...i];if("drawImage"===l&&e[0]&&e[0]instanceof HTMLCanvasElement){const t=e[0],n=t.getContext("2d");let s=null==n?void 0:n.getImageData(0,0,t.width,t.height),a=null==s?void 0:s.data;e[0]=JSON.stringify(a)}t(this.canvas,{type:et["2D"],property:l,args:e})},0),e.apply(this,i)}});i.push(r)}catch(o){const n=lt(e.CanvasRenderingContext2D.prototype,l,{set(e){t(this.canvas,{type:et["2D"],property:l,args:[e],setter:!0})}});i.push(n)}return()=>{i.forEach(t=>t())}}(this.processMutation.bind(this),t,e,s,n,this.mirror),r=function(t,e,n,s,a,i){const r=[];return r.push(...Vt(e.WebGLRenderingContext.prototype,et.WebGL,t,n,s,a,i,e)),void 0!==e.WebGL2RenderingContext&&r.push(...Vt(e.WebGL2RenderingContext.prototype,et.WebGL2,t,n,s,a,i,e)),()=>{r.forEach(t=>t())}}(this.processMutation.bind(this),t,e,s,n,this.mirror);this.resetObservers=()=>{a(),i(),r()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,e)=>{const n=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||-1===e)return;const s=n.map(t=>{const e=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(t);a<s.length;a++)e.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(t,s[a])&&(n[s[a]]=t[s[a]])}return n}(t,["type"]);return e}),{type:a}=n[0];this.mutationCb({id:e,type:a,commands:s}),this.pendingCanvasMutations.delete(t)}}function Jt(t){return Object.assign(Object.assign({},t),{timestamp:Date.now()})}let Qt,te;
1const ee={map:{},getId(t){return t&&t.__sn?t.__sn.id:-1},getNode(t){return this.map[t]||null},removeNodeFromMap(t){const e=t.__sn&&t.__sn.id;delete this.map[e],t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))},has(t){return this.map.hasOwnProperty(t)},reset(){this.map={}}};function ne(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:a="rr-block",blockSelector:i=null,unblockSelector:r=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:c="rr-mask",maskTextSelector:d=null,maskInputSelector:u=null,unmaskTextSelector:h=null,unmaskInputSelector:p=null,inlineStylesheet:m=!0,maskAllText:f=!1,maskAllInputs:_,maskInputOptions:g,slimDOMOptions:y,maskInputFn:b,maskTextFn:w,hooks:v,packFn:k,sampling:S={},mousemoveWait:E,recordCanvas:x=!1,userTriggeredOnInput:T=!1,collectFonts:R=!1,inlineImages:C=!1,plugins:I,keepIframeSrcFn:A=()=>!1,onMutation:D}=t;if(!e)throw new Error("emit function is required");void 0!==E&&void 0===S.mousemove&&(S.mousemove=E);const O=!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,radio:!0,checkbox:!0}:void 0!==g?g:{},N=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let z;!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let M=0;Qt=(t,a)=>{var i;if(!(null===(i=Rt[0])||void 0===i?void 0:i.isFrozen())||t.type===J.FullSnapshot||t.type===J.IncrementalSnapshot&&t.data.source===Q.Mutation||Rt.forEach(t=>t.unfreeze()),e((t=>{for(const e of I||[])e.eventProcessor&&(t=e.eventProcessor(t));return k&&(t=k(t)),t})(t),a),t.type===J.FullSnapshot)z=t,M=0;else if(t.type===J.IncrementalSnapshot){if(t.data.source===Q.Mutation&&t.data.isAttachIframe)return;M++;const e=s&&M>=s,a=n&&t.timestamp-z.timestamp>n;(e||a)&&te(!0)}};const L=t=>{Qt(Jt({type:J.IncrementalSnapshot,data:Object.assign({source:Q.Mutation},t)}))},F=t=>Qt(Jt({type:J.IncrementalSnapshot,data:Object.assign({source:Q.Scroll},t)})),U=t=>Qt(Jt({type:J.IncrementalSnapshot,data:Object.assign({source:Q.CanvasMutation},t)})),B=new Pt({mutationCb:L}),P=new Xt({recordCanvas:x,mutationCb:U,win:window,blockClass:a,blockSelector:i,unblockSelector:r,mirror:ee}),H=new Ht({mutationCb:L,scrollCb:F,bypassOptions:{onMutation:D,blockClass:a,blockSelector:i,unblockSelector:r,maskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,maskInputSelector:u,unmaskInputSelector:p,inlineStylesheet:m,maskAllText:f,maskInputOptions:O,maskTextFn:w,maskInputFn:b,recordCanvas:x,inlineImages:C,sampling:S,slimDOMOptions:N,iframeManager:B,canvasManager:P},mirror:ee});te=(t=!1)=>{var e,n,s,o;Qt(Jt({type:J.Meta,data:{href:window.location.href,width:ut(),height:dt()}}),t),Rt.forEach(t=>t.lock());const[l,_]=function(t,e){const{blockClass:n="rr-block",blockSelector:s=null,unblockSelector:a=null,maskTextClass:i="rr-mask",maskTextSelector:r=null,unmaskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:c=!1,recordCanvas:d=!1,maskInputSelector:u=null,unmaskInputSelector:h=null,maskAllText:p=!1,maskAllInputs:m=!1,maskTextFn:f,maskInputFn:_,slimDOM:g=!1,dataURLOptions:y,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:v,iframeLoadTimeout:k,keepIframeSrcFn:S=()=>!1}=e||{},E={};return[V(t,{doc:t,map:E,blockClass:n,blockSelector:s,unblockSelector:a,maskTextClass:i,maskTextSelector:r,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputSelector:u,unmaskInputSelector:h,maskAllText:p,maskInputOptions:!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===m?{}:m,maskTextFn:f,maskInputFn:_,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
1:!1===g?{}:g,dataURLOptions:y,inlineImages:c,recordCanvas:d,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:v,iframeLoadTimeout:k,keepIframeSrcFn:S}),E]}(document,{blockClass:a,blockSelector:i,unblockSelector:r,maskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,maskInputSelector:u,unmaskInputSelector:p,inlineStylesheet:m,maskAllText:f,maskAllInputs:O,maskTextFn:w,slimDOM:N,recordCanvas:x,inlineImages:C,onSerialize:t=>{_t(t)&&B.addIframe(t),gt(t)&&H.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{B.attachIframe(t,e),H.observeAttachShadow(t)},keepIframeSrcFn:A});if(!l)return console.warn("Failed to snapshot the document");ee.map=_,Qt(Jt({type:J.FullSnapshot,data:{node:l,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(s=null===document||void 0===document?void 0:document.body)||void 0===s?void 0:s.parentElement)||void 0===o?void 0:o.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),Rt.forEach(t=>t.unlock())};try{const t=[];t.push(at("DOMContentLoaded",()=>{Qt(Jt({type:J.DomContentLoaded,data:{}}))}));const e=t=>{var e;return Tt(Ft)({onMutation:D,mutationCb:L,mousemoveCb:(t,e)=>Qt(Jt({type:J.IncrementalSnapshot,data:{source:e,positions:t}})),mouseInteractionCb:t=>Qt(Jt({type:J.IncrementalSnapshot,data:Object.assign({source:Q.MouseInteraction},t)})),scrollCb:F,viewportResizeCb:t=>Qt(Jt({type:J.IncrementalSnapshot,data:Object.assign({source:Q.ViewportResize},t)})),inputCb:t=>Qt(Jt({type:J.IncrementalSnapshot,data:Object.assign({source:Q.Input},t)})),mediaInteractionCb:t=>Qt(Jt({type:J.IncrementalSnapshot,data:Object.assign({source:Q.MediaInteraction},t)})),styleSheetRuleCb:t=>Qt(Jt({type:J.IncrementalSnapshot,data:Object.assign({source:Q.StyleSheetRule},t)})),styleDeclarationCb:t=>Qt(Jt({type:J.IncrementalSnapshot,data:Object.assign({source:Q.StyleDeclaration},t)})),canvasMutationCb:U,fontCb:t=>Qt(Jt({type:J.IncrementalSnapshot,data:Object.assign({source:Q.Font},t)})),blockClass:a,ignoreClass:o,ignoreSelector:l,maskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,maskInputSelector:u,unmaskInputSelector:p,maskInputOptions:O,inlineStylesheet:m,sampling:S,recordCanvas:x,inlineImages:C,userTriggeredOnInput:T,collectFonts:R,doc:t,maskAllText:f,maskInputFn:b,maskTextFn:w,blockSelector:i,unblockSelector:r,slimDOMOptions:N,mirror:ee,iframeManager:B,shadowDomManager:H,canvasManager:P,plugins:(null===(e=null==I?void 0:I.filter(t=>t.observer))||void 0===e?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>Qt(Jt({type:J.Plugin,data:{plugin:t.name,payload:e}}))})))||[]},v)};B.addLoadListener(n=>{try{t.push(e(n.contentDocument))}catch(s){console.warn(s)}});const n=()=>{te(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():t.push(at("load",()=>{Qt(Jt({type:J.Load,data:{}})),n()},window)),()=>{t.forEach(t=>t())}}catch(Z){console.warn(Z)}}function se(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var ae,ie;function re(t){return t>9999999999?t:1e3*t}async function oe(t,e,n){if(!t.eventBuffer)return null;if(t.isPaused())return null;if(re(e.timestamp)+t.timeouts.sessionIdlePause<Date.now())return null;try{n&&t.eventBuffer.clear();const s=t.getOptions(),a="function"==typeof s.beforeAddRecordingEvent&&e.type===ie.Custom?s.beforeAddRecordingEvent(e):e;if(!a)return;return await t.eventBuffer.addEvent(a)}catch(a){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.error(a),await t.stop("addEvent");const e=(0,s.BF)().getClient();e&&e.recordDroppedEvent("internal_sdk_error","replay")}}function le(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(oe(t,{type:J.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:(0,c.S8)(e,10,1e3)}}),"console"===e.category)))}function ce(t,e,n,s){if(function(t,e){if("INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||""))return!0;
1if(he.includes(t.tagName))return!0;if("A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))return!0;if(e.ignoreSelector&&t.matches(e.ignoreSelector))return!0;return!1}(s,e))return;let a=()=>{};const i=setTimeout(()=>{ue(t,n,e.timeout,"timeout"),a()},e.timeout),r=()=>{de(t,n,e.scrollTimeout,e.timeout,"scroll"),a()},o=new MutationObserver(()=>{de(t,n,e.threshold,e.timeout,"mutation"),a()});o.observe(y.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),y.addEventListener("scroll",r);const l=setTimeout(()=>{y.removeEventListener("scroll",r)},e.scrollTimeout);a=()=>{clearTimeout(i),clearTimeout(l),o.disconnect(),y.removeEventListener("scroll",r)}}function de(t,e,n,s,a){const i=Date.now()-1e3*e.timestamp;return i>n&&(ue(t,e,Math.min(i,s),a),!0)}function ue(t,e,n,s){le(t,{message:e.message,timestamp:e.timestamp,category:"ui.slowClickDetected",data:{...e.data,url:y.location.href,timeAfterClickMs:n,endReason:s}})}ne.addCustomEvent=(t,e)=>{if(!Qt)throw new Error("please add custom event after start recording");Qt(Jt({type:J.Custom,data:{tag:t,payload:e}}))},ne.freezePage=()=>{Rt.forEach(t=>t.freeze())},ne.takeFullSnapshot=t=>{if(!te)throw new Error("please take full snapshot after start recording");te(t)},ne.mirror=ee,function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(ae||(ae={})),function(t){t[t.DomContentLoaded=0]="DomContentLoaded";t[t.Load=1]="Load";t[t.FullSnapshot=2]="FullSnapshot";t[t.IncrementalSnapshot=3]="IncrementalSnapshot";t[t.Meta=4]="Meta";t[t.Custom=5]="Custom";t[t.Plugin=6]="Plugin"}(ie||(ie={}));const he=["SELECT","OPTION"];const pe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid"]);function me(t){const e={};for(const n in t)if(pe.has(n)){let s=n;"data-testid"!==n&&"data-test-id"!==n||(s="testId"),e[s]=t[n]}return e}const fe=t=>{const e=t.getOptions()._experiments.slowClicks,n=e?{threshold:e.threshold,timeout:e.timeout,scrollTimeout:e.scrollTimeout,ignoreSelector:e.ignoreSelectors?e.ignoreSelectors.join(","):""}:void 0;return e=>{if(!t.isEnabled())return;const s=function(t){const{target:e,message:n}=function(t){const e="click"===t.name;let n,s=null;try{s=e?be(t.event):ge(t.event),n=(0,d.Hd)(s,{maxStringLength:200})||"<unknown>"}catch(a){n="<unknown>"}return{target:s,message:n}}(t);return se({category:`ui.${t.name}`,..._e(e,n)})}(e);if(!s)return;const a="click"===e.name,i=a&&e.event;a&&n&&i&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&ce(t,n,s,be(e.event)),le(t,s)}};function _e(t,e){const n=t&&"__sn"in t&&t.__sn.type===ae.Element?t.__sn:null;return{message:e,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:t?Array.from(t.childNodes).map(t=>"__sn"in t&&t.__sn.type===ae.Text&&t.__sn.textContent).filter(Boolean).map(t=>t.trim()).join(""):"",attributes:me(n.attributes)}}:{}}}function ge(t){return function(t){return"object"==typeof t&&!!t&&"target"in t}(t)?t.target:t}const ye="button,a";function be(t){const e=ge(t);if(!(e&&e instanceof Element))return e;return e.closest(ye)||e}function we(t,e){if(!t.isEnabled())return;t.triggerUserActivity();const n=function(t){const{metaKey:e,shiftKey:n,ctrlKey:s,altKey:a,key:i,target:r}=t;if(!r||function(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}(r))return null;const o=e||s||a,l=1===i.length;if(!o&&l)return null;const c=(0,d.Hd)(r,{maxStringLength:200})||"<unknown>",u=_e(r,c);return se({category:"ui.keyDown",message:c,data:{...u.data,metaKey:e,shiftKey:n,ctrlKey:s,altKey:a,key:i}})}(e);n&&le(t,n)}const ve=["name","type","startTime","transferSize","duration"];function ke(t){return function(e){return ve.every(n=>t[n]===e[n])}}function Se(t){const e=new PerformanceObserver(e=>{const n=function(t,e){const[n,s,a]=t.reduce((t,e)=>("navigation"===e.entryType?t[0].push(e):"largest-contentful-paint"===e.entryType?t[1].push(e):t[2].push(e),t),[[],[],[]]),i=[],r=[];let o=s.length?s[s.length-1]:void 0;return e.forEach(t=>{if("largest-contentful-paint"!==t.entryType){if("navigation"===t.entryType){const e=t;return void(t.duration>0&&!n.find(ke(e))&&!r.find(ke(e))&&r.push(e))}i.push(t)}else(!o||o.startTime<t.startTime)&&(o=t)}),[...o?[o]:[],...n,...a,...i,...r].sort((t,e)=>t.startTime-e.startTime)}(t.performanceEvents,e.getEntries());t.performanceEvents=n});return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(t=>{try{e.observe({type:t,buffered:!0})}catch(n){}}),e}class Ee{constructor(){this.events=[]}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){this.events.push(t)}finish(){return new Promise(t=>{const e=this.events;this.events=[],t(JSON.stringify(e))})}clear(){this.events=[]}getEarliestTimestamp(){const t=this.events.map(t=>t.timestamp).sort()[0];return t?re(t):null}}class xe{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((t,e)=>{this._worker.addEventListener("message",({data:n})=>{n.success?t():e()},{once:!0}),this._worker.addEventListener("error",t=>{e(t)},{once:!0})})),this._ensureReadyPromise}destroy(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise((s,a)=>{const i=({data:e})=>{const r=e;if(r.method===t&&r.id===n){if(this._worker.removeEventListener("message",i),!r.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.error("[Replay]",r.response),void a(new Error("Error in compression worker"));s(r.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:t,arg:e})})}_getAndIncrementId(){return this._id++}}class Te{constructor(t){this._worker=new xe(t),this._earliestTimestamp=null}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}
1addEvent(t){const e=re(t.timestamp);return(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e),this._sendEventToWorker(t)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",JSON.stringify(t))}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,t}}class Re{constructor(t){this._fallback=new Ee,this._compression=new Te(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log("[Replay] Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t}=this._fallback,e=[];for(const s of t)e.push(this._compression.addEvent(s));this._used=this._compression;try{await Promise.all(e)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.warn("[Replay] Failed to add events when switching buffers.",n)}}}function Ce({useCompression:t}){if(t&&window.Worker)try{const t=function(){const t=new Blob(['/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;
vendor: 4,476 bytes, line 1
1h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ER
vendor: 10,438 bytes, line 1
1ROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;
vendor: 4,728 bytes, line 1
1if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>
vendor: 4,506 bytes, line 1
10&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new 
vendor: 1,337 bytes, line 1
1Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;
vendor: 4,605 bytes, line 1
1else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>
vendor: 11,506 bytes, line 1
1{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;
1if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(t)}();("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log("[Replay] Using compression worker");const e=new Worker(t);return new Re(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log("[Replay] Failed to create compression worker")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log("[Replay] Using simple buffer"),new Ee}function Ie(t){!function(){if(!("sessionStorage"in y))return;try{y.sessionStorage.removeItem(b)}catch(t){}}(),t.session=void 0}function Ae(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function De(t,e,n=+new Date){return Ae(t.started,e.maxSessionLife,n)||Ae(t.lastActivity,e.sessionIdleExpire,n)}function Oe(t){return void 0!==t&&Math.random()<t}function Ne(t){if("sessionStorage"in y)try{y.sessionStorage.setItem(b,JSON.stringify(t))}catch(e){}}function ze(t){const e=Date.now();return{id:t.id||(0,u.eJ)(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,shouldRefresh:!0}}function Me({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1}){const s=function(t,e){return Oe(t)?"session":!!e&&"buffer"}(t,e),a=ze({sampled:s});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log(`[Replay] Creating new session: ${a.id}`),n&&Ne(a),a}function Le({timeouts:t,currentSession:e,stickySession:n,sessionSampleRate:s,allowBuffering:a}){const i=e||n&&function(){if(!("sessionStorage"in y))return null;try{const t=y.sessionStorage.getItem(b);return t?ze(JSON.parse(t)):null}catch(t){return null}}();if(i){if(!De(i,t))return{type:"saved",session:i};if(!i.shouldRefresh){return{type:"new",session:ze({sampled:!1})}}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log("[Replay] Session has expired")}return{type:"new",session:Me({stickySession:n,sessionSampleRate:s,allowBuffering:a})}}function Fe(t){return!t.type}function Ue(t){return"transaction"===t.type}function Be(t){const e=function(){const t=(0,s.BF)().getClient();if(!t)return!1;const e=t.getTransport();if(!e)return!1;return e.send.__sentry__baseTransport__||!1}();return(n,s)=>{if(!Fe(n)&&!Ue(n))return;const a=s&&s.statusCode;e&&(!a||a<200||a>=300)||(Ue(n)&&n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id?t.getContext().traceIds.add(n.contexts.trace.trace_id):Fe(n)&&(n.event_id&&t.getContext().errorIds.add(n.event_id),"buffer"===t.recordingMode&&n.tags&&n.tags.replayId&&setTimeout(()=>{t.sendBufferedReplayOrFlush()})))}}function Pe(t,e=!1){const n=e?Be(t):void 0;
1return(e,s)=>{if(function(t){return"replay_event"===t.type}(e))return delete e.breadcrumbs,e;if(!Fe(e)&&!Ue(e))return e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&(!(!e.originalException||!e.originalException.__rrweb__)||t.exception.values.some(t=>!!(t.stacktrace&&t.stacktrace.frames&&t.stacktrace.frames.length)&&t.stacktrace.frames.some(t=>t.filename&&t.filename.includes("/rrweb/src/"))))}(e,s)&&!t.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log("[Replay] Ignoring error from rrweb internals",e),null;const i=function(t,e){return"buffer"===t.recordingMode&&e.message!==w&&!(!e.exception||e.type)&&Oe(t.getOptions().errorSampleRate)}(t,e);if((i||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.getOptions()._experiments.traceInternals&&Fe(e)){const t=function(t){return{type:"Unknown",value:"n/a",...t.exception&&t.exception.values&&t.exception.values[0]}}(e);!function(t){const{category:e,level:n,message:s,...i}=t;(0,a.ZQ)({category:e||"console",level:n||"debug",message:`[debug]: ${s}`,...i})}({message:`Tagging event (${e.event_id}) - ${e.message} - ${t.type}: ${t.value}`})}return n&&n(e,{statusCode:200}),e}}function He(t,e){return e.map(({type:e,start:n,end:s,name:a,data:i})=>oe(t,{type:J.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:a,startTimestamp:n,endTimestamp:s,data:i}}}))}function Ze(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,s=Date.now()/1e3;return{type:"navigation.push",start:s,end:s,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(He(t,[n]),!1)))}}function Ge(t,e){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!t.getOptions()._experiments.traceInternals)&&function(t){const e=(0,s.BF)().getClient(),n=e&&e.getDsn();return!!n&&t.includes(n.host)}(e)}function je(t,e){t.isEnabled()&&null!==e&&(Ge(t,e.name)||t.addUpdate(()=>(He(t,[e]),!0)))}function Ye(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{startTimestamp:e,endTimestamp:n,xhr:s}=t,a=s[h.Er];if(!e||!n||!a)return null;const{method:i,url:r,status_code:o}=a;return void 0===r?null:{type:"resource.xhr",name:r,start:e/1e3,end:n/1e3,data:{method:i,statusCode:o}}}(e);je(t,n)}}const We=10,$e=11,qe=12,Ke=13,Ve=14,Xe=15,Je=20,Qe=21,tn=22,en=23,nn=["true","false","null"];function sn(t,e){if(!e.length)return t;let n=t;const s=e.length-1;n=function(t,e){switch(e){case We:return`${t}"~~":"~~"`;case 11:return`${t}:"~~"`;case 12:return`${t}~~":"~~"`;case Ke:return function(t){const e=t.lastIndexOf(":"),n=t.slice(e+1);if(nn.includes(n.trim()))return`${t},"~~":"~~"`;return`${t.slice(0,e+1)}"~~"`}(t);case 14:return`${t}~~"`;case Xe:return`${t},"~~":"~~"`;case Je:return`${t}"~~"`;case Qe:return function(t){const e=function(t){for(let e=t.length-1;e>=0;e--){const n=t[e];if(","===n||"["===n)return e}return-1}(t);if(e>-1){const n=t.slice(e+1);return nn.includes(n.trim())?`${t},"~~"`:`${t.slice(0,e+1)}"~~"`}return t}(t);case 22:return`${t}~~"`;case en:return`${t},"~~"`}return t}(n,e[s]);for(let a=s;a>=0;a--){switch(e[a]){case We:n=`${n}}`;break;case Je:n=`${n}]`}}return n}function an(t,e,n){const s=t[t.length-1],a=e[n];if(!/\s/.test(a))if('"'!==a||rn(e,n))switch(a){case"{":!function(t,e){if(!e)return void t.push(We);if(e===Ke)return void t.push(We);e===Qe&&t.push(We);if(e===Je)t.push(We)}(t,s);break;case"[":!function(t,e){if(!e)return t.push(Je),void t.push(Qe);if(e===Ke)return t.push(Je),void t.push(Qe);e===Qe&&(t.push(Je),t.push(Qe));if(e===Je)t.push(Je),t.push(Qe)}(t,s);break;case":":!function(t,e){e===$e&&(t.pop(),t.push(Ke))}(t,s);break;case",":!function(t,e){if(e===Ke)return void t.pop();if(e===Xe)return t.pop(),void t.pop();if(e===Qe)return;if(e===en)t.pop()}(t,s);break;case"}":!function(t,e){e===We&&t.pop();e===Ke&&(t.pop(),t.pop());e===Xe&&(t.pop(),t.pop(),t.pop());t[t.length-1]===Ke&&t.push(Xe);t[t.length-1]===Qe&&t.push(en)}(t,s);break;case"]":!function(t,e){e===Je&&t.pop();e===Qe&&(t.pop(),t.pop());e===en&&(t.pop(),t.pop(),t.pop());t[t.length-1]===Ke&&t.push(Xe);t[t.length-1]===Qe&&t.push(en)}(t,s)}else!function(t,e){if(e===Ve)return t.pop(),void t.push(Xe);if(e===tn)return t.pop(),void t.push(en);if(e===Ke)return void t.push(Ve);if(e===Qe)return void t.push(tn);if(e===We)return void t.push(qe);if(e===qe)t.pop(),t.push(11)}(t,s)}function rn(t,e){return"\\"===t[e-1]&&!rn(t,e-1)}function on(t){return sn(t,function(t){const e=[];for(let n=0;n<t.length;n++)an(e,t,n);return e}(t))}function ln(t,e){if(t)try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=fn(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(n){}}function cn(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function dn(t){return"string"==typeof t?t:t instanceof URLSearchParams?t.toString():t instanceof FormData?fn(t):void 0}function un(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:s,url:a,method:i,statusCode:r,request:o,response:l}=e;return{type:t,start:n/1e3,end:s/1e3,name:a,data:(0,p.Ce)({method:i,statusCode:r,request:o,response:l})}}function hn(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function pn(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const s={headers:t,size:e},{body:a,warnings:i}=function(t){if(!t||"string"!=typeof t)return{body:t,warnings:[]};const e=t.length>v;if(function(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t))try{const n=e?on(t.slice(0,v)):t;return{body:JSON.parse(n),warnings:e?["JSON_TRUNCATED"]:[]}}catch(n){return{body:e?`${t.slice(0,v)}…`:t,warnings:e?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:e?`${t.slice(0,v)}…`:t,warnings:e?["TEXT_TRUNCATED"]:[]}}(n);return s.body=a,i.length>0&&(s._meta={warnings:i}),s}function mn(t,e){return Object.keys(t).reduce((n,s)=>{const a=s.toLowerCase();return e.includes(a)&&t[s]&&(n[a]=t[s]),n},{})}function fn(t){return new URLSearchParams(t).toString()}function _n(t,e){const n=function(t,e=y.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(y.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const s=n.href;if(!t.endsWith("/")&&s.endsWith("/"))return s.slice(0,-1);return s}(t);return(0,m.Xr)(n,e)}async function gn(t,e,n){try{const s=await async function(t,e,n){const{startTimestamp:s,endTimestamp:a}=e,{url:i,method:r,status_code:o=0,request_body_size:l,response_body_size:c}=t.data,d=_n(i,n.networkDetailAllowUrls),u=d?function({networkCaptureBodies:t,networkRequestHeaders:e},n,s){const a=function(t,e){if(1===t.length&&"string"!=typeof t[0])return wn(t[0],e);if(2===t.length)return wn(t[1],e);return{}}(n,e);if(!t)return pn(a,s,void 0);const i=dn(yn(n));return pn(a,s,i)}(n,e.input,l):hn(l),h=await async function(t,{networkCaptureBodies:e,textEncoder:n,networkResponseHeaders:s},a,i){if(!t&&void 0!==i)return hn(i);const r=bn(a.headers,s);if(!e&&void 0!==i)return pn(r,i,void 0);try{const s=a.clone(),o=await async function(t){try{return await t.text()}catch(e){return}}(s),l=o&&o.length&&void 0===i?ln(o,n):i;return t?pn(r,l,e?o:void 0):hn(l)}catch(o){return pn(r,i,void 0)}}(d,n,e.response,c);return{startTimestamp:s,endTimestamp:a,url:i,method:r,statusCode:o,request:u,response:h}}(t,e,n),a=un("resource.fetch",s);je(n.replay,a)}catch(s){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.error("[Replay] Failed to capture fetch breadcrumb",s)}}function yn(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function bn(t,e){const n={};
1return e.forEach(e=>{t.get(e)&&(n[e]=t.get(e))}),n}function wn(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?bn(n,e):Array.isArray(n)?{}:mn(n,e):{}}async function vn(t,e,n){try{const s=function(t,e,n){const{startTimestamp:s,endTimestamp:a,input:i,xhr:r}=e,{url:o,method:l,status_code:c=0,request_body_size:d,response_body_size:u}=t.data;if(!o)return null;if(!_n(o,n.networkDetailAllowUrls)){return{startTimestamp:s,endTimestamp:a,url:o,method:l,statusCode:c,request:hn(d),response:hn(u)}}const p=r[h.Er],m=p?mn(p.request_headers,n.networkRequestHeaders):{},f=mn(function(t){const e=t.getAllResponseHeaders();if(!e)return{};return e.split("\r\n").reduce((t,e)=>{const[n,s]=e.split(": ");return t[n.toLowerCase()]=s,t},{})}(r),n.networkResponseHeaders),_=pn(m,d,n.networkCaptureBodies?dn(i):void 0),g=pn(f,u,n.networkCaptureBodies?e.xhr.responseText:void 0);return{startTimestamp:s,endTimestamp:a,url:o,method:l,statusCode:c,request:_,response:g}}(t,e,n),a=un("resource.xhr",s);je(n.replay,a)}catch(s){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.error("[Replay] Failed to capture fetch breadcrumb",s)}}function kn(t){const e=(0,s.BF)().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:s,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:r}=t.getOptions(),o={replay:t,textEncoder:n,networkDetailAllowUrls:s,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:r};e&&e.on?e.on("beforeAddBreadcrumb",(t,e)=>function(t,e,n){if(!e.data)return;try{(function(t){return"xhr"===t.category})(e)&&function(t){return t&&t.xhr}(n)&&(!function(t,e,n){const{xhr:s,input:a}=e,i=ln(a,n.textEncoder),r=s.getResponseHeader("content-length")?cn(s.getResponseHeader("content-length")):ln(s.response,n.textEncoder);void 0!==i&&(t.data.request_body_size=i),void 0!==r&&(t.data.response_body_size=r)}(e,n,t),vn(e,n,t)),function(t){return"fetch"===t.category}(e)&&function(t){return t&&t.response}(n)&&(!function(t,e,n){const{input:s,response:a}=e,i=ln(yn(s),n.textEncoder),r=a?cn(a.headers.get("content-length")):void 0;void 0!==i&&(t.data.request_body_size=i),void 0!==r&&(t.data.response_body_size=r)}(e,n,t),gn(e,n,t))}catch(s){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.warn("Error when enriching network breadcrumb")}}(o,t,e)):((0,h.ON)("fetch",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{startTimestamp:e,endTimestamp:n,fetchData:s,response:a}=t;if(!n)return null;const{method:i,url:r}=s;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:r,data:{method:i,statusCode:a&&a.status}}}(e);je(t,n)}}(t)),(0,h.ON)("xhr",Ye(t)))}catch(n){}}let Sn=null;const En=t=>e=>{if(!t.isEnabled())return;const n=function(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();if(Sn===e||!e)return null;if(Sn=e,e.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")))return null;if("console"===e.category)return function(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return se(t);let n=!1;const s=e.map(t=>{if(!t)return t;if("string"==typeof t)return t.length>k?(n=!0,`${t.slice(0,k)}…`):t;if("object"==typeof t)try{const e=(0,c.S8)(t,7),s=JSON.stringify(e);if(s.length>k){const t=on(s.slice(0,k)),e=JSON.parse(t);return n=!0,e}return e}catch(e){}return t});return se({...t,data:{...t.data,arguments:s,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return se(e)}(e);n&&le(t,n)};function xn(t){return!(!t||!t.on)}function Tn(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:s}=t,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:s}}}}const Rn={resource:function(t){const{entryType:e,initiatorType:n,name:s,responseEnd:a,startTime:i,decodedBodySize:r,encodedBodySize:o,responseStatus:l,transferSize:c}=t;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${e}.${n}`,start:In(i),end:In(a),name:s,data:{size:c,statusCode:l,decodedBodySize:r,encodedBodySize:o}}},paint:function(t){const{duration:e,entryType:n,name:s,startTime:a}=t,i=In(a);return{type:n,name:s,start:i,end:i+e,data:void 0}},navigation:function(t){const{entryType:e,name:n,decodedBodySize:s,duration:a,domComplete:i,encodedBodySize:r,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:d,loadEventEnd:u,redirectCount:h,startTime:p,transferSize:m,type:f}=t;if(0===a)return null;return{type:`${e}.${f}`,start:In(p),end:In(i),name:n,data:{size:m,decodedBodySize:s,encodedBodySize:r,duration:a,domInteractive:c,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:d,loadEventEnd:u,domComplete:i,redirectCount:h}}},"largest-contentful-paint":function(t){const{entryType:e,startTime:n,size:s}=t;let a=0;if(y.performance){const t=y.performance.getEntriesByType("navigation")[0];a=t&&t.activationStart||0}const i=Math.max(n-a,0),r=In(a)+i/1e3;return{type:e,name:e,start:r,end:r,data:{value:i,size:s,nodeId:ne.mirror.getId(t.element)}}}};function Cn(t){return void 0===Rn[t.entryType]?null:Rn[t.entryType](t)}function In(t){return((f.k3||y.performance.timeOrigin)+t)/1e3}function An(t){let e=!1;return(n,s)=>{if(!t.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.warn("[Replay] Received replay event after session expired."));const a=s||!e;e=!0,t.addUpdate(()=>{if("buffer"===t.recordingMode&&a&&t.setInitialState(),oe(t,n,a),!a)return!1;if(function(t,e){if(!e||!t.session||0!==t.session.segmentId)return Promise.resolve(null);oe(t,function(t){const e=t.getOptions();return{type:ie.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1)}(t,a),t.session&&t.session.previousSessionId)return!0;
1if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){const e=t.eventBuffer.getEarliestTimestamp();e&&(t.session.started=e,t.getOptions().stickySession&&Ne(t.session))}const e=t.getOptions();return e._experiments.delayFlushOnCheckout?(setTimeout(()=>t.conditionalFlush(),e._experiments.delayFlushOnCheckout),t.cancelFlush(),!0):("session"===t.recordingMode&&t.flushImmediate(),!0)})}}async function Dn({recordingData:t,replayId:e,segmentId:n,eventContext:a,timestamp:i,session:o}){const c=function({recordingData:t,headers:e}){let n;const s=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${s}${t}`;else{const e=(new TextEncoder).encode(s);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:d,errorIds:u,traceIds:h,initialTimestamp:p}=a,m=(0,s.BF)(),f=m.getClient(),g=m.getScope(),y=f&&f.getTransport(),b=f&&f.getDsn();if(!(f&&g&&y&&b&&o.sampled))return;const v={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:u,trace_ids:h,urls:d,replay_id:e,segment_id:n,replay_type:o.sampled},k=await async function({client:t,scope:e,replayId:n,event:s}){const a="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),i=await(0,r.m)(t.getOptions(),s,{event_id:n,integrations:a},e);if(!i)return null;i.platform=i.platform||"javascript";const o=t.getSdkMetadata&&t.getSdkMetadata(),{name:l,version:c}=o&&o.sdk||{};return i.sdk={...i.sdk,name:l||"sentry.javascript.unknown",version:c||"0.0.0"},i}({scope:g,client:f,replayId:e,event:v});if(!k)return f.recordDroppedEvent("event_processor","replay",v),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log("An event processor returned `null`, will not send event."));const S=function(t,e,n,s){return(0,_.h4)((0,_.n2)(t,(0,_.Cj)(t),s,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}(k,c,b,f.getOptions().tunnel);let E;try{E=await y.send(S)}catch(x){const t=new Error(w);try{t.cause=x}catch(T){}throw t}if(!E)return E;if("number"==typeof E.statusCode&&(E.statusCode<200||E.statusCode>=300))throw new On(E.statusCode);return E}class On extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function Nn(t,e={count:0,interval:5e3}){const{recordingData:n,options:s}=t;if(n.length)try{return await Dn(t),!0}catch(i){if(i instanceof On)throw i;if((0,a.o)("Replays",{_retryCount:e.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s._experiments&&s._experiments.captureExceptions&&(0,a.Cp)(i),e.count>=3){const t=new Error(`${w} - max retries exceeded`);try{t.cause=i}catch(r){}throw t}return e.interval*=++e.count,await new Promise((n,s)=>{setTimeout(async()=>{try{await Nn(t,e),n(!0)}catch(i){s(i)}},e.interval)})}}class zn{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5,maxSessionLife:36e5}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""}}constructor({options:t,recordingOptions:e}){zn.prototype.__init.call(this),zn.prototype.__init2.call(this),zn.prototype.__init3.call(this),zn.prototype.__init4.call(this),zn.prototype.__init5.call(this),zn.prototype.__init6.call(this),zn.prototype.__init7.call(this),zn.prototype.__init8.call(this),zn.prototype.__init9.call(this),zn.prototype.__init10.call(this),zn.prototype.__init11.call(this),zn.prototype.__init12.call(this),zn.prototype.__init13.call(this),zn.prototype.__init14.call(this),zn.prototype.__init15.call(this),zn.prototype.__init16.call(this),zn.prototype.__init17.call(this),zn.prototype.__init18.call(this),this._recordingOptions=e,this._options=t,this._debouncedFlush=function(t,e,n){let s,a,i;const r=n&&n.maxWait?Math.max(n.maxWait,e):0;function o(){return l(),s=t(),s}function l(){void 0!==a&&clearTimeout(a),void 0!==i&&clearTimeout(i),a=i=void 0}function c(){return a&&clearTimeout(a),a=setTimeout(o,e),r&&void 0===i&&(i=setTimeout(o,r)),s}return c.cancel=l,c.flush=function(){return void 0!==a||void 0!==i?o():s},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(){const{errorSampleRate:t,sessionSampleRate:e}=this._options;if(t<=0&&e<=0)return;this._loadAndCheckSession()&&(this.session?(this.session.sampled&&"session"!==this.session.sampled&&(this.recordingMode="buffer"),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}
1start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");const t=this.session&&this.session.id,{session:e}=Le({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:1,allowBuffering:!1});e.previousSessionId=t,this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");const t=this.session&&this.session.id,{session:e}=Le({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:0,allowBuffering:!0});e.previousSessionId=t,this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=ne({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:An(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop(t){if(this._isEnabled)try{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e="[Replay] Stopping Replay"+(t?` triggered by ${t}`:"");(this.getOptions()._experiments.traceInternals?console.warn:l.vF.log)(e)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),"session"===this.recordingMode&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Ie(this)}catch(e){this._handleException(e)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();await this.flushImmediate();const e=this.stopRecording();t&&e&&(this.recordingMode="session",this.session&&(this.session.shouldRefresh=!1,this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._loadAndCheckSession())return;this.resume()}}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){const t=this.getSessionId();if(this._lastActivity&&Ae(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled)return void this.pause();if(!this._loadAndCheckSession())return;return t===this.getSessionId()||(this._triggerFullSnapshot(),!1)}setInitialState(){const t=`${y.location.pathname}${y.location.hash}${y.location.search}`,e=`${y.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Ce({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this.startRecording()}_handleException(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.error("[Replay]",t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,a.Cp)(t)}_loadAndCheckSession(){const{type:t,session:e}=Le({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0});"new"===t&&this.setInitialState();const n=this.getSessionId();return e.id!==n&&(e.previousSessionId=n),this.session=e,!!this.session.sampled||(this.stop("session unsampled"),!1)}_addListeners(){try{y.document.addEventListener("visibilitychange",this._handleVisibilityChange),y.addEventListener("blur",this._handleWindowBlur),y.addEventListener("focus",this._handleWindowFocus),y.addEventListener("keydown",this._handleKeyboardEvent),this._hasInitializedCoreListeners||(!function(t){const e=(0,s.BF)().getScope(),n=(0,s.BF)().getClient();e&&e.addScopeListener(En(t)),(0,h.ON)("dom",fe(t)),(0,h.ON)("history",Ze(t)),kn(t),(0,i.l)(Pe(t,!xn(n))),xn(n)&&(n.on("afterSendEvent",Be(t)),n.on("createDsc",e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&(e.replay_id=n)}))}(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in y&&(this._performanceObserver=Se(this))}_removeListeners(){try{y.document.removeEventListener("visibilitychange",this._handleVisibilityChange),y.removeEventListener("blur",this._handleWindowBlur),y.removeEventListener("focus",this._handleWindowFocus),y.removeEventListener("keydown",this._handleKeyboardEvent),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init13(){this._handleVisibilityChange=()=>{"visible"===y.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
1dTasks()}}__init14(){this._handleWindowBlur=()=>{const t=se({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{const t=se({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init16(){this._handleKeyboardEvent=t=>{we(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const e=De(this.session,this.timeouts);t&&!e&&this._createCustomBreadcrumb(t),this.conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log("[Replay] Document has become active, but session has expired")}_triggerFullSnapshot(t=!0){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.log("[Replay] Taking full rrweb snapshot"),ne.takeFullSnapshot(t)}catch(e){this._handleException(e)}}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{oe(this,{type:J.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(He(this,function(t){return t.map(Cn).filter(Boolean)}(t)))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){if(this.session&&this.eventBuffer){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(t){try{return Promise.all(He(t,[Tn(y.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer))try{this._updateInitialTimestampFromEventBuffer();const t=await this.eventBuffer.finish(),e=this.session.id,n=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession(),await Nn({replayId:e,recordingData:t,segmentId:s,eventContext:n,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(t){this._handleException(t),this.stop("sendReplay");const e=(0,s.BF)().getClient();e&&e.recordDroppedEvent("send_error","replay")}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.error("[Replay] No session or eventBuffer found to flush.")}__init17(){this._flush=async({force:t=!1}={})=>{if(this._isEnabled||t)if(this.checkAndHandleExpiredSession())if(this.session){if(this._debouncedFlush.cancel(),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=null);try{await this._flushLock}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.error(e)}finally{this._debouncedFlush()}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.error("[Replay] No session found to flush.");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.vF.error("[Replay] Attempting to finish replay event after session expired.")}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ne(this.session)}__init18(){this._onMutationHandler=t=>{const e=t.length,n=this._options._experiments.mutationLimit||0,s=n&&e>n;if(e>(this._options._experiments.mutationBreadcrumbLimit||1e3)||s){const t=se({category:"replay.mutations",data:{count:e}});this._createCustomBreadcrumb(t)}return!s||(this._triggerFullSnapshot(!1),!1)}}}function Mn(t,e,n,s){const a=[...t,..."string"==typeof s?s.split(","):[],...e];return void 0!==n&&("string"==typeof n&&a.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),a.join(",")}function Ln({mask:t,unmask:e,block:n,unblock:s,ignore:a,blockClass:i,blockSelector:r,maskTextClass:o,maskTextSelector:l,ignoreClass:c}){const d=Mn(t,[".sentry-mask","[data-sentry-mask]"],o,l),u=Mn(e,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:d,unmaskTextSelector:u,maskInputSelector:d,unmaskInputSelector:u,blockSelector:Mn(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],i,r),unblockSelector:Mn(s,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Mn(a,[".sentry-ignore","[data-sentry-ignore]",'
1input[type="file"]'],c)};return i instanceof RegExp&&(h.blockClass=i),o instanceof RegExp&&(h.maskTextClass=o),h}function Fn(){return"undefined"!=typeof window&&(!(0,g.wD)()||"undefined"!=typeof process&&"renderer"===process.type)}const Un='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Bn=["content-length","content-type","accept"];let Pn=!1;class Hn{static __initStatic(){this.id="Replay"}__init(){this.name=Hn.id}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,stickySession:n=!0,useCompression:s=!0,_experiments:a={},sessionSampleRate:i,errorSampleRate:r,maskAllText:o=!0,maskAllInputs:l=!0,blockAllMedia:c=!0,networkDetailAllowUrls:d=[],networkCaptureBodies:u=!0,networkRequestHeaders:h=[],networkResponseHeaders:p=[],mask:m=[],unmask:f=[],block:_=[],unblock:g=[],ignore:y=[],maskFn:b,beforeAddRecordingEvent:w,blockClass:v,blockSelector:k,maskInputOptions:S,maskTextClass:E,maskTextSelector:x,ignoreClass:T}={}){if(Hn.prototype.__init.call(this),this._recordingOptions={maskAllInputs:l,maskAllText:o,maskInputOptions:{...S||{},password:!0},maskTextFn:b,maskInputFn:b,...Ln({mask:m,unmask:f,block:_,unblock:g,ignore:y,blockClass:v,blockSelector:k,maskTextClass:E,maskTextSelector:x,ignoreClass:T}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,stickySession:n,sessionSampleRate:i,errorSampleRate:r,useCompression:s,blockAllMedia:c,maskAllInputs:l,maskAllText:o,networkDetailAllowUrls:d,networkCaptureBodies:u,networkRequestHeaders:Zn(h),networkResponseHeaders:Zn(p),beforeAddRecordingEvent:w,_experiments:a},"number"==typeof i&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${i} })`),this._initialOptions.sessionSampleRate=i),"number"==typeof r&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${r} })`),this._initialOptions.errorSampleRate=r),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Un}`:Un),this._isInitialized&&Fn())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Pn}set _isInitialized(t){Pn=t}setupOnce(){Fn()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop():Promise.resolve()}flush(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const t=function(t){const e=(0,s.BF)().getClient(),n=e&&e.getOptions(),a={sessionSampleRate:0,errorSampleRate:0,...(0,p.Ce)(t)};if(!n)return console.warn("SDK client is not available."),a;null==t.sessionSampleRate&&null==t.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.");"number"==typeof n.replaysSessionSampleRate&&(a.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(a.errorSampleRate=n.replaysOnErrorSampleRate);return a}(this._initialOptions);this._replay=new zn({options:t,recordingOptions:this._recordingOptions})}}function Zn(t){return[...Bn,...t.map(t=>t.toLowerCase())]}Hn.__initStatic()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.