D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
repair
/
Filename :
app.js
back
Copy
(()=>{var e=[,(e,t,r)=>{"use strict";var n=r(2);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(3),o={};for(const e in n)"default"!==e&&(o[e]=()=>n[e]);r.d(t,o);const i=n},e=>{"use strict";e.exports=PleskUiLibrary},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R,filePermsToolId:()=>C,innodbToolId:()=>k});var n=r(5),o=r(9),i=r(3),s=r(2),a=r(20),c=r(21),u=r(23),l=r(24),p=r(27),d=r(30),f=r(31),h=r(195),m=r(329);let y=null;const g=e=>null!=e,v=(e,t={})=>{const r=()=>{const r={};return y&&(r["X-Authorization"]=y),(0,d.default)(`/repair/backend${e}`,{...t,headers:{...r,...t.headers}})};return r().then((t=>{if(401===t.status){if("/token"!==e)return v("/token",{method:"post"}).then((({token:e})=>(y=e,r())));window.location.reload()}return t})).then((e=>{if(e.ok)return e.json();if(500===e.status)return e.json().then((({message:t})=>{const r=new Error(t);throw r.response=e,r}));const t=new Error(e.statusText);throw t.response=e,t}))},S=(0,o.createGlobalStyle)([".pul-grid--gap-md{margin-bottom:-16px;}"]),b=o.default.div.withConfig({displayName:"App__Header",componentId:"sc-3rq871-0"})(["display:flex;align-items:center;height:50px;padding:0 20px;"]),_=o.default.div.withConfig({displayName:"App__Logo",componentId:"sc-3rq871-1"})(["flex:none;"]),E=o.default.div.withConfig({displayName:"App__Main",componentId:"sc-3rq871-2"})(["padding:0 20px;"]),w=o.default.div.withConfig({displayName:"App__Content",componentId:"sc-3rq871-3"})(["padding:20px 0;"]),I=o.default.h1.withConfig({displayName:"App__Title",componentId:"sc-3rq871-4"})(["margin:0 0 16px;padding:0;font-size:24px;font-weight:400;line-height:28px;"]),A="PleskSQLServer",T="SwEngine",k="InnoDB",C="MysqlFilesPermissions";class x extends s.Component{constructor(...e){super(...e),(0,n.default)(this,"state",{data:null,cleaningDisk:!1,cleaningMemory:!1,processing:{}}),(0,n.default)(this,"toaster",null),(0,n.default)(this,"updateServiceProcessingState",((e,t)=>{this.setState((({processing:r})=>({processing:{...r,[e]:t}})))})),(0,n.default)(this,"mapMemoryData",(({memory:e,swap:t})=>[{type:"RAM",requires:Math.max(this.calculatePercent(5,e.total),104857600),...e},{type:"Swap",requires:this.calculatePercent(5,t.total),...t}])),(0,n.default)(this,"mapDiskData",(e=>e.map((e=>({key:e.volume??e.name+e.mount_point,requires:e.directories?.length?{relative:this.calculatePercent(5,e.total),absolute:1073741824}:null,...e,volume:e.volume??(0,s.jsx)(i.Translate,{content:"Disk.volumeFormat",params:{name:e.name,mount_point:e.mount_point}})}))))),(0,n.default)(this,"handleDiskCleanUp",(()=>{this.toaster?.clear(),this.setState({cleaningDisk:!0}),v("/disk",{method:"post"}).then((e=>{const t=Array.isArray(this.state.data?.disk)?this.calculateFreeSize(e)-this.calculateFreeSize(this.state.data?.disk):0;this.setState({data:{...this.state.data,disk:this.mapDiskData(e)},cleaningDisk:!1}),this.toaster?.add({intent:t>0?"success":"info",message:t>0?(0,s.jsx)(i.Translate,{content:"App.diskCleanUpSuccess",params:{size:(0,s.jsx)(a.default,{children:t})}}):(0,s.jsx)(i.Translate,{content:"App.diskCleanUpNothing"})})})).catch((e=>{this.setState({cleaningDisk:!1}),this.catchApiError(e)}))})),(0,n.default)(this,"handleMemoryCleanUp",(()=>{this.toaster?.clear(),this.setState({cleaningMemory:!0}),v("/system-resources",{method:"post"}).then((e=>{const t=this.mapMemoryData(e),r=Array.isArray(this.state.data?.memory)?this.calculateFreeSize(t)-this.calculateFreeSize(this.state.data.memory):0;this.setState({data:{...this.state.data,memory:t},cleaningMemory:!1}),this.toaster?.add({intent:r>0?"success":"info",message:r>0?(0,s.jsx)(i.Translate,{content:"App.memoryCleanUpSuccess",params:{size:(0,s.jsx)(a.default,{children:r})}}):(0,s.jsx)(i.Translate,{content:"App.memoryCleanUpNothing"})})})).catch((e=>{this.setState({cleaningMemory:!1}),this.catchApiError(e)}))})),(0,n.default)(this,"restartServiceById",(e=>v(`/services/${e}`,{method:"post"}).then((()=>{const t=this.state.data?.services?.[e]?.find((t=>t?.id===e));this.toaster?.add({intent:"success",message:(0,s.jsx)(i.Translate,{content:"App.restartServiceSuccess",params:{serviceName:t?.name}})}),(0,f.dispatchAction)("RESTART_SERVICE",{service:e,status:"ok"})})).catch((t=>{(0,f.dispatchAction)("RESTART_SERVICE",{service:e,status:"error"}),this.catchApiError(t)})).finally((()=>this.updateServiceStatusById(e))))),(0,n.default)(this,"handleRestartService",(e=>{this.toaster?.clear(),this.updateServiceProcessingState(e,!0),this.restartServiceById(e).finally((()=>this.updateServiceProcessingState(e,!1)))})),(0,n.default)(this,"handleRestartServer",(()=>{this.toaster?.clear();return v("/reboot",{method:"post"}).then((()=>new Promise((e=>{setTimeout((()=>{e(((e,t=3e3)=>new Promise((r=>{const n=()=>{setTimeout((async()=>{try{const t=await e();t.ok?r(t):n()}catch{n()}}),t)};n()})))((()=>(0,d.default)(window.location.toString(),{method:"head"}))))}),3e4)})).then((()=>{this.toaster?.add({intent:"success",message:(0,s.jsx)(i.Translate,{content:"App.rebootServerSuccess"})})})))).catch(this.catchApiError)})),(0,n.default)(this,"catchApiError",(({message:e})=>{this.toaster?.add({intent:"danger",message:e})})),(0,n.default)(this,"handleToolCheck",(e=>{this.toaster?.clear(),this.updateServiceProcessingState(A,!0),this.getTool("check",e).finally((()=>this.updateServiceStatusById(A).finally((()=>this.updateServiceProcessingState(A,!1)))))})),(0,n.default)(this,"handleToolRepair",(e=>{this.toaster?.clear(),this.updateServiceProcessingState(A,!0),this.getTool("repair",e).finally((()=>this.updateServiceStatusById(A).finally((()=>this.updateServiceProcessingState(A,!1)))))}))}componentDidMount(){v("/token",{method:"post"}).then((({token:e})=>{y=e,v("/config").then((e=>{(0,f.default)(e),(0,h.default)(e),Promise.all([v("/disk").then(this.mapDiskData).catch((e=>Promise.resolve({error:e.message}))),v("/system-resources").then(this.mapMemoryData).catch((e=>Promise.resolve({error:e.message}))),this.getSQLService(),this.getPleskService(e)]).then((([t,r,n,o])=>{this.setState({data:{disk:t,memory:r,services:{[T]:[o],[A]:[..."linux"===e.os?[{id:C,status:"inactive",handlers:{handleCheck:()=>this.handleToolCheck(C),handleRepair:()=>this.handleToolRepair(C)},isTool:!0},{id:k,status:"inactive",handlers:{handleCheck:()=>this.handleToolCheck(k),handleRepair:()=>this.handleToolRepair(k)},isTool:!0}]:[],n]},config:e}})}))}))}))}getPleskService(e={os:"linux"}){return"linux"!==e.os?Promise.resolve(null):v(`/services/${T}`).catch((e=>Promise.resolve({error:e.message}))).then((e=>({id:T,...e})))}getSQLService(){return v(`/services/${A}`).catch((e=>Promise.resolve({error:e.message}))).then((e=>({id:A,...e})))}updateServiceStatusById(e){let t;switch(e){case A:t=this.getSQLService();break;case T:t=this.getPleskService();break;default:throw new Error("Service not found")}return t.then((t=>{this.setState((({data:r})=>({data:{...r,services:{...r?.services??{},[e]:r?.services?.[e]?.map((r=>r?.id===e?{...r,...t}:r))}}})))}))}getTool(e,t){return v(`/${e}/${t}`,{method:"post"}).then((r=>{(0,f.dispatchAction)("INNODB_REPAIR_KIT",{tool:t,operation:e,status:r.status}),this.setState((({data:e})=>({data:{...e,services:{...e?.services,[A]:e?.services?.[A]?.map((e=>e?.id===t?{...e,...r}:e))}}})))})).catch((e=>Promise.resolve({id:t,message:e.message,status:"error"})))}calculatePercent(e,t){return Math.round(t*e/100)}calculateFreeSize(e){return e?.reduce(((e,{free:t})=>e+t),0)??0}render(){const{data:e}=this.state;return e?(0,s.jsx)(i.LocaleProvider,{messages:m,children:(0,s.jsxs)(i.Layout,{type:"fluid",width:"md",header:(0,s.jsx)(b,{children:(0,s.jsx)(_,{children:(0,s.jsx)("img",{src:"images/plesk.svg?1",height:"27",alt:"Plesk"})})}),headerFixed:!1,children:[(0,s.jsx)(S,{}),(0,s.jsx)(E,{children:(0,s.jsxs)(w,{children:[(0,s.jsx)(I,{children:(0,s.jsx)(i.Translate,{content:"App.title"})}),(0,s.jsxs)(i.Grid,{gap:"md",children:[(0,s.jsx)(i.GridCol,{sm:12,children:(0,s.jsx)(l.default,{onRestartServer:this.handleRestartServer,os:e.config?.os})},"restart-server"),(0,s.jsx)(i.GridCol,{sm:12,children:(0,s.jsx)(p.default,{serviceId:A,service:(e.services?.[A]??[]).filter(g),onRestart:this.handleRestartService,isProcessing:this.state.processing[A]??!1})},A),e.services?.[T]?.[0]&&(0,s.jsx)(i.GridCol,{sm:12,children:(0,s.jsx)(p.default,{serviceId:T,service:(e.services[T]??[]).filter(g),onRestart:this.handleRestartService,isProcessing:this.state.processing[T]??!1})},T),(0,s.jsx)(i.GridCol,{sm:12,children:(0,s.jsx)(c.default,{data:e.disk,onCleanUp:this.handleDiskCleanUp,isProcessing:this.state.cleaningDisk})},"disk"),(0,s.jsx)(i.GridCol,{sm:12,children:(0,s.jsx)(u.default,{data:e.memory,onCleanUp:this.handleMemoryCleanUp,isProcessing:this.state.cleaningMemory})},"memory")]})]})}),(0,s.jsx)(i.Toaster,{ref:e=>this.toaster=e})]})}):null}}const R=x},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(6);function o(e,t,r){return(t=(0,n.default)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(7),o=r(8);function i(e){var t=(0,o.default)(e,"string");return"symbol"==(0,n.default)(t)?t:t+""}},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(7);function o(e,t){if("object"!=(0,n.default)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.default)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ServerStyleSheet:()=>je,StyleSheetConsumer:()=>ne,StyleSheetContext:()=>re,StyleSheetManager:()=>ue,ThemeConsumer:()=>Oe,ThemeContext:()=>Re,ThemeProvider:()=>Pe,__PRIVATE__:()=>We,createGlobalStyle:()=>Ue,css:()=>Se,default:()=>He,isStyledComponent:()=>S,keyframes:()=>Be,useTheme:()=>qe,version:()=>_,withTheme:()=>Fe});var n=r(10),o=r(2),i=r(12),s=r.n(i),a=r(13),c=r(14),u=r(15),l=r(17),p=r.n(l);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var f=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},h=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},m=Object.freeze([]),y=Object.freeze({});function g(e){return"function"==typeof e}function v(e){return e.displayName||e.name||"Component"}function S(e){return e&&"string"==typeof e.styledComponentId}var b="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",_="5.3.11",E="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY))),I={};function A(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var T=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&A(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),k=new Map,C=new Map,x=1,R=function(e){if(k.has(e))return k.get(e);for(;C.has(x);)x++;var t=x++;return k.set(e,t),C.set(t,e),t},O=function(e){return C.get(e)},P=function(e,t){t>=x&&(x=t+1),k.set(e,t),C.set(t,e)},D="style["+b+'][data-styled-version="5.3.11"]',N=new RegExp("^"+b+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,r){for(var n,o=r.split(","),i=0,s=o.length;i<s;i++)(n=o[i])&&e.registerName(t,n)},L=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var s=r[o].trim();if(s){var a=s.match(N);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(P(u,c),M(e,u,a[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(s)}}},U=function(){return r.nc},B=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(b))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(b,"active"),n.setAttribute("data-styled-version","5.3.11");var s=U();return s&&n.setAttribute("nonce",s),r.insertBefore(n,i),n},j=function(){function e(e){var t=this.element=B(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}A(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),F=function(){function e(e){var t=this.element=B(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),q=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),W=E,H={isServer:!E,useCSSOMInjection:!w},z=function(){function e(e,t,r){void 0===e&&(e=y),void 0===t&&(t={}),this.options=d({},H,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&E&&W&&(W=!1,function(e){for(var t=document.querySelectorAll(D),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(b)&&(L(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return R(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(d({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new q(o):n?new j(o):new F(o),new T(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(R(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(R(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(R(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=O(o);if(void 0!==i){var s=e.names.get(i),a=t.getGroup(o);if(s&&a&&s.size){var c=b+".g"+o+'[id="'+i+'"]',u="";void 0!==s&&s.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+a+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),$=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function V(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=G(t%52)+r;return(G(t%52)+r).replace($,"$1-$2")}var K=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return K(5381,e)};function Y(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(g(r)&&!S(r))return!1}return!0}var X=J("5.3.11"),Q=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Y(e),this.componentId=t,this.baseHash=K(X,t),this.baseStyle=r,z.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=ge(this.rules,e,t,r).join(""),s=V(K(this.baseHash,i)>>>0);if(!t.hasNameForId(n,s)){var a=r(i,"."+s,void 0,n);t.insertRules(n,s,a)}o.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,u=K(this.baseHash,r.hash),l="",p=0;p<c;p++){var d=this.rules[p];if("string"==typeof d)l+=d;else if(d){var f=ge(d,e,t,r),h=Array.isArray(f)?f.join(""):f;u=K(u,h+p),l+=h}}if(l){var m=V(u>>>0);if(!t.hasNameForId(n,m)){var y=r(l,"."+m,void 0,n);t.insertRules(n,m,y)}o.push(m)}}return o.join(" ")},e}(),Z=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,r,n,o,i=void 0===e?y:e,s=i.options,c=void 0===s?y:s,u=i.plugins,l=void 0===u?m:u,p=new a.default(c),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,s,a,c,u,l,p){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===p?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,n,i){return 0===n&&-1!==ee.indexOf(i[r.length])||i.match(o)?e:"."+t};function g(e,i,s,a){void 0===a&&(a="&");var c=e.replace(Z,""),u=i&&s?s+" "+i+" { "+c+" }":c;return t=a,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),p(s||!i?"":i,u)}return p.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,h))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),g.hash=l.length?l.reduce((function(e,t){return t.name||A(15),K(e,t.name)}),5381).toString():"",g}var re=o.default.createContext(),ne=re.Consumer,oe=o.default.createContext(),ie=(oe.Consumer,new z),se=te();function ae(){return(0,o.useContext)(re)||ie}function ce(){return(0,o.useContext)(oe)||se}function ue(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=ae(),a=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,o.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,o.useEffect)((function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),o.default.createElement(re.Provider,{value:a},o.default.createElement(oe.Provider,{value:c},e.children))}var le=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=se);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return A(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),pe=/([A-Z])/,de=/([A-Z])/g,fe=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function me(e){return pe.test(e)?e.replace(de,he).replace(fe,"-ms-"):e}var ye=function(e){return null==e||!1===e||""===e};function ge(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],s=0,a=e.length;s<a;s+=1)""!==(o=ge(e[s],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ye(e)?"":S(e)?"."+e.styledComponentId:g(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ge(e(t),t,r,n):e instanceof le?r?(e.inject(r,n),e.getName(n)):e:h(e)?function e(t,r){var n,o,i=[];for(var s in t)t.hasOwnProperty(s)&&!ye(t[s])&&(Array.isArray(t[s])&&t[s].isCss||g(t[s])?i.push(me(s)+":",t[s],";"):h(t[s])?i.push.apply(i,e(t[s],s)):i.push(me(s)+": "+(n=s,(null==(o=t[s])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in c.default||n.startsWith("--")?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var u}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Se(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return g(e)||h(e)?ve(ge(f(m,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:ve(ge(f(e,r)))}new Set;var be=function(e,t,r){return void 0===r&&(r=y),e.theme!==r.theme&&e.theme||t||r.theme},_e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ee=/(^-|-$)/g;function we(e){return e.replace(_e,"-").replace(Ee,"")}var Ie=function(e){return V(J(e)>>>0)};function Ae(e){return"string"==typeof e&&!0}var Te=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ke=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ce(e,t,r){var n=e[r];Te(t)&&Te(n)?xe(n,t):e[r]=t}function xe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var s=i[o];if(Te(s))for(var a in s)ke(a)&&Ce(e,s[a],a)}return e}var Re=o.default.createContext(),Oe=Re.Consumer;function Pe(e){var t=(0,o.useContext)(Re),r=(0,o.useMemo)((function(){return function(e,t){return e?g(e)?e(t):Array.isArray(e)||"object"!=typeof e?A(8):t?d({},t,{},e):e:A(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.default.createElement(Re.Provider,{value:r},e.children):null}var De={};function Ne(e,t,r){var n=S(e),i=!Ae(e),s=t.attrs,a=void 0===s?m:s,c=t.componentId,l=void 0===c?function(e,t){var r="string"!=typeof e?"sc":we(e);De[r]=(De[r]||0)+1;var n=r+"-"+Ie("5.3.11"+r+De[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,f=t.displayName,h=void 0===f?function(e){return Ae(e)?"styled."+e:"Styled("+v(e)+")"}(e):f,b=t.displayName&&t.componentId?we(t.displayName)+"-"+t.componentId:t.componentId||l,_=n&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,E=t.shouldForwardProp;n&&e.shouldForwardProp&&(E=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var w,I=new Q(r,b,n?e.componentStyle:void 0),A=I.isStatic&&0===a.length,T=function(e,t){return function(e,t,r,n){var i=e.attrs,s=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,p=e.styledComponentId,f=e.target,h=function(e,t,r){void 0===e&&(e=y);var n=d({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,s=e;for(t in g(s)&&(s=s(n)),s)n[t]=o[t]="className"===t?(r=o[t],i=s[t],r&&i?r+" "+i:r||i):s[t]})),[n,o]}(be(t,(0,o.useContext)(Re),a)||y,t,i),m=h[0],v=h[1],S=function(e,t,r){var n=ae(),o=ce();return t?e.generateAndInjectStyles(y,n,o):e.generateAndInjectStyles(r,n,o)}(s,n,m),b=r,_=v.$as||t.$as||v.as||t.as||f,E=Ae(_),w=v!==t?d({},t,{},v):t,I={};for(var A in w)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?I.as=w[A]:(l?l(A,u.default,_):!E||(0,u.default)(A))&&(I[A]=w[A]));return t.style&&v.style!==t.style&&(I.style=d({},t.style,{},v.style)),I.className=Array.prototype.concat(c,p,S!==p?S:null,t.className,v.className).filter(Boolean).join(" "),I.ref=b,(0,o.createElement)(_,I)}(w,e,t,A)};return T.displayName=h,(w=o.default.forwardRef(T)).attrs=_,w.componentStyle=I,w.displayName=h,w.shouldForwardProp=E,w.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,w.styledComponentId=b,w.target=n?e.target:e,w.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Ae(e)?e:we(v(e)));return Ne(e,d({},o,{attrs:_,componentId:i}),r)},Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?xe({},e.defaultProps,t):t}}),Object.defineProperty(w,"toString",{value:function(){return"."+w.styledComponentId}}),i&&p()(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),w}var Me=function(e){return function e(t,r,o){if(void 0===o&&(o=y),!(0,n.isValidElementType)(r))return A(1,String(r));var i=function(){return t(r,o,Se.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,d({},o,{},n))},i.attrs=function(n){return e(t,r,d({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i}(Ne,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Me[e]=Me(e)}));var Le=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Y(e),z.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(ge(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&z.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ue(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Se.apply(void 0,[e].concat(r)),s="sc-global-"+Ie(JSON.stringify(i)),a=new Le(i,s);function c(e){var t=ae(),r=ce(),n=(0,o.useContext)(Re),i=(0,o.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(i,e,t,n,r),(0,o.useLayoutEffect)((function(){if(!t.server)return u(i,e,t,n,r),function(){return a.removeStyles(i,t)}}),[i,e,t,n,r]),null}function u(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,I,r,o);else{var i=d({},t,{theme:be(t,n,c.defaultProps)});a.renderStyles(e,i,r,o)}}return o.default.memo(c)}function Be(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Se.apply(void 0,[e].concat(r)).join(""),i=Ie(o);return new le(i,o)}var je=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=U();return"<style "+[r&&'nonce="'+r+'"',b+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?A(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return A(2);var r=((t={})[b]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=U();return n&&(r.nonce=n),[o.default.createElement("style",d({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new z({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?A(2):o.default.createElement(ue,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return A(3)},e}(),Fe=function(e){var t=o.default.forwardRef((function(t,r){var n=(0,o.useContext)(Re),i=e.defaultProps,s=be(t,n,i);return o.default.createElement(e,d({},t,{theme:s,ref:r}))}));return p()(t,e),t.displayName="WithTheme("+v(e)+")",t},qe=function(){return(0,o.useContext)(Re)},We={StyleSheet:z,masterSheet:ie};const He=Me},(e,t,r)=>{"use strict";e.exports=r(11)},(e,t)=>{"use strict"; /** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case s:case d:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case p:case m:case h:case c:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=m,t.Memo=h,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=d,t.SuspenseList=f,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return g(e)===u},t.isContextProvider=function(e){return g(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return g(e)===p},t.isFragment=function(e){return g(e)===i},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===h},t.isPortal=function(e){return g(e)===o},t.isProfiler=function(e){return g(e)===a},t.isStrictMode=function(e){return g(e)===s},t.isSuspense=function(e){return g(e)===d},t.isSuspenseList=function(e){return g(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===s||e===d||e===f||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=g},e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!a(u))return!1;var l=e[u],p=t[u];if(!1===(o=r?r.call(n,l,p,u):void 0)||void 0===o&&l!==p)return!1}return!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(e){function t(e,n,c,u,d){for(var f,h,m,y,b,E=0,w=0,I=0,A=0,T=0,P=0,N=m=f=0,L=0,U=0,B=0,j=0,F=c.length,q=F-1,W="",H="",z="",$="";L<F;){if(h=c.charCodeAt(L),L===q&&0!==w+A+I+E&&(0!==w&&(h=47===w?10:47),A=I=E=0,F++,q++),0===w+A+I+E){if(L===q&&(0<U&&(W=W.replace(p,"")),0<W.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:W+=c.charAt(L)}h=59}switch(h){case 123:for(f=(W=W.trim()).charCodeAt(0),m=1,j=++L;L<F;){switch(h=c.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(L+1)){case 42:case 47:e:{for(N=L+1;N<q;++N)switch(c.charCodeAt(N)){case 47:if(42===h&&42===c.charCodeAt(N-1)&&L+2!==N){L=N+1;break e}break;case 10:if(47===h){L=N+1;break e}}L=N}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<q&&c.charCodeAt(L)!==h;);}if(0===m)break;L++}if(m=c.substring(j,L),0===f&&(f=(W=W.replace(l,"").trim()).charCodeAt(0)),64===f){switch(0<U&&(W=W.replace(p,"")),h=W.charCodeAt(1)){case 100:case 109:case 115:case 45:U=n;break;default:U=O}if(j=(m=t(n,U,m,h,d+1)).length,0<D&&(b=a(3,m,U=r(O,W,B),n,C,k,j,h,d,u),W=U.join(""),void 0!==b&&0===(j=(m=b.trim()).length)&&(h=0,m="")),0<j)switch(h){case 115:W=W.replace(_,s);case 100:case 109:case 45:m=W+"{"+m+"}";break;case 107:m=(W=W.replace(g,"$1 $2"))+"{"+m+"}",m=1===R||2===R&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=W+m,112===u&&(H+=m,m="")}else m=""}else m=t(n,r(n,W,B),m,u,d+1);z+=m,m=B=U=N=f=0,W="",h=c.charCodeAt(++L);break;case 125:case 59:if(1<(j=(W=(0<U?W.replace(p,""):W).trim()).length))switch(0===N&&(f=W.charCodeAt(0),45===f||96<f&&123>f)&&(j=(W=W.replace(" ",":")).length),0<D&&void 0!==(b=a(1,W,n,e,C,k,H.length,u,d,u))&&0===(j=(W=b.trim()).length)&&(W="\0\0"),f=W.charCodeAt(0),h=W.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){$+=W+c.charAt(L);break}default:58!==W.charCodeAt(j-1)&&(H+=o(W,f,h,W.charCodeAt(2)))}B=U=N=f=0,W="",h=c.charCodeAt(++L)}}switch(h){case 13:case 10:47===w?w=0:0===1+f&&107!==u&&0<W.length&&(U=1,W+="\0"),0<D*M&&a(0,W,n,e,C,k,H.length,u,d,u),k=1,C++;break;case 59:case 125:if(0===w+A+I+E){k++;break}default:switch(k++,y=c.charAt(L),h){case 9:case 32:if(0===A+E+w)switch(T){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===A+w+E&&(U=B=1,y="\f"+y);break;case 108:if(0===A+w+E+x&&0<N)switch(L-N){case 2:112===T&&58===c.charCodeAt(L-3)&&(x=T);case 8:111===P&&(x=P)}break;case 58:0===A+w+E&&(N=L);break;case 44:0===w+I+A+E&&(U=1,y+="\r");break;case 34:case 39:0===w&&(A=A===h?0:0===A?h:A);break;case 91:0===A+w+I&&E++;break;case 93:0===A+w+I&&E--;break;case 41:0===A+w+E&&I--;break;case 40:if(0===A+w+E){if(0===f)if(2*T+3*P==533);else f=1;I++}break;case 64:0===w+I+A+E+N+m&&(m=1);break;case 42:case 47:if(!(0<A+E+I))switch(w){case 0:switch(2*h+3*c.charCodeAt(L+1)){case 235:w=47;break;case 220:j=L,w=42}break;case 42:47===h&&42===T&&j+2!==L&&(33===c.charCodeAt(j+2)&&(H+=c.substring(j,L+1)),y="",w=0)}}0===w&&(W+=y)}P=T,T=h,L++}if(0<(j=H.length)){if(U=n,0<D&&(void 0!==(b=a(2,H,U,e,C,k,j,u,d,u))&&0===(H=b).length))return $+H+z;if(H=U.join(",")+"{"+H+"}",0!=R*x){switch(2!==R||i(H,2)||(x=0),x){case 111:H=H.replace(S,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}x=0}}return $+H+z}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<i;++a)t[a]=n(e,t[a],r).trim();break;default:var c=a=0;for(t=[];a<i;++a)for(var u=0;u<s;++u)t[c++]=n(e[u]+" ",o[a],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var s=e+";",a=2*t+3*r+4*n;if(944===a){e=s.indexOf(":",9)+1;var c=s.substring(e,s.length-1).trim();return c=s.substring(0,e).trim()+c+";",1===R||2===R&&i(c,1)?"-webkit-"+c+c:c}if(0===R||2===R&&!i(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(T,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(c=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+c+s;case 1005:return f.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(c=s.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=s.replace(b,"tb");break;case 232:c=s.replace(b,"tb-rl");break;case 220:c=s.replace(b,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+c+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,a=(c=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:s=s.replace(c,"-webkit-"+c)+";"+s;break;case 207:case 102:s=s.replace(c,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(c,"-webkit-"+c)+";"+s.replace(c,"-ms-"+c+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return c=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+c+"-ms-flex-"+c+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(w,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(w,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):s.replace(c,"-webkit-"+c)+s.replace(c,"-moz-"+c.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+n&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+s}return s}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),N(2!==t?n:n.replace(I,"$1"),r,t)}function s(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(E," or ($1)").substring(4):"("+t+")"}function a(e,t,r,n,o,i,s,a,c,l){for(var p,d=0,f=t;d<D;++d)switch(p=P[d].call(u,e,f,r,n,o,i,s,a,c,l)){case void 0:case!1:case!0:case null:break;default:f=p}if(f!==t)return f}function c(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?R=1:(R=2,N=e):R=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<D){var o=a(-1,r,n,n,C,k,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(O,n,r,0,0);return 0<D&&(void 0!==(o=a(-2,i,n,n,C,k,i.length,0,0,0))&&(i=o)),x=0,k=C=1,i}var l=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,S=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,w=/-self|flex-/g,I=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,k=1,C=1,x=0,R=1,O=[],P=[],D=0,N=null,M=0;return u.use=function e(t){switch(t){case void 0:case null:D=P.length=0;break;default:if("function"==typeof t)P[D++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else M=0|!!t}return e},u.set=c,void 0!==e&&c(e),u}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(16),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(0,n.default)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},(e,t,r)=>{"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";var n=r(18),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return n.isMemo(e)?s:a[e.$$typeof]||o}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=f(r);o&&o!==h&&e(t,o,n)}var s=l(r);p&&(s=s.concat(p(r)));for(var a=c(t),m=c(r),y=0;y<s.length;++y){var g=s[y];if(!(i[g]||n&&n[g]||m&&m[g]||a&&a[g])){var v=d(r,g);try{u(t,g,v)}catch(e){}}}}return t}},(e,t,r)=>{"use strict";e.exports=r(19)},(e,t)=>{"use strict"; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,S=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case p:case i:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case y:case m:case c:return e;default:return t}}case o:return t}}}function E(e){return _(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||_(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===S||e.$$typeof===b||e.$$typeof===g)},t.typeOf=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(3),o=r(2);const i=({children:e,...t})=>{const r=e&&Math.floor(Math.log(e)/Math.log(1024)),i=r?(0,o.jsx)(n.Translate,{content:`Bytes.${["kilo","mega","giga","tera"][r-1]}`}):"",s=(0,o.jsx)(n.Translate,{content:"Bytes.suffix"});return(0,o.jsxs)("span",{...t,children:[(e/Math.pow(1024,r)).toFixed(2)," ",i,s]})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(3),o=r(22),i=r(2);const s=e=>"object"==typeof e,a=({data:e=[],onCleanUp:t,isProcessing:r,...a})=>(0,i.jsx)(n.Panel,{title:(0,i.jsx)(n.Translate,{content:"Disk.title"}),...a,children:(0,i.jsxs)(n.Media,{image:(0,i.jsx)(n.Icon,{src:"images/disk-space.png",size:"48",alt:"Disk Space"}),children:[(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Translate,{content:"Disk.description"})}),"error"in e?(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Alert,{intent:"danger",children:(0,i.jsx)(n.Status,{intent:"danger",bottomAddon:e.error,children:(0,i.jsx)(n.Translate,{content:"Disk.loadingError"})})})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.List,{columns:[{key:"volume",title:(0,i.jsx)(n.Translate,{content:"Disk.volume"})},e.every((({directories:e})=>e))&&{key:"directories",title:(0,i.jsx)(n.Translate,{content:"Disk.directories"}),render:({directories:e})=>e?e.map((e=>(0,i.jsx)("div",{children:e},e))):null},{key:"free",title:(0,i.jsx)(n.Translate,{content:"Disk.free"}),render:({free:e,total:t,requires:r})=>(0,i.jsx)(o.default,{free:e,total:t,min:r})}].filter(s),rowKey:"key",data:e})}),(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Translate,{content:"Disk.recommend"})}),(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Button,{intent:"primary",onClick:t,state:r?"loading":void 0,id:"disk-cleanup",children:(0,i.jsx)(n.Translate,{content:"Disk.cleanUp"})})}),(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Translate,{content:"Disk.recommend2",params:{limitingBackupsLink:(0,i.jsx)(n.Link,{href:"https://docs.plesk.com/en-US/obsidian/administrator-guide/backing-up-and-restoration/global-backup-settings.59265/",target:"_blank",children:(0,i.jsx)(n.Translate,{content:"Disk.limitingBackups"})}),duExtensionLink:(0,i.jsx)(n.Link,{href:"https://www.plesk.com/extensions/diskspace-usage-viewer/",target:"_blank",children:(0,i.jsx)(n.Translate,{content:"Disk.duExtension"})})}})})]})]})})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(3),o=r(20),i=r(2);const s=({children:e,...t})=>{const r=document.documentElement.lang||"en-US",n=new Intl.NumberFormat(r,{style:"percent",maximumFractionDigits:1});return(0,i.jsx)("span",{...t,children:n.format(e)})},a=({free:e,total:t,min:r,...a})=>{const c=(0,i.jsx)(n.Translate,{content:"Available.format",params:{free:(0,i.jsx)(o.default,{children:e}),total:(0,i.jsx)(o.default,{children:t}),percent:(0,i.jsx)(s,{children:t?e/t:0})},...a});return r&&"object"==typeof r&&e<r.relative?e<r.absolute?(0,i.jsx)(n.Status,{intent:"danger",children:c}):(0,i.jsx)(n.Status,{intent:"warning",children:c}):c}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(3),o=r(22),i=r(2);const s=({data:e=[],onCleanUp:t,isProcessing:r})=>(0,i.jsx)(n.Panel,{title:(0,i.jsx)(n.Translate,{content:"Memory.title"}),children:(0,i.jsxs)(n.Media,{image:(0,i.jsx)(n.Icon,{src:"images/ram.png",size:"48",alt:"RAM"}),children:[(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Translate,{content:"Memory.description"})}),"error"in e?(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Alert,{intent:"danger",children:(0,i.jsx)(n.Status,{intent:"danger",bottomAddon:e.error||"",children:(0,i.jsx)(n.Translate,{content:"Memory.loadingError"})})})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.List,{columns:[{key:"type",title:""},{key:"free",title:(0,i.jsx)(n.Translate,{content:"Memory.free"}),render:({free:e,total:t,requires:r})=>(0,i.jsx)(o.default,{free:e,total:t,min:r})}],rowKey:"type",data:e})}),(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Translate,{content:"Memory.recommend"})}),(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Button,{intent:"primary",onClick:t,state:r?"loading":void 0,id:"memory-cleanup",children:(0,i.jsx)(n.Translate,{content:"Memory.cleanUp"})})})]})]})})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.default});var n=r(25)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(3),o=r(26),i=r(2);const s=({onRestartServer:e,os:t="",...r})=>{const[s,a]=(0,i.useState)(!0);return(0,i.useEffect)((()=>{(async()=>{if("linux"===t){return 200===(await fetch("/modules/ssh-terminal/repair/")).status}return!1})().then((e=>a(!e))).catch((()=>a(!0)))}),[t]),(0,i.jsx)(n.Alert,{intent:"info",...r,children:(0,i.jsxs)(n.Grid,{gap:"md",sm:2,children:[(0,i.jsx)(n.GridCol,{children:(0,i.jsxs)(n.Media,{image:(0,i.jsx)(n.Icon,{src:"images/repair.png",size:"96",alt:"Repair CP"}),imageSpacing:"lg",children:[(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Translate,{content:"Overview.description"})}),(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Translate,{content:"Overview.loginDescription"})}),(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Button,{intent:"primary",component:"a",href:"/",id:"plesk-login",children:(0,i.jsx)(n.Translate,{content:"Overview.loginButton"})})})]})}),(0,i.jsx)(n.GridCol,{children:(0,i.jsx)(n.Panel,{children:(0,i.jsxs)(n.Grid,{gap:"md",md:2,children:[(0,i.jsx)(n.GridCol,{hidden:s,children:(0,i.jsx)(n.Media,{image:(0,i.jsx)(n.Icon,{src:"images/terminal.png",size:"32",alt:"Terminal"}),imageSpacing:"lg",children:(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Translate,{content:"Overview.terminalDescription",params:{link:(0,i.jsx)("a",{href:"/modules/ssh-terminal/repair/",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.Translate,{content:"Overview.terminalLink"})})}})})})}),(0,i.jsx)(n.GridCol,{children:(0,i.jsx)(n.Media,{image:(0,i.jsx)(n.Icon,{src:"images/help.png",size:"32",alt:"Help"}),imageSpacing:"lg",children:(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.Translate,{content:"Overview.helpCenterDescription",params:{link:(0,i.jsx)("a",{href:"https://support.plesk.com",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.Translate,{content:"Overview.helpCenter"})})}})})})}),(0,i.jsx)(n.GridCol,{children:(0,i.jsx)(o.default,{onRestartServer:e})})]})})})]})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(3),o=r(2);const i=({onRestartServer:e})=>{const[t,r]=(0,o.useState)(!1),[i,s]=(0,o.useState)();return(0,o.jsxs)(n.Media,{image:(0,o.jsx)(n.Icon,{src:"images/restart.png",size:"32",alt:"Restart Server"}),imageSpacing:"lg",children:[(0,o.jsx)(n.MediaSection,{children:(0,o.jsx)(n.Translate,{content:"RestartServer.description"})}),(0,o.jsx)(n.MediaSection,{children:(0,o.jsx)(n.Button,{onClick:()=>{r(!0)},children:(0,o.jsx)(n.Translate,{content:"RestartServer.button"})})}),(0,o.jsx)(n.Dialog,{isOpen:t,onClose:()=>{i||r(!1)},size:"sm",image:(0,o.jsx)(n.Icon,{src:"images/restart-server-dialog.png",size:"96"}),form:{onSubmit:()=>{s("submit"),e().then((e=>{e||(s(void 0),r(!1))})).catch((()=>{s(void 0),r(!1)}))},state:i,submitButton:{id:"server-restart",intent:"danger",children:(0,o.jsx)(n.Translate,{content:"RestartServer.button"})},hideRequiredLegend:!0},children:(0,o.jsx)(n.Translate,{content:"RestartServer.dialogText"})})]})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{colorizeOutput:()=>c,default:()=>d});var n=r(3),o=r(28),i=r(2),s=r(4),a=r(29);const c=e=>e.split(/\n/).map(((e,t)=>{let r=e;return e.includes("ERROR:")?r=u(e):e.includes("WARNING:")&&(r=l(e)),(0,i.jsxs)(i.Fragment,{children:[r,(0,i.jsx)("br",{})]},t)})),u=e=>(0,i.jsx)("span",{style:{color:"#d02d4b"},children:e}),l=e=>(0,i.jsx)("span",{style:{color:"#d66b0d"},children:e}),p=()=>(0,i.jsx)(n.Link,{href:"https://support.plesk.com/hc/en-us/articles/12377798484375-How-to-fix-InnoDB-corruption-cases-for-the-MySQL-MariaDB-databases-on-Plesk-for-Linux",target:"_blank",children:(0,i.jsx)(n.Translate,{content:"SubmitPopover.repairTroubleshootingArticle"})}),d=({serviceId:e,service:t,onRestart:r,isProcessing:u,...l})=>(0,i.jsx)(n.Panel,{title:(0,i.jsx)(n.Translate,{content:`Services.${e}.title`}),...l,children:(0,i.jsxs)(n.Media,{image:(0,i.jsx)(n.Icon,{src:"images/services.png",size:"48",alt:"Service"}),children:[(0,i.jsx)(n.Section,{children:(0,i.jsx)(n.Translate,{content:`Services.${e}.description`})}),(0,i.jsx)(n.MediaSection,{children:(0,i.jsx)(n.List,{"data-test-id":`${e}-service`,columns:[{key:"name",width:"40%",render:({id:e,name:t})=>t||(0,i.jsx)(n.Translate,{content:`Services.${e}.name`})},{key:"status",width:"30%",render:({id:e="",status:t="invalid",message:r,isTool:s})=>r?(0,i.jsx)(n.Popover,{defaultVisible:!!s,target:(0,i.jsx)(o.default,{id:e,style:{borderBottom:"1px dotted"},status:t}),placement:"bottom",width:"md",children:(0,i.jsx)(n.ConsoleOutput,{wide:!0,children:s?c(r):r})},btoa(unescape(encodeURIComponent(`${e} ${t} ${r.substring(0,10)}`)))):(0,i.jsx)(o.default,{id:e,status:t})},{key:"button",width:"30%",render:t=>t.isTool?((e,t)=>{const r=()=>"corrupted"===e.status?e.handlers.handleRepair:e.handlers.handleCheck,o=()=>"corrupted"===e.status?`tool-${e.id}-fix`:`tool-${e.id}-check`,c=()=>(0,i.jsx)(n.Translate,{content:`Services.${e.id}.${"corrupted"===e.status?"fix":"check"}`});return e.id===s.filePermsToolId?(0,i.jsx)(n.Button,{intent:"primary",state:t?"loading":void 0,onClick:r(),id:o(),children:c()}):e.id===s.innodbToolId?(0,i.jsx)(a.default,{description:"corrupted"===e.status?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.Translate,{content:"SubmitPopover.repairList"}),(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:(0,i.jsx)(n.Translate,{content:"SubmitPopover.repairListOption1"})}),(0,i.jsx)("li",{children:(0,i.jsx)(n.Translate,{content:"SubmitPopover.repairListOption2"})})]}),(0,i.jsx)(n.Translate,{content:"SubmitPopover.repairTroubleshootingArticleText",params:{troubleshootingArticle:(0,i.jsx)(p,{})}}),(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)(n.Translate,{content:"SubmitPopover.repairConfirmationText"})]}):(0,i.jsx)(n.Translate,{content:"SubmitPopover.checkDescription"}),onSubmit:r(),targetEl:(0,i.jsx)(n.Button,{intent:"primary",state:t?"loading":void 0,id:o(),children:c()})}):null})(t,u):(0,i.jsx)(n.Button,{intent:"primary",onClick:()=>r(e),state:u?"loading":void 0,id:`services-${t.id}-fix`,children:(0,i.jsx)(n.Translate,{content:`Services.${t.id}.fix`})})}],rowKey:"id",data:t})})]})})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(3),o=r(2);const i={disabled:"inactive",inactive:"inactive",corrupted:"danger",error:"danger",failed:"danger",ok:"success",running:"success",invalid:"danger",starting:"danger",stopping:"danger",stopped:"danger",pausing:"danger",paused:"danger",continuing:"danger"},s=({id:e,status:t,...r})=>(0,o.jsx)(n.Status,{intent:i[t]??"inactive",...r,children:(0,o.jsx)(n.Translate,{content:`ServiceStatus.${e}.${t||"inactive"}`})})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2),o=r(3);const i=({description:e,targetEl:t,onSubmit:r})=>{const[i,s]=(0,n.useState)(!1),a=(0,n.cloneElement)(t,{onClick:()=>{s(!0)}});return(0,n.jsx)(o.Popover,{visible:i,"data-testid":"submit_popover",width:"sm",placement:"top-right",intent:"warning",onClose:()=>s(!1),target:a,children:(0,n.jsxs)("div",{children:[(0,n.jsx)(o.Section,{children:e}),(0,n.jsx)(o.Button,{size:"md",intent:"danger",onClick:()=>{r(),s(!1)},children:(0,n.jsx)(o.Translate,{content:"SubmitPopover.ok"})})," ",(0,n.jsx)(o.Button,{size:"md",onClick:()=>s(!1),children:(0,n.jsx)(o.Translate,{content:"SubmitPopover.cancel"})})]})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=(e,t)=>fetch(e,{credentials:"same-origin",...t})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,dispatchAction:()=>a});var n=r(32),o=r(193),i=r(194);const s=({userActivityTracking:{enabled:e,dummyRequest:t,firehose:r,debug:s},instanceId:a})=>{e&&(0,i.isAnalyticsAllowed)()&&n.default.init({instanceId:o.default.get("uat-iid")||a,accountLevel:"admin",accountId:"1",sessionId:o.default.get("uat-sid")||"0000",firehose:t?null:r,logger:s?console.log:null})},{dispatchAction:a}=n.default},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_,getUrl:()=>u,prepareNodeData:()=>d,request:()=>v});var n=r(33),o=r.n(n),i=r(188),s=r.n(i);Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector);const a=document.createElement("a"),c=e=>{a.href=e;const{pathname:t,search:r,hash:n}=a,o=(({pathname:e,search:t})=>{const r=e.match(/^\/smb\/account\/switch\//i)?"returnUrl":"pageUrl",n=new RegExp(`${r}=([^&]*)`).exec(t);if(n&&n[1])try{return decodeURIComponent(n[1])}catch{}return null})(a);if(o)return c(o);if([/^\/smb\/file-manager\//i,/^\/(admin|smb)\/backup\//i,/\/hosting\/web-directories\//i].some((e=>t.match(e))))return t;const i=["searchText","sql_query","user","login","pass","token","key","mail"],s=r.replace(/^\?/,"").split("&").reduce(((e,t)=>{if(!t.includes("="))return[...e,t];const[r]=t.split("=");return i.some((e=>r.toLocaleLowerCase().includes(e.toLowerCase())))?[...e,`${r}=*****`]:[...e,t]}),[]).join("&");return`${t}${s?`?${s}`:""}${n}`},u=e=>{return e&&!s()(e,{protocols:["http","https"],require_host:!1})?null:e&&e.match(/^(?:[a-z]+:)?\/\//i)?(t=e,[/^https?:\/\/([\w-]+\.)*plesk\.com/i,/^https?:\/\/(www\.)?facebook\.com\/(groups\/)?plesk$/i,/^https?:\/\/(www\.)?twitter\.com\/plesk$/i].some((e=>t.match(e)))?t.split("?")[0]:null):c(e||window.location.href);var t},l=e=>{if(!e||!e.localName)return null;let t=e.localName.toLowerCase();if(e.id&&(t+=`#${e.id}`),e.classList)for(let r=0,n=e.classList.length;r<n;++r)t+=`.${e.classList[r]}`;return t},p=(e,t)=>{let r=(e=>{let{target:t}=e;const{currentTarget:r,type:n}=e;return r&&r.tagName&&("load"===n||"error"===n||"click"===n&&"input"===r.tagName.toLowerCase()&&"radio"===r.type)&&(t=r),t.nodeType===Node.TEXT_NODE?t.parentNode:t})(e);if(!t)return r;for(;r;){if(r.nodeType===Node.ELEMENT_NODE&&r.matches(t))return r;r=r.parentNode}return null},d=(e,t,r)=>{const n={};return n.css=((e,t)=>{const r=[];for(let n=0;e&&e.nodeType===Node.ELEMENT_NODE&&n<t;e=e.parentNode,n++)r.splice(0,0,l(e));return r.length?r.join(" "):null})(e,5),e.id&&(n.id=e.id),r&&r.attributes&&r.attributes.forEach((t=>{if(!e.hasAttribute(t))return;const r="href"===t?u(e.getAttribute(t)):e.getAttribute(t);r&&(n[t]=r)})),["id","type","action",r&&r.dataset?r.dataset:[]].forEach((t=>{t in e.dataset&&("dataset"in n||(n.dataset={}),n.dataset[t]=e.dataset[t])})),n},f=e=>{const t={"|":encodeURIComponent("|"),"\n":encodeURIComponent("\n")};return e.map((e=>e?(Object.entries(t).forEach((([t,r])=>{e=e.replace(new RegExp(`\\${t}`,"g"),r)})),e):""))};let h,m,y=!1,g={};const v=(e,t,r)=>{const n={timestamp:(new Date).toISOString(),instanceId:m.instanceId,accountLevel:m.accountLevel,accountId:m.accountId,sessionId:m.sessionId,path:e.url||u(),action:e.name||null,result:r||null},i=((e,t)=>{const r={};e.post&&t&&(e.post.self&&e.post.self.forEach((function(e){if("value"===e)return;const n=t.getAttribute(e);n&&(r[e]=n)})),e.post.selfText&&(r.text=t.innerText)),e.data&&Object.keys(e.data).forEach((function(t){r[t]=e.data[t]}));const n=(e=>{if(!e||!e.parentElement)return[];let t=e;const r=[];for(;t;)r.push(t.dataset.type),t=t.parentElement.closest("[data-type]");return r.length>1?r.slice(1):[]})(t);return n.length>0&&(r.parents=n),r})(e,t);((e,t,r)=>{if(!t.sessionId)return window.localStorage.getItem("uat-aid")||window.localStorage.setItem("uat-aid",Math.random().toString(36).slice(2)),void(r["uat-aid"]=window.localStorage.getItem("uat-aid"));"LOGIN"===e.name&&window.localStorage.getItem("uat-aid")&&(r["uat-aid"]=window.localStorage.getItem("uat-aid"),window.localStorage.removeItem("uat-aid"))})(e,m,i),m.parentId&&(i.parentId=m.parentId),Object.keys(i).length&&(n.additionalData=JSON.stringify(i)),"function"==typeof m.logger&&m.logger(n),m.firehose&&(h||(h=new(o())(m.firehose)),h.putRecord({DeliveryStreamName:m.sessionId?m.firehose.stream:m.firehose.noSessionStream,Record:{Data:`${f(Object.values(n)).join("|")}\n`}},(()=>{})))};let S={contentLoad(e,t,r){"loading"===document.readyState?window.addEventListener("load",(function(e){r.data=r.data||{},m.extensions&&(r.data.extensions=m.extensions),setTimeout((()=>{if(window.performance){const e=window.performance.timing;r.data.pageLoadTime=e.loadEventEnd-e.navigationStart,r.data.requestTime=e.responseEnd-e.requestStart,r.data.renderTime=e.domComplete-e.domLoading}v(r,e.target)}),0)})):v(r,document)},historyReplaceState(e,t,r){window.history.replaceState=new Proxy(window.history.replaceState,{apply:(e,t,n)=>(r.data=r.data||{},m.extensions&&(r.data.extensions=m.extensions),v(r,document),e.apply(t,n))})},click:({elements:e},t,r,n)=>{document.addEventListener(n,(function(t){if(!t.uatHandled)for(let n=0;n<e.length;n++){let o,{selector:i}=e[n];if(i){i=Array.isArray(i)?i:[i];for(let e=0;e<i.length&&!o;e++)o=p(t,i[e])}if(o){t.uatHandled=!0,v({...r,name:(o.dataset.action||r.name).toUpperCase(),data:d(o,t.target,e[n])},o);break}}}),!0)}},b=[{expects:[{contentLoad:{}}]},{expects:[{historyReplaceState:{}}]},{name:"CLICK",expects:[{click:{elements:[{selector:"[data-action]"},{selector:"a",attributes:["href"]},{selector:"button"},{selector:['[class*="commonButton"]','[class*="btn"]','[class*="link"]','[class*="hint"]','[class*="button"]','[class*="control"]','[class*="close"]']},{selector:'[role="button"]'}]}}]}];const _={init(e){e&&!y&&(m=e,Object.keys(g).forEach((e=>{g[e]()})),b.forEach((function(e){e.expects.forEach((function(t){Object.keys(t).forEach((function(r){S[r]&&S[r](t[r],t,e,r)}))}))})),y=!0)},setPatches(e){g=e(g)},setActions(e){b=e(b)},setWatchers(e){S=e(S)},setLogger(e){m.logger=e},dispatchAction(e,t){y&&v({name:e,url:u(),data:t})},getConfig:()=>m}},(e,t,r)=>{r(34);var n=r(36),o=n.Service,i=n.apiLoader;i.services.firehose={},n.Firehose=o.defineService("firehose",["2015-08-04"]),Object.defineProperty(i.services.firehose,"2015-08-04",{get:function(){var e=r(186);return e.paginators=r(187).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Firehose},(e,t,r)=>{var n=r(35);n.crypto.lib=r(148),n.Buffer=r(151).Buffer,n.url=r(158),n.querystring=r(160),n.realClock=r(163),n.environment="js",n.createEventStream=r(164).createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var o=r(36);if(e.exports=o,r(67),r(68),r(170),r(176),r(177),r(178),r(182),o.XML.Parser=r(183),r(184),void 0===i)var i={browser:!0}},(e,t,r)=>{var n,o={environment:"nodejs",engine:function(){if(o.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=o.environment,t="aws-sdk-"+e+"/"+r(36).VERSION;return"nodejs"===e&&(t+=" "+o.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},uriEscapePath:function(e){var t=[];return o.arrayEach(e.split("/"),(function(e){t.push(o.uriEscape(e))})),t.join("/")},urlParse:function(e){return o.url.parse(e)},urlFormat:function(e){return o.url.format(e)},queryStringParse:function(e){return o.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=o.uriEscape,n=Object.keys(e).sort();return o.arrayEach(n,(function(n){var i=e[n],s=r(n),a=s+"=";if(Array.isArray(i)){var c=[];o.arrayEach(i,(function(e){c.push(r(e))})),a=s+"="+c.sort().join("&"+s+"=")}else null!=i&&(a=s+"="+r(i));t.push(a)})),t.join("&")},readFileSync:function(e){return o.isBrowser()?null:r(137).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 encode number "+e));return null==e?e:o.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 decode number "+e));return null==e?e:o.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,t):new o.Buffer(e,t)},alloc:function(e,t,r){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof o.Buffer.alloc)return o.Buffer.alloc(e,t,r);var n=new o.Buffer(e);return void 0!==t&&"function"==typeof n.fill&&n.fill(t,void 0,void 0,r),n},toStream:function(e){o.Buffer.isBuffer(e)||(e=o.buffer.toBuffer(e));var t=new o.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var o=r+n;o>e.length&&(o=e.length),t.push(e.slice(r,o)),r=o},t},concat:function(e){var t,r,n=0,i=0;for(r=0;r<e.length;r++)n+=e[r].length;for(t=o.buffer.alloc(n),r=0;r<e.length;r++)e[r].copy(t,i),i+=e[r].length;return t}},string:{byteLength:function(e){if(null==e)return 0;if("string"==typeof e&&(e=o.buffer.toBuffer(e)),"number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.length)return e.length;if("number"==typeof e.size)return e.size;if("string"==typeof e.path)return r(137).lstatSync(e.path).size;throw o.error(new Error("Cannot determine length of "+e),{object:e})},upperFirst:function(e){return e[0].toUpperCase()+e.substr(1)},lowerFirst:function(e){return e[0].toLowerCase()+e.substr(1)}},ini:{parse:function(e){var t,r={};return o.arrayEach(e.split(/\r?\n/),(function(e){if("["===(e=e.split(/(^|\s)[;#]/)[0].trim())[0]&&"]"===e[e.length-1]){if("__proto__"===(t=e.substring(1,e.length-1))||"__proto__"===t.split(/\s/)[1])throw o.error(new Error("Cannot load profile name '"+t+"' from shared ini file."))}else if(t){var n=e.indexOf("="),i=e.length-1;if(-1!==n&&0!==n&&n!==i){var s=e.substring(0,n).trim(),a=e.substring(n+1).trim();r[t]=r[t]||{},r[t][s]=a}}})),r}},fn:{noop:function(){},callback:function(e){if(e)throw e},makeAsync:function(e,t){return t&&t<=e.length?e:function(){var t=Array.prototype.slice.call(arguments,0);t.pop()(e.apply(null,t))}}},date:{getDate:function(){return n||(n=r(36)),n.config.systemClockOffset?new Date((new Date).getTime()+n.config.systemClockOffset):new Date},iso8601:function(e){return void 0===e&&(e=o.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(e){return void 0===e&&(e=o.date.getDate()),e.toUTCString()},unixTimestamp:function(e){return void 0===e&&(e=o.date.getDate()),e.getTime()/1e3},from:function(e){return"number"==typeof e?new Date(1e3*e):new Date(e)},format:function(e,t){return t||(t="iso8601"),o.date[t](o.date.from(e))},parseTimestamp:function(e){if("number"==typeof e)return new Date(1e3*e);if(e.match(/^\d+$/))return new Date(1e3*e);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw o.error(new Error("unhandled timestamp format: "+e),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(e){var t=o.crypto.crc32Table,r=~0;"string"==typeof e&&(e=o.buffer.toBuffer(e));for(var n=0;n<e.length;n++){r=r>>>8^t[255&(r^e.readUInt8(n))]}return~r>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=o.buffer.toBuffer(t)),o.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return o.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return o.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var i=o.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=o.buffer.toBuffer(t));var s=o.arraySliceFn(t),a=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(a=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!a)t.on("data",(function(e){i.update(e)})),t.on("error",(function(e){n(e)})),t.on("end",(function(){n(null,i.digest(r))}));else{if(!n||!s||a||"undefined"==typeof FileReader){o.isBrowser()&&"object"==typeof t&&!a&&(t=new o.Buffer(new Uint8Array(t)));var c=i.update(t).digest(r);return n&&n(null,c),c}var u=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e),u+=e.length,l._continueReading()},l._continueReading=function(){if(u>=t.size)n(null,i.digest(r));else{var e=u+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(s.call(t,u,e))}},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push(("0"+e.charCodeAt(r).toString(16)).substr(-2,2));return t.join("")},createHash:function(e){return o.crypto.lib.createHash(e)}},abort:{},each:function(e,t){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))if(t.call(this,r,e[r])===o.abort)break}},arrayEach:function(e,t){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))if(t.call(this,e[r],parseInt(r,10))===o.abort)break}},update:function(e,t){return o.each(t,(function(t,r){e[t]=r})),e},merge:function(e,t){return o.update(o.copy(e),t)},copy:function(e){if(null==e)return e;var t={};for(var r in e)t[r]=e[r];return t},isEmpty:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},arraySliceFn:function(e){var t=e.slice||e.webkitSlice||e.mozSlice;return"function"==typeof t?t:null},isType:function(e,t){return"function"==typeof t&&(t=o.typeName(t)),Object.prototype.toString.call(e)==="[object "+t+"]"},typeName:function(e){if(Object.prototype.hasOwnProperty.call(e,"name"))return e.name;var t=e.toString(),r=t.match(/^\s*function (.+)\(/);return r?r[1]:t},error:function(e,t){var r=null;for(var n in"string"==typeof e.message&&""!==e.message&&("string"==typeof t||t&&t.message)&&((r=o.copy(e)).message=e.message),e.message=e.message||null,"string"==typeof t?e.message=t:"object"==typeof t&&null!==t&&(o.update(e,t),t.message&&(e.message=t.message),(t.code||t.name)&&(e.code=t.code||t.name),t.stack&&(e.stack=t.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=String(t&&t.name||e.name||e.code||"Error"),e.time=new Date,r&&(e.originalError=r),t||{})if("["===n[0]&&"]"===n[n.length-1]){if("code"===(n=n.slice(1,-1))||"message"===n)continue;e["["+n+"]"]="See error."+n+" for details.",Object.defineProperty(e,n,{value:e[n]||t&&t[n]||r&&r[n],enumerable:!1,writable:!0})}return e},inherit:function(e,t){var r=null;if(void 0===t)t=e,e=Object,r={};else{var n=function(){};n.prototype=e.prototype,r=new n}return t.constructor===Object&&(t.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),t.constructor.prototype=r,o.update(t.constructor.prototype,t),t.constructor.__super__=e,t.constructor},mixin:function(){for(var e=arguments[0],t=1;t<arguments.length;t++)for(var r in arguments[t].prototype){var n=arguments[t].prototype[r];"constructor"!==r&&(e.prototype[r]=n)}return e},hideProperties:function(e,t){"function"==typeof Object.defineProperty&&o.arrayEach(t,(function(t){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0})}))},property:function(e,t,r,n,o){var i={configurable:!0,enumerable:void 0===n||n};"function"!=typeof r||o?(i.value=r,i.writable=!0):i.get=r,Object.defineProperty(e,t,i)},memoizedProperty:function(e,t,r,n){var i=null;o.property(e,t,(function(){return null===i&&(i=r()),i}),n)},hoistPayloadMember:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r],i=n.output;if(i.payload&&!n.hasEventOutput){var s=i.members[i.payload],a=e.data[i.payload];"structure"===s.type&&o.each(a,(function(t,r){o.property(e.data,t,r,!1)}))}},computeSha256:function(e,t){if(o.isNode()){var n=o.stream.Stream,i=r(137);if("function"==typeof n&&e instanceof n){if("string"!=typeof e.path)return t(new Error("Non-file stream objects are not supported with SigV4"));var s={};"number"==typeof e.start&&(s.start=e.start),"number"==typeof e.end&&(s.end=e.end),e=i.createReadStream(e.path,s)}}o.crypto.sha256(e,"hex",(function(e,r){e?t(e):t(null,r)}))},isClockSkewed:function(e){if(e)return o.property(n.config,"isClockSkewed",Math.abs((new Date).getTime()-e)>=3e5,!1),n.config.isClockSkewed},applyClockOffset:function(e){e&&(n.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&n&&n.config&&(t=n.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var o=0;o<e.length;o++){var i=e[o];r?i.deletePromisesFromClass&&i.deletePromisesFromClass():i.addPromisesToClass&&i.addPromisesToClass(t)}},promisifyMethod:function(e,t){return function(){var r=this,n=Array.prototype.slice.call(arguments);return new t((function(t,o){n.push((function(e,r){e?o(e):t(r)})),r[e].apply(r,n)}))}},isDualstackAvailable:function(e){if(!e)return!1;var t=r(57);return"string"!=typeof e&&(e=e.serviceIdentifier),!("string"!=typeof e||!t.hasOwnProperty(e))&&!!t[e].dualstackAvailable},calculateRetryDelay:function(e,t,r){t||(t={});var n=t.customBackoff||null;if("function"==typeof n)return n(e,r);var o="number"==typeof t.base?t.base:100;return Math.random()*(Math.pow(2,e)*o)},handleRequestWithRetries:function(e,t,r){t||(t={});var i=n.HttpClient.getInstance(),s=t.httpOptions||{},a=0,c=function(e){var n=t.maxRetries||0;if(e&&"TimeoutError"===e.code&&(e.retryable=!0),e&&e.retryable&&a<n){var i=o.calculateRetryDelay(a,t.retryDelayOptions,e);if(i>=0)return a++,void setTimeout(u,i+(e.retryAfter||0))}r(e)},u=function(){var t="";i.handleRequest(e,s,(function(e){e.on("data",(function(e){t+=e.toString()})),e.on("end",(function(){var n=e.statusCode;if(n<300)r(null,t);else{var i=1e3*parseInt(e.headers["retry-after"],10)||0,s=o.error(new Error,{statusCode:n,retryable:n>=500||429===n});i&&s.retryable&&(s.retryAfter=i),c(s)}}))}),c)};n.util.defer(u)},uuid:{v4:function(){return r(138).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(e):"function"==typeof setImmediate?setImmediate(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){var r={},n={};if(process.env[o.configOptInEnv])n=e.loadFrom({isConfig:!0,filename:process.env[o.sharedConfigFileEnv]});var i={};try{i=e.loadFrom({filename:t||process.env[o.configOptInEnv]&&process.env[o.sharedCredentialsFileEnv]})}catch(e){if(!process.env[o.configOptInEnv])throw e}for(var s=0,a=Object.keys(n);s<a.length;s++)r[a[s]]=c(r[a[s]]||{},n[a[s]]);for(s=0,a=Object.keys(i);s<a.length;s++)r[a[s]]=c(r[a[s]]||{},i[a[s]]);return r;function c(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++)e[n[r]]=t[n[r]];return e}},ARN:{validate:function(e){return e&&0===e.indexOf("arn:")&&e.split(":").length>=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw o.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o},(e,t,r)=>{var n={util:r(35)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.1691.0",Signers:{},Protocol:{Json:r(37),Query:r(41),Rest:r(45),RestJson:r(46),RestXml:r(47)},XML:{Builder:r(48),Parser:null},JSON:{Builder:r(38),Parser:r(39)},Model:{Api:r(53),Operation:r(54),Shape:r(43),Paginator:r(55),ResourceWaiter:r(56)},apiLoader:r(58),EndpointCache:r(59).EndpointCache}),r(61),r(62),r(66),r(69),r(70),r(121),r(124),r(125),r(126),r(135),r(136),n.events=new n.SequentialExecutor,n.util.memoizedProperty(n,"endpointCache",(function(){return new n.EndpointCache(n.config.endpointCacheSize)}),!0)},(e,t,r)=>{var n=r(35),o=r(38),i=r(39),s=r(40).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,i=r.jsonVersion||"1.0",a=r.operations[e.operation].input,c=new o;1===i&&(i="1.0"),r.awsQueryCompatible&&(t.params||(t.params={}),Object.assign(t.params,e.params)),t.body=c.build(e.params||{},a),t.headers["Content-Type"]="application/x-amz-json-"+i,t.headers["X-Amz-Target"]=n,s(e)},extractError:function(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var o=JSON.parse(r.body.toString()),i=o.__type||o.code||o.Code;for(var s in i&&(t.code=i.split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=o.message||o.Message||null,o||{})"code"!==s&&"message"!==s&&(t["["+s+"]"]="See error."+s+" for details.",Object.defineProperty(t,s,{value:o[s],enumerable:!1,writable:!0}))}catch(o){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new i;e.data=n.parse(t,r)}}}},(e,t,r)=>{var n=r(35);function o(){}function i(e,t){if(t&&null!=e)switch(t.type){case"structure":return function(e,t){if(t.isDocument)return e;var r={};return n.each(e,(function(e,n){var o=t.members[e];if(o){if("body"!==o.location)return;var s=o.isLocationName?o.name:e,a=i(n,o);void 0!==a&&(r[s]=a)}})),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,(function(e,n){var o=i(n,t.value);void 0!==o&&(r[e]=o)})),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,(function(e){var n=i(e,t.member);void 0!==n&&r.push(n)})),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}o.prototype.build=function(e,t){return JSON.stringify(i(e,t))},e.exports=o},(e,t,r)=>{var n=r(35);function o(){}function i(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;if(t.isDocument)return e;var r={},o=t.members,s=t.api&&t.api.awsQueryCompatible;return n.each(o,(function(t,n){var o=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,o)){var a=i(e[o],n);void 0!==a&&(r[t]=a)}else s&&n.defaultValue&&"list"===n.type&&(r[t]="function"==typeof n.defaultValue?n.defaultValue():n.defaultValue)})),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return n.each(e,(function(e,n){var o=i(n,t.value);r[e]=void 0===o?null:o})),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return n.arrayEach(e,(function(e){var n=i(e,t.member);void 0===n?r.push(null):r.push(n)})),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}o.prototype.parse=function(e,t){return i(JSON.parse(e),t)},e.exports=o},(e,t,r)=>{var n=r(35),o=r(36);e.exports={populateHostPrefix:function(e){if(!e.service.config.hostPrefixEnabled)return e;var t,r,i,s=e.service.api.operations[e.operation];if(function(e){var t=e.service.api,r=t.operations[e.operation],o=t.endpointOperation&&t.endpointOperation===n.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===o}(e))return e;if(s.endpoint&&s.endpoint.hostPrefix){var a=function(e,t,r){return n.each(r.members,(function(r,o){if(!0===o.hostLabel){if("string"!=typeof t[r]||""===t[r])throw n.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"});var i=new RegExp("\\{"+r+"\\}","g");e=e.replace(i,t[r])}})),e}(s.endpoint.hostPrefix,e.params,s.input);!function(e,t){e.host&&(e.host=t+e.host);e.hostname&&(e.hostname=t+e.hostname)}(e.httpRequest.endpoint,a),t=e.httpRequest.endpoint.hostname,r=t.split("."),i=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/,n.arrayEach(r,(function(e){if(!e.length||e.length<1||e.length>63)throw n.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!i.test(e))throw o.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}))}return e}}},(e,t,r)=>{var n=r(36),o=r(35),i=r(42),s=r(43),a=r(40).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new i).serialize(e.params,t.input,(function(e,t){r.params[e]=t})),r.body=o.queryParamsToString(r.params),a(e)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("<UnknownOperationException"))t={Code:"UnknownOperation",Message:"Unknown operation "+e.request.operation};else try{t=(new n.XML.Parser).parse(r)}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.requestId&&!e.requestId&&(e.requestId=t.requestId),t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=o.error(new Error,{code:t.Code,message:t.Message}):e.error=o.error(new Error,{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t=e.request,r=t.service.api.operations[t.operation].output||{},i=r;if(i.resultWrapper){var a=s.create({type:"structure"});a.members[i.resultWrapper]=r,a.memberNames=[i.resultWrapper],o.property(r,"name",r.resultWrapper),r=a}var c=new n.XML.Parser;if(r&&r.members&&!r.members._XAMZRequestId){var u=s.create({type:"string"},{api:{protocol:"query"}},"requestId");r.members._XAMZRequestId=u}var l=c.parse(e.httpResponse.body.toString(),r);e.requestId=l._XAMZRequestId||l.requestId,l._XAMZRequestId&&delete l._XAMZRequestId,i.resultWrapper&&l[i.resultWrapper]&&(o.update(l,l[i.resultWrapper]),delete l[i.resultWrapper]),e.data=l}}},(e,t,r)=>{var n=r(35);function o(){}function i(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function s(e,t,r,o){n.each(r.members,(function(r,n){var s=t[r];if(null!=s){var c=i(n);a(c=e?e+"."+c:c,s,n,o)}}))}function a(e,t,r,o){null!=t&&("structure"===r.type?s(e,t,r,o):"list"===r.type?function(e,t,r,o){var s=r.member||{};0!==t.length?n.arrayEach(t,(function(t,n){var c="."+(n+1);if("ec2"===r.api.protocol)c+="";else if(r.flattened){if(s.name){var u=e.split(".");u.pop(),u.push(i(s)),e=u.join(".")}}else c="."+(s.name?s.name:"member")+c;a(e+c,t,s,o)})):"ec2"!==r.api.protocol&&o.call(this,e,null)}(e,t,r,o):"map"===r.type?function(e,t,r,o){var i=1;n.each(t,(function(t,n){var s=(r.flattened?".":".entry.")+i+++".",c=s+(r.key.name||"key"),u=s+(r.value.name||"value");a(e+c,t,r.key,o),a(e+u,n,r.value,o)}))}(e,t,r,o):o(e,r.toWireFormat(t).toString()))}o.prototype.serialize=function(e,t,r){s("",e,t,r)},e.exports=o},(e,t,r)=>{var n=r(44),o=r(35);function i(e,t,r){null!=r&&o.property.apply(this,arguments)}function s(e,t){e.constructor.prototype[t]||o.memoizedProperty.apply(this,arguments)}function a(e,t,r){t=t||{},i(this,"shape",e.shape),i(this,"api",t.api,!1),i(this,"type",e.type),i(this,"enum",e.enum),i(this,"min",e.min),i(this,"max",e.max),i(this,"pattern",e.pattern),i(this,"location",e.location||this.location||"body"),i(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),i(this,"isStreaming",e.streaming||this.isStreaming||!1),i(this,"requiresLength",e.requiresLength,!1),i(this,"isComposite",e.isComposite||!1),i(this,"isShape",!0,!1),i(this,"isQueryName",Boolean(e.queryName),!1),i(this,"isLocationName",Boolean(e.locationName),!1),i(this,"isIdempotent",!0===e.idempotencyToken),i(this,"isJsonValue",!0===e.jsonvalue),i(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),i(this,"isEventStream",Boolean(e.eventstream),!1),i(this,"isEvent",Boolean(e.event),!1),i(this,"isEventPayload",Boolean(e.eventpayload),!1),i(this,"isEventHeader",Boolean(e.eventheader),!1),i(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),i(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),i(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(i(this,"documentation",e.documentation),i(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&i(this,"isXmlAttribute",e.xmlAttribute||!1),i(this,"defaultValue",null),this.toWireFormat=function(e){return null==e?"":e},this.toType=function(e){return e}}function c(e){a.apply(this,arguments),i(this,"isComposite",!0),e.flattened&&i(this,"flattened",e.flattened||!1)}function u(e,t){var r=this,o=null,u=!this.isShape;c.apply(this,arguments),u&&(i(this,"defaultValue",(function(){return{}})),i(this,"members",{}),i(this,"memberNames",[]),i(this,"required",[]),i(this,"isRequired",(function(){return!1})),i(this,"isDocument",Boolean(e.document))),e.members&&(i(this,"members",new n(e.members,t,(function(e,r){return a.create(r,t,e)}))),s(this,"memberNames",(function(){return e.xmlOrder||Object.keys(e.members)})),e.event&&(s(this,"eventPayloadMemberName",(function(){for(var e=r.members,t=r.memberNames,n=0,o=t.length;n<o;n++)if(e[t[n]].isEventPayload)return t[n]})),s(this,"eventHeaderMemberNames",(function(){for(var e=r.members,t=r.memberNames,n=[],o=0,i=t.length;o<i;o++)e[t[o]].isEventHeader&&n.push(t[o]);return n})))),e.required&&(i(this,"required",e.required),i(this,"isRequired",(function(t){if(!o){o={};for(var r=0;r<e.required.length;r++)o[e.required[r]]=!0}return o[t]}),!1,!0)),i(this,"resultWrapper",e.resultWrapper||null),e.payload&&i(this,"payload",e.payload),"string"==typeof e.xmlNamespace?i(this,"xmlNamespaceUri",e.xmlNamespace):"object"==typeof e.xmlNamespace&&(i(this,"xmlNamespacePrefix",e.xmlNamespace.prefix),i(this,"xmlNamespaceUri",e.xmlNamespace.uri))}function l(e,t){var r=this,n=!this.isShape;if(c.apply(this,arguments),n&&i(this,"defaultValue",(function(){return[]})),e.member&&s(this,"member",(function(){return a.create(e.member,t)})),this.flattened){var o=this.name;s(this,"name",(function(){return r.member.name||o}))}}function p(e,t){var r=!this.isShape;c.apply(this,arguments),r&&(i(this,"defaultValue",(function(){return{}})),i(this,"key",a.create({type:"string"},t)),i(this,"value",a.create({type:"string"},t))),e.key&&s(this,"key",(function(){return a.create(e.key,t)})),e.value&&s(this,"value",(function(){return a.create(e.value,t)}))}function d(){a.apply(this,arguments);var e=["rest-xml","query","ec2"];this.toType=function(t){return t=this.api&&e.indexOf(this.api.protocol)>-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function f(){a.apply(this,arguments),this.toType=function(e){var t=o.base64.decode(e);if(this.isSensitive&&o.isNode()&&"function"==typeof o.Buffer.alloc){var r=o.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=o.base64.encode}function h(){f.apply(this,arguments)}function m(){a.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null==e?null:"true"===e}}a.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},a.types={structure:u,list:l,map:p,boolean:m,timestamp:function(e){var t=this;if(a.apply(this,arguments),e.timestampFormat)i(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)i(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)i(this,"timestampFormat","rfc822");else if("querystring"===this.location)i(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":i(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":i(this,"timestampFormat","iso8601")}this.toType=function(e){return null==e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?o.date.parseTimestamp(e):null},this.toWireFormat=function(e){return o.date.format(e,t.timestampFormat)}},float:function(){a.apply(this,arguments),this.toType=function(e){return null==e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){a.apply(this,arguments),this.toType=function(e){return null==e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:d,base64:h,binary:f},a.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},a.create=function(e,t,r){if(e.isShape)return e;var n=a.resolve(e,t);if(n){var o=Object.keys(e);t.documentation||(o=o.filter((function(e){return!e.match(/documentation/)})));var i=function(){n.constructor.call(this,e,t,r)};return i.prototype=n,new i}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var s=e.type;if(a.normalizedTypes[e.type]&&(e.type=a.normalizedTypes[e.type]),a.types[e.type])return new a.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+s)},a.shapes={StructureShape:u,ListShape:l,MapShape:p,StringShape:d,BooleanShape:m,Base64Shape:h},e.exports=a},(e,t,r)=>{var n=r(35).memoizedProperty;function o(e,t,r,o){n(this,o(e),(function(){return r(e,t)}))}e.exports=function(e,t,r,n,i){for(var s in n=n||String,e)Object.prototype.hasOwnProperty.call(e,s)&&(o.call(this,s,e[s],r,n),i&&i(s,e[s]))}},(e,t,r)=>{var n=r(35),o=r(40).populateHostPrefix;function i(e,t,r,o){var i=[e,t].join("/");i=i.replace(/\/+/g,"/");var s={},a=!1;if(n.each(r.members,(function(e,t){var r=o[e];if(null!=r)if("uri"===t.location){var c=new RegExp("\\{"+t.name+"(\\+)?\\}");i=i.replace(c,(function(e,t){return(t?n.uriEscapePath:n.uriEscape)(String(r))}))}else"querystring"===t.location&&(a=!0,"list"===t.type?s[t.name]=r.map((function(e){return n.uriEscape(t.member.toWireFormat(e).toString())})):"map"===t.type?n.each(r,(function(e,t){Array.isArray(t)?s[e]=t.map((function(e){return n.uriEscape(String(e))})):s[e]=n.uriEscape(String(t))})):s[t.name]=n.uriEscape(t.toWireFormat(r).toString()))})),a){i+=i.indexOf("?")>=0?"&":"?";var c=[];n.arrayEach(Object.keys(s).sort(),(function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t<s[e].length;t++)c.push(n.uriEscape(String(e))+"="+s[e][t])})),i+=c.join("&")}return i}e.exports={buildRequest:function(e){!function(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}(e),function(e){var t=e.service.api.operations[e.operation],r=t.input,n=i(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=n}(e),function(e){var t=e.service.api.operations[e.operation];n.each(t.input.members,(function(t,r){var o=e.params[t];null!=o&&("headers"===r.location&&"map"===r.type?n.each(o,(function(t,n){e.httpRequest.headers[r.name+t]=n})):"header"===r.location&&(o=r.toWireFormat(o).toString(),r.isJsonValue&&(o=n.base64.encode(o)),e.httpRequest.headers[r.name]=o))}))}(e),o(e)},extractError:function(){},extractData:function(e){var t=e.request,r={},o=e.httpResponse,i=t.service.api.operations[t.operation].output,s={};n.each(o.headers,(function(e,t){s[e.toLowerCase()]=t})),n.each(i.members,(function(e,t){var i=(t.name||e).toLowerCase();if("headers"===t.location&&"map"===t.type){r[e]={};var a=t.isLocationName?t.name:"",c=new RegExp("^"+a+"(.+)","i");n.each(o.headers,(function(t,n){var o=t.match(c);null!==o&&(r[e][o[1]]=n)}))}else if("header"===t.location){if(void 0!==s[i]){var u=t.isJsonValue?n.base64.decode(s[i]):s[i];r[e]=t.toType(u)}}else"statusCode"===t.location&&(r[e]=parseInt(o.statusCode,10))})),e.data=r},generateURI:i}},(e,t,r)=>{var n=r(36),o=r(35),i=r(45),s=r(37),a=r(38),c=r(39),u=["GET","HEAD","DELETE"];function l(e,t){if(!e.httpRequest.headers["Content-Type"]){var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}e.exports={buildRequest:function(e){i.buildRequest(e),u.indexOf(e.httpRequest.method)<0&&function(e){var t=new a,r=e.service.api.operations[e.operation].input;if(r.payload){var n,o=r.members[r.payload];n=e.params[r.payload],"structure"===o.type?(e.httpRequest.body=t.build(n||{},o),l(e)):void 0!==n&&(e.httpRequest.body=n,("binary"===o.type||o.isStreaming)&&l(e,!0))}else e.httpRequest.body=t.build(e.params,r),l(e)}(e)},extractError:function(e){s.extractError(e)},extractData:function(e){i.extractData(e);var t=e.request,r=t.service.api.operations[t.operation],a=t.service.api.operations[t.operation].output||{};if(r.hasEventOutput,a.payload){var u=a.members[a.payload],l=e.httpResponse.body;if(u.isEventStream)p=new c,e.data[a.payload]=o.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:l,p,u);else if("structure"===u.type||"list"===u.type){var p=new c;e.data[a.payload]=p.parse(l,u)}else"binary"===u.type||u.isStreaming?e.data[a.payload]=l:e.data[a.payload]=u.toType(l)}else{var d=e.data;s.extractData(e),e.data=o.merge(d,e.data)}},unsetContentLength:function(e){void 0===o.getRequestPayloadShape(e)&&u.indexOf(e.httpRequest.method)>=0&&delete e.httpRequest.headers["Content-Length"]}}},(e,t,r)=>{var n=r(36),o=r(35),i=r(45);e.exports={buildRequest:function(e){i.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,i=e.params,s=t.payload;if(s){var a=t.members[s];if(void 0===(i=i[s]))return;if("structure"===a.type){var c=a.name;e.httpRequest.body=r.toXML(i,a,c,!0)}else e.httpRequest.body=i}else e.httpRequest.body=r.toXML(i,t,t.name||t.shape||o.string.upperFirst(e.operation)+"Request")}(e)},extractError:function(e){var t;i.extractError(e);try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=o.error(new Error,{code:t.Code,message:t.Message}):e.error=o.error(new Error,{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t;i.extractData(e);var r=e.request,s=e.httpResponse.body,a=r.service.api.operations[r.operation],c=a.output,u=(a.hasEventOutput,c.payload);if(u){var l=c.members[u];l.isEventStream?(t=new n.XML.Parser,e.data[u]=o.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,l)):"structure"===l.type?(t=new n.XML.Parser,e.data[u]=t.parse(s.toString(),l)):"binary"===l.type||l.isStreaming?e.data[u]=s:e.data[u]=l.toType(s)}else if(s.length>0){var p=(t=new n.XML.Parser).parse(s.toString(),c);o.update(e.data,p)}}}},(e,t,r)=>{var n=r(35),o=r(49).XmlNode,i=r(51).XmlText;function s(){}function a(e,t,r){switch(r.type){case"structure":return function(e,t,r){n.arrayEach(r.memberNames,(function(n){var i=r.members[n];if("body"===i.location){var s=t[n],u=i.name;if(null!=s)if(i.isXmlAttribute)e.addAttribute(u,s);else if(i.flattened)a(e,s,i);else{var l=new o(u);e.addChildNode(l),c(l,i),a(l,s,i)}}}))}(e,t,r);case"map":return function(e,t,r){var i=r.key.name||"key",s=r.value.name||"value";n.each(t,(function(t,n){var c=new o(r.flattened?r.name:"entry");e.addChildNode(c);var u=new o(i),l=new o(s);c.addChildNode(u),c.addChildNode(l),a(u,t,r.key),a(l,n,r.value)}))}(e,t,r);case"list":return function(e,t,r){r.flattened?n.arrayEach(t,(function(t){var n=r.member.name||r.name,i=new o(n);e.addChildNode(i),a(i,t,r.member)})):n.arrayEach(t,(function(t){var n=r.member.name||"member",i=new o(n);e.addChildNode(i),a(i,t,r.member)}))}(e,t,r);default:return function(e,t,r){e.addChildNode(new i(r.toWireFormat(t)))}(e,t,r)}}function c(e,t,r){var n,o="xmlns";t.xmlNamespaceUri?(n=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(o+=":"+t.xmlNamespacePrefix)):r&&t.api.xmlNamespaceUri&&(n=t.api.xmlNamespaceUri),n&&e.addAttribute(o,n)}s.prototype.toXML=function(e,t,r,n){var i=new o(r);return c(i,t,!0),a(i,e,t),i.children.length>0||n?i.toString():""},e.exports=s},(e,t,r)=>{var n=r(50).escapeAttribute;function o(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}o.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},o.prototype.addChildNode=function(e){return this.children.push(e),this},o.prototype.removeAttribute=function(e){return delete this.attributes[e],this},o.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,o=0,i=Object.keys(r);o<i.length;o++){var s=i[o],a=r[s];null!=a&&(t+=" "+s+'="'+n(""+a)+'"')}return t+(e?">"+this.children.map((function(e){return e.toString()})).join("")+"</"+this.name+">":"/>")},e.exports={XmlNode:o}},e=>{e.exports={escapeAttribute:function(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}},(e,t,r)=>{var n=r(52).escapeElement;function o(e){this.value=e}o.prototype.toString=function(){return n(""+this.value)},e.exports={XmlText:o}},e=>{e.exports={escapeElement:function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},(e,t,r)=>{var n=r(44),o=r(54),i=r(43),s=r(55),a=r(56),c=r(57),u=r(35),l=u.property,p=u.memoizedProperty;e.exports=function(e,t){var r=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{};var d=t.serviceIdentifier;delete t.serviceIdentifier,l(this,"isApi",!0,!1),l(this,"apiVersion",e.metadata.apiVersion),l(this,"endpointPrefix",e.metadata.endpointPrefix),l(this,"signingName",e.metadata.signingName),l(this,"globalEndpoint",e.metadata.globalEndpoint),l(this,"signatureVersion",e.metadata.signatureVersion),l(this,"jsonVersion",e.metadata.jsonVersion),l(this,"targetPrefix",e.metadata.targetPrefix),l(this,"protocol",e.metadata.protocol),l(this,"timestampFormat",e.metadata.timestampFormat),l(this,"xmlNamespaceUri",e.metadata.xmlNamespace),l(this,"abbreviation",e.metadata.serviceAbbreviation),l(this,"fullName",e.metadata.serviceFullName),l(this,"serviceId",e.metadata.serviceId),d&&c[d]&&l(this,"xmlNoDefaultLists",c[d].xmlNoDefaultLists,!1),p(this,"className",(function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null})),l(this,"operations",new n(e.operations,t,(function(e,r){return new o(e,r,t)}),u.string.lowerFirst,(function(e,t){!0===t.endpointoperation&&l(r,"endpointOperation",u.string.lowerFirst(e)),t.endpointdiscovery&&!r.hasRequiredEndpointDiscovery&&l(r,"hasRequiredEndpointDiscovery",!0===t.endpointdiscovery.required)}))),l(this,"shapes",new n(e.shapes,t,(function(e,r){return i.create(r,t)}))),l(this,"paginators",new n(e.paginators,t,(function(e,r){return new s(e,r,t)}))),l(this,"waiters",new n(e.waiters,t,(function(e,r){return new a(e,r,t)}),u.string.lowerFirst)),t.documentation&&(l(this,"documentation",e.documentation),l(this,"documentationUrl",e.documentationUrl)),l(this,"awsQueryCompatible",e.metadata.awsQueryCompatible)}},(e,t,r)=>{var n=r(43),o=r(35),i=o.property,s=o.memoizedProperty;e.exports=function(e,t,r){var o=this;r=r||{},i(this,"name",t.name||e),i(this,"api",r.api,!1),t.http=t.http||{},i(this,"endpoint",t.endpoint),i(this,"httpMethod",t.http.method||"POST"),i(this,"httpPath",t.http.requestUri||"/"),i(this,"authtype",t.authtype||""),i(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");var a=t.httpChecksumRequired||t.httpChecksum&&t.httpChecksum.requestChecksumRequired;i(this,"httpChecksumRequired",a,!1),s(this,"input",(function(){return t.input?n.create(t.input,r):new n.create({type:"structure"},r)})),s(this,"output",(function(){return t.output?n.create(t.output,r):new n.create({type:"structure"},r)})),s(this,"errors",(function(){var e=[];if(!t.errors)return null;for(var o=0;o<t.errors.length;o++)e.push(n.create(t.errors[o],r));return e})),s(this,"paginator",(function(){return r.api.paginators[e]})),r.documentation&&(i(this,"documentation",t.documentation),i(this,"documentationUrl",t.documentationUrl)),s(this,"idempotentMembers",(function(){var e=[],t=o.input,r=t.members;if(!t.members)return e;for(var n in r)r.hasOwnProperty(n)&&!0===r[n].isIdempotent&&e.push(n);return e})),s(this,"hasEventOutput",(function(){return function(e){var t=e.members,r=e.payload;if(!e.members)return!1;if(r){return t[r].isEventStream}for(var n in t)if(!t.hasOwnProperty(n)&&!0===t[n].isEventStream)return!0;return!1}(o.output)}))}},(e,t,r)=>{var n=r(35).property;e.exports=function(e,t){n(this,"inputToken",t.input_token),n(this,"limitKey",t.limit_key),n(this,"moreResults",t.more_results),n(this,"outputToken",t.output_token),n(this,"resultKey",t.result_key)}},(e,t,r)=>{var n=r(35),o=n.property;e.exports=function(e,t,r){r=r||{},o(this,"name",e),o(this,"api",r.api,!1),t.operation&&o(this,"operation",n.string.lowerFirst(t.operation));var i=this;["type","description","delay","maxAttempts","acceptors"].forEach((function(e){var r=t[e];r&&o(i,e,r)}))}},e=>{"use strict";e.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena","cors":true},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2","cors":true},"glue":{"name":"Glue"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog","cors":true},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"},"timestreamquery":{"prefix":"timestream-query","name":"TimestreamQuery"},"timestreamwrite":{"prefix":"timestream-write","name":"TimestreamWrite"},"s3outposts":{"name":"S3Outposts"},"databrew":{"name":"DataBrew"},"servicecatalogappregistry":{"prefix":"servicecatalog-appregistry","name":"ServiceCatalogAppRegistry"},"networkfirewall":{"prefix":"network-firewall","name":"NetworkFirewall"},"mwaa":{"name":"MWAA"},"amplifybackend":{"name":"AmplifyBackend"},"appintegrations":{"name":"AppIntegrations"},"connectcontactlens":{"prefix":"connect-contact-lens","name":"ConnectContactLens"},"devopsguru":{"prefix":"devops-guru","name":"DevOpsGuru"},"ecrpublic":{"prefix":"ecr-public","name":"ECRPUBLIC"},"lookoutvision":{"name":"LookoutVision"},"sagemakerfeaturestoreruntime":{"prefix":"sagemaker-featurestore-runtime","name":"SageMakerFeatureStoreRuntime"},"customerprofiles":{"prefix":"customer-profiles","name":"CustomerProfiles"},"auditmanager":{"name":"AuditManager"},"emrcontainers":{"prefix":"emr-containers","name":"EMRcontainers"},"healthlake":{"name":"HealthLake"},"sagemakeredge":{"prefix":"sagemaker-edge","name":"SagemakerEdge"},"amp":{"name":"Amp","cors":true},"greengrassv2":{"name":"GreengrassV2"},"iotdeviceadvisor":{"name":"IotDeviceAdvisor"},"iotfleethub":{"name":"IoTFleetHub"},"iotwireless":{"name":"IoTWireless"},"location":{"name":"Location","cors":true},"wellarchitected":{"name":"WellArchitected"},"lexmodelsv2":{"prefix":"models.lex.v2","name":"LexModelsV2"},"lexruntimev2":{"prefix":"runtime.lex.v2","name":"LexRuntimeV2","cors":true},"fis":{"name":"Fis"},"lookoutmetrics":{"name":"LookoutMetrics"},"mgn":{"name":"Mgn"},"lookoutequipment":{"name":"LookoutEquipment"},"nimble":{"name":"Nimble"},"finspace":{"name":"Finspace"},"finspacedata":{"prefix":"finspace-data","name":"Finspacedata"},"ssmcontacts":{"prefix":"ssm-contacts","name":"SSMContacts"},"ssmincidents":{"prefix":"ssm-incidents","name":"SSMIncidents"},"applicationcostprofiler":{"name":"ApplicationCostProfiler"},"apprunner":{"name":"AppRunner"},"proton":{"name":"Proton"},"route53recoverycluster":{"prefix":"route53-recovery-cluster","name":"Route53RecoveryCluster"},"route53recoverycontrolconfig":{"prefix":"route53-recovery-control-config","name":"Route53RecoveryControlConfig"},"route53recoveryreadiness":{"prefix":"route53-recovery-readiness","name":"Route53RecoveryReadiness"},"chimesdkidentity":{"prefix":"chime-sdk-identity","name":"ChimeSDKIdentity"},"chimesdkmessaging":{"prefix":"chime-sdk-messaging","name":"ChimeSDKMessaging"},"snowdevicemanagement":{"prefix":"snow-device-management","name":"SnowDeviceManagement"},"memorydb":{"name":"MemoryDB"},"opensearch":{"name":"OpenSearch"},"kafkaconnect":{"name":"KafkaConnect"},"voiceid":{"prefix":"voice-id","name":"VoiceID"},"wisdom":{"name":"Wisdom"},"account":{"name":"Account"},"cloudcontrol":{"name":"CloudControl"},"grafana":{"name":"Grafana"},"panorama":{"name":"Panorama"},"chimesdkmeetings":{"prefix":"chime-sdk-meetings","name":"ChimeSDKMeetings"},"resiliencehub":{"name":"Resiliencehub"},"migrationhubstrategy":{"name":"MigrationHubStrategy"},"appconfigdata":{"name":"AppConfigData"},"drs":{"name":"Drs"},"migrationhubrefactorspaces":{"prefix":"migration-hub-refactor-spaces","name":"MigrationHubRefactorSpaces"},"evidently":{"name":"Evidently"},"inspector2":{"name":"Inspector2"},"rbin":{"name":"Rbin"},"rum":{"name":"RUM"},"backupgateway":{"prefix":"backup-gateway","name":"BackupGateway"},"iottwinmaker":{"name":"IoTTwinMaker"},"workspacesweb":{"prefix":"workspaces-web","name":"WorkSpacesWeb"},"amplifyuibuilder":{"name":"AmplifyUIBuilder"},"keyspaces":{"name":"Keyspaces"},"billingconductor":{"name":"Billingconductor"},"pinpointsmsvoicev2":{"prefix":"pinpoint-sms-voice-v2","name":"PinpointSMSVoiceV2"},"ivschat":{"name":"Ivschat"},"chimesdkmediapipelines":{"prefix":"chime-sdk-media-pipelines","name":"ChimeSDKMediaPipelines"},"emrserverless":{"prefix":"emr-serverless","name":"EMRServerless"},"m2":{"name":"M2"},"connectcampaigns":{"name":"ConnectCampaigns"},"redshiftserverless":{"prefix":"redshift-serverless","name":"RedshiftServerless"},"rolesanywhere":{"name":"RolesAnywhere"},"licensemanagerusersubscriptions":{"prefix":"license-manager-user-subscriptions","name":"LicenseManagerUserSubscriptions"},"privatenetworks":{"name":"PrivateNetworks"},"supportapp":{"prefix":"support-app","name":"SupportApp"},"controltower":{"name":"ControlTower"},"iotfleetwise":{"name":"IoTFleetWise"},"migrationhuborchestrator":{"name":"MigrationHubOrchestrator"},"connectcases":{"name":"ConnectCases"},"resourceexplorer2":{"prefix":"resource-explorer-2","name":"ResourceExplorer2"},"scheduler":{"name":"Scheduler"},"chimesdkvoice":{"prefix":"chime-sdk-voice","name":"ChimeSDKVoice"},"ssmsap":{"prefix":"ssm-sap","name":"SsmSap"},"oam":{"name":"OAM"},"arczonalshift":{"prefix":"arc-zonal-shift","name":"ARCZonalShift"},"omics":{"name":"Omics"},"opensearchserverless":{"name":"OpenSearchServerless"},"securitylake":{"name":"SecurityLake"},"simspaceweaver":{"name":"SimSpaceWeaver"},"docdbelastic":{"prefix":"docdb-elastic","name":"DocDBElastic"},"sagemakergeospatial":{"prefix":"sagemaker-geospatial","name":"SageMakerGeospatial"},"codecatalyst":{"name":"CodeCatalyst"},"pipes":{"name":"Pipes"},"sagemakermetrics":{"prefix":"sagemaker-metrics","name":"SageMakerMetrics"},"kinesisvideowebrtcstorage":{"prefix":"kinesis-video-webrtc-storage","name":"KinesisVideoWebRTCStorage"},"licensemanagerlinuxsubscriptions":{"prefix":"license-manager-linux-subscriptions","name":"LicenseManagerLinuxSubscriptions"},"kendraranking":{"prefix":"kendra-ranking","name":"KendraRanking"},"cleanrooms":{"name":"CleanRooms"},"cloudtraildata":{"prefix":"cloudtrail-data","name":"CloudTrailData"},"tnb":{"name":"Tnb"},"internetmonitor":{"name":"InternetMonitor"},"ivsrealtime":{"prefix":"ivs-realtime","name":"IVSRealTime"},"vpclattice":{"prefix":"vpc-lattice","name":"VPCLattice"},"osis":{"name":"OSIS"},"mediapackagev2":{"name":"MediaPackageV2"},"paymentcryptography":{"prefix":"payment-cryptography","name":"PaymentCryptography"},"paymentcryptographydata":{"prefix":"payment-cryptography-data","name":"PaymentCryptographyData"},"codegurusecurity":{"prefix":"codeguru-security","name":"CodeGuruSecurity"},"verifiedpermissions":{"name":"VerifiedPermissions"},"appfabric":{"name":"AppFabric"},"medicalimaging":{"prefix":"medical-imaging","name":"MedicalImaging"},"entityresolution":{"name":"EntityResolution"},"managedblockchainquery":{"prefix":"managedblockchain-query","name":"ManagedBlockchainQuery"},"neptunedata":{"name":"Neptunedata"},"pcaconnectorad":{"prefix":"pca-connector-ad","name":"PcaConnectorAd"},"bedrock":{"name":"Bedrock"},"bedrockruntime":{"prefix":"bedrock-runtime","name":"BedrockRuntime"},"datazone":{"name":"DataZone"},"launchwizard":{"prefix":"launch-wizard","name":"LaunchWizard"},"trustedadvisor":{"name":"TrustedAdvisor"},"inspectorscan":{"prefix":"inspector-scan","name":"InspectorScan"},"bcmdataexports":{"prefix":"bcm-data-exports","name":"BCMDataExports"},"costoptimizationhub":{"prefix":"cost-optimization-hub","name":"CostOptimizationHub"},"eksauth":{"prefix":"eks-auth","name":"EKSAuth"},"freetier":{"name":"FreeTier"},"repostspace":{"name":"Repostspace"},"workspacesthinclient":{"prefix":"workspaces-thin-client","name":"WorkSpacesThinClient"},"b2bi":{"name":"B2bi"},"bedrockagent":{"prefix":"bedrock-agent","name":"BedrockAgent"},"bedrockagentruntime":{"prefix":"bedrock-agent-runtime","name":"BedrockAgentRuntime"},"qbusiness":{"name":"QBusiness"},"qconnect":{"name":"QConnect"},"cleanroomsml":{"name":"CleanRoomsML"},"marketplaceagreement":{"prefix":"marketplace-agreement","name":"MarketplaceAgreement"},"marketplacedeployment":{"prefix":"marketplace-deployment","name":"MarketplaceDeployment"},"networkmonitor":{"name":"NetworkMonitor"},"supplychain":{"name":"SupplyChain"},"artifact":{"name":"Artifact"},"chatbot":{"name":"Chatbot"},"timestreaminfluxdb":{"prefix":"timestream-influxdb","name":"TimestreamInfluxDB"},"codeconnections":{"name":"CodeConnections"},"deadline":{"name":"Deadline"},"controlcatalog":{"name":"ControlCatalog"},"route53profiles":{"name":"Route53Profiles"},"mailmanager":{"name":"MailManager"},"taxsettings":{"name":"TaxSettings"},"applicationsignals":{"prefix":"application-signals","name":"ApplicationSignals"},"pcaconnectorscep":{"prefix":"pca-connector-scep","name":"PcaConnectorScep"},"apptest":{"name":"AppTest"},"qapps":{"name":"QApps"},"ssmquicksetup":{"prefix":"ssm-quicksetup","name":"SSMQuickSetup"},"pcs":{"name":"PCS"}}')},e=>{function t(e,r){if(!t.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return t.services[e][r]}t.services={},e.exports=t},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(60),o=function(){function e(e){void 0===e&&(e=1e3),this.maxSize=e,this.cache=new n.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var n="string"!=typeof t?e.getKeyString(t):t,o=this.populateValue(r);this.cache.put(n,o)},e.prototype.get=function(t){var r="string"!=typeof t?e.getKeyString(t):t,n=Date.now(),o=this.cache.get(r);if(o){for(var i=o.length-1;i>=0;i--){o[i].Expire<n&&o.splice(i,1)}if(0===o.length)return void this.cache.remove(r)}return o},e.getKeyString=function(e){for(var t=[],r=Object.keys(e).sort(),n=0;n<r.length;n++){var o=r[n];void 0!==e[o]&&t.push(e[o])}return t.join(" ")},e.prototype.populateValue=function(e){var t=Date.now();return e.map((function(e){return{Address:e.Address||"",Expire:t+60*(e.CachePeriodInMinutes||1)*1e3}}))},e.prototype.empty=function(){this.cache.empty()},e.prototype.remove=function(t){var r="string"!=typeof t?e.getKeyString(t):t;this.cache.remove(r)},e}();t.EndpointCache=o},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.key=e,this.value=t},n=function(){function e(e){if(this.nodeMap={},this.size=0,"number"!=typeof e||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,t=e.prev;return t&&(t.next=void 0),e.prev=void 0,this.tailNode=t,this.size--,e}},e.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},e.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];return this.detachFromList(t),this.prependToList(t),t.value}},e.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t),delete this.nodeMap[e]}},e.prototype.put=function(e,t){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var n=this.removeFromTail().key;delete this.nodeMap[n]}var o=new r(e,t);this.nodeMap[e]=o,this.prependToList(o)},e.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),t=0;t<e.length;t++){var r=e[t],n=this.nodeMap[r];this.detachFromList(n),delete this.nodeMap[r]}},e}();t.LRUCache=n},(e,t,r)=>{var n=r(36);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,r){return this._events[e]?r?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,r){return t._isAsync=!0,this.on(e,t,r)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,o=-1,i=0;i<n;++i)r[i]===t&&(o=i);o>-1&&r.splice(o,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),o=n.length;return this.callListeners(n,t,r),o>0},callListeners:function(e,t,r,o){var i=this,s=o||null;function a(o){if(o&&(s=n.util.error(s||new Error,o),i._haltHandlersOnError))return r.call(i,s);i.callListeners(e,t,r,s)}for(;e.length>0;){var c=e.shift();if(c._isAsync)return void c.apply(i,t.concat([a]));try{c.apply(i,t)}catch(e){s=n.util.error(s||new Error,e)}if(s&&i._haltHandlersOnError)return void r.call(i,s)}r.call(i,s)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,(function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,(function(r){t.on(e,r)}))})),t},addNamedListener:function(e,t,r,n){return this[e]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(e,t,r,n){return r._isAsync=!0,this.addNamedListener(e,t,r,n)},addNamedListeners:function(e){var t=this;return e((function(){t.addNamedListener.apply(t,arguments)}),(function(){t.addNamedAsyncListener.apply(t,arguments)})),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},(e,t,r)=>{var n=r(36),o=r(53),i=r(63),s=n.util.inherit,a=0,c=r(65);n.Service=s({constructor:function(e){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var t=e.region;c.isFipsRegion(t)&&(e.region=c.getRealRegion(t),e.useFipsEndpoint=!0),c.isGlobalRegion(t)&&(e.region=c.getRealRegion(t))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var r=this.loadServiceClass(e||{});if(r){var o=n.util.copy(e),i=new r(e);return Object.defineProperty(i,"_originalConfig",{get:function(){return o},enumerable:!1,configurable:!0}),i._clientId=++a,i}this.initialize(e)},initialize:function(e){var t=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||i.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),n.SequentialExecutor.call(this),n.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||n.Service._clientSideMonitoring)&&this.publisher){var r=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",(function(e){process.nextTick((function(){r.eventHandler(e)}))})),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",(function(e){process.nextTick((function(){r.eventHandler(e)}))}))}},validateService:function(){},loadServiceClass:function(e){var t=e;if(n.util.isEmpty(this.api)){if(t.apiConfig)return n.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){(t=new n.Config(n.config)).update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&n.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?n.util.isType(e,Date)&&(e=n.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,o=t.length-1;o>=0;o--)if("*"!==t[o][t[o].length-1]&&(r=t[o]),t[o].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var o=this.api.operations[e];o&&(t=n.util.copy(t),n.util.each(this.config.params,(function(e,r){o.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))})))}var i=new n.Request(this,e,t);return this.addAllRequestListeners(i),this.attachMonitoringEmitter(i),r&&i.send(r),i},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var n=this.makeRequest(e,t).toUnauthenticated();return r?n.send(r):n},waitFor:function(e,t,r){return new n.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],r=0;r<t.length;r++)t[r]&&e.addListeners(t[r]);this.config.paramValidation||e.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(n.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCall",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},n=e.response;if(n.httpResponse.statusCode&&(r.FinalHttpStatusCode=n.httpResponse.statusCode),n.error){var o=n.error;n.httpResponse.statusCode>299?(o.code&&(r.FinalAwsException=o.code),o.message&&(r.FinalAwsExceptionMessage=o.message)):((o.code||o.name)&&(r.FinalSdkException=o.code||o.name),o.message&&(r.FinalSdkExceptionMessage=o.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},n=e.response;return n.httpResponse.statusCode&&(r.HttpStatusCode=n.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),n.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),n.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=n.httpResponse.headers["x-amzn-requestid"]),n.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=n.httpResponse.headers["x-amz-request-id"]),n.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=n.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,n=r.error;return r.httpResponse.statusCode>299?(n.code&&(t.AwsException=n.code),n.message&&(t.AwsExceptionMessage=n.message)):((n.code||n.name)&&(t.SdkException=n.code||n.name),n.message&&(t.SdkExceptionMessage=n.message)),t},attachMonitoringEmitter:function(e){var t,r,o,i,s,a,c=0,u=this,l=!0;e.on("validate",(function(){i=n.util.realClock.now(),a=Date.now()}),l),e.on("sign",(function(){r=n.util.realClock.now(),t=Date.now(),s=e.httpRequest.region,c++}),l),e.on("validateResponse",(function(){o=Math.round(n.util.realClock.now()-r)})),e.addNamedListener("API_CALL_ATTEMPT","success",(function(){var r=u.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=o>=0?o:0,r.Region=s,u.emit("apiCallAttempt",[r])})),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",(function(){var i=u.attemptFailEvent(e);i.Timestamp=t,o=o||Math.round(n.util.realClock.now()-r),i.AttemptLatency=o>=0?o:0,i.Region=s,u.emit("apiCallAttempt",[i])})),e.addNamedListener("API_CALL","complete",(function(){var t=u.apiCallEvent(e);if(t.AttemptCount=c,!(t.AttemptCount<=0)){t.Timestamp=a;var r=Math.round(n.util.realClock.now()-i);t.Latency=r>=0?r:0;var o=e.response;o.error&&o.error.retryable&&"number"==typeof o.retryCount&&"number"==typeof o.maxRetries&&o.retryCount>=o.maxRetries&&(t.MaxRetriesExceeded=1),u.emit("apiCall",[t])}}))},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var t,r=null,o="";e&&(o=(r=(e.service.api.operations||{})[e.operation]||null)?r.authtype:"");return t=this.config.signatureVersion?this.config.signatureVersion:"v4"===o||"v4-unsigned-body"===o?"v4":"bearer"===o?"bearer":this.api.signatureVersion,n.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest-json":return n.EventListeners.RestJson;case"rest-xml":return n.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return n.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!this.timeoutError(e)||(!!this.networkingError(e)||(!!this.expiredCredentialsError(e)||(!!this.throttledError(e)||e.statusCode>=500)))},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var t=e;return t=(t=(t=t.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new n.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var o=new Error;throw n.util.error(o,"No pagination configuration for "+e)}return null}return r}}),n.util.update(n.Service,{defineMethods:function(e){n.util.each(e.prototype.api.operations,(function(t){e.prototype[t]||("none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)})}))},defineService:function(e,t,r){n.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var o=s(n.Service,r||{});if("string"==typeof e){n.Service.addVersions(o,t);var i=o.serviceIdentifier||e;o.serviceIdentifier=i}else o.prototype.api=e,n.Service.defineMethods(o);if(n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var a=n.util.clientSideMonitoring.Publisher,c=(0,n.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new a(c),c.enabled&&(n.Service._clientSideMonitoring=!0)}return n.SequentialExecutor.call(o.prototype),n.Service.addDefaultMonitoringListeners(o.prototype),o},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r<t.length;r++)void 0===e.services[t[r]]&&(e.services[t[r]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,t,r){var i=s(e,{serviceIdentifier:e.serviceIdentifier});function a(t){t.isApi?i.prototype.api=t:i.prototype.api=new o(t,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof t){if(r)a(r);else try{a(n.apiLoader(e.serviceIdentifier,t))}catch(r){throw n.util.error(r,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+t})}Object.prototype.hasOwnProperty.call(e.services,t)||(e.apiVersions=e.apiVersions.concat(t).sort()),e.services[t]=i}else a(t);return n.Service.defineMethods(i),i},hasService:function(e){return Object.prototype.hasOwnProperty.call(n.Service._serviceMap,e)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",(function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCallAttempt",[t])})),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",(function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCall",[t])}))},_serviceMap:{}}),n.util.mixin(n.Service,n.SequentialExecutor),e.exports=n.Service},(e,t,r)=>{var n=r(35),o=r(64);function i(e,t){n.each(t,(function(t,r){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=r))}))}e.exports={configureEndpoint:function(e){for(var t=function(e){var t=e.config.region,r=function(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}(t),n=e.api.endpointPrefix;return[[t,n],[r,n],[t,"*"],[r,"*"],["*",n],[t,"internal-*"],["*","*"]].map((function(e){return e[0]&&e[1]?e.join("/"):null}))}(e),r=e.config.useFipsEndpoint,n=e.config.useDualstackEndpoint,s=0;s<t.length;s++){var a=t[s];if(a){var c=r?n?o.dualstackFipsRules:o.fipsRules:n?o.dualstackRules:o.rules;if(Object.prototype.hasOwnProperty.call(c,a)){var u=c[a];"string"==typeof u&&(u=o.patterns[u]),e.isGlobalEndpoint=!!u.globalEndpoint,u.signingRegion&&(e.signingRegion=u.signingRegion),u.signatureVersion||(u.signatureVersion="v4");var l="bearer"===(e.api&&e.api.signatureVersion);return void i(e,Object.assign({},u,{signatureVersion:l?"bearer":u.signatureVersion}))}}}},getEndpointSuffix:function(e){for(var t={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov","^eu\\-isoe\\-west\\-1$":"cloud.adc-e.uk","^us\\-isof\\-\\w+\\-\\d+$":"csp.hci.ic.gov"},r=Object.keys(t),n=0;n<r.length;n++){var o=RegExp(r[n]),i=t[r[n]];if(o.test(e))return i}return"amazonaws.com"}}},e=>{"use strict";e.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"eu-isoe-*/*":"euIsoe","us-iso-*/*":"usIso","us-isob-*/*":"usIsob","us-isof-*/*":"usIsof","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{"endpoint":"{service}.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-isob-*/route53":{"endpoint":"{service}.sc2s.sgov.gov","globalEndpoint":true,"signingRegion":"us-isob-east-1"},"us-isof-*/route53":"globalUsIsof","eu-isoe-*/route53":"globalEuIsoe","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-iso-*/iam":{"endpoint":"{service}.us-iso-east-1.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-gov-*/iam":"globalGovCloud","*/ce":{"endpoint":"{service}.us-east-1.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"cn-*/ce":{"endpoint":"{service}.cn-northwest-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"},"*/resource-explorer-2":"dualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/internetmonitor":"dualstackByDefault","*/codecatalyst":"globalDualstackByDefault"},"fipsRules":{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{"endpoint":"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{"endpoint":"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{"endpoint":"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{"endpoint":"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/access-analyzer":"fipsWithServiceOnly","us-gov-*/acm":"fipsWithServiceOnly","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/api.sagemaker":"fipsWithServiceOnly","us-gov-*/appconfig":"fipsWithServiceOnly","us-gov-*/application-autoscaling":"fipsWithServiceOnly","us-gov-*/autoscaling":"fipsWithServiceOnly","us-gov-*/autoscaling-plans":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/cassandra":"fipsWithServiceOnly","us-gov-*/clouddirectory":"fipsWithServiceOnly","us-gov-*/cloudformation":"fipsWithServiceOnly","us-gov-*/cloudshell":"fipsWithServiceOnly","us-gov-*/cloudtrail":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/connect":"fipsWithServiceOnly","us-gov-*/databrew":"fipsWithServiceOnly","us-gov-*/dlm":"fipsWithServiceOnly","us-gov-*/dms":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/ec2":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticache":"fipsWithServiceOnly","us-gov-*/elasticbeanstalk":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/events":"fipsWithServiceOnly","us-gov-*/fis":"fipsWithServiceOnly","us-gov-*/glacier":"fipsWithServiceOnly","us-gov-*/greengrass":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/imagebuilder":"fipsWithServiceOnly","us-gov-*/kafka":"fipsWithServiceOnly","us-gov-*/kinesis":"fipsWithServiceOnly","us-gov-*/logs":"fipsWithServiceOnly","us-gov-*/mediaconvert":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/networkmanager":"fipsWithServiceOnly","us-gov-*/organizations":"fipsWithServiceOnly","us-gov-*/outposts":"fipsWithServiceOnly","us-gov-*/participant.connect":"fipsWithServiceOnly","us-gov-*/ram":"fipsWithServiceOnly","us-gov-*/rds":"fipsWithServiceOnly","us-gov-*/redshift":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/serverlessrepo":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/sns":"fipsWithServiceOnly","us-gov-*/sqs":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/streams.dynamodb":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-*/swf":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{"endpoint":"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{"endpoint":"route53.us-gov.amazonaws.com"},"*/resource-explorer-2":"fipsDualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/internetmonitor":"dualstackByDefault","*/codecatalyst":"fipsGlobalDualstackByDefault"},"dualstackRules":{"*/*":{"endpoint":"{service}.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},"dualstackFipsRules":{"*/*":{"endpoint":"{service}-fips.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"globalUsIsof":{"endpoint":"{service}.csp.hci.ic.gov","globalEndpoint":true,"signingRegion":"us-isof-south-1"},"globalEuIsoe":{"endpoint":"{service}.cloud.adc-e.uk","globalEndpoint":true,"signingRegion":"eu-isoe-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"},"euIsoe":{"endpoint":"{service}.{region}.cloud.adc-e.uk"},"usIso":{"endpoint":"{service}.{region}.c2s.ic.gov"},"usIsob":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"usIsof":{"endpoint":"{service}.{region}.csp.hci.ic.gov"},"fipsStandard":{"endpoint":"{service}-fips.{region}.amazonaws.com"},"fipsDotPrefix":{"endpoint":"fips.{service}.{region}.amazonaws.com"},"fipsWithoutRegion":{"endpoint":"{service}-fips.amazonaws.com"},"fips.api.ecr":{"endpoint":"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{"endpoint":"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{"endpoint":"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{"endpoint":"runtime-fips.lex.{region}.amazonaws.com"},"fipsWithServiceOnly":{"endpoint":"{service}.{region}.amazonaws.com"},"dualstackLegacy":{"endpoint":"{service}.dualstack.{region}.amazonaws.com"},"dualstackLegacyCn":{"endpoint":"{service}.dualstack.{region}.amazonaws.com.cn"},"dualstackFipsLegacy":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com"},"dualstackFipsLegacyCn":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com.cn"},"dualstackLegacyEc2":{"endpoint":"api.ec2.{region}.aws"},"dualstackByDefault":{"endpoint":"{service}.{region}.api.aws"},"fipsDualstackByDefault":{"endpoint":"{service}-fips.{region}.api.aws"},"globalDualstackByDefault":{"endpoint":"{service}.global.api.aws"},"fipsGlobalDualstackByDefault":{"endpoint":"{service}-fips.global.api.aws"}}}')},e=>{e.exports={isFipsRegion:function(e){return"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))},isGlobalRegion:function(e){return"string"==typeof e&&["aws-global","aws-us-gov-global"].includes(e)},getRealRegion:function(e){return["fips-aws-global","aws-fips","aws-global"].includes(e)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(e)?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},(e,t,r)=>{var n,o=r(36);r(67),r(68),o.Config=o.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),o.util.each.call(this,this.keys,(function(t,r){this.set(t,e[t],r)}))},getCredentials:function(e){var t,r=this;function n(t){e(t,t?null:r.credentials)}function i(e,t){return new o.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}r.credentials?"function"==typeof r.credentials.get?r.credentials.get((function(e){e&&(e=i("Could not load credentials from "+r.credentials.constructor.name,e)),n(e)})):(t=null,r.credentials.accessKeyId&&r.credentials.secretAccessKey||(t=i("Missing credentials")),n(t)):r.credentialProvider?r.credentialProvider.resolve((function(e,t){e&&(e=i("Could not load credentials from any providers",e)),r.credentials=t,n(e)})):n(i("No credentials to load"))},getToken:function(e){var t,r=this;function n(t){e(t,t?null:r.token)}function i(e,t){return new o.util.error(t||new Error,{code:"TokenError",message:e,name:"TokenError"})}r.token?"function"==typeof r.token.get?r.token.get((function(e){e&&(e=i("Could not load token from "+r.token.constructor.name,e)),n(e)})):(t=null,r.token.token||(t=i("Missing token")),n(t)):r.tokenProvider?r.tokenProvider.resolve((function(e,t){e&&(e=i("Could not load token from any providers",e)),r.token=t,n(e)})):n(i("No token to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),o.util.each.call(this,e,(function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||o.Service.hasService(e))&&this.set(e,r)}))},loadFromPath:function(e){this.clear();var t=JSON.parse(o.util.readFileSync(e)),r=new o.FileSystemCredentials(e),n=new o.CredentialProviderChain;return n.providers.unshift(r),n.resolve((function(e,r){if(e)throw e;t.credentials=r})),this.constructor(t),this},clear:function(){o.util.each.call(this,this.keys,(function(e){delete this[e]})),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=o.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&((e=o.util.copy(e)).credentials=new o.Credentials(e)),e},setPromisesDependency:function(e){n=e,null===e&&"function"==typeof Promise&&(n=Promise);var t=[o.Request,o.Credentials,o.CredentialProviderChain];o.S3&&(t.push(o.S3),o.S3.ManagedUpload&&t.push(o.S3.ManagedUpload)),o.util.addPromises(t,n)},getPromisesDependency:function(){return n}}),o.config=new o.Config},(e,t,r)=>{var n=r(36);n.Credentials=n.util.inherit({constructor:function(){if(n.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=n.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh((function(r){r||(t.expired=!1),e&&e(r)})):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load((function(e){n.util.arrayEach(r.refreshCallbacks,(function(r){t?r(e):n.util.defer((function(){r(e)}))})),r.refreshCallbacks.length=0}))},load:function(e){e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},(e,t,r)=>{var n=r(36);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){var t=this;if(0===t.providers.length)return e(new Error("No providers")),t;if(1===t.resolveCallbacks.push(e)){var r=0,o=t.providers.slice(0);!function e(i,s){if(!i&&s||r===o.length)return n.util.arrayEach(t.resolveCallbacks,(function(e){e(i,s)})),void(t.resolveCallbacks.length=0);var a=o[r++];(s="function"==typeof a?a.call():a).get?s.get((function(t){e(t,t?null:s)})):e(null,s)}()}return t}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},(e,t,r)=>{var n=r(36),o=n.util.inherit;n.Endpoint=o({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return n.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:n.config.sslEnabled)?"https":"http")+"://"+e);n.util.update(this,n.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),n.HttpRequest=o({constructor:function(e,t){e=new n.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=n.util.userAgent()},getUserAgentHeaderName:function(){return(n.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=n.util.queryStringParse(e),n.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new n.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),n.HttpResponse=o({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),n.HttpClient=o({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},(e,t,r)=>{var n=r(36),o=r(61),i=r(71).discoverEndpoint;function s(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}function a(e){var t=e.service;return t.config.signatureVersion?t.config.signatureVersion:t.api.signatureVersion?t.api.signatureVersion:s(e)}n.EventListeners={Core:{}},n.EventListeners={Core:(new o).addNamedListeners((function(e,t){t("VALIDATE_CREDENTIALS","validate",(function(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();"bearer"!==a(e)?e.service.config.getCredentials((function(r){r&&(e.response.error=n.util.error(r,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),t()})):e.service.config.getToken((function(r){r&&(e.response.error=n.util.error(r,{code:"TokenError"})),t()}))})),e("VALIDATE_REGION","validate",(function(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);e.service.config.region?t.test(e.service.config.region)||(e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}})),e("BUILD_IDEMPOTENCY_TOKENS","validate",(function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=t.idempotentMembers;if(r.length){for(var o=n.util.copy(e.params),i=0,s=r.length;i<s;i++)o[r[i]]||(o[r[i]]=n.util.uuid.v4());e.params=o}}}})),e("VALIDATE_PARAMETERS","validate",(function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation].input,r=e.service.config.paramValidation;new n.ParamValidator(r).validate(t,e.params)}})),e("COMPUTE_CHECKSUM","afterBuild",(function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=e.httpRequest.body,o=r&&(n.util.Buffer.isBuffer(r)||"string"==typeof r),i=e.httpRequest.headers;if(t.httpChecksumRequired&&e.service.config.computeChecksums&&o&&!i["Content-MD5"]){var s=n.util.crypto.md5(r,"base64");i["Content-MD5"]=s}}}})),t("COMPUTE_SHA256","afterBuild",(function(e,t){if(e.haltHandlersOnError(),e.service.api.operations){var r=e.service.api.operations[e.operation],o=r?r.authtype:"";if(!e.service.api.signatureVersion&&!o&&!e.service.config.signatureVersion)return t();if(e.service.getSignerClass(e)===n.Signers.V4){var i=e.httpRequest.body||"";if(o.indexOf("unsigned-body")>=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();n.util.computeSha256(i,(function(r,n){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=n,t())}))}else t()}})),e("SET_CONTENT_LENGTH","afterBuild",(function(e){var t=s(e),r=n.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var o=n.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=o}catch(n){if(r&&r.isStreaming){if(r.requiresLength)throw n;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw n}throw n}})),e("SET_HTTP_HOST","afterBuild",(function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host})),e("SET_TRACE_ID","afterBuild",(function(e){var t="X-Amzn-Trace-Id";if(n.util.isNode()&&!Object.hasOwnProperty.call(e.httpRequest.headers,t)){var r=process.env.AWS_LAMBDA_FUNCTION_NAME,o=process.env._X_AMZN_TRACE_ID;"string"==typeof r&&r.length>0&&"string"==typeof o&&o.length>0&&(e.httpRequest.headers[t]=o)}})),e("RESTART","restart",(function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new n.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}));t("DISCOVER_ENDPOINT","sign",i,!0),t("SIGN","sign",(function(e,t){var r=e.service,n=a(e);if(!n||0===n.length)return t();"bearer"===n?r.config.getToken((function(n,o){if(n)return e.response.error=n,t();try{new(r.getSignerClass(e))(e.httpRequest).addAuthorization(o)}catch(t){e.response.error=t}t()})):r.config.getCredentials((function(n,o){if(n)return e.response.error=n,t();try{var i=r.getSkewCorrectedDate(),s=r.getSignerClass(e),a=(e.service.api.operations||{})[e.operation],c=new s(e.httpRequest,r.getSigningName(e),{signatureCache:r.config.signatureCache,operation:a,signatureVersion:r.api.signatureVersion});c.setServiceClientId(r._clientId),delete e.httpRequest.headers.Authorization,delete e.httpRequest.headers.Date,delete e.httpRequest.headers["X-Amz-Date"],c.addAuthorization(o,i),e.signedAt=i}catch(t){e.response.error=t}t()}))})),e("VALIDATE_RESPONSE","validateResponse",(function(e){this.service.successfulResponse(e,this)?(e.data={},e.error=null):(e.data=null,e.error=n.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))})),e("ERROR","error",(function(e,t){if(t.request.service.api.awsQueryCompatible){var r=t.httpResponse.headers,n=r?r["x-amzn-query-error"]:void 0;n&&n.includes(";")&&(t.error.code=n.split(";")[0])}}),!0),t("SEND","send",(function(e,t){function r(r){e.httpResponse.stream=r;var o=e.request.httpRequest.stream,i=e.request.service,s=i.api,a=e.request.operation,c=s.operations[a]||{};r.on("headers",(function(o,s,a){if(e.request.emit("httpHeaders",[o,s,e,a]),!e.httpResponse.streaming)if(2===n.HttpClient.streamsApiVersion){if(c.hasEventOutput&&i.successfulResponse(e))return e.request.emit("httpDone"),void t();r.on("readable",(function(){var t=r.read();null!==t&&e.request.emit("httpData",[t,e])}))}else r.on("data",(function(t){e.request.emit("httpData",[t,e])}))})),r.on("end",(function(){if(!o||!o.didCallback){if(2===n.HttpClient.streamsApiVersion&&c.hasEventOutput&&i.successfulResponse(e))return;e.request.emit("httpDone"),t()}}))}function o(r){if("RequestAbortedError"!==r.code){var o="TimeoutError"===r.code?r.code:"NetworkingError";r=n.util.error(r,{code:o,region:e.request.httpRequest.region,hostname:e.request.httpRequest.endpoint.hostname,retryable:!0})}e.error=r,e.request.emit("httpError",[e.error,e],(function(){t()}))}function i(){var t,i=n.HttpClient.getInstance(),s=e.request.service.config.httpOptions||{};try{var a=i.handleRequest(e.request.httpRequest,s,r,o);(t=a).on("sendProgress",(function(t){e.request.emit("httpUploadProgress",[t,e])})),t.on("receiveProgress",(function(t){e.request.emit("httpDownloadProgress",[t,e])}))}catch(e){o(e)}}e.httpResponse._abortCallback=t,e.error=null,e.data=null,(e.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],(function(e){e?t(e):i()})):i()})),e("HTTP_HEADERS","httpHeaders",(function(e,t,r,o){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=o,r.httpResponse.headers=t,r.httpResponse.body=n.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var i=t.date||t.Date,s=r.request.service;if(i){var a=Date.parse(i);s.config.correctClockSkew&&s.isClockSkewed(a)&&s.applyClockOffset(a)}})),e("HTTP_DATA","httpData",(function(e,t){if(e){if(n.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],o={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[o,t])}t.httpResponse.buffers.push(n.util.buffer.toBuffer(e))}})),e("HTTP_DONE","httpDone",(function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=n.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers})),e("FINALIZE_ERROR","retry",(function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))})),e("INVALIDATE_CREDENTIALS","retry",(function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}})),e("EXPIRED_SIGNATURE","retry",(function(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)})),e("CLOCK_SKEWED","retry",(function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)})),e("REDIRECT","retry",(function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new n.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,this.httpRequest.path=this.httpRequest.endpoint.path,e.error.redirect=!0,e.error.retryable=!0)})),e("RETRY_CHECK","retry",(function(e){e.error&&(e.error.redirect&&e.redirectCount<e.maxRedirects?e.error.retryDelay=0:e.retryCount<e.maxRetries&&(e.error.retryDelay=this.service.retryDelays(e.retryCount,e.error)||0))})),t("RESET_RETRY_STATE","afterRetry",(function(e,t){var r,n=!1;e.error&&(r=e.error.retryDelay||0,e.error.retryable&&e.retryCount<e.maxRetries?(e.retryCount++,n=!0):e.error.redirect&&e.redirectCount<e.maxRedirects&&(e.redirectCount++,n=!0)),n&&r>=0?(e.error=null,setTimeout(t,r)):t()}))})),CorePost:(new o).addNamedListeners((function(e){e("EXTRACT_REQUEST_ID","extractData",n.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",n.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",(function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"==typeof e.errno&&"function"==typeof n.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(n.util.getSystemErrorName(e.errno)>=0)}(e)){var t="Inaccessible host: `"+e.hostname+"' at port `"+e.port+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=n.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}}))})),Logger:(new o).addNamedListeners((function(e){e("LOG_REQUEST","complete",(function(e){var t=e.request,o=t.service.config.logger;if(o){var i=function(){var i=(e.request.service.getSkewCorrectedDate().getTime()-t.startTime.getTime())/1e3,a=!!o.isTTY,c=e.httpResponse.statusCode,u=t.params;t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input&&(u=s(t.service.api.operations[t.operation].input,t.params));var l=r(72).inspect(u,!0,null),p="";return a&&(p+="[33m"),p+="[AWS "+t.service.serviceIdentifier+" "+c,p+=" "+i.toString()+"s "+e.retryCount+" retries]",a&&(p+="[0;1m"),p+=" "+n.util.string.lowerFirst(t.operation),p+="("+l+")",a&&(p+="[0m"),p}();"function"==typeof o.log?o.log(i):"function"==typeof o.write&&o.write(i+"\n")}function s(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var r={};return n.util.each(t,(function(t,n){Object.prototype.hasOwnProperty.call(e.members,t)?r[t]=s(e.members[t],n):r[t]=n})),r;case"list":var o=[];return n.util.arrayEach(t,(function(t,r){o.push(s(e.member,t))})),o;case"map":var i={};return n.util.each(t,(function(t,r){i[t]=s(e.value,r)})),i;default:return t}}}))})),Json:(new o).addNamedListeners((function(e){var t=r(37);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Rest:(new o).addNamedListeners((function(e){var t=r(45);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),RestJson:(new o).addNamedListeners((function(e){var t=r(46);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError),e("UNSET_CONTENT_LENGTH","afterBuild",t.unsetContentLength)})),RestXml:(new o).addNamedListeners((function(e){var t=r(47);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Query:(new o).addNamedListeners((function(e){var t=r(41);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}))}},(e,t,r)=>{var n=r(36),o=r(35),i=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function s(e){var t=e.service,r=t.api||{},n=(r.operations,{});return t.config.region&&(n.region=t.config.region),r.serviceId&&(n.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(n.accessKeyId=t.config.credentials.accessKeyId),n}function a(e,t,r){r&&null!=t&&"structure"===r.type&&r.required&&r.required.length>0&&o.arrayEach(r.required,(function(n){var o=r.members[n];if(!0===o.endpointDiscoveryId){var i=o.isLocationName?o.name:n;e[i]=String(t[n])}else a(e,t[n],o)}))}function c(e,t){var r={};return a(r,e.params,t),r}function u(e){var t=e.service,r=t.api,i=r.operations?r.operations[e.operation]:void 0,a=c(e,i?i.input:void 0),u=s(e);Object.keys(a).length>0&&(u=o.update(u,a),i&&(u.operation=i.name));var l=n.endpointCache.get(u);if(!l||1!==l.length||""!==l[0].Address)if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address);else{var p=t.makeRequest(r.endpointOperation,{Operation:i.name,Identifiers:a});d(p),p.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),p.removeListener("retry",n.EventListeners.Core.RETRY_CHECK),n.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}]),p.send((function(e,t){t&&t.Endpoints?n.endpointCache.put(u,t.Endpoints):e&&n.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}])}))}}var l={};function p(e,t){var r=e.service,i=r.api,a=i.operations?i.operations[e.operation]:void 0,u=a?a.input:void 0,p=c(e,u),f=s(e);Object.keys(p).length>0&&(f=o.update(f,p),a&&(f.operation=a.name));var h=n.EndpointCache.getKeyString(f),m=n.endpointCache.get(h);if(m&&1===m.length&&""===m[0].Address)return l[h]||(l[h]=[]),void l[h].push({request:e,callback:t});if(m&&m.length>0)e.httpRequest.updateEndpoint(m[0].Address),t();else{var y=r.makeRequest(i.endpointOperation,{Operation:a.name,Identifiers:p});y.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),d(y),n.endpointCache.put(h,[{Address:"",CachePeriodInMinutes:60}]),y.send((function(r,i){if(r){if(e.response.error=o.error(r,{retryable:!1}),n.endpointCache.remove(f),l[h]){var s=l[h];o.arrayEach(s,(function(e){e.request.response.error=o.error(r,{retryable:!1}),e.callback()})),delete l[h]}}else if(i&&(n.endpointCache.put(h,i.Endpoints),e.httpRequest.updateEndpoint(i.Endpoints[0].Address),l[h])){s=l[h];o.arrayEach(s,(function(e){e.request.httpRequest.updateEndpoint(i.Endpoints[0].Address),e.callback()})),delete l[h]}t()}))}}function d(e){var t=e.service.api.apiVersion;t&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=t)}function f(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var i=e.request,a=i.service.api.operations||{},u=c(i,a[i.operation]?a[i.operation].input:void 0),l=s(i);Object.keys(u).length>0&&(l=o.update(l,u),a[i.operation]&&(l.operation=a[i.operation].name)),n.endpointCache.remove(l)}}function h(e){return["false","0"].indexOf(e)>=0}e.exports={discoverEndpoint:function(e,t){var r=e.service||{};if(function(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw o.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=n.config[e.serviceIdentifier]||{};return Boolean(n.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}(r)||e.isPresigned())return t();var s=(r.api.operations||{})[e.operation],a=s?s.endpointDiscoveryRequired:"NULL",c=function(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!o.isBrowser()){for(var r=0;r<i.length;r++){var s=i[r];if(Object.prototype.hasOwnProperty.call(process.env,s)){if(""===process.env[s]||void 0===process.env[s])throw o.error(new Error,{code:"ConfigurationException",message:"environmental variable "+s+" cannot be set to nothing"});return!h(process.env[s])}}var a={};try{a=n.util.iniLoader?n.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[n.util.sharedConfigFileEnv]}):{}}catch(e){}var c=a[process.env.AWS_PROFILE||n.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(c,"endpoint_discovery_enabled")){if(void 0===c.endpoint_discovery_enabled)throw o.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!h(c.endpoint_discovery_enabled)}}}(e),l=r.api.hasRequiredEndpointDiscovery;switch((c||l)&&e.httpRequest.appendToUserAgent("endpoint-discovery"),a){case"OPTIONAL":(c||l)&&(u(e),e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",f)),t();break;case"REQUIRED":if(!1===c){e.response.error=o.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+r.api.className+"."+e.operation+"() requires it. Please check your configurations."}),t();break}e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",f),p(e,t);break;default:t()}},requiredDiscoverEndpoint:p,optionalDiscoverEndpoint:u,marshallCustomIdentifiers:c,getCacheKey:s,invalidateCachedEndpoint:f}},(e,t,r)=>{var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<i;a=n[++r])y(a)||!_(a)?s+=" "+a:s+=" "+c(a);return s},t.deprecate=function(e,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var i={},s=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function c(e,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&t._extend(n,r),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),p(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function l(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return v(o)||(o=p(e,o,n)),o}var i=function(e,t){if(S(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,r);if(i)return i;var s=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),w(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(r);if(0===s.length){if(I(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(w(r))return d(r)}var u,l="",_=!1,A=["{","}"];(h(r)&&(_=!0,A=["[","]"]),I(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return b(r)&&(l=" "+RegExp.prototype.toString.call(r)),E(r)&&(l=" "+Date.prototype.toUTCString.call(r)),w(r)&&(l=" "+d(r)),0!==s.length||_&&0!=r.length?n<0?b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=_?function(e,t,r,n,o){for(var i=[],s=0,a=t.length;s<a;++s)C(t,String(s))?i.push(f(e,t,r,n,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(f(e,t,r,n,o,!0))})),i}(e,r,n,a,s):s.map((function(t){return f(e,r,n,a,t,_)})),e.seen.pop(),function(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,l,A)):A[0]+l+A[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,o,i){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),C(n,o)||(s="["+o+"]"),a||(e.seen.indexOf(c.value)<0?(a=y(r)?p(e,c.value,null):p(e,c.value,r-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),S(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function S(e){return void 0===e}function b(e){return _(e)&&"[object RegExp]"===A(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===A(e)}function w(e){return _(e)&&("[object Error]"===A(e)||e instanceof Error)}function I(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(s.test(e)){var r=process.pid;i[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else i[e]=function(){};return i[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(73),t.isArray=h,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=S,t.isRegExp=b,t.types.isRegExp=b,t.isObject=_,t.isDate=E,t.types.isDate=E,t.isError=w,t.types.isNativeError=w,t.isFunction=I,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(119);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),k[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(120),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var x="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!=typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),x&&Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=x,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return n.apply(o,arguments)};e.apply(this,t).then((function(e){process.nextTick(i.bind(null,null,e))}),(function(e){process.nextTick(R.bind(null,e,i))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},(e,t,r)=>{"use strict";var n=r(74),o=r(108),i=r(109),s=r(118);function a(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=a(Object.prototype.toString),p=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(c)var h=a(BigInt.prototype.valueOf);if(u)var m=a(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function S(e){return"[object WeakMap]"===l(e)}function b(e){return"[object WeakSet]"===l(e)}function _(e){return"[object ArrayBuffer]"===l(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function w(e){return"[object DataView]"===l(e)}function I(e){return"undefined"!=typeof DataView&&(w.working?w(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||I(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},S.working="undefined"!=typeof WeakMap&&S(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(S.working?S(e):e instanceof WeakMap)},b.working="undefined"!=typeof WeakSet&&b(new WeakSet),t.isWeakSet=function(e){return b(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=E,w.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&w(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=I;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===l(e)}function k(e){return void 0!==A&&(void 0===T.working&&(T.working=T(new A)),T.working?T(e):e instanceof A)}function C(e){return y(e,p)}function x(e){return y(e,d)}function R(e){return y(e,f)}function O(e){return c&&y(e,h)}function P(e){return u&&y(e,m)}t.isSharedArrayBuffer=k,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=C,t.isStringObject=x,t.isBooleanObject=R,t.isBigIntObject=O,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return C(e)||x(e)||R(e)||O(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},(e,t,r)=>{"use strict";var n=r(75)(),o=r(77)("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,e.exports=a?i:s},(e,t,r)=>{"use strict";var n=r(76);e.exports=function(){return n()&&!!Symbol.toStringTag}},e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},(e,t,r)=>{"use strict";var n=r(78),o=r(92),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},(e,t,r)=>{"use strict";var n,o=r(79),i=r(80),s=r(81),a=r(82),c=r(83),u=r(84),l=r(85),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new u},m=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,y=r(86)(),g=r(88)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),S={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":S,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var E=v(v(e));_["%Error.prototype%"]=E}var w=function e(t){var r;if("%AsyncFunction%"===t)r=d("async function () {}");else if("%GeneratorFunction%"===t)r=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=d("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&v&&(r=v(o.prototype))}return _[t]=r,r},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=r(89),T=r(91),k=A.call(Function.call,Array.prototype.concat),C=A.call(Function.apply,Array.prototype.splice),x=A.call(Function.call,String.prototype.replace),R=A.call(Function.call,String.prototype.slice),O=A.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,N=function(e,t){var r,n=e;if(T(I,n)&&(n="%"+(r=I[n])[0]+"%"),T(_,n)){var o=_[n];if(o===S&&(o=w(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=R(e,0,1),r=R(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,P,(function(e,t,r,o){n[n.length]=r?x(o,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=N("%"+n+"%",t),i=o.name,s=o.value,a=!1,l=o.alias;l&&(n=l[0],C(r,k([0,1],l)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],m=R(h,0,1),y=R(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(a=!0),T(_,i="%"+(n+="."+h)+"%"))s=_[i];else if(null!=s){if(!(h in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=r.length){var g=f(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=T(s,h),s=s[h];d&&!a&&(_[i]=s)}}return s}},e=>{"use strict";e.exports=Error},e=>{"use strict";e.exports=EvalError},e=>{"use strict";e.exports=RangeError},e=>{"use strict";e.exports=ReferenceError},e=>{"use strict";e.exports=SyntaxError},e=>{"use strict";e.exports=TypeError},e=>{"use strict";e.exports=URIError},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(87);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},(e,t,r)=>{"use strict";var n=r(90);e.exports=Function.prototype.bind||n},e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),a=r(0,o.length-s.length),c=[],u=0;u<a;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(s,arguments));return Object(t)===t?t:this}return o.apply(e,n(s,arguments))})),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(89);e.exports=i.call(n,o)},(e,t,r)=>{"use strict";var n=r(89),o=r(78),i=r(93),s=r(84),a=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(c,a),l=r(98),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=u(n,c,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return u(n,a,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},(e,t,r)=>{"use strict";var n=r(94),o=r(97),i=r(106)(),s=r(107),a=r(84),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&s){var l=s(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(u=!1)}return(n||u||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},(e,t,r)=>{"use strict";var n,o=r(79),i=r(80),s=r(81),a=r(82),c=r(83),u=r(84),l=r(85),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new u},m=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,y=r(95)(),g=r(88)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),S={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":S,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var E=v(v(e));_["%Error.prototype%"]=E}var w=function e(t){var r;if("%AsyncFunction%"===t)r=d("async function () {}");else if("%GeneratorFunction%"===t)r=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=d("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&v&&(r=v(o.prototype))}return _[t]=r,r},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=r(89),T=r(91),k=A.call(Function.call,Array.prototype.concat),C=A.call(Function.apply,Array.prototype.splice),x=A.call(Function.call,String.prototype.replace),R=A.call(Function.call,String.prototype.slice),O=A.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,N=function(e,t){var r,n=e;if(T(I,n)&&(n="%"+(r=I[n])[0]+"%"),T(_,n)){var o=_[n];if(o===S&&(o=w(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=R(e,0,1),r=R(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,P,(function(e,t,r,o){n[n.length]=r?x(o,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=N("%"+n+"%",t),i=o.name,s=o.value,a=!1,l=o.alias;l&&(n=l[0],C(r,k([0,1],l)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],m=R(h,0,1),y=R(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(a=!0),T(_,i="%"+(n+="."+h)+"%"))s=_[i];else if(null!=s){if(!(h in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=r.length){var g=f(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=T(s,h),s=s[h];d&&!a&&(_[i]=s)}}return s}},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(96);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},(e,t,r)=>{"use strict";var n=r(98),o=r(83),i=r(84),s=r(102);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],p=!!s&&s(e,t);if(n)n(e,t,{configurable:null===u&&p?p.configurable:!u,enumerable:null===a&&p?p.enumerable:!a,value:r,writable:null===c&&p?p.writable:!c});else{if(!l&&(a||c||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},(e,t,r)=>{"use strict";var n=r(99)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},(e,t,r)=>{"use strict";var n,o=r(79),i=r(80),s=r(81),a=r(82),c=r(83),u=r(84),l=r(85),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new u},m=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,y=r(100)(),g=r(88)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),S={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":S,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var E=v(v(e));_["%Error.prototype%"]=E}var w=function e(t){var r;if("%AsyncFunction%"===t)r=d("async function () {}");else if("%GeneratorFunction%"===t)r=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=d("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&v&&(r=v(o.prototype))}return _[t]=r,r},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=r(89),T=r(91),k=A.call(Function.call,Array.prototype.concat),C=A.call(Function.apply,Array.prototype.splice),x=A.call(Function.call,String.prototype.replace),R=A.call(Function.call,String.prototype.slice),O=A.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,N=function(e,t){var r,n=e;if(T(I,n)&&(n="%"+(r=I[n])[0]+"%"),T(_,n)){var o=_[n];if(o===S&&(o=w(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=R(e,0,1),r=R(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,P,(function(e,t,r,o){n[n.length]=r?x(o,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=N("%"+n+"%",t),i=o.name,s=o.value,a=!1,l=o.alias;l&&(n=l[0],C(r,k([0,1],l)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],m=R(h,0,1),y=R(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(a=!0),T(_,i="%"+(n+="."+h)+"%"))s=_[i];else if(null!=s){if(!(h in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=r.length){var g=f(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=T(s,h),s=s[h];d&&!a&&(_[i]=s)}}return s}},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(101);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},(e,t,r)=>{"use strict";var n=r(103)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},(e,t,r)=>{"use strict";var n,o=r(79),i=r(80),s=r(81),a=r(82),c=r(83),u=r(84),l=r(85),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new u},m=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,y=r(104)(),g=r(88)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),S={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":S,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var E=v(v(e));_["%Error.prototype%"]=E}var w=function e(t){var r;if("%AsyncFunction%"===t)r=d("async function () {}");else if("%GeneratorFunction%"===t)r=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=d("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&v&&(r=v(o.prototype))}return _[t]=r,r},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=r(89),T=r(91),k=A.call(Function.call,Array.prototype.concat),C=A.call(Function.apply,Array.prototype.splice),x=A.call(Function.call,String.prototype.replace),R=A.call(Function.call,String.prototype.slice),O=A.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,N=function(e,t){var r,n=e;if(T(I,n)&&(n="%"+(r=I[n])[0]+"%"),T(_,n)){var o=_[n];if(o===S&&(o=w(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=R(e,0,1),r=R(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,P,(function(e,t,r,o){n[n.length]=r?x(o,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=N("%"+n+"%",t),i=o.name,s=o.value,a=!1,l=o.alias;l&&(n=l[0],C(r,k([0,1],l)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],m=R(h,0,1),y=R(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(a=!0),T(_,i="%"+(n+="."+h)+"%"))s=_[i];else if(null!=s){if(!(h in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=r.length){var g=f(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=T(s,h),s=s[h];d&&!a&&(_[i]=s)}}return s}},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(105);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},(e,t,r)=>{"use strict";var n=r(98),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},(e,t,r)=>{"use strict";var n=r(94)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},(e,t,r)=>{"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=r(75)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(s.test(i.call(e)))return!0;if(!a)return"[object GeneratorFunction]"===o.call(e);if(!c)return!1;if(void 0===n){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&c(t)}return c(e)===n}},(e,t,r)=>{"use strict";var n=r(110),o=r(112),i=r(92),s=r(77),a=r(114),c=s("Object.prototype.toString"),u=r(75)(),l="undefined"==typeof globalThis?r.g:globalThis,p=o(),d=s("String.prototype.slice"),f=Object.getPrototypeOf,h=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},m={__proto__:null};n(p,u&&a&&f?function(e){var t=new l[e];if(Symbol.toStringTag in t){var r=f(t),n=a(r,Symbol.toStringTag);if(!n){var o=f(r);n=a(o,Symbol.toStringTag)}m["$"+e]=i(n.get)}}:function(e){var t=new l[e],r=t.slice||t.set;r&&(m["$"+e]=i(r))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=d(c(e),8,-1);return h(p,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,(function(r,n){if(!t)try{r(e),t=d(n,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return n(m,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=d(n,1))}catch(e){}})),t}(e):null}},(e,t,r)=>{"use strict";var n=r(111),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=r),"[object Array]"===o.call(e)?function(e,t,r){for(var n=0,o=e.length;n<o;n++)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,s):"string"==typeof e?function(e,t,r){for(var n=0,o=e.length;n<o;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,s):function(e,t,r){for(var n in e)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,s)}},e=>{"use strict";var t,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,t)}catch(e){e!==r&&(o=null)}else o=null;var i=/^\s*class\b/,s=function(e){try{var t=n.call(e);return i.test(t)}catch(e){return!1}},a=function(e){try{return!s(e)&&(n.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var d=document.all;c.call(d)===c.call(document.all)&&(p=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==r)return!1}return!s(e)&&a(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return a(e);if(s(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}},(e,t,r)=>{"use strict";var n=r(113),o="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof o[n[t]]&&(e[e.length]=n[t]);return e}},e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},(e,t,r)=>{"use strict";var n=r(115)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},(e,t,r)=>{"use strict";var n,o=r(79),i=r(80),s=r(81),a=r(82),c=r(83),u=r(84),l=r(85),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new u},m=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,y=r(116)(),g=r(88)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),S={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":S,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var E=v(v(e));_["%Error.prototype%"]=E}var w=function e(t){var r;if("%AsyncFunction%"===t)r=d("async function () {}");else if("%GeneratorFunction%"===t)r=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=d("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&v&&(r=v(o.prototype))}return _[t]=r,r},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=r(89),T=r(91),k=A.call(Function.call,Array.prototype.concat),C=A.call(Function.apply,Array.prototype.splice),x=A.call(Function.call,String.prototype.replace),R=A.call(Function.call,String.prototype.slice),O=A.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,N=function(e,t){var r,n=e;if(T(I,n)&&(n="%"+(r=I[n])[0]+"%"),T(_,n)){var o=_[n];if(o===S&&(o=w(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=R(e,0,1),r=R(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,P,(function(e,t,r,o){n[n.length]=r?x(o,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=N("%"+n+"%",t),i=o.name,s=o.value,a=!1,l=o.alias;l&&(n=l[0],C(r,k([0,1],l)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],m=R(h,0,1),y=R(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(a=!0),T(_,i="%"+(n+="."+h)+"%"))s=_[i];else if(null!=s){if(!(h in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=r.length){var g=f(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=T(s,h),s=s[h];d&&!a&&(_[i]=s)}}return s}},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(117);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},(e,t,r)=>{"use strict";var n=r(109);e.exports=function(e){return!!n(e)}},e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},(e,t,r)=>{var n=r(36),o=r(122),i=n.util.inherit,s=n.util.domain,a=r(123),c={success:1,error:1,complete:1};var u=new o;u.setupStates=function(){var e=function(e,t){var r=this;r._haltHandlersOnError=!1,r.emit(r._asm.currentState,(function(e){if(e)if(n=r,Object.prototype.hasOwnProperty.call(c,n._asm.currentState)){if(!(s&&r.domain instanceof s.Domain))throw e;e.domainEmitter=r,e.domain=r.domain,e.domainThrown=!1,r.domain.emit("error",e)}else r.response.error=e,t(e);else t(r.response.error);var n}))};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)},u.setupStates(),n.Request=i({constructor:function(e,t,r){var i=e.endpoint,a=e.config.region,c=e.config.customUserAgent;e.signingRegion?a=e.signingRegion:e.isGlobalEndpoint&&(a="us-east-1"),this.domain=s&&s.active,this.service=e,this.operation=t,this.params=r||{},this.httpRequest=new n.HttpRequest(i,a),this.httpRequest.appendToUserAgent(c),this.startTime=e.getSkewCorrectedDate(),this.response=new n.Response(this),this._asm=new o(u.states,"validate"),this._haltHandlersOnError=!1,n.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",(function(t){e.call(t,t.error,t.data)}))),this.runTo(),this.response},build:function(e){return this.runTo("send",e)},runTo:function(e,t){return this._asm.runTo(e,t,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",(function(e){e.error=n.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})})),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(e){e=n.util.fn.makeAsync(e,3),this.on("complete",(function t(r){e.call(r,r.error,r.data,(function(o){!1!==o&&(r.hasNextPage()?r.nextPage().on("complete",t).send():e.call(r,null,null,n.util.fn.noop))}))})).send()},eachItem:function(e){var t=this;this.eachPage((function(r,o){if(r)return e(r,null);if(null===o)return e(null,null);var i=t.service.paginationConfig(t.operation).resultKey;Array.isArray(i)&&(i=i[0]);var s=a.search(o,i),c=!0;return n.util.arrayEach(s,(function(t){if(!1===(c=e(null,t)))return n.util.abort})),c}))},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var e=n.util.stream,t=this,r=null;return 2===n.HttpClient.streamsApiVersion?(r=new e.PassThrough,process.nextTick((function(){t.send()}))):((r=new e.Stream).readable=!0,r.sent=!1,r.on("newListener",(function(e){r.sent||"data"!==e||(r.sent=!0,process.nextTick((function(){t.send()})))}))),this.on("error",(function(e){r.emit("error",e)})),this.on("httpHeaders",(function(o,i,s){if(o<300){t.removeListener("httpData",n.EventListeners.Core.HTTP_DATA),t.removeListener("httpError",n.EventListeners.Core.HTTP_ERROR),t.on("httpError",(function(e){s.error=e,s.error.retryable=!1}));var a,c=!1;if("HEAD"!==t.httpRequest.method&&(a=parseInt(i["content-length"],10)),void 0!==a&&!isNaN(a)&&a>=0){c=!0;var u=0}var l=function(){c&&u!==a?r.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+u+" of "+a+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?r.end():r.emit("end")},p=s.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(c){var d=new e.PassThrough;d._write=function(t){return t&&t.length&&(u+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},d.on("end",l),r.on("error",(function(e){c=!1,p.unpipe(d),d.emit("end"),d.end()})),p.pipe(d).pipe(r,{end:!1})}else p.pipe(r);else c&&p.on("data",(function(e){e&&e.length&&(u+=e.length)})),p.on("data",(function(e){r.emit("data",e)})),p.on("end",l);p.on("error",(function(e){c=!1,r.emit("error",e)}))}})),r},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),n.SequentialExecutor.prototype.emit.call(this,e,t,(function(e){e&&(this.response.error=e),r.call(this,e)}))},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!=typeof e||(t=e,e=null),(new n.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",n.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",n.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),n.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e((function(e,r){t.on("complete",(function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))})),t.runTo()}))}},n.Request.deletePromisesFromClass=function(){delete this.prototype.promise},n.util.addPromises(n.Request),n.util.mixin(n.Request,n.SequentialExecutor)},e=>{function t(e,t){this.currentState=t||null,this.states=e||{}}t.prototype.runTo=function(e,t,r,n){"function"==typeof e&&(n=r,r=t,t=e,e=null);var o=this,i=o.states[o.currentState];i.fn.call(r||o,n,(function(n){if(n){if(!i.fail)return t?t.call(r,n):null;o.currentState=i.fail}else{if(!i.accept)return t?t.call(r):null;o.currentState=i.accept}if(o.currentState===e)return t?t.call(r,n):null;o.runTo(e,t,r,n)}))},t.prototype.addState=function(e,t,r,n){return"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:n},this},e.exports=t},(e,t)=>{!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,o){if(e===o)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(o))return!1;if(!0===t(e)){if(e.length!==o.length)return!1;for(var i=0;i<e.length;i++)if(!1===n(e[i],o[i]))return!1;return!0}if(!0===r(e)){var s={};for(var a in e)if(hasOwnProperty.call(e,a)){if(!1===n(e[a],o[a]))return!1;s[a]=!0}for(var c in o)if(hasOwnProperty.call(o,c)&&!0!==s[c])return!1;return!0}return!1}function o(e){if(""===e||!1===e||null===e)return!0;if(t(e)&&0===e.length)return!0;if(r(e)){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0}return!1}var i;i="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var s=0,a=2,c={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},u="EOF",l="UnquotedIdentifier",p="QuotedIdentifier",d="Rbracket",f="Rparen",h="Comma",m="Colon",y="Rbrace",g="Number",v="Current",S="Expref",b="Pipe",_="Or",E="And",w="EQ",I="GT",A="LT",T="GTE",k="LTE",C="NE",x="Flatten",R="Star",O="Filter",P="Dot",D="Not",N="Lbrace",M="Lbracket",L="Lparen",U="Literal",B={".":P,"*":R,",":h,":":m,"{":N,"}":y,"]":d,"(":L,")":f,"@":v},j={"<":!0,">":!0,"=":!0,"!":!0},F={" ":!0,"\t":!0,"\n":!0};function q(e){return e>="0"&&e<="9"||"-"===e}function W(){}W.prototype={tokenize:function(e){var t,r,n,o,i=[];for(this._current=0;this._current<e.length;)if((o=e[this._current])>="a"&&o<="z"||o>="A"&&o<="Z"||"_"===o)t=this._current,r=this._consumeUnquotedIdentifier(e),i.push({type:l,value:r,start:t});else if(void 0!==B[e[this._current]])i.push({type:B[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(q(e[this._current]))n=this._consumeNumber(e),i.push(n);else if("["===e[this._current])n=this._consumeLBracket(e),i.push(n);else if('"'===e[this._current])t=this._current,r=this._consumeQuotedIdentifier(e),i.push({type:p,value:r,start:t});else if("'"===e[this._current])t=this._current,r=this._consumeRawStringLiteral(e),i.push({type:U,value:r,start:t});else if("`"===e[this._current]){t=this._current;var s=this._consumeLiteral(e);i.push({type:U,value:s,start:t})}else if(void 0!==j[e[this._current]])i.push(this._consumeOperator(e));else if(void 0!==F[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,i.push({type:E,value:"&&",start:t})):i.push({type:S,value:"&",start:t});else{if("|"!==e[this._current]){var a=new Error("Unknown character:"+e[this._current]);throw a.name="LexerError",a}t=this._current,this._current++,"|"===e[this._current]?(this._current++,i.push({type:_,value:"||",start:t})):i.push({type:b,value:"|",start:t})}return i},_consumeUnquotedIdentifier:function(e){var t,r=this._current;for(this._current++;this._current<e.length&&((t=e[this._current])>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"_"===t);)this._current++;return e.slice(r,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var r=e.length;'"'!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&'"'!==e[n+1]?n++:n+=2,this._current=n}return this._current++,JSON.parse(e.slice(t,this._current))},_consumeRawStringLiteral:function(e){var t=this._current;this._current++;for(var r=e.length;"'"!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&"'"!==e[n+1]?n++:n+=2,this._current=n}return this._current++,e.slice(t+1,this._current-1).replace("\\'","'")},_consumeNumber:function(e){var t=this._current;this._current++;for(var r=e.length;q(e[this._current])&&this._current<r;)this._current++;var n=parseInt(e.slice(t,this._current));return{type:g,value:n,start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:O,value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:x,value:"[]",start:t}):{type:M,value:"[",start:t}},_consumeOperator:function(e){var t=this._current,r=e[t];return this._current++,"!"===r?"="===e[this._current]?(this._current++,{type:C,value:"!=",start:t}):{type:D,value:"!",start:t}:"<"===r?"="===e[this._current]?(this._current++,{type:k,value:"<=",start:t}):{type:A,value:"<",start:t}:">"===r?"="===e[this._current]?(this._current++,{type:T,value:">=",start:t}):{type:I,value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:w,value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,n=e.length;"`"!==e[this._current]&&this._current<n;){var o=this._current;"\\"!==e[o]||"\\"!==e[o+1]&&"`"!==e[o+1]?o++:o+=2,this._current=o}var s=i(e.slice(r,this._current));return s=s.replace("\\`","`"),t=this._looksLikeJSON(s)?JSON.parse(s):JSON.parse('"'+s+'"'),this._current++,t},_looksLikeJSON:function(e){if(""===e)return!1;if('[{"'.indexOf(e[0])>=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var H={};function z(){}function $(e){this.runtime=e}function G(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}H[u]=0,H[l]=0,H[p]=0,H[d]=0,H[f]=0,H[h]=0,H[y]=0,H[g]=0,H[v]=0,H[S]=0,H[b]=1,H[_]=2,H[E]=3,H[w]=5,H[I]=5,H[A]=5,H[T]=5,H[k]=5,H[C]=5,H[x]=9,H[R]=20,H[O]=21,H[P]=40,H[D]=45,H[N]=50,H[M]=55,H[L]=60,z.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if(this._lookahead(0)!==u){var r=this._lookaheadToken(0),n=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw n.name="ParserError",n}return t},_loadTokens:function(e){var t=(new W).tokenize(e);t.push({type:u,value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),n=this._lookahead(0);e<H[n];)this._advance(),r=this.led(n,r),n=this._lookahead(0);return r},_lookahead:function(e){return this.tokens[this.index+e].type},_lookaheadToken:function(e){return this.tokens[this.index+e]},_advance:function(){this.index++},nud:function(e){var t,r;switch(e.type){case U:return{type:"Literal",value:e.value};case l:return{type:"Field",name:e.value};case p:var n={type:"Field",name:e.value};if(this._lookahead(0)===L)throw new Error("Quoted identifier not allowed for function names.");return n;case D:return{type:"NotExpression",children:[t=this.expression(H.Not)]};case R:return t=null,{type:"ValueProjection",children:[{type:"Identity"},t=this._lookahead(0)===d?{type:"Identity"}:this._parseProjectionRHS(H.Star)]};case O:return this.led(e.type,{type:"Identity"});case N:return this._parseMultiselectHash();case x:return{type:"Projection",children:[{type:x,children:[{type:"Identity"}]},t=this._parseProjectionRHS(H.Flatten)]};case M:return this._lookahead(0)===g||this._lookahead(0)===m?(t=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},t)):this._lookahead(0)===R&&this._lookahead(1)===d?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},t=this._parseProjectionRHS(H.Star)]}):this._parseMultiselectList();case v:return{type:v};case S:return{type:"ExpressionReference",children:[r=this.expression(H.Expref)]};case L:for(var o=[];this._lookahead(0)!==f;)this._lookahead(0)===v?(r={type:v},this._advance()):r=this.expression(0),o.push(r);return this._match(f),o[0];default:this._errorToken(e)}},led:function(e,t){var r;switch(e){case P:var n=H.Dot;return this._lookahead(0)!==R?{type:"Subexpression",children:[t,r=this._parseDotRHS(n)]}:(this._advance(),{type:"ValueProjection",children:[t,r=this._parseProjectionRHS(n)]});case b:return r=this.expression(H.Pipe),{type:b,children:[t,r]};case _:return{type:"OrExpression",children:[t,r=this.expression(H.Or)]};case E:return{type:"AndExpression",children:[t,r=this.expression(H.And)]};case L:for(var o,i=t.name,s=[];this._lookahead(0)!==f;)this._lookahead(0)===v?(o={type:v},this._advance()):o=this.expression(0),this._lookahead(0)===h&&this._match(h),s.push(o);return this._match(f),{type:"Function",name:i,children:s};case O:var a=this.expression(0);return this._match(d),{type:"FilterProjection",children:[t,r=this._lookahead(0)===x?{type:"Identity"}:this._parseProjectionRHS(H.Filter),a]};case x:return{type:"Projection",children:[{type:x,children:[t]},this._parseProjectionRHS(H.Flatten)]};case w:case C:case I:case T:case A:case k:return this._parseComparator(t,e);case M:var c=this._lookaheadToken(0);return c.type===g||c.type===m?(r=this._parseIndexExpression(),this._projectIfSlice(t,r)):(this._match(R),this._match(d),{type:"Projection",children:[t,r=this._parseProjectionRHS(H.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(e){if(this._lookahead(0)!==e){var t=this._lookaheadToken(0),r=new Error("Expected "+e+", got: "+t.type);throw r.name="ParserError",r}this._advance()},_errorToken:function(e){var t=new Error("Invalid token ("+e.type+'): "'+e.value+'"');throw t.name="ParserError",t},_parseIndexExpression:function(){if(this._lookahead(0)===m||this._lookahead(1)===m)return this._parseSliceExpression();var e={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(d),e},_projectIfSlice:function(e,t){var r={type:"IndexExpression",children:[e,t]};return"Slice"===t.type?{type:"Projection",children:[r,this._parseProjectionRHS(H.Star)]}:r},_parseSliceExpression:function(){for(var e=[null,null,null],t=0,r=this._lookahead(0);r!==d&&t<3;){if(r===m)t++,this._advance();else{if(r!==g){var n=this._lookahead(0),o=new Error("Syntax error, unexpected token: "+n.value+"("+n.type+")");throw o.name="Parsererror",o}e[t]=this._lookaheadToken(0).value,this._advance()}r=this._lookahead(0)}return this._match(d),{type:"Slice",children:e}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(H[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return[l,p,R].indexOf(t)>=0?this.expression(e):t===M?(this._match(M),this._parseMultiselectList()):t===N?(this._match(N),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(H[this._lookahead(0)]<10)t={type:"Identity"};else if(this._lookahead(0)===M)t=this.expression(e);else if(this._lookahead(0)===O)t=this.expression(e);else{if(this._lookahead(0)!==P){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match(P),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];this._lookahead(0)!==d;){var t=this.expression(0);if(e.push(t),this._lookahead(0)===h&&(this._match(h),this._lookahead(0)===d))throw new Error("Unexpected token Rbracket")}return this._match(d),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n=[],o=[l,p];;){if(e=this._lookaheadToken(0),o.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match(m),r={type:"KeyValuePair",name:t,value:this.expression(0)},n.push(r),this._lookahead(0)===h)this._match(h);else if(this._lookahead(0)===y){this._match(y);break}}return{type:"MultiSelectHash",children:n}}},$.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,i){var s,a,c,u,l,p,d,f,h;switch(e.type){case"Field":return null!==i&&r(i)?void 0===(p=i[e.name])?null:p:null;case"Subexpression":for(c=this.visit(e.children[0],i),h=1;h<e.children.length;h++)if(null===(c=this.visit(e.children[1],c)))return null;return c;case"IndexExpression":return d=this.visit(e.children[0],i),this.visit(e.children[1],d);case"Index":if(!t(i))return null;var m=e.value;return m<0&&(m=i.length+m),void 0===(c=i[m])&&(c=null),c;case"Slice":if(!t(i))return null;var y=e.children.slice(0),g=this.computeSliceParams(i.length,y),_=g[0],E=g[1],R=g[2];if(c=[],R>0)for(h=_;h<E;h+=R)c.push(i[h]);else for(h=_;h>E;h+=R)c.push(i[h]);return c;case"Projection":var O=this.visit(e.children[0],i);if(!t(O))return null;for(f=[],h=0;h<O.length;h++)null!==(a=this.visit(e.children[1],O[h]))&&f.push(a);return f;case"ValueProjection":if(!r(O=this.visit(e.children[0],i)))return null;f=[];var P=function(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;n++)r.push(e[t[n]]);return r}(O);for(h=0;h<P.length;h++)null!==(a=this.visit(e.children[1],P[h]))&&f.push(a);return f;case"FilterProjection":if(!t(O=this.visit(e.children[0],i)))return null;var D=[],N=[];for(h=0;h<O.length;h++)o(s=this.visit(e.children[2],O[h]))||D.push(O[h]);for(var M=0;M<D.length;M++)null!==(a=this.visit(e.children[1],D[M]))&&N.push(a);return N;case"Comparator":switch(u=this.visit(e.children[0],i),l=this.visit(e.children[1],i),e.name){case w:c=n(u,l);break;case C:c=!n(u,l);break;case I:c=u>l;break;case T:c=u>=l;break;case A:c=u<l;break;case k:c=u<=l;break;default:throw new Error("Unknown comparator: "+e.name)}return c;case x:var L=this.visit(e.children[0],i);if(!t(L))return null;var U=[];for(h=0;h<L.length;h++)t(a=L[h])?U.push.apply(U,a):U.push(a);return U;case"Identity":return i;case"MultiSelectList":if(null===i)return null;for(f=[],h=0;h<e.children.length;h++)f.push(this.visit(e.children[h],i));return f;case"MultiSelectHash":if(null===i)return null;var B;for(f={},h=0;h<e.children.length;h++)f[(B=e.children[h]).name]=this.visit(B.value,i);return f;case"OrExpression":return o(s=this.visit(e.children[0],i))&&(s=this.visit(e.children[1],i)),s;case"AndExpression":return!0===o(u=this.visit(e.children[0],i))?u:this.visit(e.children[1],i);case"NotExpression":return o(u=this.visit(e.children[0],i));case"Literal":return e.value;case b:return d=this.visit(e.children[0],i),this.visit(e.children[1],d);case v:return i;case"Function":var j=[];for(h=0;h<e.children.length;h++)j.push(this.visit(e.children[h],i));return this.runtime.callFunction(e.name,j);case"ExpressionReference":var F=e.children[0];return F.jmespathType=S,F;default:throw new Error("Unknown node type: "+e.type)}},computeSliceParams:function(e,t){var r=t[0],n=t[1],o=t[2],i=[null,null,null];if(null===o)o=1;else if(0===o){var s=new Error("Invalid slice, step cannot be 0");throw s.name="RuntimeError",s}var a=o<0;return r=null===r?a?e-1:0:this.capSliceRange(e,r,o),n=null===n?a?-1:e:this.capSliceRange(e,n,o),i[0]=r,i[1]=n,i[2]=o,i},capSliceRange:function(e,t,r){return t<0?(t+=e)<0&&(t=r<0?-1:0):t>=e&&(t=r<0?e-1:e),t}},G.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n,o,i,s;if(r[r.length-1].variadic){if(t.length<r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+r.length+n+" but received "+t.length)}else if(t.length!==r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+r.length+n+" but received "+t.length);for(var a=0;a<r.length;a++){s=!1,o=r[a].types,i=this._getTypeName(t[a]);for(var u=0;u<o.length;u++)if(this._typeMatches(i,o[u],t[a])){s=!0;break}if(!s){var l=o.map((function(e){return c[e]})).join(",");throw new Error("TypeError: "+e+"() expected argument "+(a+1)+" to be type "+l+" but received type "+c[i]+" instead.")}}},_typeMatches:function(e,t,r){if(1===t)return!0;if(9!==t&&8!==t&&3!==t)return e===t;if(3===t)return 3===e;if(3===e){var n;8===t?n=s:9===t&&(n=a);for(var o=0;o<r.length;o++)if(!this._typeMatches(this._getTypeName(r[o]),n,r[o]))return!1;return!0}},_getTypeName:function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return a;case"[object Number]":return s;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return e.jmespathType===S?6:4}},_functionStartsWith:function(e){return 0===e[0].lastIndexOf(e[1])},_functionEndsWith:function(e){var t=e[0],r=e[1];return-1!==t.indexOf(r,t.length-r.length)},_functionReverse:function(e){if(this._getTypeName(e[0])===a){for(var t=e[0],r="",n=t.length-1;n>=0;n--)r+=t[n];return r}var o=e[0].slice(0);return o.reverse(),o},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t/r.length},_functionContains:function(e){return e[0].indexOf(e[1])>=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],o=e[1],i=0;i<o.length;i++)t.push(r.visit(n,o[i]));return t},_functionMerge:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];for(var o in n)t[o]=n[o]}return t},_functionMax:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===s)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)r.localeCompare(t[n])<0&&(r=t[n]);return r}return null},_functionMin:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===s)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)t[n].localeCompare(r)<0&&(r=t[n]);return r}return null},_functionSum:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t},_functionType:function(e){switch(this._getTypeName(e[0])){case s:return"number";case a:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(e){return Object.keys(e[0])},_functionValues:function(e){for(var t=e[0],r=Object.keys(t),n=[],o=0;o<r.length;o++)n.push(t[r[o]]);return n},_functionJoin:function(e){var t=e[0];return e[1].join(t)},_functionToArray:function(e){return 3===this._getTypeName(e[0])?e[0]:[e[0]]},_functionToString:function(e){return this._getTypeName(e[0])===a?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t,r=this._getTypeName(e[0]);return r===s?e[0]:r!==a||(t=+e[0],isNaN(t))?null:t},_functionNotNull:function(e){for(var t=0;t<e.length;t++)if(7!==this._getTypeName(e[t]))return e[t];return null},_functionSort:function(e){var t=e[0].slice(0);return t.sort(),t},_functionSortBy:function(e){var t=e[0].slice(0);if(0===t.length)return t;var r=this._interpreter,n=e[1],o=this._getTypeName(r.visit(n,t[0]));if([s,a].indexOf(o)<0)throw new Error("TypeError");for(var i=this,c=[],u=0;u<t.length;u++)c.push([u,t[u]]);c.sort((function(e,t){var s=r.visit(n,e[1]),a=r.visit(n,t[1]);if(i._getTypeName(s)!==o)throw new Error("TypeError: expected "+o+", received "+i._getTypeName(s));if(i._getTypeName(a)!==o)throw new Error("TypeError: expected "+o+", received "+i._getTypeName(a));return s>a?1:s<a?-1:e[0]-t[0]}));for(var l=0;l<c.length;l++)t[l]=c[l][1];return t},_functionMaxBy:function(e){for(var t,r,n=e[1],o=e[0],i=this.createKeyFunction(n,[s,a]),c=-1/0,u=0;u<o.length;u++)(r=i(o[u]))>c&&(c=r,t=o[u]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],o=e[0],i=this.createKeyFunction(n,[s,a]),c=1/0,u=0;u<o.length;u++)(r=i(o[u]))<c&&(c=r,t=o[u]);return t},createKeyFunction:function(e,t){var r=this,n=this._interpreter;return function(o){var i=n.visit(e,o);if(t.indexOf(r._getTypeName(i))<0){var s="TypeError: expected one of "+t+", received "+r._getTypeName(i);throw new Error(s)}return i}}},e.tokenize=function(e){return(new W).tokenize(e)},e.compile=function(e){return(new z).parse(e)},e.search=function(e,t){var r=new z,n=new G,o=new $(n);n._interpreter=o;var i=r.parse(t);return o.search(i,e)},e.strictDeepEqual=n}(t)},(e,t,r)=>{var n=r(36),o=n.util.inherit,i=r(123);n.Response=o({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new n.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,r=this.request.service,o=this.request.operation;try{t=r.paginationConfig(o,!0)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var i=n.util.copy(this.request.params);if(this.nextPageTokens){var s=t.inputToken;"string"==typeof s&&(s=[s]);for(var a=0;a<s.length;a++)i[s[a]]=this.nextPageTokens[a];return r.makeRequest(this.request.operation,i,e)}return e?e(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var e=this.request.service.paginationConfig(this.request.operation);if(!e)return this.nextPageTokens;if(this.nextPageTokens=null,e.moreResults&&!i.search(this.data,e.moreResults))return this.nextPageTokens;var t=e.outputToken;return"string"==typeof t&&(t=[t]),n.util.arrayEach.call(this,t,(function(e){var t=i.search(this.data,e);t&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(t))})),this.nextPageTokens}})},(e,t,r)=>{var n=r(36),o=n.util.inherit,i=r(123);function s(e){var t=e.request._waiter,r=t.config.acceptors,n=!1,o="retry";r.forEach((function(r){if(!n){var i=t.matchers[r.matcher];i&&i(e,r.expected,r.argument)&&(n=!0,o=r.state)}})),!n&&e.error&&(o="failure"),"success"===o?t.setSuccess(e):t.setError(e,"retry"===o)}n.ResourceWaiter=o({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var n=i.search(e.data,r)}catch(e){return!1}return i.strictDeepEqual(n,t)},pathAll:function(e,t,r){try{var n=i.search(e.data,r)}catch(e){return!1}Array.isArray(n)||(n=[n]);var o=n.length;if(!o)return!1;for(var s=0;s<o;s++)if(!i.strictDeepEqual(n[s],t))return!1;return!0},pathAny:function(e,t,r){try{var n=i.search(e.data,r)}catch(e){return!1}Array.isArray(n)||(n=[n]);for(var o=n.length,s=0;s<o;s++)if(i.strictDeepEqual(n[s],t))return!0;return!1},status:function(e,t){var r=e.httpResponse.statusCode;return"number"==typeof r&&r===t},error:function(e,t){return"string"==typeof t&&e.error?t===e.error.code:t===!!e.error}},listeners:(new n.SequentialExecutor).addNamedListeners((function(e){e("RETRY_CHECK","retry",(function(e){var t=e.request._waiter;e.error&&"ResourceNotReady"===e.error.code&&(e.error.retryDelay=1e3*(t.config.delay||0))})),e("CHECK_OUTPUT","extractData",s),e("CHECK_ERROR","extractError",s)})),wait:function(e,t){"function"==typeof e&&(t=e,e=void 0),e&&e.$waiter&&("number"==typeof(e=n.util.copy(e)).$waiter.delay&&(this.config.delay=e.$waiter.delay),"number"==typeof e.$waiter.maxAttempts&&(this.config.maxAttempts=e.$waiter.maxAttempts),delete e.$waiter);var r=this.service.makeRequest(this.config.operation,e);return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.listeners),t&&r.send(t),r},setSuccess:function(e){e.error=null,e.data=e.data||{},e.request.removeAllListeners("extractData")},setError:function(e,t){e.data=null,e.error=n.util.error(e.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:t})},loadWaiterConfig:function(e){if(!this.service.api.waiters[e])throw new n.util.error(new Error,{code:"StateNotFoundError",message:"State "+e+" not found."});this.config=n.util.copy(this.service.api.waiters[e])}})},(e,t,r)=>{var n=r(36),o=n.util.inherit;n.Signers.RequestSigner=o({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),n.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return n.Signers.V2;case"v3":return n.Signers.V3;case"s3v4":case"v4":return n.Signers.V4;case"s3":return n.Signers.S3;case"v3https":return n.Signers.V3Https;case"bearer":return n.Signers.Bearer}throw new Error("Unknown signing version "+e)},r(127),r(128),r(129),r(130),r(132),r(133),r(134)},(e,t,r)=>{var n=r(36),o=n.util.inherit;n.Signers.V2=o(n.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=n.util.date.getDate());var r=this.request;r.params.Timestamp=n.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=n.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(n.util.queryParamsToString(this.request.params)),e.join("\n")}}),e.exports=n.Signers.V2},(e,t,r)=>{var n=r(36),o=n.util.inherit;n.Signers.V3=o(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return n.util.arrayEach(this.headersToSign(),(function(t){e.push(t.toLowerCase())})),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),(function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())})),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,(function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)})),e},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),n.util.crypto.sha256(e.join("\n"))}}),e.exports=n.Signers.V3},(e,t,r)=>{var n=r(36),o=n.util.inherit;r(128),n.Signers.V3Https=o(n.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),e.exports=n.Signers.V3Https},(e,t,r)=>{var n=r(36),o=r(131),i=n.util.inherit,s="presigned-expires";n.Signers.V4=i(n.Signers.RequestSigner,{constructor:function(e,t,r){n.Signers.RequestSigner.call(this,e),this.serviceName=t,r=r||{},this.signatureCache="boolean"!=typeof r.signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=n.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),o={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers[s],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(o["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(o["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(o["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(o["Cache-Control"]=this.request.headers["Cache-Control"]),n.util.each.call(this,this.request.headers,(function(e,t){if(e!==s&&this.isSignableHeader(e)){var r=e.toLowerCase();0===r.indexOf("x-amz-meta-")?o[r]=t:0===r.indexOf("x-amz-")&&(o[e]=t)}}));var i=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=i+n.util.queryParamsToString(o)},authorization:function(e,t){var r=[],n=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+n),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=o.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=n.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];n.util.each.call(this,this.request.headers,(function(t,r){e.push([t,r])})),e.sort((function(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1}));var t=[];return n.util.arrayEach.call(this,e,(function(e){var r=e[0].toLowerCase();if(this.isSignableHeader(r)){var o=e[1];if(null==o||"function"!=typeof o.toString)throw n.util.error(new Error("Header "+r+" contains invalid value"),{code:"InvalidHeader"});t.push(r+":"+this.canonicalHeaderValues(o.toString()))}})),t.join("\n")},canonicalHeaderValues:function(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var e=[];return n.util.each.call(this,this.request.headers,(function(t){t=t.toLowerCase(),this.isSignableHeader(t)&&e.push(t)})),e.sort().join(";")},credentialString:function(e){return o.createScope(e.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(e){return n.util.crypto.sha256(e,"hex")},hexEncodedBodyHash:function(){var e=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",s,"expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers[s]}}),e.exports=n.Signers.V4},(e,t,r)=>{var n=r(36),o={},i=[],s="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,s].join("/")},getSigningKey:function(e,t,r,a,c){var u=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,a].join("_");if((c=!1!==c)&&u in o)return o[u];var l=n.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),p=n.util.crypto.hmac(l,r,"buffer"),d=n.util.crypto.hmac(p,a,"buffer"),f=n.util.crypto.hmac(d,s,"buffer");return c&&(o[u]=f,i.push(u),i.length>50&&delete o[i.shift()]),f},emptyCache:function(){o={},i=[]}}},(e,t,r)=>{var n=r(36),o=n.util.inherit;n.Signers.S3=o(n.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=n.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),o="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=o},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];n.util.each(this.request.headers,(function(t){t.match(/^x-amz-/i)&&e.push(t)})),e.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1}));var t=[];return n.util.arrayEach.call(this,e,(function(e){t.push(e.toLowerCase()+":"+String(this.request.headers[e]))})),t.join("\n")},canonicalizedResource:function(){var e=this.request,t=e.path.split("?"),r=t[0],o=t[1],i="";if(e.virtualHostedBucket&&(i+="/"+e.virtualHostedBucket),i+=r,o){var s=[];n.util.arrayEach.call(this,o.split("&"),(function(e){var t=e.split("=")[0],r=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var n={name:t};void 0!==r&&(this.subResources[t]?n.value=r:n.value=decodeURIComponent(r)),s.push(n)}})),s.sort((function(e,t){return e.name<t.name?-1:1})),s.length&&(o=[],n.util.arrayEach(s,(function(e){void 0===e.value?o.push(e.name):o.push(e.name+"="+e.value)})),i+="?"+o.join("&"))}return i},sign:function(e,t){return n.util.crypto.hmac(e,t,"base64","sha1")}}),e.exports=n.Signers.S3},(e,t,r)=>{var n=r(36),o=n.util.inherit,i="presigned-expires";function s(e){var t=e.httpRequest.headers[i],r=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],r===n.Signers.V4){if(t>604800){throw n.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1})}e.httpRequest.headers[i]=t}else{if(r!==n.Signers.S3)throw n.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var o=e.service?e.service.getSkewCorrectedDate():n.util.date.getDate();e.httpRequest.headers[i]=parseInt(n.util.date.unixTimestamp(o)+t,10).toString()}}function a(e){var t=e.httpRequest.endpoint,r=n.util.urlParse(e.httpRequest.path),o={};r.search&&(o=n.util.queryStringParse(r.search.substr(1)));var s=e.httpRequest.headers.Authorization.split(" ");if("AWS"===s[0])s=s[1].split(":"),o.Signature=s.pop(),o.AWSAccessKeyId=s.join(":"),n.util.each(e.httpRequest.headers,(function(e,t){e===i&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete o[e],e=e.toLowerCase()),o[e]=t})),delete e.httpRequest.headers[i],delete o.Authorization,delete o.Host;else if("AWS4-HMAC-SHA256"===s[0]){s.shift();var a=s.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];o["X-Amz-Signature"]=a,delete o.Expires}t.pathname=r.pathname,t.search=n.util.queryParamsToString(o)}n.Signers.Presign=o({sign:function(e,t,r){if(e.httpRequest.headers[i]=t||3600,e.on("build",s),e.on("sign",a),e.removeListener("afterBuild",n.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return n.util.urlFormat(e.httpRequest.endpoint)}e.build((function(){this.response.error?r(this.response.error):r(null,n.util.urlFormat(e.httpRequest.endpoint))}))}}),e.exports=n.Signers.Presign},(e,t,r)=>{var n=r(36);n.Signers.Bearer=n.util.inherit(n.Signers.RequestSigner,{constructor:function(e){n.Signers.RequestSigner.call(this,e)},addAuthorization:function(e){this.request.headers.Authorization="Bearer "+e.token}})},(e,t,r)=>{var n=r(36);n.ParamValidator=n.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var o=this.errors.join("\n* ");throw o="There were "+this.errors.length+" validation errors:\n* "+o,n.util.error(new Error(o),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(n.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){if(e.isDocument)return!0;var n;this.validateType(t,r,["object"],"structure");for(var o=0;e.required&&o<e.required.length;o++){var i=t[n=e.required[o]];null==i&&this.fail("MissingRequiredParameter","Missing required key '"+n+"' in "+r)}for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var s=t[n],a=e.members[n];if(void 0!==a){var c=[r,n].join(".");this.validateMember(a,s,c)}else null!=s&&this.fail("UnexpectedParameter","Unexpected key '"+n+"' found in "+r)}return!0},validateMember:function(e,t,r){switch(e.type){case"structure":return this.validateStructure(e,t,r);case"list":return this.validateList(e,t,r);case"map":return this.validateMap(e,t,r);default:return this.validateScalar(e,t,r)}},validateList:function(e,t,r){if(this.validateType(t,r,[Array])){this.validateRange(e,t.length,r,"list member count");for(var n=0;n<t.length;n++)this.validateMember(e.member,t[n],r+"["+n+"]")}},validateMap:function(e,t,r){if(this.validateType(t,r,["object"],"map")){var n=0;for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this.validateMember(e.key,o,r+"[key='"+o+"']"),this.validateMember(e.value,t[o],r+"['"+o+"']"),n++);this.validateRange(e,n,r,"map member count")}},validateScalar:function(e,t,r){switch(e.type){case null:case void 0:case"string":return this.validateString(e,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(e,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+r)}},validateString:function(e,t,r){var n=["string"];e.isJsonValue&&(n=n.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,n)&&(this.validateEnum(e,t,r),this.validateRange(e,t.length,r,"string length"),this.validatePattern(e,t,r),this.validateUri(e,t,r))},validateUri:function(e,t,r){"uri"===e.location&&0===t.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,n){this.validation.min&&void 0!==e.min&&t<e.min&&this.fail("MinRangeError","Expected "+n+" >= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+n+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,o){if(null==e)return!1;for(var i=!1,s=0;s<r.length;s++){if("string"==typeof r[s]){if(typeof e===r[s])return!0}else if(r[s]instanceof RegExp){if((e||"").toString().match(r[s]))return!0}else{if(e instanceof r[s])return!0;if(n.util.isType(e,r[s]))return!0;o||i||(r=r.slice()),r[s]=n.util.typeName(r[s])}i=!0}var a=o;a||(a=r.join(", ").replace(/,([^,]+)$/,", or$1"));var c=a.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+c+" "+a),!1},validateNumber:function(e,t,r){if(null!=t){if("string"==typeof t){var n=parseFloat(t);n.toString()===t&&(t=n)}this.validateType(t,r,["number"])&&this.validateRange(e,t,r,"numeric value")}},validatePayload:function(e,t){if(null!=e&&"string"!=typeof e&&(!e||"number"!=typeof e.byteLength)){if(n.util.isNode()){var r=n.util.stream.Stream;if(n.util.Buffer.isBuffer(e)||e instanceof r)return}else if(void 0!==typeof Blob&&e instanceof Blob)return;var o=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e)for(var i=0;i<o.length;i++){if(n.util.isType(e,o[i]))return;if(n.util.typeName(e.constructor)===o[i])return}this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},e=>{var t=["The AWS SDK for JavaScript (v2) is in maintenance mode."," SDK releases are limited to address critical bug fixes and security issues only.\n","Please migrate your code to use AWS SDK for JavaScript (v3).","For more information, check the blog post at https://a.co/cUPnyil"].join("\n");e.exports={suppress:!1},setTimeout((function(){e.exports.suppress||"undefined"!=typeof process&&("object"==typeof process.env&&void 0!==process.env.AWS_EXECUTION_ENV&&0===process.env.AWS_EXECUTION_ENV.indexOf("AWS_Lambda_")||"object"==typeof process.env&&void 0!==process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE||"function"==typeof process.emitWarning&&process.emitWarning(t,{type:"NOTE"}))}),0)},()=>{},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return s.default}});var n=a(r(139)),o=a(r(142)),i=a(r(145)),s=a(r(146));function a(e){return e&&e.__esModule?e:{default:e}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o,i=a(r(140)),s=a(r(141));function a(e){return e&&e.__esModule?e:{default:e}}var c=0,u=0;var l=function(e,t,r){var a=t&&r||0,l=t||[],p=(e=e||{}).node||n,d=void 0!==e.clockseq?e.clockseq:o;if(null==p||null==d){var f=e.random||(e.rng||i.default)();null==p&&(p=n=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=o=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,y=h-c+(m-u)/1e4;if(y<0&&void 0===e.clockseq&&(d=d+1&16383),(y<0||h>c)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=h,u=m,o=d;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;l[a++]=g>>>24&255,l[a++]=g>>>16&255,l[a++]=g>>>8&255,l[a++]=255&g;var v=h/4294967296*1e4&268435455;l[a++]=v>>>8&255,l[a++]=255&v,l[a++]=v>>>24&15|16,l[a++]=v>>>16&255,l[a++]=d>>>8|128,l[a++]=255&d;for(var S=0;S<6;++S)l[a+S]=p[S];return t||(0,s.default)(l)};t.default=l},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),n=new Uint8Array(16)},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);var o=function(e,t){var n=t||0,o=r;return[o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]]].join("")};t.default=o},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(143)),o=i(r(144));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v3",48,o.default);t.default=s},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=function(e,n,i,s){var a=i&&s||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(e)),"string"==typeof n&&(n=function(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,(function(e){t.push(parseInt(e,16))})),t}(n)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(n)||16!==n.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var c=r(n.concat(e));if(c[6]=15&c[6]|t,c[8]=63&c[8]|128,i)for(var u=0;u<16;++u)i[a+u]=c[u];return i||(0,o.default)(c)};try{n.name=e}catch(e){}return n.DNS=i,n.URL=s,n},t.URL=t.DNS=void 0;var n,o=(n=r(141))&&n.__esModule?n:{default:n};const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=i;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},(e,t)=>{"use strict";function r(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,n,o,i,s){return r((a=r(r(t,e),r(o,s)))<<(c=i)|a>>>32-c,n);var a,c}function o(e,t,r,o,i,s,a){return n(t&r|~t&o,e,t,i,s,a)}function i(e,t,r,o,i,s,a){return n(t&o|r&~o,e,t,i,s,a)}function s(e,t,r,o,i,s,a){return n(t^r^o,e,t,i,s,a)}function a(e,t,r,o,i,s,a){return n(r^(t|~o),e,t,i,s,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var n=0;n<t.length;n++)e[n]=t.charCodeAt(n)}return function(e){var t,r,n,o=[],i=32*e.length,s="0123456789abcdef";for(t=0;t<i;t+=8)r=e[t>>5]>>>t%32&255,n=parseInt(s.charAt(r>>>4&15)+s.charAt(15&r),16),o.push(n);return o}(function(e,t){var n,c,u,l,p;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var d=1732584193,f=-271733879,h=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)c=d,u=f,l=h,p=m,d=o(d,f,h,m,e[n],7,-680876936),m=o(m,d,f,h,e[n+1],12,-389564586),h=o(h,m,d,f,e[n+2],17,606105819),f=o(f,h,m,d,e[n+3],22,-1044525330),d=o(d,f,h,m,e[n+4],7,-176418897),m=o(m,d,f,h,e[n+5],12,1200080426),h=o(h,m,d,f,e[n+6],17,-1473231341),f=o(f,h,m,d,e[n+7],22,-45705983),d=o(d,f,h,m,e[n+8],7,1770035416),m=o(m,d,f,h,e[n+9],12,-1958414417),h=o(h,m,d,f,e[n+10],17,-42063),f=o(f,h,m,d,e[n+11],22,-1990404162),d=o(d,f,h,m,e[n+12],7,1804603682),m=o(m,d,f,h,e[n+13],12,-40341101),h=o(h,m,d,f,e[n+14],17,-1502002290),d=i(d,f=o(f,h,m,d,e[n+15],22,1236535329),h,m,e[n+1],5,-165796510),m=i(m,d,f,h,e[n+6],9,-1069501632),h=i(h,m,d,f,e[n+11],14,643717713),f=i(f,h,m,d,e[n],20,-373897302),d=i(d,f,h,m,e[n+5],5,-701558691),m=i(m,d,f,h,e[n+10],9,38016083),h=i(h,m,d,f,e[n+15],14,-660478335),f=i(f,h,m,d,e[n+4],20,-405537848),d=i(d,f,h,m,e[n+9],5,568446438),m=i(m,d,f,h,e[n+14],9,-1019803690),h=i(h,m,d,f,e[n+3],14,-187363961),f=i(f,h,m,d,e[n+8],20,1163531501),d=i(d,f,h,m,e[n+13],5,-1444681467),m=i(m,d,f,h,e[n+2],9,-51403784),h=i(h,m,d,f,e[n+7],14,1735328473),d=s(d,f=i(f,h,m,d,e[n+12],20,-1926607734),h,m,e[n+5],4,-378558),m=s(m,d,f,h,e[n+8],11,-2022574463),h=s(h,m,d,f,e[n+11],16,1839030562),f=s(f,h,m,d,e[n+14],23,-35309556),d=s(d,f,h,m,e[n+1],4,-1530992060),m=s(m,d,f,h,e[n+4],11,1272893353),h=s(h,m,d,f,e[n+7],16,-155497632),f=s(f,h,m,d,e[n+10],23,-1094730640),d=s(d,f,h,m,e[n+13],4,681279174),m=s(m,d,f,h,e[n],11,-358537222),h=s(h,m,d,f,e[n+3],16,-722521979),f=s(f,h,m,d,e[n+6],23,76029189),d=s(d,f,h,m,e[n+9],4,-640364487),m=s(m,d,f,h,e[n+12],11,-421815835),h=s(h,m,d,f,e[n+15],16,530742520),d=a(d,f=s(f,h,m,d,e[n+2],23,-995338651),h,m,e[n],6,-198630844),m=a(m,d,f,h,e[n+7],10,1126891415),h=a(h,m,d,f,e[n+14],15,-1416354905),f=a(f,h,m,d,e[n+5],21,-57434055),d=a(d,f,h,m,e[n+12],6,1700485571),m=a(m,d,f,h,e[n+3],10,-1894986606),h=a(h,m,d,f,e[n+10],15,-1051523),f=a(f,h,m,d,e[n+1],21,-2054922799),d=a(d,f,h,m,e[n+8],6,1873313359),m=a(m,d,f,h,e[n+15],10,-30611744),h=a(h,m,d,f,e[n+6],15,-1560198380),f=a(f,h,m,d,e[n+13],21,1309151649),d=a(d,f,h,m,e[n+4],6,-145523070),m=a(m,d,f,h,e[n+11],10,-1120210379),h=a(h,m,d,f,e[n+2],15,718787259),f=a(f,h,m,d,e[n+9],21,-343485551),d=r(d,c),f=r(f,u),h=r(h,l),m=r(m,p);return[d,f,h,m]}(function(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)r[t>>5]|=(255&e[t/8])<<t%32;return r}(e),8*e.length))};t.default=c},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(140)),o=i(r(141));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||n.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[i+a]=s[a];return t||(0,o.default)(s)};t.default=s},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(143)),o=i(r(147));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v5",80,o.default);t.default=s},(e,t)=>{"use strict";function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){var t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=new Array(i.length);for(var s=0;s<i.length;s++)e[s]=i.charCodeAt(s)}e.push(128);var a=e.length/4+2,c=Math.ceil(a/16),u=new Array(c);for(s=0;s<c;s++){u[s]=new Array(16);for(var l=0;l<16;l++)u[s][l]=e[64*s+4*l]<<24|e[64*s+4*l+1]<<16|e[64*s+4*l+2]<<8|e[64*s+4*l+3]}for(u[c-1][14]=8*(e.length-1)/Math.pow(2,32),u[c-1][14]=Math.floor(u[c-1][14]),u[c-1][15]=8*(e.length-1)&4294967295,s=0;s<c;s++){for(var p=new Array(80),d=0;d<16;d++)p[d]=u[s][d];for(d=16;d<80;d++)p[d]=n(p[d-3]^p[d-8]^p[d-14]^p[d-16],1);var f=o[0],h=o[1],m=o[2],y=o[3],g=o[4];for(d=0;d<80;d++){var v=Math.floor(d/20),S=n(f,5)+r(v,h,m,y)+g+t[v]+p[d]>>>0;g=y,y=m,m=n(h,30)>>>0,h=f,f=S}o[0]=o[0]+f>>>0,o[1]=o[1]+h>>>0,o[2]=o[2]+m>>>0,o[3]=o[3]+y>>>0,o[4]=o[4]+g>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]};t.default=o},(e,t,r)=>{var n=r(149),o=r(155),i=r(156),s=r(157);e.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new o;if("sha256"===e)return new s;if("sha1"===e)return new i;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new n(o,t);if("sha256"===e)return new n(s,t);if("sha1"===e)return new n(i,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},(e,t,r)=>{var n=r(150);function o(e,t){this.hash=new e,this.outer=new e;var r=function(e,t){var r=n.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var o=new e;o.update(r),r=o.digest()}var i=new Uint8Array(e.BLOCK_SIZE);return i.set(r),i}(e,t),o=new Uint8Array(e.BLOCK_SIZE);o.set(r);for(var i=0;i<e.BLOCK_SIZE;i++)r[i]^=54,o[i]^=92;this.hash.update(r),this.outer.update(o);for(i=0;i<r.byteLength;i++)r[i]=0}e.exports=o,o.prototype.update=function(e){if(n.isEmptyData(e)||this.error)return this;try{this.hash.update(n.convertToBuffer(e))}catch(e){this.error=e}return this},o.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},(e,t,r)=>{var n=r(151).Buffer;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return o.indexOf(Object.prototype.toString.call(e))>-1});var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},(e,t,r)=>{"use strict"; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */var n=r(152),o=r(153),i=r(154);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|h(t,r);e=a(e,n);var o=e.write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(c.isBuffer(t)){var r=0|f(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(l(t),e=a(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|f(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(n)return q(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return x(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,s=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=r;i<a;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(r+c>a&&(r=a-c),i=r;i>=0;i--){for(var p=!0,d=0;d<c;d++)if(u(e,i+d)!==u(t,d)){p=!1;break}if(p)return i}return-1}function S(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function b(e,t,r,n){return H(q(t,e.length-r),e,r,n)}function _(e,t,r,n){return H(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function E(e,t,r,n){return _(e,t,r,n)}function w(e,t,r,n){return H(W(t),e,r,n)}function I(e,t,r,n){return H(function(e,t){for(var r,n,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,c,u=e[o],l=null,p=u>239?4:u>223?3:u>191?2:1;if(o+p<=r)switch(p){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(c=(15&u)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=p}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=k));return r}(n)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},c.allocUnsafe=function(e){return p(null,e)},c.allocUnsafeSlow=function(e){return p(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=c.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var s=e[r];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,r,n,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(n,o),l=e.slice(t,r),p=0;p<a;++p)if(u[p]!==l[p]){i=u[p],s=l[p];break}return i<s?-1:s<i?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return _(this,e,t,r);case"latin1":case"binary":return E(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function C(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function x(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function R(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=F(e[i]);return o}function O(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function P(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,r,n,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function N(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function M(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function L(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,n,i){return i||L(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||L(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;r=new c(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},c.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},c.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||D(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||D(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);D(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);D(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=c.isBuffer(e)?e:q(new c(e,n).toString()),a=s.length;for(i=0;i<r-t;++i)this[i+t]=s[i%a]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function W(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=a(e),s=i[0],c=i[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,c)),l=0,p=c>0?s-4:s;for(r=0;r<p;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t);1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=16383,a=0,u=n-o;a<u;a+=s)i.push(c(e,a,a+s>u?u:a+s));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},(e,t)=>{ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>1,l=-7,p=r?o-1:0,d=r?-1:1,f=e[t+p];for(p+=d,i=f&(1<<-l)-1,f>>=-l,l+=a;l>0;i=256*i+e[t+p],p+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+p],p+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),i-=u}return(f?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,c,u=8*i-o-1,l=(1<<u)-1,p=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+p>=1?d/c:d*Math.pow(2,1-p))*c>=2&&(s++,c/=2),s+p>=l?(a=0,s=l):s+p>=1?(a=(t*c-1)*Math.pow(2,o),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;e[r+f]=255&a,f+=h,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+f]=255&s,f+=h,s/=256,u-=8);e[r+f-h]|=128*m}},e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},(e,t,r)=>{var n=r(150),o=r(151).Buffer,i=64;function s(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(i)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function a(e,t,r,n,o,i){return((t=(t+e&4294967295)+(n+i&4294967295)&4294967295)<<o|t>>>32-o)+r&4294967295}function c(e,t,r,n,o,i,s){return a(t&r|~t&n,e,t,o,i,s)}function u(e,t,r,n,o,i,s){return a(t&n|r&~n,e,t,o,i,s)}function l(e,t,r,n,o,i,s){return a(t^r^n,e,t,o,i,s)}function p(e,t,r,n,o,i,s){return a(r^(t|~n),e,t,o,i,s)}e.exports=s,s.BLOCK_SIZE=i,s.prototype.update=function(e){if(n.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=n.convertToBuffer(e),r=0,o=t.byteLength;for(this.bytesHashed+=o;o>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),o--,this.bufferLength===i&&(this.hashBuffer(),this.bufferLength=0);return this},s.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,n=t.bufferLength,s=8*t.bytesHashed;if(r.setUint8(this.bufferLength++,128),n%i>=56){for(var a=this.bufferLength;a<i;a++)r.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(a=this.bufferLength;a<56;a++)r.setUint8(a,0);r.setUint32(56,s>>>0,!0),r.setUint32(60,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}var c=new DataView(new ArrayBuffer(16));for(a=0;a<4;a++)c.setUint32(4*a,this.state[a],!0);var u=new o(c.buffer,c.byteOffset,c.byteLength);return e?u.toString(e):u},s.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],n=t[1],o=t[2],i=t[3];r=c(r,n,o,i,e.getUint32(0,!0),7,3614090360),i=c(i,r,n,o,e.getUint32(4,!0),12,3905402710),o=c(o,i,r,n,e.getUint32(8,!0),17,606105819),n=c(n,o,i,r,e.getUint32(12,!0),22,3250441966),r=c(r,n,o,i,e.getUint32(16,!0),7,4118548399),i=c(i,r,n,o,e.getUint32(20,!0),12,1200080426),o=c(o,i,r,n,e.getUint32(24,!0),17,2821735955),n=c(n,o,i,r,e.getUint32(28,!0),22,4249261313),r=c(r,n,o,i,e.getUint32(32,!0),7,1770035416),i=c(i,r,n,o,e.getUint32(36,!0),12,2336552879),o=c(o,i,r,n,e.getUint32(40,!0),17,4294925233),n=c(n,o,i,r,e.getUint32(44,!0),22,2304563134),r=c(r,n,o,i,e.getUint32(48,!0),7,1804603682),i=c(i,r,n,o,e.getUint32(52,!0),12,4254626195),o=c(o,i,r,n,e.getUint32(56,!0),17,2792965006),r=u(r,n=c(n,o,i,r,e.getUint32(60,!0),22,1236535329),o,i,e.getUint32(4,!0),5,4129170786),i=u(i,r,n,o,e.getUint32(24,!0),9,3225465664),o=u(o,i,r,n,e.getUint32(44,!0),14,643717713),n=u(n,o,i,r,e.getUint32(0,!0),20,3921069994),r=u(r,n,o,i,e.getUint32(20,!0),5,3593408605),i=u(i,r,n,o,e.getUint32(40,!0),9,38016083),o=u(o,i,r,n,e.getUint32(60,!0),14,3634488961),n=u(n,o,i,r,e.getUint32(16,!0),20,3889429448),r=u(r,n,o,i,e.getUint32(36,!0),5,568446438),i=u(i,r,n,o,e.getUint32(56,!0),9,3275163606),o=u(o,i,r,n,e.getUint32(12,!0),14,4107603335),n=u(n,o,i,r,e.getUint32(32,!0),20,1163531501),r=u(r,n,o,i,e.getUint32(52,!0),5,2850285829),i=u(i,r,n,o,e.getUint32(8,!0),9,4243563512),o=u(o,i,r,n,e.getUint32(28,!0),14,1735328473),r=l(r,n=u(n,o,i,r,e.getUint32(48,!0),20,2368359562),o,i,e.getUint32(20,!0),4,4294588738),i=l(i,r,n,o,e.getUint32(32,!0),11,2272392833),o=l(o,i,r,n,e.getUint32(44,!0),16,1839030562),n=l(n,o,i,r,e.getUint32(56,!0),23,4259657740),r=l(r,n,o,i,e.getUint32(4,!0),4,2763975236),i=l(i,r,n,o,e.getUint32(16,!0),11,1272893353),o=l(o,i,r,n,e.getUint32(28,!0),16,4139469664),n=l(n,o,i,r,e.getUint32(40,!0),23,3200236656),r=l(r,n,o,i,e.getUint32(52,!0),4,681279174),i=l(i,r,n,o,e.getUint32(0,!0),11,3936430074),o=l(o,i,r,n,e.getUint32(12,!0),16,3572445317),n=l(n,o,i,r,e.getUint32(24,!0),23,76029189),r=l(r,n,o,i,e.getUint32(36,!0),4,3654602809),i=l(i,r,n,o,e.getUint32(48,!0),11,3873151461),o=l(o,i,r,n,e.getUint32(60,!0),16,530742520),r=p(r,n=l(n,o,i,r,e.getUint32(8,!0),23,3299628645),o,i,e.getUint32(0,!0),6,4096336452),i=p(i,r,n,o,e.getUint32(28,!0),10,1126891415),o=p(o,i,r,n,e.getUint32(56,!0),15,2878612391),n=p(n,o,i,r,e.getUint32(20,!0),21,4237533241),r=p(r,n,o,i,e.getUint32(48,!0),6,1700485571),i=p(i,r,n,o,e.getUint32(12,!0),10,2399980690),o=p(o,i,r,n,e.getUint32(40,!0),15,4293915773),n=p(n,o,i,r,e.getUint32(4,!0),21,2240044497),r=p(r,n,o,i,e.getUint32(32,!0),6,1873313359),i=p(i,r,n,o,e.getUint32(60,!0),10,4264355552),o=p(o,i,r,n,e.getUint32(24,!0),15,2734768916),n=p(n,o,i,r,e.getUint32(52,!0),21,1309151649),r=p(r,n,o,i,e.getUint32(16,!0),6,4149444226),i=p(i,r,n,o,e.getUint32(44,!0),10,3174756917),o=p(o,i,r,n,e.getUint32(8,!0),15,718787259),n=p(n,o,i,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=o+t[2]&4294967295,t[3]=i+t[3]&4294967295}},(e,t,r)=>{var n=r(151).Buffer,o=r(150);new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);function i(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}e.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(o.isEmptyData(e))return this;var t=(e=o.convertToBuffer(e)).length;this.totalLength+=8*t;for(var r=0;r<t;r++)this.write(e[r]);return this},i.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},i.prototype.digest=function(e){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new n(20),o=new DataView(r.buffer);return o.setUint32(0,this.h0,!1),o.setUint32(4,this.h1,!1),o.setUint32(8,this.h2,!1),o.setUint32(12,this.h3,!1),o.setUint32(16,this.h4,!1),e?r.toString(e):r},i.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,n,o=this.h0,i=this.h1,s=this.h2,a=this.h3,c=this.h4;for(e=0;e<80;e++){e<20?(r=a^i&(s^a),n=1518500249):e<40?(r=i^s^a,n=1859775393):e<60?(r=i&s|a&(i|s),n=2400959708):(r=i^s^a,n=3395469782);var u=(o<<5|o>>>27)+r+c+n+(0|this.block[e]);c=a,a=s,s=i<<30|i>>>2,i=o,o=u}for(this.h0=this.h0+o|0,this.h1=this.h1+i|0,this.h2=this.h2+s|0,this.h3=this.h3+a|0,this.h4=this.h4+c|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},(e,t,r)=>{var n=r(151).Buffer,o=r(150),i=64,s=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=Math.pow(2,53)-1;function c(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}e.exports=c,c.BLOCK_SIZE=i,c.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(o.isEmptyData(e))return this;var t=0,r=(e=o.convertToBuffer(e)).byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>a)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===i&&(this.hashBuffer(),this.bufferLength=0);return this},c.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),o=this.bufferLength;if(r.setUint8(this.bufferLength++,128),o%i>=56){for(var s=this.bufferLength;s<i;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(s=this.bufferLength;s<56;s++)r.setUint8(s,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}var a=new n(32);for(s=0;s<8;s++)a[4*s]=this.state[s]>>>24&255,a[4*s+1]=this.state[s]>>>16&255,a[4*s+2]=this.state[s]>>>8&255,a[4*s+3]=this.state[s]>>>0&255;return e?a.toString(e):a},c.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],o=t[2],a=t[3],c=t[4],u=t[5],l=t[6],p=t[7],d=0;d<i;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var f=this.temp[d-2],h=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,m=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(h+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var y=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&l)|0)+(p+(s[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&o^n&o)|0;p=l,l=u,u=c,c=a+y|0,a=o,o=n,n=r,r=y+g|0}t[0]+=r,t[1]+=n,t[2]+=o,t[3]+=a,t[4]+=c,t[5]+=u,t[6]+=l,t[7]+=p}},(e,t,r)=>{var n=r(159);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=g,t.resolve=function(e,t){return g(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?g(e,!1,!0).resolveObject(t):t},t.format=function(e){v(e)&&(e=g(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(a),u=["%","/","?",";","#"].concat(c),l=["/","?","#"],p=/^[a-z0-9A-Z_-]{0,63}$/,d=/^([a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},h={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(160);function g(e,t,r){if(e&&S(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}function v(e){return"string"==typeof e}function S(e){return"object"==typeof e&&null!==e}function b(e){return null===e}o.prototype.parse=function(e,t,r){if(!v(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e;o=o.trim();var s=i.exec(o);if(s){var a=(s=s[0]).toLowerCase();this.protocol=a,o=o.substr(s.length)}if(r||s||o.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===o.substr(0,2);!g||s&&h[s]||(o=o.substr(2),this.slashes=!0)}if(!h[s]&&(g||s&&!m[s])){for(var S,b,_=-1,E=0;E<l.length;E++){-1!==(w=o.indexOf(l[E]))&&(-1===_||w<_)&&(_=w)}-1!==(b=-1===_?o.lastIndexOf("@"):o.lastIndexOf("@",_))&&(S=o.slice(0,b),o=o.slice(b+1),this.auth=decodeURIComponent(S)),_=-1;for(E=0;E<u.length;E++){var w;-1!==(w=o.indexOf(u[E]))&&(-1===_||w<_)&&(_=w)}-1===_&&(_=o.length),this.host=o.slice(0,_),o=o.slice(_),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var A=this.hostname.split(/\./),T=(E=0,A.length);E<T;E++){var k=A[E];if(k&&!k.match(p)){for(var C="",x=0,R=k.length;x<R;x++)k.charCodeAt(x)>127?C+="x":C+=k[x];if(!C.match(p)){var O=A.slice(0,E),P=A.slice(E+1),D=k.match(d);D&&(O.push(D[1]),P.unshift(D[2])),P.length&&(o="/"+P.join(".")+o),this.hostname=O.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!I){var N=this.hostname.split("."),M=[];for(E=0;E<N.length;++E){var L=N[E];M.push(L.match(/[^A-Za-z0-9_-]/)?"xn--"+n.encode(L):L)}this.hostname=M.join(".")}var U=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+U,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==o[0]&&(o="/"+o))}if(!f[a])for(E=0,T=c.length;E<T;E++){var j=c[E],F=encodeURIComponent(j);F===j&&(F=escape(j)),o=o.split(j).join(F)}var q=o.indexOf("#");-1!==q&&(this.hash=o.substr(q),o=o.slice(0,q));var W=o.indexOf("?");if(-1!==W?(this.search=o.substr(W),this.query=o.substr(W+1),t&&(this.query=y.parse(this.query)),o=o.slice(0,W)):t&&(this.search="",this.query={}),o&&(this.pathname=o),m[a]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"",L=this.search||"";this.path=U+L}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&S(this.query)&&Object.keys(this.query).length&&(i=y.stringify(this.query));var s=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(g(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(v(e)){var t=new o;t.parse(e,!1,!0),e=t}var r=new o;if(Object.keys(this).forEach((function(e){r[e]=this[e]}),this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach((function(t){"protocol"!==t&&(r[t]=e[t])})),m[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!m[e.protocol])return Object.keys(e).forEach((function(t){r[t]=e[t]})),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||h[e.protocol])r.pathname=e.pathname;else{for(var n=(e.pathname||"").split("/");n.length&&!(e.host=n.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),r.pathname=n.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var i=r.pathname||"",s=r.search||"";r.path=i+s}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var a=r.pathname&&"/"===r.pathname.charAt(0),c=e.host||e.pathname&&"/"===e.pathname.charAt(0),u=c||a||r.host&&e.pathname,l=u,p=r.pathname&&r.pathname.split("/")||[],d=(n=e.pathname&&e.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(d&&(r.hostname="",r.port=null,r.host&&(""===p[0]?p[0]=r.host:p.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===n[0]?n[0]=e.host:n.unshift(e.host)),e.host=null),u=u&&(""===n[0]||""===p[0])),c)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,p=n;else if(n.length)p||(p=[]),p.pop(),p=p.concat(n),r.search=e.search,r.query=e.query;else if(null!=e.search){if(d)r.hostname=r.host=p.shift(),(_=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=_.shift(),r.host=r.hostname=_.shift());return r.search=e.search,r.query=e.query,b(r.pathname)&&b(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!p.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var f=p.slice(-1)[0],y=(r.host||e.host)&&("."===f||".."===f)||""===f,g=0,S=p.length;S>=0;S--)"."==(f=p[S])?p.splice(S,1):".."===f?(p.splice(S,1),g++):g&&(p.splice(S,1),g--);if(!u&&!l)for(;g--;g)p.unshift("..");!u||""===p[0]||p[0]&&"/"===p[0].charAt(0)||p.unshift(""),y&&"/"!==p.join("/").substr(-1)&&p.push("");var _,E=""===p[0]||p[0]&&"/"===p[0].charAt(0);d&&(r.hostname=r.host=E?"":p.length?p.shift():"",(_=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=_.shift(),r.host=r.hostname=_.shift()));return(u=u||r.host&&p.length)&&!E&&p.unshift(""),p.length?r.pathname=p.join("/"):(r.pathname=null,r.path=null),b(r.pathname)&&b(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){var n;/*! https://mths.be/punycode v1.3.2 by @mathias */e=r.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var i,s=2147483647,a=36,c=/^xn--/,u=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,f=String.fromCharCode;function h(e){throw RangeError(p[e])}function m(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+m((e=e.replace(l,".")).split("."),t).join(".")}function g(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function v(e){return m(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function S(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function b(e,t,r){var n=0;for(e=r?d(e/700):e>>1,e+=d(e/t);e>455;n+=a)e=d(e/35);return d(n+36*e/(e+38))}function _(e){var t,r,n,o,i,c,u,l,p,f,m,y=[],g=e.length,S=0,_=128,E=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&h("not-basic"),y.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=S,c=1,u=a;o>=g&&h("invalid-input"),((l=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:a)>=a||l>d((s-S)/c))&&h("overflow"),S+=l*c,!(l<(p=u<=E?1:u>=E+26?26:u-E));u+=a)c>d(s/(f=a-p))&&h("overflow"),c*=f;E=b(S-i,t=y.length+1,0==i),d(S/t)>s-_&&h("overflow"),_+=d(S/t),S%=t,y.splice(S++,0,_)}return v(y)}function E(e){var t,r,n,o,i,c,u,l,p,m,y,v,_,E,w,I=[];for(v=(e=g(e)).length,t=128,r=0,i=72,c=0;c<v;++c)(y=e[c])<128&&I.push(f(y));for(n=o=I.length,o&&I.push("-");n<v;){for(u=s,c=0;c<v;++c)(y=e[c])>=t&&y<u&&(u=y);for(u-t>d((s-r)/(_=n+1))&&h("overflow"),r+=(u-t)*_,t=u,c=0;c<v;++c)if((y=e[c])<t&&++r>s&&h("overflow"),y==t){for(l=r,p=a;!(l<(m=p<=i?1:p>=i+26?26:p-i));p+=a)w=l-m,E=a-m,I.push(f(S(m+w%E,0))),l=d(w/E);I.push(f(S(l,0))),i=b(r,_,n==o),r=0,++n}++r,++t}return I.join("")}i={version:"1.3.2",ucs2:{decode:g,encode:v},decode:_,encode:E,toASCII:function(e){return y(e,(function(e){return u.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return y(e,(function(e){return c.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},(e,t,r)=>{"use strict";t.decode=t.parse=r(161),t.encode=t.stringify=r(162)},e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var s=/\+/g;e=e.split(r);var a=1e3;o&&"number"==typeof o.maxKeys&&(a=o.maxKeys);var c=e.length;a>0&&c>a&&(c=a);for(var u=0;u<c;++u){var l,p,d,f,h=e[u].replace(s,"%20"),m=h.indexOf(n);m>=0?(l=h.substr(0,m),p=h.substr(m+1)):(l=h,p=""),d=decodeURIComponent(l),f=decodeURIComponent(p),t(i,d)?Array.isArray(i[d])?i[d].push(f):i[d]=[i[d],f]:i[d]=f}return i}},e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,o){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+n;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(r):i+encodeURIComponent(t(e[o]))})).join(r):o?encodeURIComponent(t(o))+n+encodeURIComponent(t(e)):""}},e=>{e.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},(e,t,r)=>{var n=r(165).eventMessageChunker,o=r(166).parseEvent;e.exports={createEventStream:function(e,t,r){for(var i=n(e),s=[],a=0;a<i.length;a++)s.push(o(t,i[a],r));return s}}},e=>{e.exports={eventMessageChunker:function(e){for(var t=[],r=0;r<e.length;){var n=e.readInt32BE(r),o=e.slice(r,n+r);r+=n,t.push(o)}return t}}},(e,t,r)=>{var n=r(167).parseMessage;e.exports={parseEvent:function(e,t,r){var o=n(t),i=o.headers[":message-type"];if(i){if("error"===i.value)throw function(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],n=new Error(r.value||r);return n.code=n.name=t.value||t,n}(o);if("event"!==i.value)return}var s=o.headers[":event-type"],a=r.members[s.value];if(a){var c={},u=a.eventPayloadMemberName;if(u){var l=a.members[u];"binary"===l.type?c[u]=o.body:c[u]=e.parse(o.body.toString(),l)}for(var p=a.eventHeaderMemberNames,d=0;d<p.length;d++){var f=p[d];o.headers[f]&&(c[f]=a.members[f].toType(o.headers[f].value))}var h={};return h[s.value]=c,h}}}},(e,t,r)=>{var n=r(168).Int64,o=r(169).splitMessage,i="boolean";function s(e){for(var t={},r=0;r<e.length;){var o=e.readUInt8(r++),s=e.slice(r,r+o).toString();switch(r+=o,e.readUInt8(r++)){case 0:t[s]={type:i,value:!0};break;case 1:t[s]={type:i,value:!1};break;case 2:t[s]={type:"byte",value:e.readInt8(r++)};break;case 3:t[s]={type:"short",value:e.readInt16BE(r)},r+=2;break;case 4:t[s]={type:"integer",value:e.readInt32BE(r)},r+=4;break;case 5:t[s]={type:"long",value:new n(e.slice(r,r+8))},r+=8;break;case 6:var a=e.readUInt16BE(r);r+=2,t[s]={type:"binary",value:e.slice(r,r+a)},r+=a;break;case 7:var c=e.readUInt16BE(r);r+=2,t[s]={type:"string",value:e.slice(r,r+c).toString()},r+=c;break;case 8:t[s]={type:"timestamp",value:new Date(new n(e.slice(r,r+8)).valueOf())},r+=8;break;case 9:var u=e.slice(r,r+16).toString("hex");r+=16,t[s]={type:"uuid",value:u.substr(0,8)+"-"+u.substr(8,4)+"-"+u.substr(12,4)+"-"+u.substr(16,4)+"-"+u.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return t}e.exports={parseMessage:function(e){var t=o(e);return{headers:s(t.headers),body:t.body}}}},(e,t,r)=>{var n=r(36).util,o=n.buffer.toBuffer;function i(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");n.Buffer.isBuffer(e)||(e=o(e)),this.bytes=e}function s(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}i.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&s(t),new i(t)},i.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&s(e),parseInt(e.toString("hex"),16)*(t?-1:1)},i.prototype.toString=function(){return String(this.valueOf())},e.exports={Int64:i}},(e,t,r)=>{var n=r(36).util,o=n.buffer.toBuffer;e.exports={splitMessage:function(e){if(n.Buffer.isBuffer(e)||(e=o(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(8);if(t!==n.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-4);if(r!==n.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+r);var i=12+e.readUInt32BE(4);return{headers:e.slice(12,i),body:e.slice(i,e.length-4)}}}},(e,t,r)=>{var n=r(36),o=r(171);n.TemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get((function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,(function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))}))},loadMasterCredentials:function(e){for(this.masterCredentials=e||n.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new n.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new o({params:this.params})}})},(e,t,r)=>{r(34);var n=r(36),o=n.Service,i=n.apiLoader;i.services.sts={},n.STS=o.defineService("sts",["2011-06-15"]),r(172),Object.defineProperty(i.services.sts,"2011-06-15",{get:function(){var e=r(174);return e.paginators=r(175).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},(e,t,r)=>{var n=r(36),o=r(173);n.util.update(n.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new n.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=o(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var i=r.endpoint.indexOf(".amazonaws.com"),s=r.endpoint.substring(0,i)+"."+r.region+r.endpoint.substring(i);e.httpRequest.updateEndpoint(s),e.httpRequest.region=r.region}}})},(e,t,r)=>{var n=r(36);function o(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw n.util.error(new Error,t)}}e.exports=function(e,t){var r;if((e=e||{})[t.clientConfig]&&(r=o(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return r;if(!n.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,t.env)&&(r=o(process.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[t.env]+'".'})))return r;var i={};try{i=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[process.env.AWS_PROFILE||n.util.defaultProfile]}catch(e){}return i&&Object.prototype.hasOwnProperty.call(i,t.sharedConfig)&&(r=o(i[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+i[t.sharedConfig]+'".'})),r}},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{},"SourceIdentity":{},"ProvidedContexts":{"type":"list","member":{"type":"structure","members":{"ProviderArn":{},"ContextAssertion":{}}}}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"SourceIdentity":{}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{"type":"string","sensitive":true},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{},"SourceIdentity":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{"type":"string","sensitive":true},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{},"SourceIdentity":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Sl"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Sl":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{"type":"string","sensitive":true},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sq":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},e=>{"use strict";e.exports={pagination:{}}},(e,t,r)=>{var n=r(36),o=r(171);n.ChainableTemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=n.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new n.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=n.util.merge({params:t,credentials:e.masterCredentials||n.config.credentials},e.stsConfig||{});this.service=new o(r)},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode((function(n,o){var i={};n?e(n):(o&&(i.TokenCode=o),t.service[r](i,(function(r,n){r||t.service.credentialsFrom(n,t),e(r)})))}))},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,(function(r,o){if(r){var i=r;return r instanceof Error&&(i=r.message),void e(n.util.error(new Error("Error fetching MFA token: "+i),{code:t.errorCode}))}e(null,o)})):e(null)}})},(e,t,r)=>{var n=r(36),o=r(171);n.WebIdentityCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=n.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity((function(r,n){t.data=null,r||(t.data=n,t.service.credentialsFrom(n,t)),e(r)}))},createClients:function(){if(!this.service){var e=n.util.merge({},this._clientConfig);e.params=this.params,this.service=new o(e)}}})},(e,t,r)=>{var n=r(36),o=r(179),i=r(171);n.CognitoIdentityCredentials=n.util.inherit(n.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=n.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId((function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)}))},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){"NotAuthorizedException"==e.code&&this.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId((function(r,n){!r&&n.IdentityId?(t.params.IdentityId=n.IdentityId,e(null,n.IdentityId)):e(r)}))},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity((function(r,n){r?t.clearIdOnNotAuthorized(r):(t.cacheId(n),t.data=n,t.loadCredentials(t.data,t)),e(r)}))},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken((function(r,n){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(n),t.params.WebIdentityToken=n.Token,t.webIdentityCredentials.refresh((function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)})))}))},loadCachedId:function(){var e=this;if(n.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter((function(e){return-1!==r.indexOf(e)})).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new n.WebIdentityCredentials(this.params,e),!this.cognito){var t=n.util.merge({},e);t.params=this.params,this.cognito=new o(t)}this.sts=this.sts||new i(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,n.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=n.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},(e,t,r)=>{r(34);var n=r(36),o=n.Service,i=n.apiLoader;i.services.cognitoidentity={},n.CognitoIdentity=o.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(i.services.cognitoidentity,"2014-06-30",{get:function(){var e=r(180);return e.paginators=r(181).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.CognitoIdentity},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","protocols":["json"],"serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30","auth":["aws.auth#sigv4"]},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none","auth":["smithy.api#noAuth"]},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none","auth":["smithy.api#noAuth"]},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none","auth":["smithy.api#noAuth"]},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none","auth":["smithy.api#noAuth"]},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},e=>{"use strict";e.exports=JSON.parse('{"pagination":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},(e,t,r)=>{var n=r(36),o=r(171);n.SAMLCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML((function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))},createClients:function(){this.service=this.service||new o({params:this.params})}})},(e,t,r)=>{var n=r(35),o=r(43);function i(){}function s(e,t){for(var r=e.getElementsByTagName(t),n=0,o=r.length;n<o;n++)if(r[n].parentNode===e)return r[n]}function a(e,t){switch(t||(t={}),t.type){case"structure":return c(e,t);case"map":return function(e,t){var r={},n=t.key.name||"key",o=t.value.name||"value",i=t.flattened?t.name:"entry",c=e.firstElementChild;for(;c;){if(c.nodeName===i){var u=s(c,n).textContent,l=s(c,o);r[u]=a(l,t.value)}c=c.nextElementSibling}return r}(e,t);case"list":return function(e,t){var r=[],n=t.flattened?t.name:t.member.name||"member",o=e.firstElementChild;for(;o;)o.nodeName===n&&r.push(a(o,t.member)),o=o.nextElementSibling;return r}(e,t);case void 0:case null:return function(e){if(null==e)return"";if(!e.firstElementChild)return null===e.parentNode.parentNode?{}:0===e.childNodes.length?"":e.textContent;var t={type:"structure",members:{}},r=e.firstElementChild;for(;r;){var n=r.nodeName;Object.prototype.hasOwnProperty.call(t.members,n)?t.members[n].type="list":t.members[n]={name:n},r=r.nextElementSibling}return c(e,t)}(e);default:return function(e,t){if(e.getAttribute){var r=e.getAttribute("encoding");"base64"===r&&(t=new o.create({type:r}))}var n=e.textContent;""===n&&(n=null);return"function"==typeof t.toType?t.toType(n):n}(e,t)}}function c(e,t){var r={};return null===e||n.each(t.members,(function(n,o){if(o.isXmlAttribute){if(Object.prototype.hasOwnProperty.call(e.attributes,o.name)){var i=e.attributes[o.name].value;r[n]=a({textContent:i},o)}}else{var c=o.flattened?e:s(e,o.name);c?r[n]=a(c,o):o.flattened||"list"!==o.type||t.api.xmlNoDefaultLists||(r[n]=o.defaultValue)}})),r}i.prototype.parse=function(e,t){if(""===e.replace(/^\s+/,""))return{};var r,o;try{if(window.DOMParser){try{r=(new DOMParser).parseFromString(e,"text/xml")}catch(e){throw n.error(new Error("Parse error in document"),{originalError:e,code:"XMLParserError",retryable:!0})}if(null===r.documentElement)throw n.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var i=r.getElementsByTagName("parsererror")[0];if(i&&(i.parentNode===r||"body"===i.parentNode.nodeName||i.parentNode.parentNode===r||"body"===i.parentNode.parentNode.nodeName)){var c=i.getElementsByTagName("div")[0]||i;throw n.error(new Error(c.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((r=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!r.loadXML(e))throw n.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(e){o=e}if(r&&r.documentElement&&!o){var u=a(r.documentElement,t),l=s(r.documentElement,"ResponseMetadata");return l&&(u.ResponseMetadata=a(l,{})),u}if(o)throw n.error(o||new Error,{code:"XMLParserError",retryable:!0});return{}},e.exports=i},(e,t,r)=>{var n=r(36),o=r(185).EventEmitter;r(69),n.XHRClient=n.util.inherit({handleRequest:function(e,t,r,i){var s=this,a=e.endpoint,c=new o,u=a.protocol+"//"+a.hostname;80!==a.port&&443!==a.port&&(u+=":"+a.port),u+=e.path;var l=new XMLHttpRequest,p=!1;e.stream=l,l.addEventListener("readystatechange",(function(){try{if(0===l.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!p&&(c.statusCode=l.status,c.headers=s.parseHeaders(l.getAllResponseHeaders()),c.emit("headers",c.statusCode,c.headers,l.statusText),p=!0),this.readyState===this.DONE&&s.finishRequest(l,c)}),!1),l.upload.addEventListener("progress",(function(e){c.emit("sendProgress",e)})),l.addEventListener("progress",(function(e){c.emit("receiveProgress",e)}),!1),l.addEventListener("timeout",(function(){i(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))}),!1),l.addEventListener("error",(function(){i(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))}),!1),l.addEventListener("abort",(function(){i(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))}),!1),r(c),l.open(e.method,u,!1!==t.xhrAsync),n.util.each(e.headers,(function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&l.setRequestHeader(e,t)})),t.timeout&&!1!==t.xhrAsync&&(l.timeout=t.timeout),t.xhrWithCredentials&&(l.withCredentials=!0);try{l.responseType="arraybuffer"}catch(e){}try{e.body?l.send(e.body):l.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;l.send(e.body.buffer)}return c},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),(function(e){var r=e.split(":",1)[0],n=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=n)})),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var o=e.response;r=new n.util.Buffer(o.byteLength);for(var i=new Uint8Array(o),s=0;s<r.length;++s)r[s]=i[s]}try{r||"string"!=typeof e.responseText||(r=new n.util.Buffer(e.responseText))}catch(e){}r&&t.emit("data",r),t.emit("end")}}),n.HttpClient.prototype=n.XHRClient.prototype,n.HttpClient.streamsApiVersion=1},e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,s,a,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(n(i))for(a=Array.prototype.slice.call(arguments,1),s=(u=i.slice()).length,c=0;c<s;c++)u[c].apply(this,a);return!0},t.prototype.addListener=function(e,i){var s;if(!r(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(i.listener)?i.listener:i),this._events[e]?n(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,n(this._events[e])&&!this._events[e].warned&&(s=o(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function o(){this.removeListener(e,o),n||(n=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},t.prototype.removeListener=function(e,t){var o,i,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(o=this._events[e]).length,i=-1,o===t||r(o.listener)&&o.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(o)){for(a=s;a-- >0;)if(o[a]===t||o[a].listener&&o[a].listener===t){i=a;break}if(i<0)return this;1===o.length?(o.length=0,delete this._events[e]):o.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2015-08-04","endpointPrefix":"firehose","jsonVersion":"1.1","protocol":"json","protocols":["json"],"serviceAbbreviation":"Firehose","serviceFullName":"Amazon Kinesis Firehose","serviceId":"Firehose","signatureVersion":"v4","targetPrefix":"Firehose_20150804","uid":"firehose-2015-08-04","auth":["aws.auth#sigv4"]},"operations":{"CreateDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"DeliveryStreamType":{},"KinesisStreamSourceConfiguration":{"type":"structure","required":["KinesisStreamARN","RoleARN"],"members":{"KinesisStreamARN":{},"RoleARN":{}}},"DeliveryStreamEncryptionConfigurationInput":{"shape":"S7"},"S3DestinationConfiguration":{"shape":"Sa","deprecated":true},"ExtendedS3DestinationConfiguration":{"type":"structure","required":["RoleARN","BucketARN"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupConfiguration":{"shape":"Sa"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationConfiguration":{"type":"structure","required":["RoleARN","ClusterJDBCURL","CopyCommand","S3Configuration"],"members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"Password":{"shape":"S20"},"RetryOptions":{"shape":"S21"},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupConfiguration":{"shape":"Sa"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationConfiguration":{"type":"structure","required":["HECEndpoint","HECEndpointType","S3Configuration"],"members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationConfiguration":{"type":"structure","required":["EndpointConfiguration","S3Configuration"],"members":{"EndpointConfiguration":{"shape":"S3b"},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"SecretsManagerConfiguration":{"shape":"S24"}}},"Tags":{"shape":"S3r"},"AmazonOpenSearchServerlessDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"}}},"MSKSourceConfiguration":{"type":"structure","required":["MSKClusterARN","TopicName","AuthenticationConfiguration"],"members":{"MSKClusterARN":{},"TopicName":{},"AuthenticationConfiguration":{"shape":"S47"},"ReadFromTimestamp":{"type":"timestamp"}}},"SnowflakeDestinationConfiguration":{"type":"structure","required":["AccountUrl","Database","Schema","Table","RoleARN","S3Configuration"],"members":{"AccountUrl":{"shape":"S4b"},"PrivateKey":{"shape":"S4c"},"KeyPassphrase":{"shape":"S4d"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"SnowflakeVpcConfiguration":{"shape":"S4n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"IcebergDestinationConfiguration":{"type":"structure","required":["RoleARN","CatalogConfiguration","S3Configuration"],"members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3Configuration":{"shape":"Sa"}}}}},"output":{"type":"structure","members":{"DeliveryStreamARN":{}}}},"DeleteDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"AllowForceDelete":{"type":"boolean"}}},"output":{"type":"structure","members":{}}},"DescribeDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"Limit":{"type":"integer"},"ExclusiveStartDestinationId":{}}},"output":{"type":"structure","required":["DeliveryStreamDescription"],"members":{"DeliveryStreamDescription":{"type":"structure","required":["DeliveryStreamName","DeliveryStreamARN","DeliveryStreamStatus","DeliveryStreamType","VersionId","Destinations","HasMoreDestinations"],"members":{"DeliveryStreamName":{},"DeliveryStreamARN":{},"DeliveryStreamStatus":{},"FailureDescription":{"shape":"S5b"},"DeliveryStreamEncryptionConfiguration":{"type":"structure","members":{"KeyARN":{},"KeyType":{},"Status":{},"FailureDescription":{"shape":"S5b"}}},"DeliveryStreamType":{},"VersionId":{},"CreateTimestamp":{"type":"timestamp"},"LastUpdateTimestamp":{"type":"timestamp"},"Source":{"type":"structure","members":{"KinesisStreamSourceDescription":{"type":"structure","members":{"KinesisStreamARN":{},"RoleARN":{},"DeliveryStartTimestamp":{"type":"timestamp"}}},"MSKSourceDescription":{"type":"structure","members":{"MSKClusterARN":{},"TopicName":{},"AuthenticationConfiguration":{"shape":"S47"},"DeliveryStartTimestamp":{"type":"timestamp"},"ReadFromTimestamp":{"type":"timestamp"}}}}},"Destinations":{"type":"list","member":{"type":"structure","required":["DestinationId"],"members":{"DestinationId":{},"S3DestinationDescription":{"shape":"S5n"},"ExtendedS3DestinationDescription":{"type":"structure","required":["RoleARN","BucketARN","BufferingHints","CompressionFormat","EncryptionConfiguration"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupDescription":{"shape":"S5n"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationDescription":{"type":"structure","required":["RoleARN","ClusterJDBCURL","CopyCommand","S3DestinationDescription"],"members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"RetryOptions":{"shape":"S21"},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupDescription":{"shape":"S5n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationDescription":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationDescription":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationDescription":{"type":"structure","members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationDescription":{"type":"structure","members":{"EndpointConfiguration":{"type":"structure","members":{"Url":{"shape":"S3c"},"Name":{}}},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"SecretsManagerConfiguration":{"shape":"S24"}}},"SnowflakeDestinationDescription":{"type":"structure","members":{"AccountUrl":{"shape":"S4b"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"SnowflakeVpcConfiguration":{"shape":"S4n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"AmazonOpenSearchServerlessDestinationDescription":{"type":"structure","members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"}}},"IcebergDestinationDescription":{"type":"structure","members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3DestinationDescription":{"shape":"S5n"}}}}}},"HasMoreDestinations":{"type":"boolean"}}}}}},"ListDeliveryStreams":{"input":{"type":"structure","members":{"Limit":{"type":"integer"},"DeliveryStreamType":{},"ExclusiveStartDeliveryStreamName":{}}},"output":{"type":"structure","required":["DeliveryStreamNames","HasMoreDeliveryStreams"],"members":{"DeliveryStreamNames":{"type":"list","member":{}},"HasMoreDeliveryStreams":{"type":"boolean"}}}},"ListTagsForDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"ExclusiveStartTagKey":{},"Limit":{"type":"integer"}}},"output":{"type":"structure","required":["Tags","HasMoreTags"],"members":{"Tags":{"type":"list","member":{"shape":"S3s"}},"HasMoreTags":{"type":"boolean"}}}},"PutRecord":{"input":{"type":"structure","required":["DeliveryStreamName","Record"],"members":{"DeliveryStreamName":{},"Record":{"shape":"S68"}}},"output":{"type":"structure","required":["RecordId"],"members":{"RecordId":{},"Encrypted":{"type":"boolean"}}}},"PutRecordBatch":{"input":{"type":"structure","required":["DeliveryStreamName","Records"],"members":{"DeliveryStreamName":{},"Records":{"type":"list","member":{"shape":"S68"}}}},"output":{"type":"structure","required":["FailedPutCount","RequestResponses"],"members":{"FailedPutCount":{"type":"integer"},"Encrypted":{"type":"boolean"},"RequestResponses":{"type":"list","member":{"type":"structure","members":{"RecordId":{},"ErrorCode":{},"ErrorMessage":{}}}}}}},"StartDeliveryStreamEncryption":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"DeliveryStreamEncryptionConfigurationInput":{"shape":"S7"}}},"output":{"type":"structure","members":{}}},"StopDeliveryStreamEncryption":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{}}},"output":{"type":"structure","members":{}}},"TagDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName","Tags"],"members":{"DeliveryStreamName":{},"Tags":{"shape":"S3r"}}},"output":{"type":"structure","members":{}}},"UntagDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName","TagKeys"],"members":{"DeliveryStreamName":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateDestination":{"input":{"type":"structure","required":["DeliveryStreamName","CurrentDeliveryStreamVersionId","DestinationId"],"members":{"DeliveryStreamName":{},"CurrentDeliveryStreamVersionId":{},"DestinationId":{},"S3DestinationUpdate":{"shape":"S6t","deprecated":true},"ExtendedS3DestinationUpdate":{"type":"structure","members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupUpdate":{"shape":"S6t"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"Password":{"shape":"S20"},"RetryOptions":{"shape":"S21"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupUpdate":{"shape":"S6t"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationUpdate":{"type":"structure","members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationUpdate":{"type":"structure","members":{"EndpointConfiguration":{"shape":"S3b"},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3Update":{"shape":"S6t"},"SecretsManagerConfiguration":{"shape":"S24"}}},"AmazonOpenSearchServerlessDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"SnowflakeDestinationUpdate":{"type":"structure","members":{"AccountUrl":{"shape":"S4b"},"PrivateKey":{"shape":"S4c"},"KeyPassphrase":{"shape":"S4d"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3Update":{"shape":"S6t"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"IcebergDestinationUpdate":{"type":"structure","members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3Configuration":{"shape":"Sa"}}}}},"output":{"type":"structure","members":{}}}},"shapes":{"S7":{"type":"structure","required":["KeyType"],"members":{"KeyARN":{},"KeyType":{}}},"Sa":{"type":"structure","required":["RoleARN","BucketARN"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"Se":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"Si":{"type":"structure","members":{"NoEncryptionConfig":{},"KMSEncryptionConfig":{"type":"structure","required":["AWSKMSKeyARN"],"members":{"AWSKMSKeyARN":{}}}}},"Sl":{"type":"structure","members":{"Enabled":{"type":"boolean"},"LogGroupName":{},"LogStreamName":{}}},"Sq":{"type":"structure","members":{"Enabled":{"type":"boolean"},"Processors":{"type":"list","member":{"type":"structure","required":["Type"],"members":{"Type":{},"Parameters":{"type":"list","member":{"type":"structure","required":["ParameterName","ParameterValue"],"members":{"ParameterName":{},"ParameterValue":{}}}}}}}}},"Sz":{"type":"structure","members":{"SchemaConfiguration":{"type":"structure","members":{"RoleARN":{},"CatalogId":{},"DatabaseName":{},"TableName":{},"Region":{},"VersionId":{}}},"InputFormatConfiguration":{"type":"structure","members":{"Deserializer":{"type":"structure","members":{"OpenXJsonSerDe":{"type":"structure","members":{"ConvertDotsInJsonKeysToUnderscores":{"type":"boolean"},"CaseInsensitive":{"type":"boolean"},"ColumnToJsonKeyMappings":{"type":"map","key":{},"value":{}}}},"HiveJsonSerDe":{"type":"structure","members":{"TimestampFormats":{"type":"list","member":{}}}}}}}},"OutputFormatConfiguration":{"type":"structure","members":{"Serializer":{"type":"structure","members":{"ParquetSerDe":{"type":"structure","members":{"BlockSizeBytes":{"type":"integer"},"PageSizeBytes":{"type":"integer"},"Compression":{},"EnableDictionaryCompression":{"type":"boolean"},"MaxPaddingBytes":{"type":"integer"},"WriterVersion":{}}},"OrcSerDe":{"type":"structure","members":{"StripeSizeBytes":{"type":"integer"},"BlockSizeBytes":{"type":"integer"},"RowIndexStride":{"type":"integer"},"EnablePadding":{"type":"boolean"},"PaddingTolerance":{"type":"double"},"Compression":{},"BloomFilterColumns":{"shape":"S1m"},"BloomFilterFalsePositiveProbability":{"type":"double"},"DictionaryKeyThreshold":{"type":"double"},"FormatVersion":{}}}}}}},"Enabled":{"type":"boolean"}}},"S1m":{"type":"list","member":{}},"S1o":{"type":"structure","members":{"RetryOptions":{"shape":"S1p"},"Enabled":{"type":"boolean"}}},"S1p":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S1v":{"type":"structure","required":["DataTableName"],"members":{"DataTableName":{},"DataTableColumns":{},"CopyOptions":{}}},"S1z":{"type":"string","sensitive":true},"S20":{"type":"string","sensitive":true},"S21":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S24":{"type":"structure","required":["Enabled"],"members":{"SecretARN":{},"RoleARN":{},"Enabled":{"type":"boolean"}}},"S2c":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S2f":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S2i":{"type":"structure","required":["SubnetIds","RoleARN","SecurityGroupIds"],"members":{"SubnetIds":{"shape":"S2j"},"RoleARN":{},"SecurityGroupIds":{"shape":"S2k"}}},"S2j":{"type":"list","member":{}},"S2k":{"type":"list","member":{}},"S2l":{"type":"structure","required":["DefaultDocumentIdFormat"],"members":{"DefaultDocumentIdFormat":{}}},"S2t":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S2w":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S34":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S37":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S3b":{"type":"structure","required":["Url"],"members":{"Url":{"shape":"S3c"},"Name":{},"AccessKey":{"type":"string","sensitive":true}}},"S3c":{"type":"string","sensitive":true},"S3f":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"S3i":{"type":"structure","members":{"ContentEncoding":{},"CommonAttributes":{"type":"list","member":{"type":"structure","required":["AttributeName","AttributeValue"],"members":{"AttributeName":{"type":"string","sensitive":true},"AttributeValue":{"type":"string","sensitive":true}}}}}},"S3o":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S3r":{"type":"list","member":{"shape":"S3s"}},"S3s":{"type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}},"S3y":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S41":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S47":{"type":"structure","required":["RoleARN","Connectivity"],"members":{"RoleARN":{},"Connectivity":{}}},"S4b":{"type":"string","sensitive":true},"S4c":{"type":"string","sensitive":true},"S4d":{"type":"string","sensitive":true},"S4e":{"type":"string","sensitive":true},"S4f":{"type":"string","sensitive":true},"S4g":{"type":"string","sensitive":true},"S4h":{"type":"string","sensitive":true},"S4i":{"type":"structure","members":{"Enabled":{"type":"boolean"},"SnowflakeRole":{"type":"string","sensitive":true}}},"S4l":{"type":"string","sensitive":true},"S4m":{"type":"string","sensitive":true},"S4n":{"type":"structure","required":["PrivateLinkVpceId"],"members":{"PrivateLinkVpceId":{"type":"string","sensitive":true}}},"S4p":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S4s":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"S4w":{"type":"list","member":{"type":"structure","required":["DestinationTableName","DestinationDatabaseName"],"members":{"DestinationTableName":{},"DestinationDatabaseName":{},"UniqueKeys":{"shape":"S1m"},"S3ErrorOutputPrefix":{}}}},"S4z":{"type":"structure","members":{"CatalogARN":{}}},"S5b":{"type":"structure","required":["Type","Details"],"members":{"Type":{},"Details":{}}},"S5n":{"type":"structure","required":["RoleARN","BucketARN","BufferingHints","CompressionFormat","EncryptionConfiguration"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"S5r":{"type":"structure","required":["SubnetIds","RoleARN","SecurityGroupIds","VpcId"],"members":{"SubnetIds":{"shape":"S2j"},"RoleARN":{},"SecurityGroupIds":{"shape":"S2k"},"VpcId":{}}},"S68":{"type":"structure","required":["Data"],"members":{"Data":{"type":"blob"}}},"S6t":{"type":"structure","members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}}}}')},e=>{"use strict";e.exports={pagination:{}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,s.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,a,d,f,h,m,y,g;if(y=e.split("#"),e=y.shift(),y=e.split("?"),e=y.shift(),(y=e.split("://")).length>1){if(r=y.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;y[0]=e.slice(2)}}if(""===(e=y.join("://")))return!1;if(y=e.split("/"),""===(e=y.shift())&&!t.require_host)return!0;if((y=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===y[0])return!1;if((a=y.shift()).indexOf(":")>=0&&a.split(":").length>2)return!1;var v=a.split(":"),S=(w=2,function(e){if(Array.isArray(e))return e}(E=v)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(E,w)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(E,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=S[0],_=S[1];if(""===b&&""===_)return!1}var E,w;f=y.join("@"),m=null,g=null;var I=f.match(l);I?(d="",g=I[1],m=I[2]||null):(d=(y=f.split(":")).shift(),y.length&&(m=y.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return p(d,t.host_whitelist);if(""===d&&!t.require_host)return!0;if(!((0,i.default)(d)||(0,o.default)(d,t)||g&&(0,i.default)(g,6)))return!1;if(d=d||g,t.host_blacklist&&p(d,t.host_blacklist))return!1;return!0};var n=a(r(189)),o=a(r(190)),i=a(r(192)),s=a(r(191));function a(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||(o=n,"[object RegExp]"===Object.prototype.toString.call(o)&&n.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=r(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,o.default)(t,s)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),i=r[r.length-1];if(t.require_tld){if(r.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return r.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=i(r(189)),o=i(r(191));function i(e){return e&&e.__esModule?e:{default:e}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(r=String(r)))return e(t,4)||e(t,6);if("4"===r)return a.test(t);if("6"===r)return u.test(t);return!1};var n,o=(n=r(189))&&n.__esModule?n:{default:n};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",s="(".concat(i,"[.]){3}").concat(i),a=new RegExp("^".concat(s,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(s,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(s,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(s,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(s,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(s,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(s,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(s,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={get(e){const t=document.cookie.split("; ");for(let r=0;r<t.length;r++){const n=t[r].split("=");if(e===n[0])return unescape(n[1])}return null},set(e,t,r,n){let o=`${e}=${escape(t)}; `;r&&(o+=`expires=${r}; `),n&&(o+=`path=${n}; `),"https:"===window.location.protocol&&(o+="secure; "),document.cookie=o},setPermanent(e,t,r){const n=new Date;n.setTime(n.getTime()+31536e6);const o=n.toUTCString();this.set(e,t,o,r)},remove(e,t){this.set(e,"","Fri, 31 Dec 1999 23:59:59 GMT",t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasPreferences:()=>o,isAnalyticsAllowed:()=>a,loadPreferences:()=>s,savePreferences:()=>i});const n="cookie-policy",o=()=>!!localStorage.getItem(n),i=e=>{localStorage.setItem(n,JSON.stringify(e))},s=()=>{let e=!1,t=!1;try{const r=localStorage.getItem(n),o=r?JSON.parse(r):{};"boolean"==typeof o.analytics&&({analytics:e}=o),"boolean"==typeof o.marketing&&({marketing:t}=o)}catch{}return{analytics:e,marketing:t}},a=()=>s().analytics},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(196),o=r(285),i=r(310),s=r(199),a=r(328);const c=({sentry:e})=>{if(!e)return;if(window.navigator.userAgent.match(/jsdom/))return;const{user:t=null,tags:r={},environment:c,...u}=e,l="development"===c;(0,n.init)({integrations:[(0,o.replayIntegration)({maskAllText:!l,maskAllInputs:!l}),(0,i.browserTracingIntegration)({beforeStartSpan:e=>({...e,name:location.pathname.replace(/\/[a-f0-9]{8}-[a-f0-9]{4}-[0-5][a-f0-9]{3}-[089ab][a-f0-9]{3}-[a-f0-9]{12}/gi,"/<guid>").replace(/\/[a-f0-9]{32}/g,"/<hash>").replace(/\/\d+/g,"/<digits>").replace(/\/type\/(domain|alias)/,"/type/<type>")})})],beforeSend:(e,t)=>{const r=t.originalException;if(r&&r.stack){const e=/global code@|@debugger/.test(r.stack),t=r.stack.split("\n"),n=2===t.length&&/<anonymous>:1:(\d+)$/.test(t.at(-1));if(e||n)return null}return e},beforeBreadcrumb:(0,a.withoutGraphQLFetch)((e=>{if("xhr"===e.category||"fetch"===e.category){const t=e.data?.url??"";if(t.includes("firehose.us-west-2.amazonaws.com"))return null;if(t.includes("/cp/locale")){return{type:"http",category:"plesk.locale",data:{sections:new URLSearchParams(t.split("?")[1]).getAll("sections[]")}}}}return e})),ignoreErrors:["ResizeObserver loop","ApiFetchError:","whmcs_user_id is not defined","__renderMessageNode is not defined","Module build failed","jQuery is not defined","safari-extension://","moz-extension://","chrome-extension://","Object Not Found Matching Id:","Script error for","loadAndDisplayNotifications"],denyUrls:[/extensions\//i,/^chrome:\/\//i,"/modules/help-center/global.js","/modules/baqend/script.js","/modules/addendio-wordpress/global.js","/modules/revisium-antivirus/js/ra_domain.js","/modules/wp-toolkit/js/domain-page.js"],sampleRate:l?1:.05,replaysSessionSampleRate:0,replaysOnErrorSampleRate:l?1:0,tracesSampleRate:l?.001:0,environment:c,...u});const p=(0,s.getCurrentScope)();p.setUser(t);for(const e in r)p.setTag(e,r[e])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyDefaultOptions:()=>k,forceLoad:()=>O,getDefaultIntegrations:()=>T,init:()=>x,onLoad:()=>P,showReportDialog:()=>R});var n=r(281),o=r(282),i=r(283),s=r(209),a=r(212),c=r(260),u=r(220),l=r(244),p=r(284),d=r(199),f=r(223),h=r(240),m=r(197),y=r(252),g=r(222),v=r(253),S=r(266),b=r(267),_=r(268),E=r(271),w=r(272),I=r(274),A=r(275);function T(e){return[(0,n.inboundFiltersIntegration)(),(0,o.functionToStringIntegration)(),(0,S.browserApiErrorsIntegration)(),(0,v.breadcrumbsIntegration)(),(0,_.globalHandlersIntegration)(),(0,w.linkedErrorsIntegration)(),(0,i.dedupeIntegration)(),(0,E.httpContextIntegration)(),(0,b.browserSessionIntegration)()]}function k(e={}){return{...{defaultIntegrations:T(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:g.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0},...C(e)}}function C(e){const t={};for(const r of Object.getOwnPropertyNames(e)){const n=r;void 0!==e[n]&&(t[n]=e[n])}return t}function x(e={}){const t=k(e);if(!t.skipBrowserExtensionCheck&&function(){const e=void 0!==g.WINDOW.window&&g.WINDOW;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],r=t?.runtime?.id,n=(0,s.getLocationHref)()||"",o=!!r&&g.WINDOW===g.WINDOW.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>n.startsWith(`${e}//`))),i=void 0!==e.nw;return!!r&&!o&&!i}())return void(y.DEBUG_BUILD&&(0,a.consoleSandbox)((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})));y.DEBUG_BUILD&&!(0,c.supportsFetch)()&&a.logger.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");const r={...t,stackParser:(0,u.stackParserFromStackParserOptions)(t.stackParser||I.defaultStackParser),integrations:(0,l.getIntegrationsToSetup)(t),transport:t.transport||A.makeFetchTransport};return(0,p.initAndBind)(m.BrowserClient,r)}function R(e={}){if(!g.WINDOW.document)return void(y.DEBUG_BUILD&&a.logger.error("Global document not defined in showReportDialog call"));const t=(0,d.getCurrentScope)(),r=t.getClient(),n=r?.getDsn();if(!n)return void(y.DEBUG_BUILD&&a.logger.error("DSN not configured for showReportDialog call"));if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=(0,f.lastEventId)();t&&(e.eventId=t)}const o=g.WINDOW.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=(0,h.getReportDialogEndpoint)(n,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:i}=e;if(i){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{i()}finally{g.WINDOW.removeEventListener("message",e)}};g.WINDOW.addEventListener("message",e)}const s=g.WINDOW.document.head||g.WINDOW.document.body;s?s.appendChild(o):y.DEBUG_BUILD&&a.logger.error("Not injecting report dialog. No injection point found in HTML")}function O(){}function P(e){e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>u});var n=r(239),o=r(249),i=r(250),s=r(251),a=r(198),c=r(222);class u extends n.Client{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e},r=c.WINDOW.SENTRY_SDK_SOURCE||(0,o.getSDKSource)();(0,i.applySdkMetadata)(t,"browser",["browser"],r),super(t),t.sendClientReports&&c.WINDOW.document&&c.WINDOW.document.addEventListener("visibilitychange",(()=>{"hidden"===c.WINDOW.document.visibilityState&&this._flushOutcomes()})),this._options.sendDefaultPii&&(this.on("postprocessEvent",s.addAutoIpAddressToUser),this.on("beforeSendSession",s.addAutoIpAddressToSession))}eventFromException(e,t){return(0,a.eventFromException)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,a.eventFromMessage)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFromException:()=>g,eventFromMessage:()=>v,eventFromUnknownInput:()=>S,exceptionFromError:()=>u,extractMessage:()=>y,extractType:()=>m});var n=r(199),o=r(219),i=r(210),s=r(215),a=r(221),c=r(208);function u(e,t){const r=d(e,t),n={type:m(t),value:y(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function l(e,t,r,s){const a=(0,n.getClient)(),c=a?.getOptions().normalizeDepth,l=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}return}(t),p={__serialized__:(0,o.normalizeToSize)(t,c)};if(l)return{exception:{values:[u(e,l)]},extra:p};const f={exception:{values:[{type:(0,i.isEvent)(t)?t.constructor.name:s?"UnhandledRejection":"Error",value:_(t,{isUnhandledRejection:s})}]},extra:p};if(r){const t=d(e,r);t.length&&(f.exception.values[0].stacktrace={frames:t})}return f}function p(e,t){return{exception:{values:[u(e,t)]}}}function d(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e&&f.test(e.message))return 1;return 0}(t),o=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(r,n,o)}catch(e){}return[]}const f=/Minified React error #\d+;/i;function h(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function m(e){const t=e?.name;if(!t&&h(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function y(e){const t=e?.message;return h(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function g(e,t,r,n){const o=S(e,t,r?.syntheticException||void 0,n);return(0,s.addExceptionMechanism)(o),o.level="error",r?.event_id&&(o.event_id=r.event_id),(0,a.resolvedSyncPromise)(o)}function v(e,t,r="info",n,o){const i=b(e,t,n?.syntheticException||void 0,o);return i.level=r,n?.event_id&&(i.event_id=n.event_id),(0,a.resolvedSyncPromise)(i)}function S(e,t,r,n,o){let a;if((0,i.isErrorEvent)(t)&&t.error){return p(e,t.error)}if((0,i.isDOMError)(t)||(0,i.isDOMException)(t)){const o=t;if("stack"in t)a=p(e,t);else{const t=o.name||((0,i.isDOMError)(o)?"DOMError":"DOMException"),c=o.message?`${t}: ${o.message}`:t;a=b(e,c,r,n),(0,s.addExceptionTypeValue)(a,c)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":`${o.code}`}),a}if((0,i.isError)(t))return p(e,t);if((0,i.isPlainObject)(t)||(0,i.isEvent)(t)){return a=l(e,t,r,o),(0,s.addExceptionMechanism)(a,{synthetic:!0}),a}return a=b(e,t,r,n),(0,s.addExceptionTypeValue)(a,`${t}`,void 0),(0,s.addExceptionMechanism)(a,{synthetic:!0}),a}function b(e,t,r,n){const o={};if(n&&r){const n=d(e,r);n.length&&(o.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,s.addExceptionMechanism)(o,{synthetic:!0})}if((0,i.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return o.logentry={message:e,params:r},o}return o.message=t,o}function _(e,{isUnhandledRejection:t}){const r=(0,c.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,i.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,i.isEvent)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getClient:()=>f,getCurrentScope:()=>c,getGlobalScope:()=>l,getIsolationScope:()=>u,getTraceContextFromScope:()=>h,withIsolationScope:()=>d,withScope:()=>p});var n=r(200),o=r(201),i=r(206),s=r(208),a=r(216);function c(){const e=(0,o.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getCurrentScope()}function u(){const e=(0,o.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getIsolationScope()}function l(){return(0,o.getGlobalSingleton)("globalScope",(()=>new i.Scope))}function p(...e){const t=(0,o.getMainCarrier)(),r=(0,n.getAsyncContextStrategy)(t);if(2===e.length){const[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function d(...e){const t=(0,o.getMainCarrier)(),r=(0,n.getAsyncContextStrategy)(t);if(2===e.length){const[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])}function f(){return c().getClient()}function h(e){const t=e.getPropagationContext(),{traceId:r,parentSpanId:n,propagationSpanId:o}=t;return(0,s.dropUndefinedKeys)({trace_id:r,span_id:o||(0,a.generateSpanId)(),parent_span_id:n})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAsyncContextStrategy:()=>s,setAsyncContextStrategy:()=>i});var n=r(201),o=r(204);function i(e){const t=(0,n.getMainCarrier)();(0,n.getSentryCarrier)(t).acs=e}function s(e){const t=(0,n.getSentryCarrier)(e);return t.acs?t.acs:(0,o.getStackAsyncContextStrategy)()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getGlobalSingleton:()=>a,getMainCarrier:()=>i,getSentryCarrier:()=>s});var n=r(202),o=r(203);function i(){return s(o.GLOBAL_OBJ),o.GLOBAL_OBJ}function s(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.SDK_VERSION,t[n.SDK_VERSION]=t[n.SDK_VERSION]||{}}function a(e,t,r=o.GLOBAL_OBJ){const i=r.__SENTRY__=r.__SENTRY__||{},s=i[n.SDK_VERSION]=i[n.SDK_VERSION]||{};return s[e]||(s[e]=t())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SDK_VERSION:()=>n});const n="9.6.0"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GLOBAL_OBJ:()=>n});const n=globalThis},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsyncContextStack:()=>a,getStackAsyncContextStrategy:()=>d});var n=r(205),o=r(206),i=r(210),s=r(201);class a{constructor(e,t){let r,n;r=e||new o.Scope,n=t||new o.Scope,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(e){throw this._popScope(),e}return(0,i.isThenable)(r)?r.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){const e=(0,s.getMainCarrier)(),t=(0,s.getSentryCarrier)(e);return t.stack=t.stack||new a((0,n.getDefaultCurrentScope)(),(0,n.getDefaultIsolationScope)())}function u(e){return c().withScope(e)}function l(e,t){const r=c();return r.withScope((()=>(r.getStackTop().scope=e,t(e))))}function p(e){return c().withScope((()=>e(c().getIsolationScope())))}function d(){return{withIsolationScope:p,withScope:u,withSetScope:l,withSetIsolationScope:(e,t)=>p(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultCurrentScope:()=>i,getDefaultIsolationScope:()=>s});var n=r(201),o=r(206);function i(){return(0,n.getGlobalSingleton)("defaultCurrentScope",(()=>new o.Scope))}function s(){return(0,n.getGlobalSingleton)("defaultIsolationScope",(()=>new o.Scope))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Scope:()=>p});var n=r(207),o=r(210),i=r(212),s=r(215),a=r(216),c=r(214),u=r(217),l=r(218);class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,a.generateTraceId)(),sampleRand:Math.random()}}clone(){const e=new p;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,l._setSpanForScope)(e,(0,l._getSpanForScope)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,n.updateSession)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,r=t instanceof p?t.getScopeData():(0,o.isPlainObject)(t)?e:void 0,{tags:n,extra:i,user:s,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=r||{};return this._tags={...this._tags,...n},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,(0,l._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,a.generateTraceId)(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:(0,c.dateTimestampInSeconds)(),...e};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,l._getSpanForScope)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,u.merge)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t?.event_id||(0,s.uuid4)();if(!this._client)return i.logger.warn("No client configured on scope - will not capture exception!"),r;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){const n=r?.event_id||(0,s.uuid4)();if(!this._client)return i.logger.warn("No client configured on scope - will not capture message!"),n;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureEvent(e,t){const r=t?.event_id||(0,s.uuid4)();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(i.logger.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{closeSession:()=>c,makeSession:()=>s,updateSession:()=>a});var n=r(208),o=r(214),i=r(215);function s(e){const t=(0,o.timestampInSeconds)(),r={sid:(0,i.uuid4)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,n.dropUndefinedKeys)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(r)};return e&&a(r,e),r}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,o.timestampInSeconds)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.uuid4)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addNonEnumerableProperty:()=>u,convertToPlainObject:()=>d,dropUndefinedKeys:()=>y,extractExceptionKeysForMessage:()=>m,fill:()=>c,getOriginalFunction:()=>p,markFunctionWrapped:()=>l,objectify:()=>v});var n=r(209),o=r(211),i=r(210),s=r(212),a=r(213);function c(e,t,r){if(!(t in e))return;const n=e[t];if("function"!=typeof n)return;const i=r(n);"function"==typeof i&&l(i,n);try{e[t]=i}catch{o.DEBUG_BUILD&&s.logger.log(`Failed to replace method "${t}" in object`,e)}}function u(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){o.DEBUG_BUILD&&s.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,u(e,"__sentry_original__",t)}catch(e){}}function p(e){return e.__sentry_original__}function d(e){if((0,i.isError)(e))return{message:e.message,name:e.name,stack:e.stack,...h(e)};if((0,i.isEvent)(e)){const t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...h(e)};return"undefined"!=typeof CustomEvent&&(0,i.isInstanceOf)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function f(e){try{return(0,i.isElement)(e)?(0,n.htmlTreeAsString)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function h(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function m(e,t=40){const r=Object.keys(d(e));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return(0,a.truncate)(n,t);for(let e=r.length;e>0;e--){const n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:(0,a.truncate)(n,t)}return""}function y(e){return g(e,new Map)}function g(e,t){if(function(e){if(!(0,i.isPlainObject)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}(e)){const r=t.get(e);if(void 0!==r)return r;const n={};t.set(e,n);for(const r of Object.getOwnPropertyNames(e))void 0!==e[r]&&(n[r]=g(e[r],t));return n}if(Array.isArray(e)){const r=t.get(e);if(void 0!==r)return r;const n=[];return t.set(e,n),e.forEach((e=>{n.push(g(e,t))})),n}return e}function v(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case(0,i.isPrimitive)(e):t=new e.constructor(e);break;default:t=e}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getComponentName:()=>u,getLocationHref:()=>c,htmlTreeAsString:()=>s});var n=r(210);const o=r(203).GLOBAL_OBJ,i=80;function s(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,o=[];let s=0,c=0;const u=" > ",l=u.length;let p;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||i;for(;r&&s++<n&&(p=a(r,d),!("html"===p||s>1&&c+o.length*l+p.length>=f));)o.push(p),c+=p.length,r=r.parentNode;return o.reverse().join(u)}catch(e){return"<unknown>"}}function a(e,t){const r=e,i=[];if(!r?.tagName)return"";if(o.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}i.push(r.tagName.toLowerCase());const s=t?.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(s?.length)s.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else{r.id&&i.push(`#${r.id}`);const e=r.className;if(e&&(0,n.isString)(e)){const t=e.split(/\s+/);for(const e of t)i.push(`.${e}`)}}const a=["aria-label","type","name","title","alt"];for(const e of a){const t=r.getAttribute(e);t&&i.push(`[${e}="${t}"]`)}return i.join("")}function c(){try{return o.document.location.href}catch(e){return""}}function u(e){if(!o.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isDOMError:()=>a,isDOMException:()=>c,isElement:()=>h,isError:()=>o,isErrorEvent:()=>s,isEvent:()=>f,isInstanceOf:()=>v,isParameterizedString:()=>l,isPlainObject:()=>d,isPrimitive:()=>p,isRegExp:()=>m,isString:()=>u,isSyntheticEvent:()=>g,isThenable:()=>y,isVueViewModel:()=>S});const n=Object.prototype.toString;function o(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function i(e,t){return n.call(e)===`[object ${t}]`}function s(e){return i(e,"ErrorEvent")}function a(e){return i(e,"DOMError")}function c(e){return i(e,"DOMException")}function u(e){return i(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function p(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function d(e){return i(e,"Object")}function f(e){return"undefined"!=typeof Event&&v(e,Event)}function h(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return i(e,"RegExp")}function y(e){return Boolean(e?.then&&"function"==typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function S(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONSOLE_LEVELS:()=>s,consoleSandbox:()=>c,logger:()=>u,originalConsoleMethods:()=>a});var n=r(201),o=r(211),i=r(203);const s=["debug","info","warn","error","log","assert","trace"],a={};function c(e){if(!("console"in i.GLOBAL_OBJ))return e();const t=i.GLOBAL_OBJ.console,r={},n=Object.keys(a);n.forEach((e=>{const n=a[e];r[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=r[e]}))}}const u=(0,n.getGlobalSingleton)("logger",(function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return o.DEBUG_BUILD?s.forEach((r=>{t[r]=(...t)=>{e&&c((()=>{i.GLOBAL_OBJ.console[r](`Sentry Logger [${r}]:`,...t)}))}})):s.forEach((e=>{t[e]=()=>{}})),t}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isMatchingPattern:()=>a,safeJoin:()=>s,snipLine:()=>i,stringMatchesSomePattern:()=>c,truncate:()=>o});var n=r(210);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function i(e,t){let r=e;const n=r.length;if(n<=150)return r;t>n&&(t=n);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,n);return i>n-5&&(i=n),i===n&&(o=Math.max(i-140,0)),r=r.slice(o,i),o>0&&(r=`'{snip} ${r}`),i<n&&(r+=" {snip}"),r}function s(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t<e.length;t++){const o=e[t];try{(0,n.isVueViewModel)(o)?r.push("[VueViewModel]"):r.push(String(o))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function a(e,t,r=!1){return!!(0,n.isString)(e)&&((0,n.isRegExp)(t)?t.test(e):!!(0,n.isString)(t)&&(r?e===t:e.includes(t)))}function c(e,t=[],r=!1){return t.some((t=>a(e,t,r)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserPerformanceTimeOrigin:()=>c,dateTimestampInSeconds:()=>i,timestampInSeconds:()=>s});var n=r(203);const o=1e3;function i(){return Date.now()/o}const s=function(){const{performance:e}=n.GLOBAL_OBJ;if(!e?.now)return i;const t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/o}();let a;function c(){return a||(a=function(){const{performance:e}=n.GLOBAL_OBJ;if(!e?.now)return[void 0,"none"];const t=36e5,r=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-o):t,s=i<t,a=e.timing?.navigationStart,c="number"==typeof a?Math.abs(a+r-o):t;return s||c<t?i<=c?[e.timeOrigin,"timeOrigin"]:[a,"navigationStart"]:[o,"dateNow"]}()),a[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addContextToFrame:()=>h,addExceptionMechanism:()=>l,addExceptionTypeValue:()=>u,checkOrSetAlreadyCaught:()=>m,getEventDescription:()=>c,parseSemver:()=>f,uuid4:()=>s});var n=r(208),o=r(213),i=r(203);function s(e=function(){const e=i.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&t())>>e/4).toString(16)))}function a(e){return e.exception?.values?.[0]}function c(e){const{message:t,event_id:r}=e;if(t)return t;const n=a(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function u(e,t,r){const n=e.exception=e.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=r||"Error")}function l(e,t){const r=a(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n?.data,...t.data};r.mechanism.data=e}}const p=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function d(e){return parseInt(e||"",10)}function f(e){const t=e.match(p)||[],r=d(t[1]),n=d(t[2]),o=d(t[3]);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(o)?void 0:o,prerelease:t[4]}}function h(e,t,r=5){if(void 0===t.lineno)return;const n=e.length,i=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-r),i).map((e=>(0,o.snipLine)(e,0)));const s=Math.min(n-1,i);t.context_line=(0,o.snipLine)(e[s],t.colno||0),t.post_context=e.slice(Math.min(i+1,n),i+1+r).map((e=>(0,o.snipLine)(e,0)))}function m(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,n.addNonEnumerableProperty)(e,"__sentry_captured__",!0)}catch(e){}return!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateSpanId:()=>i,generateTraceId:()=>o});var n=r(215);function o(){return(0,n.uuid4)()}function i(){return(0,n.uuid4)().substring(16)}},(e,t,r)=>{"use strict";function n(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;const o={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=n(o[e],t[e],r-1));return o}r.r(t),r.d(t,{merge:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getSpanForScope:()=>s,_setSpanForScope:()=>i});var n=r(208);const o="_sentrySpan";function i(e,t){t?(0,n.addNonEnumerableProperty)(e,o,t):delete e[o]}function s(e){return e[o]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalize:()=>s,normalizeToSize:()=>a,normalizeUrlToBase:()=>u});var n=r(210),o=r(208),i=r(220);function s(e,t=100,r=1/0){try{return c("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function a(e,t=3,r=102400){const n=s(e,t);return o=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>r?a(e,t-1,r):n;var o}function c(e,t,r=1/0,s=1/0,a=function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function r(t){e.delete(t)}return[t,r]}()){const[u,l]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const p=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.isVueViewModel)(t))return"[VueViewModel]";if((0,n.isSyntheticEvent)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,i.getFunctionName)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!p.startsWith("[object "))return p;if(t.__sentry_skip_normalization__)return t;const d="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===d)return p.replace("object ","");if(u(t))return"[Circular ~]";const f=t;if(f&&"function"==typeof f.toJSON)try{return c("",f.toJSON(),d-1,s,a)}catch(e){}const h=Array.isArray(t)?[]:{};let m=0;const y=(0,o.convertToPlainObject)(t);for(const e in y){if(!Object.prototype.hasOwnProperty.call(y,e))continue;if(m>=s){h[e]="[MaxProperties ~]";break}const t=y[e];h[e]=c(e,t,d-1,s,a),m++}return l(t),h}function u(e,t){const r=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let n=e;try{n=decodeURI(e)}catch(e){}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UNKNOWN_FUNCTION:()=>o,createStackParser:()=>a,getFramesFromEvent:()=>f,getFunctionName:()=>d,stackParserFromStackParserOptions:()=>c,stripSentryFramesAndReverse:()=>u});const n=50,o="?",i=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,r=0,o=0)=>{const s=[],a=e.split("\n");for(let e=r;e<a.length;e++){const r=a[e];if(r.length>1024)continue;const c=i.test(r)?r.replace(i,"$1"):r;if(!c.match(/\S*Error: /)){for(const e of t){const t=e(c);if(t){s.push(t);break}}if(s.length>=n+o)break}}return u(s.slice(o))}}function c(e){return Array.isArray(e)?a(...e):e}function u(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(l(t).function||"")&&t.pop(),t.reverse(),s.test(l(t).function||"")&&(t.pop(),s.test(l(t).function||"")&&t.pop()),t.slice(0,n).map((e=>({...e,filename:e.filename||l(t).filename,function:e.function||o})))}function l(e){return e[e.length-1]||{}}const p="<anonymous>";function d(e){try{return e&&"function"==typeof e&&e.name||p}catch(e){return p}}function f(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SyncPromise:()=>a,rejectedSyncPromise:()=>s,resolvedSyncPromise:()=>i});var n,o=r(210);function i(e){return new a((t=>{t(e)}))}function s(e){return new a(((t,r)=>{r(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(n||(n={}));class a{constructor(e){this._state=n.PENDING,this._handlers=[],this._runExecutor(e)}then(e,t){return new a(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new a(((t,r)=>{let n,o;return this.then((t=>{o=!1,n=t,e&&e()}),(t=>{o=!0,n=t,e&&e()})).then((()=>{o?r(n):t(n)}))}))}_executeHandlers(){if(this._state===n.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}_runExecutor(e){const t=(e,t)=>{this._state===n.PENDING&&((0,o.isThenable)(t)?t.then(r,i):(this._state=e,this._value=t,this._executeHandlers()))},r=e=>{t(n.RESOLVED,e)},i=e=>{t(n.REJECTED,e)};try{e(r,i)}catch(e){i(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>c,ignoreNextOnError:()=>p,shouldIgnoreOnError:()=>l,wrap:()=>d});var n=r(203),o=r(208),i=r(199),s=r(215),a=r(223);const c=n.GLOBAL_OBJ;let u=0;function l(){return u>0}function p(){u++,setTimeout((()=>{u--}))}function d(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if((0,o.getOriginalFunction)(e))return e}catch(t){return e}const r=function(...r){try{const n=r.map((e=>d(e,t)));return e.apply(this,n)}catch(e){throw p(),(0,i.withScope)((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,s.addExceptionTypeValue)(e,void 0,void 0),(0,s.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),(0,a.captureException)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,o.markFunctionWrapped)(r,e),(0,o.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addEventProcessor:()=>C,captureCheckIn:()=>E,captureEvent:()=>h,captureException:()=>d,captureMessage:()=>f,captureSession:()=>P,close:()=>A,endSession:()=>R,flush:()=>I,isEnabled:()=>k,isInitialized:()=>T,lastEventId:()=>_,setContext:()=>m,setExtra:()=>g,setExtras:()=>y,setTag:()=>S,setTags:()=>v,setUser:()=>b,startSession:()=>x,withMonitor:()=>w});var n=r(199),o=r(224),i=r(207),s=r(210),a=r(212),c=r(215),u=r(214),l=r(203),p=r(225);function d(e,t){return(0,n.getCurrentScope)().captureException(e,(0,p.parseEventHintOrCaptureContext)(t))}function f(e,t){const r="string"==typeof t?t:void 0,o="string"!=typeof t?{captureContext:t}:void 0;return(0,n.getCurrentScope)().captureMessage(e,r,o)}function h(e,t){return(0,n.getCurrentScope)().captureEvent(e,t)}function m(e,t){(0,n.getIsolationScope)().setContext(e,t)}function y(e){(0,n.getIsolationScope)().setExtras(e)}function g(e,t){(0,n.getIsolationScope)().setExtra(e,t)}function v(e){(0,n.getIsolationScope)().setTags(e)}function S(e,t){(0,n.getIsolationScope)().setTag(e,t)}function b(e){(0,n.getIsolationScope)().setUser(e)}function _(){return(0,n.getIsolationScope)().lastEventId()}function E(e,t){const r=(0,n.getCurrentScope)(),i=(0,n.getClient)();if(i){if(i.captureCheckIn)return i.captureCheckIn(e,t,r);o.DEBUG_BUILD&&a.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else o.DEBUG_BUILD&&a.logger.warn("Cannot capture check-in. No client defined.");return(0,c.uuid4)()}function w(e,t,r){const o=E({monitorSlug:e,status:"in_progress"},r),i=(0,u.timestampInSeconds)();function a(t){E({monitorSlug:e,status:t,checkInId:o,duration:(0,u.timestampInSeconds)()-i})}return(0,n.withIsolationScope)((()=>{let e;try{e=t()}catch(e){throw a("error"),e}return(0,s.isThenable)(e)?Promise.resolve(e).then((()=>{a("ok")}),(e=>{throw a("error"),e})):a("ok"),e}))}async function I(e){const t=(0,n.getClient)();return t?t.flush(e):(o.DEBUG_BUILD&&a.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function A(e){const t=(0,n.getClient)();return t?t.close(e):(o.DEBUG_BUILD&&a.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function T(){return!!(0,n.getClient)()}function k(){const e=(0,n.getClient)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function C(e){(0,n.getIsolationScope)().addEventProcessor(e)}function x(e){const t=(0,n.getIsolationScope)(),r=(0,n.getCurrentScope)(),{userAgent:o}=l.GLOBAL_OBJ.navigator||{},s=(0,i.makeSession)({user:r.getUser()||t.getUser(),...o&&{userAgent:o},...e}),a=t.getSession();return"ok"===a?.status&&(0,i.updateSession)(a,{status:"exited"}),R(),t.setSession(s),s}function R(){const e=(0,n.getIsolationScope)(),t=(0,n.getCurrentScope)().getSession()||e.getSession();t&&(0,i.closeSession)(t),O(),e.setSession()}function O(){const e=(0,n.getIsolationScope)(),t=(0,n.getClient)(),r=e.getSession();r&&t&&t.captureSession(r)}function P(e=!1){e?R():O()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyClientOptions:()=>h,applyDebugIds:()=>m,applyDebugMeta:()=>y,parseEventHintOrCaptureContext:()=>g,prepareEvent:()=>f});var n=r(226),o=r(199),i=r(227),s=r(206),a=r(228),c=r(215),u=r(219),l=r(213),p=r(214),d=r(229);function f(e,t,r,n,a,l){const{normalizeDepth:f=3,normalizeMaxBreadth:g=1e3}=e,v={...t,event_id:t.event_id||r.event_id||(0,c.uuid4)(),timestamp:t.timestamp||(0,p.dateTimestampInSeconds)()},S=r.integrations||e.integrations.map((e=>e.name));h(v,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(v,S),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&m(v,e.stackParser);const b=function(e,t){if(!t)return e;const r=e?e.clone():new s.Scope;return r.update(t),r}(n,r.captureContext);r.mechanism&&(0,c.addExceptionMechanism)(v,r.mechanism);const _=a?a.getEventProcessors():[],E=(0,o.getGlobalScope)().getScopeData();if(l){const e=l.getScopeData();(0,d.mergeScopeData)(E,e)}if(b){const e=b.getScopeData();(0,d.mergeScopeData)(E,e)}const w=[...r.attachments||[],...E.attachments];w.length&&(r.attachments=w),(0,d.applyScopeDataToEvent)(v,E);const I=[..._,...E.eventProcessors];return(0,i.notifyEventProcessors)(I,v,r).then((e=>(e&&y(e),"number"==typeof f&&f>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,u.normalize)(e.data,t,r)}})))},...e.user&&{user:(0,u.normalize)(e.user,t,r)},...e.contexts&&{contexts:(0,u.normalize)(e.contexts,t,r)},...e.extra&&{extra:(0,u.normalize)(e.extra,t,r)}};e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,u.normalize)(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map((e=>({...e,...e.data&&{data:(0,u.normalize)(e.data,t,r)}}))));e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,u.normalize)(e.contexts.flags,3,r));return n}(e,f,g):e)))}function h(e,t){const{environment:r,release:o,dist:i,maxValueLength:s=250}=t;e.environment=e.environment||r||n.DEFAULT_ENVIRONMENT,!e.release&&o&&(e.release=o),!e.dist&&i&&(e.dist=i),e.message&&(e.message=(0,l.truncate)(e.message,s));const a=e.exception?.values?.[0];a?.value&&(a.value=(0,l.truncate)(a.value,s));const c=e.request;c?.url&&(c.url=(0,l.truncate)(c.url,s))}function m(e,t){const r=(0,a.getFilenameToDebugIdMap)(t);e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.filename&&(e.debug_id=r[e.filename])}))}))}function y(e){const t={};if(e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))})),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})}))}function g(e){if(e)return function(e){return e instanceof s.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>v.includes(e)))}(e)?{captureContext:e}:e}const v=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_ENVIRONMENT:()=>n});const n="production"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{notifyEventProcessors:()=>a});var n=r(224),o=r(210),i=r(212),s=r(221);function a(e,t,r,c=0){return new s.SyncPromise(((s,u)=>{const l=e[c];if(null===t||"function"!=typeof l)s(t);else{const p=l({...t},r);n.DEBUG_BUILD&&l.id&&null===p&&i.logger.log(`Event processor "${l.id}" dropped event`),(0,o.isThenable)(p)?p.then((t=>a(e,t,r,c+1).then(s))).then(null,u):a(e,p,r,c+1).then(s).then(null,u)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDebugImagesForResources:()=>c,getFilenameToDebugIdMap:()=>a});var n=r(203);let o,i,s;function a(e){const t=n.GLOBAL_OBJ._sentryDebugIds;if(!t)return{};const r=Object.keys(t);return s&&r.length===i||(i=r.length,s=r.reduce(((r,n)=>{o||(o={});const i=o[n];if(i)r[i[0]]=i[1];else{const i=e(n);for(let e=i.length-1;e>=0;e--){const s=i[e],a=s?.filename,c=t[n];if(a&&c){r[a]=c,o[n]=[a,c];break}}}return r}),{})),s}function c(e,t){const r=a(e);if(!r)return[];const n=[];for(const e of t)e&&r[e]&&n.push({type:"sourcemap",code_file:e,debug_id:r[e]});return n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyScopeDataToEvent:()=>a,mergeAndOverwriteScopeData:()=>u,mergeScopeData:()=>c});var n=r(230),o=r(208),i=r(217),s=r(234);function a(e,t){const{fingerprint:r,span:i,breadcrumbs:a,sdkProcessingMetadata:c}=t;!function(e,t){const{extra:r,tags:n,user:i,contexts:s,level:a,transactionName:c}=t,u=(0,o.dropUndefinedKeys)(r);Object.keys(u).length&&(e.extra={...u,...e.extra});const l=(0,o.dropUndefinedKeys)(n);Object.keys(l).length&&(e.tags={...l,...e.tags});const p=(0,o.dropUndefinedKeys)(i);Object.keys(p).length&&(e.user={...p,...e.user});const d=(0,o.dropUndefinedKeys)(s);Object.keys(d).length&&(e.contexts={...d,...e.contexts});a&&(e.level=a);c&&"transaction"!==e.type&&(e.transaction=c)}(e,t),i&&function(e,t){e.contexts={trace:(0,s.spanToTraceContext)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,n.getDynamicSamplingContextFromSpan)(t),...e.sdkProcessingMetadata};const r=(0,s.getRootSpan)(t),o=(0,s.spanToJSON)(r).description;o&&!e.transaction&&"transaction"===e.type&&(e.transaction=o)}(e,i),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,r),function(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,a),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,c)}function c(e,t){const{extra:r,tags:n,user:o,contexts:s,level:a,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:p,eventProcessors:d,attachments:f,propagationContext:h,transactionName:m,span:y}=t;u(e,"extra",r),u(e,"tags",n),u(e,"user",o),u(e,"contexts",s),e.sdkProcessingMetadata=(0,i.merge)(e.sdkProcessingMetadata,c,2),a&&(e.level=a),m&&(e.transactionName=m),y&&(e.span=y),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function u(e,t,r){e[t]=(0,i.merge)(e[t],r,1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{freezeDscOnSpan:()=>d,getDynamicSamplingContextFromClient:()=>f,getDynamicSamplingContextFromScope:()=>h,getDynamicSamplingContextFromSpan:()=>m,spanToBaggageHeader:()=>y});var n=r(226),o=r(199),i=r(231),s=r(232),a=r(208),c=r(233),u=r(234),l=r(236);const p="_frozenDsc";function d(e,t){const r=e;(0,a.addNonEnumerableProperty)(r,p,t)}function f(e,t){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},i=(0,a.dropUndefinedKeys)({environment:r.environment||n.DEFAULT_ENVIRONMENT,release:r.release,public_key:o,trace_id:e});return t.emit("createDsc",i),i}function h(e,t){const r=t.getPropagationContext();return r.dsc||f(r.traceId,e)}function m(e){const t=(0,o.getClient)();if(!t)return{};const r=(0,u.getRootSpan)(e),n=(0,u.spanToJSON)(r),a=n.data,d=r.spanContext().traceState,h=d?.get("sentry.sample_rate")??a[i.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];function m(e){return"number"!=typeof h&&"string"!=typeof h||(e.sample_rate=`${h}`),e}const y=r[p];if(y)return m(y);const g=d?.get("sentry.dsc"),v=g&&(0,s.baggageHeaderToDynamicSamplingContext)(g);if(v)return m(v);const S=f(e.spanContext().traceId,t),b=a[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],_=n.description;return"url"!==b&&_&&(S.transaction=_),(0,c.hasSpansEnabled)()&&(S.sampled=String((0,u.spanIsSampled)(r)),S.sample_rand=d?.get("sentry.sample_rand")??(0,l.getCapturedScopesOnSpan)(r).scope?.getPropagationContext().sampleRand.toString()),m(S),t.emit("createDsc",S,r),S}function y(e){const t=m(e);return(0,s.dynamicSamplingContextToSentryBaggageHeader)(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SEMANTIC_ATTRIBUTE_CACHE_HIT:()=>f,SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE:()=>m,SEMANTIC_ATTRIBUTE_CACHE_KEY:()=>h,SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME:()=>d,SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD:()=>y,SEMANTIC_ATTRIBUTE_PROFILE_ID:()=>p,SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME:()=>l,SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT:()=>c,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE:()=>u,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>o,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>n,SEMANTIC_ATTRIBUTE_URL_FULL:()=>g});const n="sentry.source",o="sentry.sample_rate",i="sentry.op",s="sentry.origin",a="sentry.idle_span_finish_reason",c="sentry.measurement_unit",u="sentry.measurement_value",l="sentry.custom_span_name",p="sentry.profile_id",d="sentry.exclusive_time",f="cache.hit",h="cache.key",m="cache.item_size",y="http.request.method",g="url.full"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_BAGGAGE_STRING_LENGTH:()=>c,SENTRY_BAGGAGE_KEY_PREFIX:()=>s,SENTRY_BAGGAGE_KEY_PREFIX_REGEX:()=>a,baggageHeaderToDynamicSamplingContext:()=>u,dynamicSamplingContextToSentryBaggageHeader:()=>l,objectToBaggageHeader:()=>f,parseBaggageHeader:()=>p});var n=r(211),o=r(210),i=r(212);const s="sentry-",a=/^sentry-/,c=8192;function u(e){const t=p(e);if(!t)return;const r=Object.entries(t).reduce(((e,[t,r])=>{if(t.match(a)){e[t.slice(s.length)]=r}return e}),{});return Object.keys(r).length>0?r:void 0}function l(e){if(!e)return;return f(Object.entries(e).reduce(((e,[t,r])=>(r&&(e[`${s}${t}`]=r),e)),{}))}function p(e){if(e&&((0,o.isString)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const r=d(t);return Object.entries(r).forEach((([t,r])=>{e[t]=r})),e}),{}):d(e)}function d(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,r])=>(t&&r&&(e[t]=r),e)),{})}function f(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,r],o)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,a=0===o?s:`${e},${s}`;return a.length>c?(n.DEBUG_BUILD&&i.logger.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a}),"")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasSpansEnabled:()=>o,hasTracingEnabled:()=>i});var n=r(199);function o(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||(0,n.getClient)()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}const i=o},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACE_FLAG_NONE:()=>m,TRACE_FLAG_SAMPLED:()=>y,addChildSpanToSpan:()=>x,convertSpanLinksForEnvelope:()=>_,getActiveSpan:()=>D,getRootSpan:()=>P,getSpanDescendants:()=>O,getStatusMessage:()=>T,removeChildSpanFromSpan:()=>R,showSpanDropWarning:()=>N,spanIsSampled:()=>A,spanTimeInputToSeconds:()=>E,spanToJSON:()=>I,spanToTraceContext:()=>S,spanToTraceHeader:()=>b,spanToTransactionTraceContext:()=>v,updateSpanName:()=>M});var n=r(200),o=r(201),i=r(199),s=r(231),a=r(235),c=r(236),u=r(212),l=r(208),p=r(216),d=r(214),f=r(237),h=r(218);const m=0,y=1;let g=!1;function v(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:o,parent_span_id:i,status:s,origin:a,links:c}=I(e);return(0,l.dropUndefinedKeys)({parent_span_id:i,span_id:t,trace_id:r,data:n,op:o,status:s,origin:a,links:c})}function S(e){const{spanId:t,traceId:r,isRemote:n}=e.spanContext(),o=n?t:I(e).parent_span_id,i=(0,c.getCapturedScopesOnSpan)(e).scope,s=n?i?.getPropagationContext().propagationSpanId||(0,p.generateSpanId)():t;return(0,l.dropUndefinedKeys)({parent_span_id:o,span_id:s,trace_id:r})}function b(e){const{traceId:t,spanId:r}=e.spanContext(),n=A(e);return(0,f.generateSentryTraceHeader)(t,r,n)}function _(e){return e&&e.length>0?e.map((({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:o})=>({span_id:e,trace_id:t,sampled:r===y,attributes:o,...n}))):void 0}function E(e){return"number"==typeof e?w(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?w(e.getTime()):(0,d.timestampInSeconds)()}function w(e){return e>9999999999?e/1e3:e}function I(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:n,startTime:o,name:i,endTime:a,parentSpanId:c,status:u,links:p}=e;return(0,l.dropUndefinedKeys)({span_id:t,trace_id:r,data:n,description:i,parent_span_id:c,start_timestamp:E(o),timestamp:E(a)||void 0,status:T(u),op:n[s.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:_(p)})}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function A(e){const{traceFlags:t}=e.spanContext();return t===y}function T(e){if(e&&e.code!==a.SPAN_STATUS_UNSET)return e.code===a.SPAN_STATUS_OK?"ok":e.message||"unknown_error"}const k="_sentryChildSpans",C="_sentryRootSpan";function x(e,t){const r=e[C]||e;(0,l.addNonEnumerableProperty)(t,C,r),e[k]?e[k].add(t):(0,l.addNonEnumerableProperty)(e,k,new Set([t]))}function R(e,t){e[k]&&e[k].delete(t)}function O(e){const t=new Set;return function e(r){if(!t.has(r)&&A(r)){t.add(r);const n=r[k]?Array.from(r[k]):[];for(const t of n)e(t)}}(e),Array.from(t)}function P(e){return e[C]||e}function D(){const e=(0,o.getMainCarrier)(),t=(0,n.getAsyncContextStrategy)(e);return t.getActiveSpan?t.getActiveSpan():(0,h._getSpanForScope)((0,i.getCurrentScope)())}function N(){g||((0,u.consoleSandbox)((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),g=!0)}function M(e,t){e.updateName(t),e.setAttributes({[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:t})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SPAN_STATUS_ERROR:()=>i,SPAN_STATUS_OK:()=>o,SPAN_STATUS_UNSET:()=>n,getSpanStatusFromHttpCode:()=>s,setHttpStatus:()=>a});const n=0,o=1,i=2;function s(e){if(e<400&&e>=100)return{code:o};if(e>=400&&e<500)switch(e){case 401:return{code:i,message:"unauthenticated"};case 403:return{code:i,message:"permission_denied"};case 404:return{code:i,message:"not_found"};case 409:return{code:i,message:"already_exists"};case 413:return{code:i,message:"failed_precondition"};case 429:return{code:i,message:"resource_exhausted"};case 499:return{code:i,message:"cancelled"};default:return{code:i,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:i,message:"unimplemented"};case 503:return{code:i,message:"unavailable"};case 504:return{code:i,message:"deadline_exceeded"};default:return{code:i,message:"internal_error"}}return{code:i,message:"unknown_error"}}function a(e,t){e.setAttribute("http.response.status_code",t);const r=s(t);"unknown_error"!==r.message&&e.setStatus(r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getCapturedScopesOnSpan:()=>a,setCapturedScopesOnSpan:()=>s});var n=r(208);const o="_sentryScope",i="_sentryIsolationScope";function s(e,t,r){e&&((0,n.addNonEnumerableProperty)(e,i,r),(0,n.addNonEnumerableProperty)(e,o,t))}function a(e){return{scope:e[o],isolationScope:e[i]}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACEPARENT_REGEXP:()=>s,extractTraceparentData:()=>a,generateSentryTraceHeader:()=>u,propagationContextFromHeaders:()=>c});var n=r(238),o=r(232),i=r(216);const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){if(!e)return;const t=e.match(s);if(!t)return;let r;return"1"===t[3]?r=!0:"0"===t[3]&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function c(e,t){const r=a(e),s=(0,o.baggageHeaderToDynamicSamplingContext)(t);if(!r?.traceId)return{traceId:(0,i.generateTraceId)(),sampleRand:Math.random()};const c=function(e,t){const r=(0,n.parseSampleRate)(t?.sample_rand);if(void 0!==r)return r;const o=(0,n.parseSampleRate)(t?.sample_rate);return o&&void 0!==e?.parentSampled?e.parentSampled?Math.random()*o:o+Math.random()*(1-o):Math.random()}(r,s);s&&(s.sample_rand=c.toString());const{traceId:u,parentSpanId:l,parentSampled:p}=r;return{traceId:u,parentSpanId:l,sampled:p,dsc:s||{},sampleRand:c}}function u(e=(0,i.generateTraceId)(),t=(0,i.generateSpanId)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}},(e,t,r)=>{"use strict";function n(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}r.r(t),r.d(t,{parseSampleRate:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseClient:()=>C,Client:()=>k});var n=r(240),o=r(226),i=r(199),s=r(224),a=r(242),c=r(244),u=r(207),l=r(230),p=r(245),d=r(241),f=r(243),h=r(246),m=r(210),y=r(212),g=r(215),v=r(221),S=r(247),b=r(217),_=r(238),E=r(225),w=r(234),I=r(248);const A="Not capturing exception because it's already been captured.",T="Discarded session because of missing or non-string release";class k{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,d.makeDsn)(e.dsn):s.DEBUG_BUILD&&y.logger.warn("No DSN provided, client will not send events."),this._dsn){const t=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){const n=(0,g.uuid4)();if((0,g.checkOrSetAlreadyCaught)(e))return s.DEBUG_BUILD&&y.logger.log(A),n;const o={event_id:n,...t};return this._process(this.eventFromException(e,o).then((e=>this._captureEvent(e,o,r)))),o.event_id}captureMessage(e,t,r,n){const o={event_id:(0,g.uuid4)(),...r},i=(0,m.isParameterizedString)(e)?e:String(e),s=(0,m.isPrimitive)(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(s.then((e=>this._captureEvent(e,o,n)))),o.event_id}captureEvent(e,t,r){const n=(0,g.uuid4)();if(t?.originalException&&(0,g.checkOrSetAlreadyCaught)(t.originalException))return s.DEBUG_BUILD&&y.logger.log(A),n;const o={event_id:n,...t},i=e.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,a||r,c)),o.event_id}captureSession(e){this.sendSession(e),(0,u.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e))))):(0,v.resolvedSyncPromise)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];(0,c.setupIntegration)(this,e,this._integrations),t||(0,c.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=(0,a.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])r=(0,f.addItemToEnvelope)(r,(0,f.createAttachmentEnvelopeItem)(e));const n=this.sendEnvelope(r);n&&n.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const{release:t,environment:r=o.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const n=e.attrs||{};if(!n.release&&!t)return void(s.DEBUG_BUILD&&y.logger.warn(T));n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t)return void(s.DEBUG_BUILD&&y.logger.warn(T));e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);const n=(0,a.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){const n=`${e}:${t}`;s.DEBUG_BUILD&&y.logger.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){const r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(s.DEBUG_BUILD&&y.logger.error("Error while sending envelope:",e),e))):(s.DEBUG_BUILD&&y.logger.error("Transport disabled"),(0,v.resolvedSyncPromise)({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,c.setupIntegrations)(this,e),(0,c.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1;const o=t.exception?.values;if(o){n=!0;for(const e of o){const t=e.mechanism;if(!1===t?.handled){r=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&r)&&((0,u.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new v.SyncPromise((t=>{let r=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){const o=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s?.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,E.prepareEvent)(o,e,t,r,this,n).then((e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:(0,i.getTraceContextFromScope)(r),...e.contexts};const n=(0,l.getDynamicSamplingContextFromScope)(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:n,...e.sdkProcessingMetadata},e}))}_captureEvent(e,t={},r=(0,i.getCurrentScope)(),n=(0,i.getIsolationScope)()){return s.DEBUG_BUILD&&x(e)&&y.logger.log(`Captured error event \`${(0,S.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then((e=>e.event_id),(e=>{s.DEBUG_BUILD&&(e instanceof h.SentryError&&"log"===e.logLevel?y.logger.log(e.message):y.logger.warn(e))}))}_processEvent(e,t,r,n){const o=this.getOptions(),{sampleRate:i}=o,s=R(e),a=x(e),c=e.type||"error",u=`before send for type \`${c}\``,l=void 0===i?void 0:(0,_.parseSampleRate)(i);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),(0,v.rejectedSyncPromise)(new h.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const p="replay_event"===c?"replay":c;return this._prepareEvent(e,t,r,n).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",p),new h.SentryError("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return e;const r=function(e,t,r,n){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;let a=r;if(x(a)&&o)return o(a,n);if(R(a)){if(s){const e=s((0,I.convertTransactionEventToSpanJson)(a));if(e?a=(0,b.merge)(r,(0,I.convertSpanJsonToTransactionEvent)(e)):(0,w.showSpanDropWarning)(),a.spans){const e=[];for(const t of a.spans){const r=s(t);r?e.push(r):((0,w.showSpanDropWarning)(),e.push(t))}a.spans=e}}if(i){if(a.spans){const e=a.spans.length;a.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(a,n)}}return a}(0,o,e,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if((0,m.isThenable)(e))return e.then((e=>{if(!(0,m.isPlainObject)(e)&&null!==e)throw new h.SentryError(r);return e}),(e=>{throw new h.SentryError(`${t} rejected with ${e}`)}));if(!(0,m.isPlainObject)(e)&&null!==e)throw new h.SentryError(r);return e}(r,u)})).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",p),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new h.SentryError(`${u} returned \`null\`, will not send event.`,"log")}const i=r.getSession()||n.getSession();if(a&&i&&this._updateSessionFromEvent(i,o),s){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const c=o.transaction_info;if(s&&c&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...c,source:e}}return this.sendEvent(o,t),o})).then(null,(e=>{if(e instanceof h.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new h.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[r,n]=e.split(":");return{reason:r,category:n,quantity:t}}))}_flushOutcomes(){s.DEBUG_BUILD&&y.logger.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(s.DEBUG_BUILD&&y.logger.log("No outcomes to send"));if(!this._dsn)return void(s.DEBUG_BUILD&&y.logger.log("No dsn provided, will not send outcomes"));s.DEBUG_BUILD&&y.logger.log("Sending outcomes:",e);const t=(0,p.createClientReportEnvelope)(e,this._options.tunnel&&(0,d.dsnToString)(this._dsn));this.sendEnvelope(t)}}const C=k;function x(e){return void 0===e.type}function R(e){return"transaction"===e.type}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEnvelopeEndpointWithUrlEncodedAuth:()=>s,getReportDialogEndpoint:()=>a});var n=r(241);const o="7";function i(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function s(e,t,r){return t||`${function(e){return`${i(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const r={sentry_version:o};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}function a(e,t){const r=(0,n.makeDsn)(e);if(!r)return"";const o=`${i(r)}embed/error-page/`;let s=`dsn=${(0,n.dsnToString)(r)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(s+=`&name=${encodeURIComponent(e.name)}`),e.email&&(s+=`&email=${encodeURIComponent(e.email)}`)}else s+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${o}?${s}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dsnFromString:()=>a,dsnToString:()=>s,makeDsn:()=>u});var n=r(211),o=r(212);const i=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(e,t=!1){const{host:r,path:n,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${r}${i?`:${i}`:""}/${n?`${n}/`:n}${s}`}function a(e){const t=i.exec(e);if(!t)return void(0,o.consoleSandbox)((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[r,n,s="",a="",u="",l=""]=t.slice(1);let p="",d=l;const f=d.split("/");if(f.length>1&&(p=f.slice(0,-1).join("/"),d=f.pop()),d){const e=d.match(/^\d+/);e&&(d=e[0])}return c({host:a,pass:s,path:p,projectId:d,port:u,protocol:r,publicKey:n})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t="string"==typeof e?a(e):c(e);if(t&&function(e){if(!n.DEBUG_BUILD)return!0;const{port:t,projectId:r,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(o.logger.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(o.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(o.logger.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(o.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createEventEnvelope:()=>c,createSessionEnvelope:()=>a,createSpanEnvelope:()=>u});var n=r(230),o=r(241),i=r(243),s=r(234);function a(e,t,r,n){const s=(0,i.getSdkMetadataForEnvelopeHeader)(r),a={sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!n&&t&&{dsn:(0,o.dsnToString)(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,i.createEnvelope)(a,[c])}function c(e,t,r,n){const o=(0,i.getSdkMetadataForEnvelopeHeader)(r),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,r?.sdk);const a=(0,i.createEventEnvelopeHeaders)(e,o,n,t);delete e.sdkProcessingMetadata;const c=[{type:s},e];return(0,i.createEnvelope)(a,[c])}function u(e,t){const r=(0,n.getDynamicSamplingContextFromSpan)(e[0]),a=t?.getDsn(),c=t?.getOptions().tunnel,u={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(r)&&{trace:r},...!!c&&a&&{dsn:(0,o.dsnToString)(a)}},l=t?.getOptions().beforeSendSpan,p=l?e=>{const t=(0,s.spanToJSON)(e),r=l(t);return r||((0,s.showSpanDropWarning)(),t)}:s.spanToJSON,d=[];for(const t of e){const e=p(t);e&&d.push((0,i.createSpanEnvelopeItem)(e))}return(0,i.createEnvelope)(u,d)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addItemToEnvelope:()=>u,createAttachmentEnvelopeItem:()=>y,createEnvelope:()=>c,createEventEnvelopeHeaders:()=>b,createSpanEnvelopeItem:()=>m,envelopeContainsItemType:()=>p,envelopeItemTypeToDataCategory:()=>v,forEachEnvelopeItem:()=>l,getSdkMetadataForEnvelopeHeader:()=>S,parseEnvelope:()=>h,serializeEnvelope:()=>f});var n=r(201),o=r(241),i=r(219),s=r(208),a=r(203);function c(e,t=[]){return[e,t]}function u(e,t){const[r,n]=e;return[r,[...n,t]]}function l(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function p(e,t){return l(e,((e,r)=>t.includes(r)))}function d(e){const t=(0,n.getSentryCarrier)(a.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function f(e){const[t,r]=e;let n=JSON.stringify(t);function o(e){"string"==typeof n?n="string"==typeof e?n+e:[d(n),e]:n.push("string"==typeof e?d(e):e)}for(const e of r){const[t,r]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)o(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,i.normalize)(r))}o(e)}}return"string"==typeof n?n:function(e){const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}(n)}function h(e){let t="string"==typeof e?d(e):e;function r(e){const r=t.subarray(0,e);return t=t.subarray(e+1),r}function o(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){const t=(0,n.getSentryCarrier)(a.GLOBAL_OBJ);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(r(e)))}const i=o(),s=[];for(;t.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;s.push([e,t?r(t):o()])}return[i,s]}function m(e){return[{type:"span"},e]}function y(e){const t="string"==typeof e.data?d(e.data):e.data;return[(0,s.dropUndefinedKeys)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const g={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",otel_log:"log_item"};function v(e){return g[e]}function S(e){if(!e?.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function b(e,t,r,n){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,o.dsnToString)(n)},...i&&{trace:(0,s.dropUndefinedKeys)({...i})}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addIntegration:()=>p,afterSetupIntegrations:()=>u,defineIntegration:()=>d,getIntegrationsToSetup:()=>a,installedIntegrations:()=>s,setupIntegration:()=>l,setupIntegrations:()=>c});var n=r(199),o=r(224),i=r(212);const s=[];function a(e){const t=e.defaultIntegrations||[],r=e.integrations;let n;if(t.forEach((e=>{e.isDefaultInstance=!0})),Array.isArray(r))n=[...t,...r];else if("function"==typeof r){const e=r(t);n=Array.isArray(e)?e:[e]}else n=t;return function(e){const t={};return e.forEach((e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.values(t)}(n)}function c(e,t){const r={};return t.forEach((t=>{t&&l(e,t,r)})),r}function u(e,t){for(const r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function l(e,t,r){if(r[t.name])o.DEBUG_BUILD&&i.logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,-1===s.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),s.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,n)=>r(t,n,e)))}if("function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign(((t,n)=>r(t,n,e)),{id:t.name});e.addEventProcessor(n)}o.DEBUG_BUILD&&i.logger.log(`Integration installed: ${t.name}`)}}function p(e){const t=(0,n.getClient)();t?t.addIntegration(e):o.DEBUG_BUILD&&i.logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function d(e){return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createClientReportEnvelope:()=>i});var n=r(243),o=r(214);function i(e,t,r){const i=[{type:"client_report"},{timestamp:r||(0,o.dateTimestampInSeconds)(),discarded_events:e}];return(0,n.createEnvelope)(t?{dsn:t}:{},[i])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryError:()=>n});class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}},(e,t,r)=>{"use strict";function n(e){const t=[];e.message&&t.push(e.message);try{const r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch(e){}return t}r.r(t),r.d(t,{getPossibleEventMessages:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{convertSpanJsonToTransactionEvent:()=>s,convertTransactionEventToSpanJson:()=>i});var n=r(231),o=r(208);function i(e){const{trace_id:t,parent_span_id:r,span_id:i,status:s,origin:a,data:c,op:u}=e.contexts?.trace??{};return(0,o.dropUndefinedKeys)({data:c??{},description:e.transaction,op:u,parent_span_id:r,span_id:i??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:c?.[n.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:c?.[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0})}function s(e){const t={type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[n.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements};return(0,o.dropUndefinedKeys)(t)}},(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}r.r(t),r.d(t,{getSDKSource:()=>o,isBrowserBundle:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applySdkMetadata:()=>o});var n=r(202);function o(e,t,r=[t],o="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map((e=>({name:`${o}:@sentry/${e}`,version:n.SDK_VERSION}))),version:n.SDK_VERSION}),e._metadata=i}},(e,t,r)=>{"use strict";function n(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}function o(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}r.r(t),r.d(t,{addAutoIpAddressToSession:()=>o,addAutoIpAddressToUser:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{breadcrumbsIntegration:()=>_});var n=r(256),o=r(258),i=r(261),s=r(254),a=r(259),c=r(244),u=r(199),l=r(262),p=r(215),d=r(212),f=r(209),h=r(263),m=r(213),y=r(264),g=r(265),v=r(252),S=r(222);const b=1024,_=(0,c.defineIntegration)(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&(0,s.addConsoleInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:(0,h.severityLevelFromString)(t.level),message:(0,m.safeJoin)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,m.safeJoin)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,l.addBreadcrumb)(r,{input:t.args,level:t.level})}}(e)),t.dom&&(0,n.addClickKeypressInstrumentationHandler)(function(e,t){return function(r){if((0,u.getClient)()!==e)return;let n,o,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>b&&(v.DEBUG_BUILD&&d.logger.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=b),"string"==typeof i&&(i=[i]);try{const e=r.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;n=(0,f.htmlTreeAsString)(t,{keyAttrs:i,maxStringLength:s}),o=(0,f.getComponentName)(t)}catch(e){n="<unknown>"}if(0===n.length)return;const a={category:`ui.${r.name}`,message:n};o&&(a.data={"ui.component_name":o}),(0,l.addBreadcrumb)(a,{event:r.event,name:r.name,global:r.global})}}(e,t.dom)),t.xhr&&(0,o.addXhrInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[o.SENTRY_XHR_DATA_KEY];if(!r||!n||!i)return;const{method:s,url:a,status_code:c,body:p}=i,d={method:s,url:a,status_code:c},f={xhr:t.xhr,input:p,startTimestamp:r,endTimestamp:n},h={category:"xhr",data:d,type:"http",level:(0,y.getBreadcrumbLogLevelFromHttpStatusCode)(c)};e.emit("beforeOutgoingRequestBreadcrumb",h,f),(0,l.addBreadcrumb)(h,f)}}(e)),t.fetch&&(0,a.addFetchInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const o=t.fetchData,i={data:t.error,input:t.args,startTimestamp:r,endTimestamp:n},s={category:"fetch",data:o,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,i),(0,l.addBreadcrumb)(s,i)}else{const o=t.response,i={...t.fetchData,status_code:o?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const s={input:t.args,response:o,startTimestamp:r,endTimestamp:n},a={category:"fetch",data:i,type:"http",level:(0,y.getBreadcrumbLogLevelFromHttpStatusCode)(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,s),(0,l.addBreadcrumb)(a,s)}}}(e)),t.history&&(0,i.addHistoryInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;let r=t.from,n=t.to;const o=(0,g.parseUrl)(S.WINDOW.location.href);let i=r?(0,g.parseUrl)(r):void 0;const s=(0,g.parseUrl)(n);i?.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),(0,l.addBreadcrumb)({category:"navigation",data:{from:r,to:n}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,u.getClient)()===e&&(0,l.addBreadcrumb)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,p.getEventDescription)(t)},{event:t})}}(e))}}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addConsoleInstrumentationHandler:()=>a});var n=r(212),o=r(208),i=r(203),s=r(255);function a(e){const t="console";(0,s.addHandler)(t,e),(0,s.maybeInstrument)(t,c)}function c(){"console"in i.GLOBAL_OBJ&&n.CONSOLE_LEVELS.forEach((function(e){e in i.GLOBAL_OBJ.console&&(0,o.fill)(i.GLOBAL_OBJ.console,e,(function(t){return n.originalConsoleMethods[e]=t,function(...t){const r={args:t,level:e};(0,s.triggerHandlers)("console",r);const o=n.originalConsoleMethods[e];o?.apply(i.GLOBAL_OBJ.console,t)}}))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHandler:()=>c,maybeInstrument:()=>l,resetInstrumentationHandlers:()=>u,triggerHandlers:()=>p});var n=r(211),o=r(212),i=r(220);const s={},a={};function c(e,t){s[e]=s[e]||[],s[e].push(t)}function u(){Object.keys(s).forEach((e=>{s[e]=void 0}))}function l(e,t){if(!a[e]){a[e]=!0;try{t()}catch(t){n.DEBUG_BUILD&&o.logger.error(`Error while instrumenting ${e}`,t)}}}function p(e,t){const r=e&&s[e];if(r)for(const s of r)try{s(t)}catch(t){n.DEBUG_BUILD&&o.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.getFunctionName)(s)}\nError:`,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClickKeypressInstrumentationHandler:()=>p,instrumentDOM:()=>d});var n=r(255),o=r(208),i=r(215),s=r(257);const a=1e3;let c,u,l;function p(e){(0,n.addHandler)("dom",e),(0,n.maybeInstrument)("dom",d)}function d(){if(!s.WINDOW.document)return;const e=n.triggerHandlers.bind(null,"dom"),t=f(e,!0);s.WINDOW.document.addEventListener("click",t,!1),s.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const r=s.WINDOW,n=r[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,o.fill)(n,"addEventListener",(function(t){return function(r,n,o){if("click"===r||"keypress"==r)try{const n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=n[r]=n[r]||{refCount:0};if(!i.handler){const n=f(e);i.handler=n,t.call(this,r,n,o)}i.refCount++}catch(e){}return t.call(this,r,n,o)}})),(0,o.fill)(n,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this.__sentry_instrumentation_handlers__||{},o=r[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,n),o.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}})))}))}function f(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=function(e){try{return e.target}catch(e){return null}}(r);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,n))return;(0,o.addNonEnumerableProperty)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,o.addNonEnumerableProperty)(n,"_sentryId",(0,i.uuid4)());const p="keypress"===r.type?"input":r.type;if(!function(e){if(e.type!==u)return!1;try{if(!e.target||e.target._sentryId!==l)return!1}catch(e){}return!0}(r)){e({event:r,name:p,global:t}),u=r.type,l=n?n._sentryId:void 0}clearTimeout(c),c=s.WINDOW.setTimeout((()=>{l=void 0,u=void 0}),a)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>n});const n=r(203).GLOBAL_OBJ},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_XHR_DATA_KEY:()=>a,addXhrInstrumentationHandler:()=>c,instrumentXHR:()=>u});var n=r(255),o=r(214),i=r(210),s=r(257);const a="__sentry_xhr_v3__";function c(e){(0,n.addHandler)("xhr",e),(0,n.maybeInstrument)("xhr",u)}function u(){if(!s.WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){const s=new Error,c=1e3*(0,o.timestampInSeconds)(),u=(0,i.isString)(r[0])?r[0].toUpperCase():void 0,l=function(e){if((0,i.isString)(e))return e;try{return e.toString()}catch{}return}(r[1]);if(!u||!l)return e.apply(t,r);t[a]={method:u,url:l,request_headers:{}},"POST"===u&&l.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const p=()=>{const e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}const r={endTimestamp:1e3*(0,o.timestampInSeconds)(),startTimestamp:c,xhr:t,virtualError:s};(0,n.triggerHandlers)("xhr",r)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(p(),e.apply(t,r))}):t.addEventListener("readystatechange",p),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[n,o]=r,s=t[a];return s&&(0,i.isString)(n)&&(0,i.isString)(o)&&(s.request_headers[n.toLowerCase()]=o),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const i=t[a];if(!i)return e.apply(t,r);void 0!==r[0]&&(i.body=r[0]);const s={startTimestamp:1e3*(0,o.timestampInSeconds)(),xhr:t};return(0,n.triggerHandlers)("xhr",s),e.apply(t,r)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addFetchEndInstrumentationHandler:()=>l,addFetchInstrumentationHandler:()=>u,parseFetchArgs:()=>m});var n=r(210),o=r(208),i=r(260),s=r(214),a=r(203),c=r(255);function u(e,t){const r="fetch";(0,c.addHandler)(r,e),(0,c.maybeInstrument)(r,(()=>p(void 0,t)))}function l(e){const t="fetch-body-resolved";(0,c.addHandler)(t,e),(0,c.maybeInstrument)(t,(()=>p(d)))}function p(e,t=!1){t&&!(0,i.supportsNativeFetch)()||(0,o.fill)(a.GLOBAL_OBJ,"fetch",(function(t){return function(...r){const i=new Error,{method:u,url:l}=m(r),p={args:r,fetchData:{method:u,url:l},startTimestamp:1e3*(0,s.timestampInSeconds)(),virtualError:i};return e||(0,c.triggerHandlers)("fetch",{...p}),t.apply(a.GLOBAL_OBJ,r).then((async t=>(e?e(t):(0,c.triggerHandlers)("fetch",{...p,endTimestamp:1e3*(0,s.timestampInSeconds)(),response:t}),t)),(e=>{throw(0,c.triggerHandlers)("fetch",{...p,endTimestamp:1e3*(0,s.timestampInSeconds)(),error:e}),(0,n.isError)(e)&&void 0===e.stack&&(e.stack=i.stack,(0,o.addNonEnumerableProperty)(e,"framesToPop",1)),e}))}}))}function d(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const r=e.body,n=r.getReader(),o=setTimeout((()=>{r.cancel().then(null,(()=>{}))}),9e4);let i=!0;for(;i;){let e;try{e=setTimeout((()=>{r.cancel().then(null,(()=>{}))}),5e3);const{done:o}=await n.read();clearTimeout(e),o&&(t(),i=!1)}catch(e){i=!1}finally{clearTimeout(e)}}clearTimeout(o),n.releaseLock(),r.cancel().then(null,(()=>{}))}}(t,(()=>{(0,c.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,s.timestampInSeconds)(),response:e})}))}function f(e,t){return!!e&&"object"==typeof e&&!!e[t]}function h(e){return"string"==typeof e?e:e?f(e,"url")?e.url:e.toString?e.toString():"":""}function m(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:h(t),method:f(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:h(t),method:f(t,"method")?String(t.method).toUpperCase():"GET"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNativeFunction:()=>p,supportsDOMError:()=>a,supportsDOMException:()=>c,supportsErrorEvent:()=>s,supportsFetch:()=>l,supportsHistory:()=>u,supportsNativeFetch:()=>d,supportsReferrerPolicy:()=>h,supportsReportingObserver:()=>f});var n=r(211),o=r(212);const i=r(203).GLOBAL_OBJ;function s(){try{return new ErrorEvent(""),!0}catch(e){return!1}}function a(){try{return new DOMError(""),!0}catch(e){return!1}}function c(){try{return new DOMException(""),!0}catch(e){return!1}}function u(){return"history"in i&&!!i.history}function l(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function p(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function d(){if("string"==typeof EdgeRuntime)return!0;if(!l())return!1;if(p(i.fetch))return!0;let e=!1;const t=i.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=p(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){n.DEBUG_BUILD&&o.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function f(){return"ReportingObserver"in i}function h(){if(!l())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHistoryInstrumentationHandler:()=>c,instrumentHistory:()=>u});var n=r(255),o=r(260),i=r(208),s=r(257);let a;function c(e){const t="history";(0,n.addHandler)(t,e),(0,n.maybeInstrument)(t,u)}function u(){function e(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const o=a,i=String(r);if(a=i,o===i)return e.apply(this,t);const s={from:o,to:i};(0,n.triggerHandlers)("history",s)}return e.apply(this,t)}}s.WINDOW.addEventListener("popstate",(()=>{const e=s.WINDOW.location.href,t=a;if(a=e,t===e)return;const r={from:t,to:e};(0,n.triggerHandlers)("history",r)})),(0,o.supportsHistory)()&&((0,i.fill)(s.WINDOW.history,"pushState",e),(0,i.fill)(s.WINDOW.history,"replaceState",e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addBreadcrumb:()=>a});var n=r(199),o=r(212),i=r(214);const s=100;function a(e,t){const r=(0,n.getClient)(),a=(0,n.getIsolationScope)();if(!r)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=s}=r.getOptions();if(u<=0)return;const l={timestamp:(0,i.dateTimestampInSeconds)(),...e},p=c?(0,o.consoleSandbox)((()=>c(l,t))):l;null!==p&&(r.emit&&r.emit("beforeAddBreadcrumb",p,t),a.addBreadcrumb(p,u))}},(e,t,r)=>{"use strict";function n(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}r.r(t),r.d(t,{severityLevelFromString:()=>n})},(e,t,r)=>{"use strict";function n(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}r.r(t),r.d(t,{getBreadcrumbLogLevelFromHttpStatusCode:()=>n})},(e,t,r)=>{"use strict";function n(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function o(e){return e.split(/[?#]/,1)[0]}function i(e){const{protocol:t,host:r,path:n}=e;return`${t?`${t}://`:""}${r?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`}r.r(t),r.d(t,{getSanitizedUrlString:()=>i,parseUrl:()=>n,stripUrlQueryAndFragment:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserApiErrorsIntegration:()=>c});var n=r(208),o=r(244),i=r(220),s=r(222);const a=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],c=(0,o.defineIntegration)(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,n.fill)(s.WINDOW,"setTimeout",u),t.setInterval&&(0,n.fill)(s.WINDOW,"setInterval",u),t.requestAnimationFrame&&(0,n.fill)(s.WINDOW,"requestAnimationFrame",l),t.XMLHttpRequest&&"XMLHttpRequest"in s.WINDOW&&(0,n.fill)(XMLHttpRequest.prototype,"send",p);const e=t.eventTarget;if(e){(Array.isArray(e)?e:a).forEach(d)}}}}));function u(e){return function(...t){const r=t[0];return t[0]=(0,s.wrap)(r,{mechanism:{data:{function:(0,i.getFunctionName)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function l(e){return function(t){return e.apply(this,[(0,s.wrap)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,i.getFunctionName)(e)},handled:!1,type:"instrument"}})])}}function p(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in r&&"function"==typeof r[e]&&(0,n.fill)(r,e,(function(t){const r={mechanism:{data:{function:e,handler:(0,i.getFunctionName)(t)},handled:!1,type:"instrument"}},o=(0,n.getOriginalFunction)(t);return o&&(r.mechanism.data.handler=(0,i.getFunctionName)(o)),(0,s.wrap)(t,r)}))})),e.apply(this,t)}}function d(e){const t=s.WINDOW,r=t[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,n.fill)(r,"addEventListener",(function(t){return function(r,n,o){try{"function"==typeof n.handleEvent&&(n.handleEvent=(0,s.wrap)(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,i.getFunctionName)(n),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[r,(0,s.wrap)(n,{mechanism:{data:{function:"addEventListener",handler:(0,i.getFunctionName)(n),target:e},handled:!1,type:"instrument"}}),o])}})),(0,n.fill)(r,"removeEventListener",(function(e){return function(t,r,n){try{const o=r.__sentry_wrapped__;o&&e.call(this,t,o,n)}catch(e){}return e.call(this,t,r,n)}})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserSessionIntegration:()=>u});var n=r(261),o=r(244),i=r(212),s=r(223),a=r(252),c=r(222);const u=(0,o.defineIntegration)((()=>({name:"BrowserSession",setupOnce(){void 0!==c.WINDOW.document?((0,s.startSession)({ignoreDuration:!0}),(0,s.captureSession)(),(0,n.addHistoryInstrumentationHandler)((({from:e,to:t})=>{void 0!==e&&e!==t&&((0,s.startSession)({ignoreDuration:!0}),(0,s.captureSession)())}))):a.DEBUG_BUILD&&i.logger.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}})))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{globalHandlersIntegration:()=>m});var n=r(244),o=r(269),i=r(199),s=r(223),a=r(270),c=r(210),u=r(209),l=r(220),p=r(212),d=r(252),f=r(198),h=r(222);const m=(0,n.defineIntegration)(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){(0,o.addGlobalErrorInstrumentationHandler)((t=>{const{stackParser:r,attachStacktrace:n}=g();if((0,i.getClient)()!==e||(0,h.shouldIgnoreOnError)())return;const{msg:o,url:a,line:p,column:d,error:m}=t,y=function(e,t,r,n){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},p=a.frames=a.frames||[],d=n,f=r,h=(0,c.isString)(t)&&t.length>0?t:(0,u.getLocationHref)();0===p.length&&p.push({colno:d,filename:h,function:l.UNKNOWN_FUNCTION,in_app:!0,lineno:f});return e}((0,f.eventFromUnknownInput)(r,m||o,void 0,n,!1),a,p,d);y.level="error",(0,s.captureEvent)(y,{originalException:m,mechanism:{handled:!1,type:"onerror"}})}))}(e),y("onerror")),t.onunhandledrejection&&(!function(e){(0,a.addGlobalUnhandledRejectionInstrumentationHandler)((t=>{const{stackParser:r,attachStacktrace:n}=g();if((0,i.getClient)()!==e||(0,h.shouldIgnoreOnError)())return;const o=function(e){if((0,c.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),a=(0,c.isPrimitive)(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:(0,f.eventFromUnknownInput)(r,o,void 0,n,!0);a.level="error",(0,s.captureEvent)(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),y("onunhandledrejection"))}}}));function y(e){d.DEBUG_BUILD&&p.logger.log(`Global Handler attached: ${e}`)}function g(){const e=(0,i.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalErrorInstrumentationHandler:()=>s});var n=r(203),o=r(255);let i=null;function s(e){const t="error";(0,o.addHandler)(t,e),(0,o.maybeInstrument)(t,a)}function a(){i=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(e,t,r,n,s){const a={column:n,error:s,line:r,msg:e,url:t};return(0,o.triggerHandlers)("error",a),!!i&&i.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalUnhandledRejectionInstrumentationHandler:()=>s});var n=r(203),o=r(255);let i=null;function s(e){const t="unhandledrejection";(0,o.addHandler)(t,e),(0,o.maybeInstrument)(t,a)}function a(){i=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return(0,o.triggerHandlers)("unhandledrejection",t),!i||i.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpContextIntegration:()=>s});var n=r(244),o=r(209),i=r(222);const s=(0,n.defineIntegration)((()=>({name:"HttpContext",preprocessEvent(e){if(!i.WINDOW.navigator&&!i.WINDOW.location&&!i.WINDOW.document)return;const t=e.request?.url||(0,o.getLocationHref)(),{referrer:r}=i.WINDOW.document||{},{userAgent:n}=i.WINDOW.navigator||{},s={...e.request?.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...e.request,...t&&{url:t},headers:s};e.request=a}})))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{linkedErrorsIntegration:()=>s});var n=r(273),o=r(244),i=r(198);const s=(0,o.defineIntegration)(((e={})=>{const t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,o,s){const a=s.getOptions();(0,n.applyAggregateErrorsToEvent)(i.exceptionFromError,a.stackParser,a.maxValueLength,r,t,e,o)}}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyAggregateErrorsToEvent:()=>i});var n=r(210),o=r(213);function i(e,t,r=250,i,a,c,u){if(!c.exception?.values||!u||!(0,n.isInstanceOf)(u.originalException,Error))return;const l=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:void 0;var p,d;l&&(c.exception.values=(p=s(e,t,a,u.originalException,i,c.exception.values,l,0),d=r,p.map((e=>(e.value&&(e.value=(0,o.truncate)(e.value,d)),e)))))}function s(e,t,r,o,i,u,l,p){if(u.length>=r+1)return u;let d=[...u];if((0,n.isInstanceOf)(o[i],Error)){a(l,p);const n=e(t,o[i]),u=d.length;c(n,i,u,p),d=s(e,t,r,o[i],i,[n,...d],n,u)}return Array.isArray(o.errors)&&o.errors.forEach(((o,u)=>{if((0,n.isInstanceOf)(o,Error)){a(l,p);const n=e(t,o),f=d.length;c(n,`errors[${u}]`,f,p),d=s(e,t,r,o,i,[n,...d],n,f)}})),d}function a(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function c(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{chromeStackLineParser:()=>c,defaultStackLineParsers:()=>v,defaultStackParser:()=>S,geckoStackLineParser:()=>p,opera10StackLineParser:()=>m,opera11StackLineParser:()=>g,winjsStackLineParser:()=>f});var n=r(220);function o(e,t,r,o){const i={filename:e,function:"<anonymous>"===t?n.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==o&&(i.colno=o),i}const i=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,s=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=[30,e=>{const t=i.exec(e);if(t){const[,e,r,i]=t;return o(e,n.UNKNOWN_FUNCTION,+r,+i)}const r=s.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=a.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=b(r[1]||n.UNKNOWN_FUNCTION,r[2]);return o(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,p=[50,e=>{const t=u.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=l.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||n.UNKNOWN_FUNCTION;return[r,e]=b(r,e),o(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=[40,e=>{const t=d.exec(e);return t?o(t[2],t[1]||n.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],h=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,m=[10,e=>{const t=h.exec(e);return t?o(t[2],t[3]||n.UNKNOWN_FUNCTION,+t[1]):void 0}],y=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,g=[20,e=>{const t=y.exec(e);return t?o(t[5],t[3]||t[4]||n.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],v=[c,p],S=(0,n.createStackParser)(...v),b=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return r||o?[-1!==e.indexOf("@")?e.split("@")[0]:n.UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeFetchTransport:()=>s});var n=r(276),o=r(221),i=r(278);function s(e,t=(0,n.getNativeImplementation)("fetch")){let r=0,s=0;return(0,i.createTransport)(e,(function(i){const a=i.body.length;r+=a,s++;const c={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&s<15,...e.fetchOptions};if(!t)return(0,n.clearCachedImplementation)("fetch"),(0,o.rejectedSyncPromise)("No fetch implementation available");try{return t(e.url,c).then((e=>(r-=a,s--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return(0,n.clearCachedImplementation)("fetch"),r-=a,s--,(0,o.rejectedSyncPromise)(e)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearCachedImplementation:()=>u,fetch:()=>l,getNativeImplementation:()=>c,setTimeout:()=>p});var n=r(260),o=r(212),i=r(277),s=r(257);const a={};function c(e){const t=a[e];if(t)return t;let r=s.WINDOW[e];if((0,n.isNativeFunction)(r))return a[e]=r.bind(s.WINDOW);const c=s.WINDOW.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t);const n=t.contentWindow;n?.[e]&&(r=n[e]),c.head.removeChild(t)}catch(t){i.DEBUG_BUILD&&o.logger.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?a[e]=r.bind(s.WINDOW):r}function u(e){a[e]=void 0}function l(...e){return c("fetch")(...e)}function p(...e){return c("setTimeout")(...e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_TRANSPORT_BUFFER_SIZE:()=>l,createTransport:()=>p});var n=r(224),o=r(243),i=r(246),s=r(212),a=r(279),c=r(280),u=r(221);const l=64;function p(e,t,r=(0,a.makePromiseBuffer)(e.bufferSize||l)){let p={};return{send:function(a){const l=[];if((0,o.forEachEnvelopeItem)(a,((t,r)=>{const n=(0,o.envelopeItemTypeToDataCategory)(r);(0,c.isRateLimited)(p,n)?e.recordDroppedEvent("ratelimit_backoff",n):l.push(t)})),0===l.length)return(0,u.resolvedSyncPromise)({});const d=(0,o.createEnvelope)(a[0],l),f=t=>{(0,o.forEachEnvelopeItem)(d,((r,n)=>{e.recordDroppedEvent(t,(0,o.envelopeItemTypeToDataCategory)(n))}))};return r.add((()=>t({body:(0,o.serializeEnvelope)(d)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&n.DEBUG_BUILD&&s.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),p=(0,c.updateRateLimits)(p,e),e)),(e=>{throw f("network_error"),e})))).then((e=>e),(e=>{if(e instanceof i.SentryError)return n.DEBUG_BUILD&&s.logger.error("Skipped sending event because buffer is full."),f("queue_overflow"),(0,u.resolvedSyncPromise)({});throw e}))},flush:e=>r.drain(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makePromiseBuffer:()=>i});var n=r(246),o=r(221);function i(e){const t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(i){if(!(void 0===e||t.length<e))return(0,o.rejectedSyncPromise)(new n.SentryError("Not adding Promise because buffer limit was reached."));const s=i();return-1===t.indexOf(s)&&t.push(s),s.then((()=>r(s))).then(null,(()=>r(s).then(null,(()=>{})))),s},drain:function(e){return new o.SyncPromise(((r,n)=>{let i=t.length;if(!i)return r(!0);const s=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{(0,o.resolvedSyncPromise)(e).then((()=>{--i||(clearTimeout(s),r(!0))}),n)}))}))}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_RETRY_AFTER:()=>n,disabledUntil:()=>i,isRateLimited:()=>s,parseRetryAfterHeader:()=>o,updateRateLimits:()=>a});const n=6e4;function o(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const o=Date.parse(`${e}`);return isNaN(o)?n:o-t}function i(e,t){return e[t]||e.all||0}function s(e,t,r=Date.now()){return i(e,t)>r}function a(e,{statusCode:t,headers:r},n=Date.now()){const i={...e},s=r?.["x-sentry-rate-limits"],a=r?.["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,r,,,o]=e.split(":",5),s=parseInt(t,10),a=1e3*(isNaN(s)?60:s);if(r)for(const e of r.split(";"))"metric_bucket"===e&&o&&!o.split(";").includes("custom")||(i[e]=n+a);else i.all=n+a}else a?i.all=n+o(a,n):429===t&&(i.all=n+6e4);return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFiltersIntegration:()=>l,inboundFiltersIntegration:()=>p});var n=r(224),o=r(244),i=r(212),s=r(215),a=r(213),c=r(247);const u=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],l=(0,o.defineIntegration)(((e={})=>({name:"EventFilters",processEvent(t,r,o){const l=o.getOptions(),p=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:u],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,l);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return(0,c.getPossibleEventMessages)(e).some((e=>(0,a.stringMatchesSomePattern)(e,t)))}(e,t.ignoreErrors))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const r=e.transaction;return!!r&&(0,a.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const r=d(e);return!!r&&(0,a.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${d(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const r=d(e);return!r||(0,a.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${d(e)}`),!0;return!1}(t,p)?null:t}}))),p=(0,o.defineIntegration)(((e={})=>({...l(e),name:"InboundFilters"})));function d(e){try{const t=[...e.exception?.values??[]].reverse().find((e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length)),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch(t){return n.DEBUG_BUILD&&i.logger.error(`Cannot extract url for event ${(0,s.getEventDescription)(e)}`),null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{functionToStringIntegration:()=>c});var n=r(199),o=r(244),i=r(208);let s;const a=new WeakMap,c=(0,o.defineIntegration)((()=>({name:"FunctionToString",setupOnce(){s=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,i.getOriginalFunction)(this),r=a.has((0,n.getClient)())&&void 0!==t?t:this;return s.apply(r,e)}}catch{}},setup(e){a.set(e,!0)}})))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_shouldDropEvent:()=>c,dedupeIntegration:()=>a});var n=r(244),o=r(224),i=r(212),s=r(220);const a=(0,n.defineIntegration)((()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(c(t,e))return o.DEBUG_BUILD&&i.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}}));function c(e,t){return!!t&&(!!function(e,t){const r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!l(e,t))return!1;if(!u(e,t))return!1;return!0}(e,t)||!!function(e,t){const r=p(t),n=p(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!l(e,t))return!1;if(!u(e,t))return!1;return!0}(e,t))}function u(e,t){let r=(0,s.getFramesFromEvent)(e),n=(0,s.getFramesFromEvent)(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],o=r[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function l(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(e){return!1}}function p(e){return e.exception?.values&&e.exception.values[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initAndBind:()=>s,setCurrentClient:()=>a});var n=r(199),o=r(224),i=r(212);function s(e,t){!0===t.debug&&(o.DEBUG_BUILD?i.logger.enable():(0,i.consoleSandbox)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));(0,n.getCurrentScope)().update(t.initialScope);const r=new e(t);return a(r),r.init(),r}function a(e){(0,n.getCurrentScope)().setClient(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getReplay:()=>Bn,replayIntegration:()=>Mn});var n=r(203),o=r(219),i=r(208),s=r(209),a=r(214),c=r(262),u=r(212),l=r(263),p=r(223),d=r(215),f=r(199),h=r(234),m=r(230),y=r(306),g=r(213),v=r(243),S=r(225),b=r(221),_=r(280),E=r(231),w=r(308),I=r(238),A=r(276),T=r(286),k=r(307),C=r(258),x=r(256),R=r(261);const O=n.GLOBAL_OBJ,P="sentryReplaySession",D="Unable to send Replay",N=15e4,M=5e3,L=2e7,U=36e5;var B=Object.defineProperty,j=(e,t,r)=>((e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),F=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(F||{});function q(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function W(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function H(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,z).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function z(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=H(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){const n=e.style,o=n[r],i=n.getPropertyPriority(o);t+=`${o}:${n.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),r||n)return t}return t||e.cssText}class ${constructor(){j(this,"idNodeMap",new Map),j(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function G({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function V({isMasked:e,element:t,value:r,maskInputFn:n}){let o=r||"";return e?(n&&(o=n(o,t)),"*".repeat(o.length)):o}function K(e){return e.toLowerCase()}function J(e){return e.toUpperCase()}const Y="__rrweb_original__";function X(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?K(t):null}function Q(e,t,r){return"INPUT"!==t||"radio"!==r&&"checkbox"!==r?e.value:e.getAttribute("value")||""}function Z(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}const n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}const ee={};function te(e){const t=ee[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(e){}return ee[e]=n.bind(window)}function re(...e){return te("setTimeout")(...e)}function ne(...e){return te("clearTimeout")(...e)}function oe(e){try{return e.contentDocument}catch(e){}}let ie=1;const se=new RegExp("[^a-z0-9-_:]");function ae(){return ie++}let ce,ue;const le=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pe=/^(?:[a-z+]+:)?\/\//i,de=/^www\..*/i,fe=/^(data:)([^,]*),(.*)/i;function he(e,t){return(e||"").replace(le,((e,r,n,o,i,s)=>{const a=n||i||s,c=r||o||"";if(!a)return e;if(pe.test(a)||de.test(a))return`url(${c}${a}${c})`;if(fe.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`}))}const me=/^[^ \t\n\r\u000c]+/,ye=/^[, \t\n\r\u000c]+/;const ge=new WeakMap;function ve(e,t){return t&&""!==t.trim()?be(e,t):t}function Se(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function be(e,t){let r=ge.get(e);if(r||(r=e.createElement("a"),ge.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function _e(e,t,r,n,o,i){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?ve(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}const o=[];for(;n(ye),!(r>=t.length);){let i=n(me);if(","===i.slice(-1))i=ve(e,i.substring(0,i.length-1)),o.push(i);else{let n="";i=ve(e,i);let s=!1;for(;;){const e=t.charAt(r);if(""===e){o.push((i+n).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){r+=1,o.push((i+n).trim());break}"("===e&&(s=!0)}n+=e,r+=1}}}return o.join(", ")}(e,n):"style"===r?he(n,be(e)):"object"===t&&"data"===r?ve(e,n):"function"==typeof i?i(r,n,o):n:ve(e,n):n}function Ee(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function we(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}function Ie(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:Ie(e.parentNode,t,r,n+1):-1}function Ae(e,t){return r=>{const n=r;if(null===n)return!1;try{if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}catch{return!1}}}function Te(e,t,r,n,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(i){if(c=Ie(s,Ae(n,o)),c<0)return!0;a=Ie(s,Ae(t,r),c>=0?c:1/0)}else{if(a=Ie(s,Ae(t,r)),a<0)return!1;c=Ie(s,Ae(n,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!i}catch(e){}return!!i}function ke(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:S,keepIframeSrcFn:b,newlyAddedElement:_=!1}=t,E=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:F.Document,childNodes:[],compatMode:e.compatMode}:{type:F.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:F.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskTextClass:y,unmaskTextClass:g,maskTextSelector:v,unmaskTextSelector:S}=t,b=we(e,n,o,i),_=function(e){if(e instanceof HTMLFormElement)return"form";const t=K(e.tagName);return se.test(t)?"div":t}(e);let E={};const w=e.attributes.length;for(let t=0;t<w;t++){const n=e.attributes[t];n.name&&!Ee(_,n.name,n.value)&&(E[n.name]=_e(r,_,K(n.name),n.value,e,c))}if("link"===_&&s){const t=Array.from(r.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=H(t)),n&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=he(n,t.href))}if("style"===_&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=H(e.sheet);t&&(E._cssText=he(t,be(r)))}if("input"===_||"textarea"===_||"select"===_||"option"===_){const t=e,r=X(t),n=Q(t,J(_),r),o=t.checked;if("submit"!==r&&"button"!==r&&n){const e=Te(t,y,v,g,S,G({type:r,tagName:J(_),maskInputOptions:a}));E.value=V({isMasked:e,element:t,value:n,maskInputFn:u})}o&&(E.checked=o)}"option"===_&&(e.selected&&!a.select?E.selected=!0:delete E.selected);if("canvas"===_&&d)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const o=t.getImageData,i=Y in o?o[Y]:o;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(E.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(l.type,l.quality)&&(E.rr_dataURL=t)}if("img"===_&&p){ce||(ce=r.createElement("canvas"),ue=ce.getContext("2d"));const t=e,n=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{ce.width=t.naturalWidth,ce.height=t.naturalHeight,ue.drawImage(t,0,0),E.rr_dataURL=ce.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${n}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?E.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==_&&"video"!==_||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop));if(b){const{width:t,height:r}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==_||f(E.src)||(b||oe(e)||(E.rr_src=E.src),delete E.src);let I;try{customElements.get(_)&&(I=!0)}catch(e){}return{type:F.Element,tagName:_,attributes:E,childNodes:[],isSVG:Se(e)||void 0,needBlock:b,rootId:m,isCustom:I}}(e,{doc:r,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:S,keepIframeSrcFn:b,newlyAddedElement:_,rootId:E,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d});case e.TEXT_NODE:return function(e,t){const{maskAllText:r,maskTextClass:n,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,p=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const f="STYLE"===p||void 0,h="SCRIPT"===p||void 0,m="TEXTAREA"===p||void 0;if(f&&d){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(d=H(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=he(d,be(t.doc))}h&&(d="SCRIPT_PLACEHOLDER");const y=Te(e,n,i,o,s,r);f||h||m||!d||!y||(d=a?a(d,e.parentElement):d.replace(/[\S]/g,"*"));m&&d&&(c.textarea||y)&&(d=u?u(d,e.parentNode):d.replace(/[\S]/g,"*"));if("OPTION"===p&&d){d=V({isMasked:Te(e,n,i,o,s,G({type:null,tagName:p,maskInputOptions:c})),element:e,value:d,maskInputFn:u})}return{type:F.Text,textContent:d||"",isStyle:f,rootId:l}}(e,{doc:r,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:y,rootId:E});case e.CDATA_SECTION_NODE:return{type:F.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:F.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function Ce(e){return null==e?"":e.toLowerCase()}function xe(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:d=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:S={},inlineImages:b=!1,recordCanvas:_=!1,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:I=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:C=!1}=t;let{preserveWhiteSpace:x=!0}=t;const R=ke(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:S,inlineImages:b,recordCanvas:_,keepIframeSrcFn:k,newlyAddedElement:C});if(!R)return console.warn(e,"not serialized"),null;let O;O=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===F.Comment)return!0;if(e.type===F.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Z(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Ce(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ce(e.attributes.name)||"icon"===Ce(e.attributes.rel)||"apple-touch-icon"===Ce(e.attributes.rel)||"shortcut icon"===Ce(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Ce(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ce(e.attributes.property).match(/^(og|twitter|fb):/)||Ce(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ce(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Ce(e.attributes.name)||"googlebot"===Ce(e.attributes.name)||"bingbot"===Ce(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Ce(e.attributes.name)||"generator"===Ce(e.attributes.name)||"framework"===Ce(e.attributes.name)||"publisher"===Ce(e.attributes.name)||"progid"===Ce(e.attributes.name)||Ce(e.attributes.property).match(/^article:/)||Ce(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Ce(e.attributes.name)||"yandex-verification"===Ce(e.attributes.name)||"csrf-token"===Ce(e.attributes.name)||"p:domain_verify"===Ce(e.attributes.name)||"verify-v1"===Ce(e.attributes.name)||"verification"===Ce(e.attributes.name)||"shopify-checkout-api-token"===Ce(e.attributes.name)))return!0}}return!1}(R,v)&&(x||R.type!==F.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?ae():-2;const P=Object.assign(R,{id:O});if(n.add(e,P),-2===O)return null;E&&E(e);let D=!d;if(P.type===F.Element){D=D&&!P.needBlock,delete P.needBlock;const t=e.shadowRoot;t&&W(t)&&(P.isShadowHost=!0)}if((P.type===F.Document||P.type===F.Element)&&D){v.headWhitespace&&P.type===F.Element&&"head"===P.tagName&&(x=!1);const t={doc:r,mirror:n,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:S,inlineImages:b,recordCanvas:_,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:k};for(const r of Array.from(e.childNodes)){const e=xe(r,t);e&&P.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const n=xe(r,t);n&&(W(e.shadowRoot)&&(n.isShadow=!0),P.childNodes.push(n))}}return e.parentNode&&q(e.parentNode)&&W(e.parentNode)&&(P.isShadow=!0),P.type!==F.Element||"iframe"!==P.tagName||we(e,o,i,s)||function(e,t,r){const n=e.contentWindow;if(!n)return;let o,i=!1;try{o=n.document.readyState}catch(e){return}if("complete"!==o){const n=re((()=>{i||(t(),i=!0)}),r);return void e.addEventListener("load",(()=>{ne(n),i=!0,t()}))}const s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return re(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=oe(e);if(t&&w){const r=xe(t,{doc:t,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:S,inlineImages:b,recordCanvas:_,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:k});r&&w(e,r)}}),I),P.type===F.Element&&"link"===P.tagName&&"string"==typeof P.attributes.rel&&("stylesheet"===P.attributes.rel||"preload"===P.attributes.rel&&"string"==typeof P.attributes.href&&"css"===Z(P.attributes.href))&&function(e,t,r){let n,o=!1;try{n=e.sheet}catch(e){return}if(n)return;const i=re((()=>{o||(t(),o=!0)}),r);e.addEventListener("load",(()=>{ne(i),o=!0,t()}))}(e,(()=>{if(A){const t=xe(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:S,inlineImages:b,recordCanvas:_,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:k});t&&A(e,t)}}),T),P}function Re(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Oe="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 Pe={map:{},getId:()=>(console.error(Oe),-1),getNode:()=>(console.error(Oe),null),removeNodeFromMap(){console.error(Oe)},has:()=>(console.error(Oe),!1),reset(){console.error(Oe)}};function De(e,t,r={}){let n=null,o=0;return function(...i){const s=Date.now();o||!1!==r.leading||(o=s);const a=t-(s-o),c=this;a<=0||a>t?(n&&(!function(...e){Ze("clearTimeout")(...e)}(n),n=null),o=s,e.apply(c,i)):n||!1===r.trailing||(n=et((()=>{o=!1===r.leading?0:Date.now(),n=null,e.apply(c,i)}),a))}}function Ne(e,t,r,n,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(e){et((()=>{r.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Ne(e,t,i||{},!0)}function Me(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Pe=new Proxy(Pe,{get:(e,t,r)=>("map"===t&&console.error(Oe),Reflect.get(e,t,r))}));let Le=Date.now;function Ue(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Be(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function je(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Fe(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function qe(e,t,r,n,o){if(!e)return!1;const i=Fe(e);if(!i)return!1;const s=Ae(t,r);if(!o){const e=n&&i.matches(n);return s(i)&&!e}const a=Ie(i,s);let c=-1;return!(a<0)&&(n&&(c=Ie(i,Ae(null,n))),a>-1&&c<0||a<c)}function We(e,t){return-2===t.getId(e)}function He(e,t){if(q(e))return!1;const r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||He(e.parentNode,t))}function ze(e){return Boolean(e.changedTouches)}function $e(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Ge(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Ve(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Le=()=>(new Date).getTime());class Ke{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Je(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ye(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Je(r);)r=t;return r}(e);return t.contains(r)}function Xe(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Ye(e))}const Qe={};function Ze(e){const t=Qe[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(e){}return Qe[e]=n.bind(window)}function et(...e){return Ze("setTimeout")(...e)}var tt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(tt||{}),rt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(rt||{}),nt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(nt||{}),ot=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ot||{}),it=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(it||{});function st(e){try{return e.contentDocument}catch(e){}}function at(e){return"__ln"in e}class ct{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&at(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&at(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const ut=(e,t)=>`${e}@${t}`;class lt{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new ct,n=e=>{let t=e,r=-2;for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},o=o=>{if(!o.parentNode||!Xe(o))return;const i=q(o.parentNode)?this.mirror.getId(Je(o)):this.mirror.getId(o.parentNode),s=n(o);if(-1===i||-1===s)return r.addNode(o);const a=xe(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{$e(e,this.mirror)&&!qe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Ge(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ve(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{qe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:i,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)dt(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)ft(this.droppedSet,e)||dt(this.removes,e,this.mirror)?ft(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;r.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),o(e.value)}const s={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!We(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;qe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Te(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Fe(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){const r=X(t),o=t.tagName;n=Q(t,o,r);const i=G({maskInputOptions:this.maskInputOptions,tagName:o,type:r});n=V({isMasked:Te(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:n,maskInputFn:this.maskInputFn})}if(qe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(st(t))return;r="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Ee(t.tagName,r)&&(o.attributes[r]=_e(this.doc,K(t.tagName),K(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const n=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);n!==r.style.getPropertyValue(e)||i!==r.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?n:[n,i]:o._unchangedStyles[e]=[n,i]}for(const e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(qe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const r=this.mirror.getId(t),n=q(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);qe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||We(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(pt(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||He(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ut(r,n)]?pt(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!q(e.target)||!W(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(We(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[ut(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);qe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Ve(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}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 pt(e,t){e.delete(t),t.childNodes.forEach((t=>pt(e,t)))}function dt(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){const t=r.getId(n);if(e.some((e=>e.id===t)))return!0;n=n.parentNode}return!1}(e,t,r)}function ft(e,t){return 0!==e.size&&ht(e,t)}function ht(e,t){const{parentNode:r}=t;return!!r&&(!!e.has(r)||ht(e,r))}let mt;const yt=e=>{if(!mt)return e;return(...t)=>{try{return e(...t)}catch(e){if(mt&&!0===mt(e))return()=>{};throw e}}},gt=[];function vt(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function St(e,t){const r=new lt;gt.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(n=window[o]);const i=new n(yt((t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function bt({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let u=null;return Object.keys(nt).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((s=>{let a=K(s);const l=(t=>s=>{const a=vt(s);if(qe(a,n,o,i,!0))return;let c=null,l=t;if("pointerType"in s){switch(s.pointerType){case"mouse":c=ot.Mouse;break;case"touch":c=ot.Touch;break;case"pen":c=ot.Pen}c===ot.Touch?nt[t]===nt.MouseDown?l="TouchStart":nt[t]===nt.MouseUp&&(l="TouchEnd"):ot.Pen}else ze(s)&&(c=ot.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===ot.Touch||l.startsWith("Mouse")&&c===ot.Mouse)&&(c=null)):nt[t]===nt.Click&&(c=u,u=null);const p=ze(s)?s.changedTouches[0]:s;if(!p)return;const d=r.getId(a),{clientX:f,clientY:h}=p;yt(e)({type:nt[l],id:d,x:f,y:h,...null!==c&&{pointerType:c}})})(s);if(window.PointerEvent)switch(nt[s]){case nt.MouseDown:case nt.MouseUp:a=a.replace("mouse","pointer");break;case nt.TouchStart:case nt.TouchEnd:return}c.push(Re(a,l,t))})),yt((()=>{c.forEach((e=>e()))}))}function _t({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,sampling:s}){return Re("scroll",yt(De(yt((s=>{const a=vt(s);if(!a||qe(a,n,o,i,!0))return;const c=r.getId(a);if(a===t&&t.defaultView){const r=Ue(t.defaultView);e({id:c,x:r.left,y:r.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),s.scroll||100)),t)}const Et=["INPUT","TEXTAREA","SELECT"],wt=new WeakMap;function It({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:p,maskTextClass:d,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function y(e){let r=vt(e);const l=e.isTrusted,y=r&&J(r.tagName);if("OPTION"===y&&(r=r.parentElement),!r||!y||Et.indexOf(y)<0||qe(r,n,o,i,!0))return;const v=r;if(v.classList.contains(s)||a&&v.matches(a))return;const S=X(r);let b=Q(v,y,S),_=!1;const E=G({maskInputOptions:c,tagName:y,type:S}),w=Te(r,d,h,f,m,E);"radio"!==S&&"checkbox"!==S||(_=r.checked),b=V({isMasked:w,element:r,value:b,maskInputFn:u}),g(r,p?{text:b,isChecked:_,userTriggered:l}:{text:b,isChecked:_});const I=r.name;"radio"===S&&I&&_&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach((e=>{if(e!==r){const t=V({isMasked:w,element:e,value:Q(e,y,S),maskInputFn:u});g(e,p?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}}))}function g(t,n){const o=wt.get(t);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){wt.set(t,n);const o=r.getId(t);yt(e)({...n,id:o})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>Re(e,yt(y),t))),S=t.defaultView;if(!S)return()=>{v.forEach((e=>e()))};const b=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),_=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(..._.map((e=>Ne(e[0],e[1],{set(){yt(y)({target:this,isTrusted:!1})}},!1,S)))),yt((()=>{v.forEach((e=>e()))}))}function At(e){return function(e,t){if(xt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||xt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||xt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||xt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function Tt(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function kt({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);const o="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&o&&i?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){const r=i.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),yt((()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function Ct(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=St(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=De(yt((t=>{const r=Date.now()-s;e(a.map((e=>(e.timeOffset-=r,e))),t),a=[],s=null})),i),u=yt(De(yt((e=>{const t=vt(e),{clientX:r,clientY:o}=ze(e)?e.changedTouches[0]:e;s||(s=Le()),a.push({x:r,y:o,id:n.getId(t),timeOffset:Le()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?rt.Drag:e instanceof MouseEvent?rt.MouseMove:rt.TouchMove)})),o,{trailing:!1})),l=[Re("mousemove",u,r),Re("touchmove",u,r),Re("drag",u,r)];return yt((()=>{l.forEach((e=>e()))}))}(e),i=bt(e),s=_t(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return Re("resize",yt(De(yt((()=>{const t=Be(),o=je();r===t&&n===o||(e({width:Number(o),height:Number(t)}),r=t,n=o)})),200)),t)}(e,{win:r}),c=It(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:o,sampling:i,doc:s}){const a=yt((s=>De(yt((i=>{const a=vt(i);if(!a||qe(a,t,r,n,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:p}=a;e({type:s,id:o.getId(a),currentTime:c,volume:u,muted:l,playbackRate:p})})),i.media||500))),c=[Re("play",a(it.Play),s),Re("pause",a(it.Pause),s),Re("seeked",a(it.Seeked),s),Re("volumechange",a(it.VolumeChange),s),Re("ratechange",a(it.RateChange),s)];return yt((()=>{c.forEach((e=>e()))}))}(e);let l=()=>{},p=()=>{},d=()=>{},f=()=>{};e.recordDOM&&(l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:yt(((n,o,i)=>{const[s,a]=i,{id:c,styleId:u}=Tt(o,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:a}]}),n.apply(o,i)}))});const i=n.CSSStyleSheet.prototype.deleteRule;let s,a;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:yt(((n,o,i)=>{const[s]=i,{id:a,styleId:c}=Tt(o,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),n.apply(o,i)}))}),n.CSSStyleSheet.prototype.replace&&(s=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:yt(((n,o,i)=>{const[s]=i,{id:a,styleId:c}=Tt(o,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),n.apply(o,i)}))})),n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:yt(((n,o,i)=>{const[s]=i,{id:a,styleId:c}=Tt(o,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),n.apply(o,i)}))}));const c={};Rt("CSSGroupingRule")?c.CSSGroupingRule=n.CSSGroupingRule:(Rt("CSSMediaRule")&&(c.CSSMediaRule=n.CSSMediaRule),Rt("CSSConditionRule")&&(c.CSSConditionRule=n.CSSConditionRule),Rt("CSSSupportsRule")&&(c.CSSSupportsRule=n.CSSSupportsRule));const u={};return Object.entries(c).forEach((([n,o])=>{u[n]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[n].insertRule,{apply:yt(((n,o,i)=>{const[s,a]=i,{id:c,styleId:u}=Tt(o.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[...At(o),a||0]}]}),n.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:yt(((n,o,i)=>{const[s]=i,{id:a,styleId:c}=Tt(o.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...At(o),s]}]}),n.apply(o,i)}))})})),yt((()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=i,s&&(n.CSSStyleSheet.prototype.replace=s),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule}))}))}(e,{win:r}),p=kt(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:yt(((o,s,a)=>{const[c,u,l]=a;if(r.has(c))return i.apply(s,[c,u,l]);const{id:p,styleId:d}=Tt(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,set:{property:c,value:u,priority:l},index:At(s.parentRule)}),o.apply(s,a)}))});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:yt(((o,i,a)=>{const[c]=a;if(r.has(c))return s.apply(i,[c]);const{id:u,styleId:l}=Tt(i.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:At(i.parentRule)}),o.apply(i,a)}))}),yt((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){const n=new i(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const s=Me(t.fonts,"add",(function(t){return function(r){return et(yt((()=>{const t=o.get(r);t&&(e(t),o.delete(r))})),0),t.apply(this,[r])}}));return n.push((()=>{r.FontFace=i})),n.push(s),yt((()=>{n.forEach((e=>e()))}))}(e)));const h=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let a=!0;const c=yt((()=>{const e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t<u;t++){const s=e.getRangeAt(t),{startContainer:a,startOffset:u,endContainer:l,endOffset:p}=s;qe(a,n,o,i,!0)||qe(l,n,o,i,!0)||c.push({start:r.getId(a),startOffset:u,end:r.getId(l),endOffset:p})}s({ranges:c})}));return c(),Re("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Me(r.customElements,"define",(function(e){return function(r,n,o){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,o])}})):()=>{}}(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,r,t.options));return yt((()=>{gt.forEach((e=>e.reset())),n?.disconnect(),o(),i(),s(),a(),c(),u(),l(),p(),d(),f(),h(),m(),y.forEach((e=>e()))}))}function xt(e){return void 0!==window[e]}function Rt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ot{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){const o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e);let s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=n.get(t);return o||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Pt{constructor(){this.crossOriginIframeMirror=new Ot(ae),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Dt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ot(ae),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ot(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const r=st(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case tt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:tt.IncrementalSnapshot,data:{source:rt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case tt.Meta:case tt.Load:case tt.DomContentLoaded:return!1;case tt.Plugin:return t;case tt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case tt.IncrementalSnapshot:switch(t.data.source){case rt.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case rt.Drag:case rt.TouchMove:case rt.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case rt.ViewportResize:return!1;case rt.MediaInteraction:case rt.MouseInteraction:case rt.Scroll:case rt.CanvasMutation:case rt.Input:return this.replaceIds(t.data,e,["id"]),t;case rt.StyleSheetRule:case rt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case rt.Font:return t;case rt.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case rt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,r,n){for(const o of n)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(r,t[o]):t[o]=e.getId(r,t[o]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===F.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Nt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Mt{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!W(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=St({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>r.disconnect())),this.restoreHandlers.push(_t({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),et((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(kt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=st(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Me(e.prototype,"attachShadow",(function(e){return function(n){const o=e.call(this,n);return this.shadowRoot&&Xe(this)&&r.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ut="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Bt=0;Bt<64;Bt++)Ut[Lt.charCodeAt(Bt)]=Bt;class jt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ft{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ke,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:z(e),index:t})))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class qt{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,function(...e){Ze("requestAnimationFrame")(...e)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Wt,Ht;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const zt=new $;function $t(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:p=null,maskTextSelector:d=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:S,maskTextFn:b,maxCanvasSize:_=null,packFn:E,sampling:w={},dataURLOptions:I={},mousemoveWait:A,recordDOM:T=!0,recordCanvas:k=!1,recordCrossOriginIframes:C=!1,recordAfter:x=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:O=!1,inlineImages:P=!1,plugins:D,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:M=new Set([]),errorHandler:L,onMutation:U,getCanvasManager:B}=e;mt=L;const j=!C||window.parent===window;let F=!1;if(!j)try{window.parent.document&&(F=!1)}catch(e){F=!0}if(j&&!t)throw new Error("emit function is required");if(!j&&!F)return()=>{};void 0!==A&&void 0===w.mousemove&&(w.mousemove=A),zt.reset();const q=!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,radio:!0,checkbox:!0}:void 0!==y?y:{},W=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};let H;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let z=0;const G=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return E&&!F&&(e=E(e)),e};Wt=(e,o)=>{const i=e;if(i.timestamp=Le(),!gt[0]?.isFrozen()||i.type===tt.FullSnapshot||i.type===tt.IncrementalSnapshot&&i.data.source===rt.Mutation||gt.forEach((e=>e.unfreeze())),j)t?.(G(i),o);else if(F){const e={type:"rrweb",event:G(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===tt.FullSnapshot)H=i,z=0;else if(i.type===tt.IncrementalSnapshot){if(i.data.source===rt.Mutation&&i.data.isAttachIframe)return;z++;const e=n&&z>=n,t=r&&H&&i.timestamp-H.timestamp>r;(e||t)&&te(!0)}};const V=e=>{Wt({type:tt.IncrementalSnapshot,data:{source:rt.Mutation,...e}})},K=e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.Scroll,...e}}),J=e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...e}}),Y=new Ft({mutationCb:V,adoptedStyleSheetCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Pt:new Dt({mirror:zt,mutationCb:V,stylesheetManager:Y,recordCrossOriginIframes:C,wrappedEmit:Wt});for(const e of D||[])e.getMirror&&e.getMirror({nodeMirror:zt,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Q=new qt,Z=function(e,t){try{return e?e(t):new jt}catch{return console.warn("Unable to initialize CanvasManager"),new jt}}(B,{mirror:zt,win:window,mutationCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...e}}),recordCanvas:k,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:_,sampling:w.canvas,dataURLOptions:I,errorHandler:L}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Nt:new Mt({mutationCb:V,scrollCb:K,bypassOptions:{onMutation:U,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:q,dataURLOptions:I,maskAttributeFn:v,maskTextFn:b,maskInputFn:S,recordCanvas:k,inlineImages:P,sampling:w,slimDOMOptions:W,iframeManager:X,stylesheetManager:Y,canvasManager:Z,keepIframeSrcFn:N,processedNodeManager:Q},mirror:zt}),te=(e=!1)=>{if(!T)return;Wt({type:tt.Meta,data:{href:window.location.href,width:je(),height:Be()}},e),Y.reset(),ee.init(),gt.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new $,blockClass:n="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:p=!0,inlineImages:d=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:S,preserveWhiteSpace:b,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:w,onStylesheetLoad:I,stylesheetLoadTimeout:A,keepIframeSrcFn:T=()=>!1}=t;return xe(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:!0===h?{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===h?{}:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:S,inlineImages:d,recordCanvas:f,preserveWhiteSpace:b,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:w,onStylesheetLoad:I,stylesheetLoadTimeout:A,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:zt,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:q,maskAttributeFn:v,maskInputFn:S,maskTextFn:b,slimDOM:W,dataURLOptions:I,recordCanvas:k,inlineImages:P,onSerialize:e=>{$e(e,zt)&&X.addIframe(e),Ge(e,zt)&&Y.trackLinkElement(e),Ve(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),e.contentWindow&&Z.addWindow(e.contentWindow),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:N});if(!t)return console.warn("Failed to snapshot the document");Wt({type:tt.FullSnapshot,data:{node:t,initialOffset:Ue(window)}}),gt.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,zt.getId(document))};Ht=te;try{const e=[],t=e=>yt(Ct)({onMutation:U,mutationCb:V,mousemoveCb:(e,t)=>Wt({type:tt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.ViewportResize,...e}}),inputCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.Input,...e}}),mediaInteractionCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.MediaInteraction,...e}}),styleSheetRuleCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.StyleSheetRule,...e}}),styleDeclarationCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.StyleDeclaration,...e}}),canvasMutationCb:J,fontCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.Font,...e}}),selectionCb:e=>{Wt({type:tt.IncrementalSnapshot,data:{source:rt.Selection,...e}})},customElementCb:e=>{Wt({type:tt.IncrementalSnapshot,data:{source:rt.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,maskInputOptions:q,inlineStylesheet:h,sampling:w,recordDOM:T,recordCanvas:k,inlineImages:P,userTriggeredOnInput:R,collectFonts:O,doc:e,maskAttributeFn:v,maskInputFn:S,maskTextFn:b,keepIframeSrcFn:N,blockSelector:i,unblockSelector:s,slimDOMOptions:W,dataURLOptions:I,mirror:zt,iframeManager:X,stylesheetManager:Y,shadowDomManager:ee,processedNodeManager:Q,canvasManager:Z,ignoreCSSAttributes:M,plugins:D?.filter((e=>e.observer))?.map((e=>({observer:e.observer,options:e.options,callback:t=>Wt({type:tt.Plugin,data:{plugin:e.name,payload:t}})})))||[]},{});X.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(Re("DOMContentLoaded",(()=>{Wt({type:tt.DomContentLoaded,data:{}}),"DOMContentLoaded"===x&&r()}))),e.push(Re("load",(()=>{Wt({type:tt.Load,data:{}}),"load"===x&&r()}),window))),()=>{e.forEach((e=>e())),Q.destroy(),Ht=void 0,mt=void 0}}catch(e){console.warn(e)}}var Gt,Vt;$t.mirror=zt,$t.takeFullSnapshot=function(e){if(!Ht)throw new Error("please take full snapshot after start recording");Ht(e)},(Vt=Gt||(Gt={}))[Vt.NotStarted=0]="NotStarted",Vt[Vt.Running=1]="Running",Vt[Vt.Stopped=2]="Stopped";function Kt(e){return e>9999999999?e:1e3*e}function Jt(e){return e>9999999999?e/1e3:e}function Yt(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:tt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,o.normalize)(t,10,1e3)}}),"console"===t.category))))}function Xt(e){return e.closest("button,a")||e}function Qt(e){const t=Zt(e);return t&&t instanceof Element?Xt(t):t}function Zt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let er;function tr(e){return er||(er=[],(0,i.fill)(O,"open",(function(e){return function(...t){if(er)try{er.forEach((e=>e()))}catch(e){}return e.apply(O,t)}}))),er.push(e),()=>{const t=er?er.indexOf(e):-1;t>-1&&er.splice(t,1)}}const rr=new Set([rt.Mutation,rt.StyleSheetRule,rt.StyleDeclaration,rt.AdoptedStyleSheet,rt.CanvasMutation,rt.Selection,rt.MediaInteraction]);class nr{constructor(e,t,r=Yt){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=tr((()=>{this._lastMutation=ir()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!or.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const r={timestamp:Jt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===r.node&&Math.abs(e.timestamp-r.timestamp)<1))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Jt(e)}registerScroll(e=Date.now()){this._lastScroll=Jt(e)}registerClick(e){const t=Xt(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=ir();this._clicks.forEach((r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!r&&!n,{clickCount:i,clickBreadcrumb:s}=e;if(o){const r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:O.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,o)}else if(i>1){const e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:O.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,A.setTimeout)((()=>this._checkClicks()),1e3)}}const or=["A","BUTTON","INPUT"];function ir(){return Date.now()/1e3}function sr(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:r}=t.data;if(rr.has(r)&&e.registerMutation(t.timestamp),r===rt.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===rt.MouseInteraction}(t)){const{type:r,id:n}=t.data,o=$t.mirror.getNode(n);o instanceof HTMLElement&&r===nt.Click&&e.registerClick(o)}}catch{}}function ar(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var cr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(cr||{});const ur=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function lr(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const r in e)if(ur.has(r)){let n=r;"data-testid"!==r&&"data-test-id"!==r||(n="testId"),t[n]=e[r]}return t}const pr=e=>t=>{if(!e.isEnabled())return;const r=function(e){const{target:t,message:r}=function(e){const t="click"===e.name;let r,n=null;try{n=t?Qt(e.event):Zt(e.event),r=(0,s.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch(e){r="<unknown>"}return{target:n,message:r}}(e);return ar({category:`ui.${e.name}`,...dr(t,r)})}(t);if(!r)return;const n="click"===t.name,o=n?t.event:void 0;var i,a,c;!(n&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(i=e.clickDetector,a=r,c=Qt(t.event),i.handleClick(a,c)),Yt(e,r)};function dr(e,t){const r=$t.mirror.getId(e),n=r&&$t.mirror.getNode(r),o=n&&$t.mirror.getMeta(n),i=o&&function(e){return e.type===cr.Element}(o)?o:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>e.type===cr.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:lr(i.attributes)}}:{}}}function fr(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=function(e){const{metaKey:t,shiftKey:r,ctrlKey:n,altKey:o,key:i,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!i)return null;const c=t||n||o,u=1===i.length;if(!c&&u)return null;const l=(0,s.htmlTreeAsString)(a,{maxStringLength:200})||"<unknown>",p=dr(a,l);return ar({category:"ui.keyDown",message:l,data:{...p.data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:o,key:i}})}(t);r&&Yt(e,r)}const hr={resource:function(e){const{entryType:t,initiatorType:r,name:n,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;if(["fetch","xmlhttprequest"].includes(r))return null;return{type:`${t}.${r}`,start:gr(i),end:gr(o),name:n,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:r,name:n,startTime:o}=e,i=gr(o);return{type:r,name:n,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:r,decodedBodySize:n,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:p,redirectCount:d,startTime:f,transferSize:h,type:m}=e;if(0===o)return null;return{type:`${t}.${m}`,start:gr(f),end:gr(i),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:p,domComplete:i,redirectCount:d}}}};function mr(e,t){return({metric:r})=>{t.replayPerformanceEntries.push(e(r))}}function yr(e){const t=hr[e.entryType];return t?t(e):null}function gr(e){return(((0,a.browserPerformanceTimeOrigin)()||O.performance.timeOrigin)+e)/1e3}function vr(e){const t=e.entries[e.entries.length-1];return wr(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Sr(e){return void 0!==e.sources}function br(e){const t=[],r=[];for(const n of e.entries)if(Sr(n)){const e=[];for(const t of n.sources)if(t.node){r.push(t.node);const n=$t.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return wr(e,"cumulative-layout-shift",r,t)}function _r(e){const t=e.entries[e.entries.length-1];return wr(e,"first-input-delay",t?.target?[t.target]:void 0)}function Er(e){const t=e.entries[e.entries.length-1];return wr(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function wr(e,t,r,n){const o=e.value,i=e.rating,s=gr(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:r?r.map((e=>$t.mirror.getId(e))):void 0,attributions:n}}}const Ir="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const Ar=["info","warn","error","log"],Tr="[Replay] ";function kr(e,t="info"){(0,c.addBreadcrumb)({category:"console",data:{logger:"replay"},level:t,message:`${Tr}${e}`},{level:t})}const Cr=function(){let e=!1,t=!1;const r={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return Ir?(Ar.forEach((e=>{r[e]=(...r)=>{u.logger[e](Tr,...r),t&&kr(r.join(""),(0,l.severityLevelFromString)(e))}})),r.exception=(n,...o)=>{o.length&&r.error&&r.error(...o),u.logger.error(Tr,n),e?(0,p.captureException)(n):t&&kr(n,"error")},r.infoTick=(...e)=>{u.logger.info(Tr,...e),t&&setTimeout((()=>kr(e[0])),0)}):Ar.forEach((e=>{r[e]=()=>{}})),r}();class xr extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Rr{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>L)throw new xr;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Kt(e):null}}class Or{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:r})=>{r.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Ir&&Cr.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const r=this._getAndIncrementId();return new Promise(((n,o)=>{const i=({data:t})=>{const s=t;if(s.method===e&&s.id===r){if(this._worker.removeEventListener("message",i),!s.success)return Ir&&Cr.error("Error in compression worker: ",s.response),void o(new Error("Error in compression worker"));n(s.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Pr{constructor(e){this._worker=new Or(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Kt(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>L?Promise.reject(new xr):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Ir&&Cr.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Dr{constructor(e){this._fallback=new Rr,this._compression=new Pr(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Ir&&Cr.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){Ir&&Cr.exception(e,"Failed to add events when switching buffers.")}}}function Nr({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort((function(t,n){return p[n.s]-p[t.s]||t.f-n.f}));s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){G.prototype.flush.call(this)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),s=i.length;return q(i,n),j(i,s-8,r.d()),j(i,s-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;Ir&&Cr.info("Using compression worker"+(e?` from ${e}`:""));const r=new Worker(t);return new Dr(r)}catch(e){Ir&&Cr.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return Ir&&Cr.info("Using simple buffer"),new Rr}function Mr(){try{return"sessionStorage"in O&&!!O.sessionStorage}catch{return!1}}function Lr(e){!function(){if(!Mr())return;try{O.sessionStorage.removeItem(P)}catch{}}(),e.session=void 0}function Ur(e){return void 0!==e&&Math.random()<e}function Br(e){const t=Date.now();return{id:e.id||(0,d.uuid4)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function jr(e){if(Mr())try{O.sessionStorage.setItem(P,JSON.stringify(e))}catch{}}function Fr({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){const o=function(e,t){return Ur(e)?"session":!!t&&"buffer"}(e,t),i=Br({sampled:o,previousSessionId:n});return r&&jr(i),i}function qr(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function Wr(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return qr(e.started,t,n)||qr(e.lastActivity,r,n)}function Hr(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!Wr(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function zr({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){const o=n.stickySession&&function(){if(!Mr())return null;try{const e=O.sessionStorage.getItem(P);if(!e)return null;const t=JSON.parse(e);return Ir&&Cr.infoTick("Loading existing session"),Br(t)}catch{return null}}();return o?Hr(o,{sessionIdleExpire:e,maxReplayDuration:t})?(Ir&&Cr.infoTick("Session in sessionStorage is expired, creating new one..."),Fr(n,{previousSessionId:o.id})):o:(Ir&&Cr.infoTick("Creating new session"),Fr(n,{previousSessionId:r}))}function $r(e,t,r){return!!Vr(e,t)&&(Gr(e,t,r),!0)}async function Gr(e,t,r){const{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;const o="buffer"===e.recordingMode;try{r&&o&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===tt.Custom}(e))return t(e)}catch(e){return Ir&&Cr.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await n.addEvent(i)}catch(t){const r=t&&t instanceof xr,i=r?"addEventSizeExceeded":"addEvent";if(r&&o)return n.clear(),n.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:i});const s=(0,f.getClient)();s&&s.recordDroppedEvent("internal_sdk_error","replay")}}function Vr(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=Kt(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Ir&&Cr.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function Kr(e){return!e.type}function Jr(e){return"transaction"===e.type}function Yr(e){return"feedback"===e.type}function Xr(e){return(t,r)=>{if(!e.isEnabled()||!Kr(t)&&!Jr(t))return;const n=r?.statusCode;!n||n<200||n>=300||(Jr(t)?function(e,t){const r=e.getContext();t.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const r=e.getContext();t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:n}=e.getOptions();if("function"==typeof n&&!n(t))return;(0,A.setTimeout)((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}(e,t))}}function Qr(e){return t=>{e.isEnabled()&&Kr(t)&&function(e,t){const r=t.exception?.values?.[0]?.value;if("string"!=typeof r)return;if(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Yt(e,ar({category:"replay.hydrate-error",data:{url:(0,s.getLocationHref)()}}))}}(e,t)}}function Zr(e){const t=(0,f.getClient)();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!en(t))return;const r=function(e){if(!en(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return ar(e);let r=!1;const n=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>M?(r=!0,`${e.slice(0,M)}…`):e;if("object"==typeof e)try{const t=(0,o.normalize)(e,7);return JSON.stringify(t).length>M?(r=!0,`${JSON.stringify(t,null,2).slice(0,M)}…`):t}catch{}return e}));return ar({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return ar(e)}(t);r&&Yt(e,r)}(e,t)))}function en(e){return!!e.category}function tn(){const e=(0,f.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,h.getActiveSpan)();if(t){delete(0,m.getDynamicSamplingContextFromSpan)(t).replay_id}}function rn(e){return Object.assign(((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Kr(t)&&!Jr(t)&&!Yr(t))return t;if(!e.checkAndHandleExpiredSession())return tn(),t;if(Yr(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:tt.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException?.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return Ir&&Cr.log("Ignoring error from rrweb internals",t),null;const n=function(e,t){return"buffer"===e.recordingMode&&t.message!==D&&!(!t.exception||t.type)&&Ur(e.getOptions().errorSampleRate)}(e,t);return(n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}function nn(e,t){return t.map((({type:t,start:r,end:n,name:o,data:i})=>{const s=e.throttledAddEvent({type:tt.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:r,endTimestamp:n,data:i}}});return"string"==typeof s?Promise.resolve(null):s}))}function on(e){return t=>{if(!e.isEnabled())return;const r=function(e){const{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate((()=>(nn(e,[r]),!1))))}}function sn(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Ir||!e.getOptions()._experiments.traceInternals)&&(0,y.isSentryRequestUrl)(t,(0,f.getClient)())}(e,t.name)||e.addUpdate((()=>(nn(e,[t]),!0))))}function an(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const r=(0,k.serializeFormData)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function cn(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function un(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function ln(e,t){if(!t)return null;const{startTimestamp:r,endTimestamp:n,url:o,method:s,statusCode:a,request:c,response:u}=t;return{type:e,start:r/1e3,end:n/1e3,name:o,data:(0,i.dropUndefinedKeys)({method:s,statusCode:a,request:c,response:u})}}function pn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function dn(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};const n={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>N,r=function(e){const t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){const t=e.slice(0,N);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=o,i?.length&&(n._meta={warnings:i}),n}function fn(e,t){return Object.entries(e).reduce(((r,[n,o])=>{const i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=o),r}),{})}function hn(e,t){const r=function(e,t=O.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(O.location.origin))return e;const r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;const n=r.href;if(!e.endsWith("/")&&n.endsWith("/"))return n.slice(0,-1);return n}(e);return(0,g.stringMatchesSomePattern)(r,t)}async function mn(e,t,r){try{const n=await async function(e,t,r){const n=Date.now(),{startTimestamp:o=n,endTimestamp:i=n}=t,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,p=hn(s,r.networkDetailAllowUrls)&&!hn(s,r.networkDetailDenyUrls),d=p?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const o=r?function(e,t){if(1===e.length&&"string"!=typeof e[0])return gn(e[0],t);if(2===e.length)return gn(e[1],t);return{}}(r,t):{};if(!e)return dn(o,n,void 0);const i=(0,k.getFetchRequestArgBody)(r),[s,a]=(0,k.getBodyString)(i,Cr),c=dn(o,n,s);if(a)return un(c,a);return c}(r,t.input,u):pn(u),f=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,o){if(!e&&void 0!==o)return pn(o);const i=n?yn(n.headers,r):{};if(!n||!t&&void 0!==o)return dn(i,o,void 0);const[s,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Ir&&Cr.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,r)=>{const n=(0,A.setTimeout)((()=>r(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>r(e))).finally((()=>clearTimeout(n)))}))}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Ir&&Cr.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Ir&&Cr.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(n),c=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:o}){try{const i=e?.length&&void 0===r?an(e):r;return n?dn(o,i,t?e:void 0):pn(i)}catch(e){return Ir&&Cr.exception(e,"Failed to serialize response body"),dn(o,r,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});if(a)return un(c,a);return c}(p,r,t.response,l);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:d,response:f}}(e,t,r),o=ln("resource.fetch",n);sn(r.replay,o)}catch(e){Ir&&Cr.exception(e,"Failed to capture fetch breadcrumb")}}function yn(e,t){const r={};return t.forEach((t=>{e.get(t)&&(r[t]=e.get(t))})),r}function gn(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?yn(r,t):Array.isArray(r)?{}:fn(r,t):{}}async function vn(e,t,r){try{const n=function(e,t,r){const n=Date.now(),{startTimestamp:o=n,endTimestamp:i=n,input:s,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:p,response_body_size:d}=e.data;if(!c)return null;if(!a||!hn(c,r.networkDetailAllowUrls)||hn(c,r.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:pn(p),response:pn(d)}}const f=a[C.SENTRY_XHR_DATA_KEY],h=f?fn(f.request_headers,r.networkRequestHeaders):{},m=fn(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e}),{})}(a),r.networkResponseHeaders),[y,g]=r.networkCaptureBodies?(0,k.getBodyString)(s,Cr):[void 0],[v,S]=r.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Ir&&Cr.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ir&&Cr.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Ir&&Cr.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=dn(h,p,y),_=dn(m,d,v);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:g?un(b,g):b,response:S?un(_,S):_}}(e,t,r),o=ln("resource.xhr",n);sn(r.replay,o)}catch(e){Ir&&Cr.exception(e,"Failed to capture xhr breadcrumb")}}function Sn(e,t){const{xhr:r,input:n}=t;if(!r)return;const o=an(n),i=r.getResponseHeader("content-length")?cn(r.getResponseHeader("content-length")):function(e,t){try{return an("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(r.response,r.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}function bn(e){const t=(0,f.getClient)();try{const{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,r){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(r)&&(Sn(t,r),vn(t,r,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e?.response}(r)&&(!function(e,t){const{input:r,response:n}=t,o=an(r?(0,k.getFetchRequestArgBody)(r):void 0),i=n?cn(n.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,r),mn(t,r,e))}catch(e){Ir&&Cr.exception(e,"Error when enriching network breadcrumb")}}(a,e,t)))}catch{}}function _n(e){const{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}const En=n.GLOBAL_OBJ.navigator;function wn(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession())return void(Ir&&Cr.warn("Received replay event after session expired."));const o=n||!t;t=!0,e.clickDetector&&sr(e.clickDetector,r),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!$r(e,r,o))return!0;if(!o)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;$r(e,function(e){const t=e.getOptions();return{type:tt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const r=e.eventBuffer.getEarliestTimestamp();r&&(Ir&&Cr.info(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&jr(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}async function In({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:o,session:i}){const s=function({recordingData:e,headers:t}){let r;const n=`${JSON.stringify(t)}\n`;if("string"==typeof e)r=`${n}${e}`;else{const t=(new TextEncoder).encode(n);r=new Uint8Array(t.length+e.length),r.set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=n,p=(0,f.getClient)(),d=(0,f.getCurrentScope)(),h=p?.getTransport(),m=p?.getDsn();if(!(p&&h&&m&&i.sampled))return(0,b.resolvedSyncPromise)({});const y={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:r,replay_type:i.sampled},g=await async function({client:e,scope:t,replayId:r,event:n}){const o={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,o);const i=await(0,S.prepareEvent)(e.getOptions(),n,o,t,e,(0,f.getIsolationScope)());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const s=e.getSdkMetadata(),{name:a,version:c}=s?.sdk||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},i}({scope:d,client:p,replayId:t,event:y});if(!g)return p.recordDroppedEvent("event_processor","replay"),Ir&&Cr.info("An event processor returned `null`, will not send event."),(0,b.resolvedSyncPromise)({});delete g.sdkProcessingMetadata;const E=function(e,t,r,n){return(0,v.createEnvelope)((0,v.createEventEnvelopeHeaders)(e,(0,v.getSdkMetadataForEnvelopeHeader)(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,s,m,p.getOptions().tunnel);let w;try{w=await h.send(E)}catch(e){const t=new Error(D);try{t.cause=e}catch{}throw t}if("number"==typeof w.statusCode&&(w.statusCode<200||w.statusCode>=300))throw new An(w.statusCode);const I=(0,_.updateRateLimits)({},w);if((0,_.isRateLimited)(I,"replay"))throw new Tn(I);return w}class An extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Tn extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function kn(e,t={count:0,interval:5e3}){const{recordingData:r,onError:n}=e;if(r.length)try{return await In(e),!0}catch(r){if(r instanceof An||r instanceof Tn)throw r;if((0,p.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){const e=new Error(`${D} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise(((r,n)=>{(0,A.setTimeout)((async()=>{try{await kn(e,t),r(!0)}catch(e){n(e)}}),t.interval)}))}}const Cn="__THROTTLED";function xn(e,t,r){const n=new Map;let o=!1;return(...i)=>{const s=Math.floor(Date.now()/1e3);if((e=>{const t=e-r;n.forEach(((e,r)=>{r<t&&n.delete(r)}))})(s),[...n.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":Cn}o=!1;const a=n.get(s)||0;return n.set(s,a+1),e(...i)}}class Rn{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,o,i;const s=r?.maxWait?Math.max(r.maxWait,t):0;function a(){return c(),n=e(),n}function c(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function u(){return o&&clearTimeout(o),o=(0,A.setTimeout)(a,t),s&&void 0===i&&(i=(0,A.setTimeout)(a,s)),n}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==i?a():n},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=xn(((e,t)=>function(e,t,r){return Vr(e,t)?Gr(e,t,r):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),o=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(o&&(this.clickDetector=new nr(this,o)),Ir){const t=e._experiments;Cr.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===O.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=ar({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=ar({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{fr(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){Ir&&Cr.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,n||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Ir&&Cr.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Ir&&Cr.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Ir&&Cr.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Ir&&Cr.info("Buffering is in progress, call `flush()` to save the replay"));Ir&&Cr.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=zr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Ir&&Cr.info("Buffering is in progress, call `flush()` to save the replay"));Ir&&Cr.infoTick("Starting replay in buffer mode");const e=zr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=$t({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:wn(this),.../iPhone|iPad|iPod/i.test(En?.userAgent??"")||/Macintosh/i.test(En?.userAgent??"")&&En?.maxTouchPoints&&En?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Ir&&Cr.info("Stopping Replay"+(t?` triggered by ${t}`:"")),tn(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Lr(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Ir&&Cr.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Ir&&Cr.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Ir&&Cr.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&qr(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${O.location.pathname}${O.location.hash}${O.location.search}`,t=`${O.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const r=this._throttledAddEvent(e,t);if(r===Cn){const e=ar({category:"replay.throttled"});this.addUpdate((()=>!$r(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return r}getCurrentRoute(){const e=this.lastActiveSpan||(0,h.getActiveSpan)(),t=e&&(0,h.getRootSpan)(e),r=(t&&(0,h.spanToJSON)(t).data||{})[E.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,h.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Nr({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,r=zr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return!Hr(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{O.document.addEventListener("visibilitychange",this._handleVisibilityChange),O.addEventListener("blur",this._handleWindowBlur),O.addEventListener("focus",this._handleWindowFocus),O.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e,{autoFlushOnFeedback:t}){const r=(0,f.getClient)();(0,x.addClickKeypressInstrumentationHandler)(pr(e)),(0,R.addHistoryInstrumentationHandler)(on(e)),Zr(e),bn(e);const n=rn(e);(0,p.addEventProcessor)(n),r&&(r.on("beforeSendEvent",Qr(e)),r.on("afterSendEvent",Xr(e)),r.on("createDsc",(t=>{const r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)})),r.on("spanStart",(t=>{e.lastActiveSpan=t})),r.on("spanEnd",(t=>{e.lastActiveSpan=t})),r.on("beforeSendFeedback",(async(r,n)=>{const o=e.getSessionId();n?.includeReplay&&e.isEnabled()&&o&&r.contexts?.feedback&&("api"===r.contexts.feedback.source&&t&&await e.flush(),r.contexts.feedback.replay_id=o)})),t&&r.on("openFeedbackWidget",(async()=>{await e.flush()})))}(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}const n=[];return["navigation","paint","resource"].forEach((e=>{n.push((0,T.addPerformanceInstrumentationHandler)(e,r))})),n.push((0,T.addLcpInstrumentationHandler)(mr(vr,e)),(0,T.addClsInstrumentationHandler)(mr(br,e)),(0,T.addFidInstrumentationHandler)(mr(_r,e)),(0,T.addInpInstrumentationHandler)(mr(Er,e))),()=>{n.forEach((e=>e()))}}(this)}_removeListeners(){try{O.document.removeEventListener("visibilitychange",this._handleVisibilityChange),O.removeEventListener("blur",this._handleWindowBlur),O.removeEventListener("focus",this._handleWindowFocus),O.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Wr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Ir&&Cr.info("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:tt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(yr).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(nn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={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(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(nn(e,[_n(O.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await kn({replayId:e,recordingData:o,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=(0,f.getClient)();if(t){const r=e instanceof Tn?"ratelimit_backoff":"send_error";t.recordDroppedEvent(r,"replay")}}}else Ir&&Cr.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Ir&&Cr.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();const n=r<this._options.minReplayDuration,o=r>this._options.maxReplayDuration+5e3;if(n||o)return Ir&&Cr.info(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),void(n&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&Ir&&Cr.info("Flushing initial segment without checkout.");const s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&jr(this.session)}_onMutationHandler(e){const t=e.length,r=this._options.mutationLimit,n=r&&t>r;if(t>this._options.mutationBreadcrumbLimit||n){const e=ar({category:"replay.mutations",data:{count:t,limit:n}});this._createCustomBreadcrumb(e)}return!n||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function On(e,t){return[...e,...t].join(",")}const Pn='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Dn=["content-length","content-type","accept"];let Nn=!1;const Mn=e=>new Ln(e);class Ln{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:s,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:p=750,mutationLimit:d=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:S=[],mask:b=[],maskAttributes:_=["title","placeholder"],unmask:E=[],block:I=[],unblock:A=[],ignore:T=[],maskFn:k,beforeAddRecordingEvent:C,beforeErrorSampling:x,onError:R}={}){this.name="Replay";const O=function({mask:e,unmask:t,block:r,unblock:n,ignore:o}){return{maskTextSelector:On(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:On(t,[]),blockSelector:On(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:On(n,[]),ignoreSelector:On(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:E,block:I,unblock:A,ignore:T});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:k,maskInputFn:k,maskAttributeFn:(e,t,r)=>function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:o,value:i}){return n?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:_,maskAllText:c,privacyOptions:O,key:e,value:t,el:r}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}},recordCrossOriginIframes:Boolean(a.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,U),stickySession:o,useCompression:i,workerUrl:s,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:p,mutationLimit:d,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:Un(v),networkResponseHeaders:Un(S),beforeAddRecordingEvent:C,beforeErrorSampling:x,onError:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Pn}`:Pn),this._isInitialized&&(0,w.isBrowser)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Nn}set _isInitialized(e){Nn=e}afterAllSetup(e){(0,w.isBrowser)()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...(0,i.dropUndefinedKeys)(e)},o=(0,I.parseSampleRate)(r.replaysSessionSampleRate),s=(0,I.parseSampleRate)(r.replaysOnErrorSampleRate);null==o&&null==s&&(0,u.consoleSandbox)((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=o&&(n.sessionSampleRate=o);null!=s&&(n.errorSampleRate=s);return n}(this._initialOptions,e);this._replay=new Rn({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Un(e){return[...Dn,...e.map((e=>e.toLowerCase()))]}function Bn(){const e=(0,f.getClient)();return e?.getIntegrationByName("Replay")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClsInstrumentationHandler:()=>S,addFidInstrumentationHandler:()=>_,addInpInstrumentationHandler:()=>w,addLcpInstrumentationHandler:()=>b,addPerformanceInstrumentationHandler:()=>I,addTtfbInstrumentationHandler:()=>E,isPerformanceEventTiming:()=>N});var n=r(212),o=r(220),i=r(277),s=r(287),a=r(299),c=r(300),u=r(304),l=r(293),p=r(305);const d={},f={};let h,m,y,g,v;function S(e,t=!1){return O("cls",e,T,h,t)}function b(e,t=!1){return O("lcp",e,C,y,t)}function _(e){return O("fid",e,k,m)}function E(e){return O("ttfb",e,x,g)}function w(e){return O("inp",e,R,v)}function I(e,t){return P(e,t),f[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);(0,l.observe)(e,(t=>{A(e,{entries:t})}),t)}(e),f[e]=!0),D(e,t)}function A(e,t){const r=d[e];if(r?.length)for(const s of r)try{s(t)}catch(t){i.DEBUG_BUILD&&n.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.getFunctionName)(s)}\nError:`,t)}}function T(){return(0,s.onCLS)((e=>{A("cls",{metric:e}),h=e}),{reportAllChanges:!0})}function k(){return(0,a.onFID)((e=>{A("fid",{metric:e}),m=e}))}function C(){return(0,u.onLCP)((e=>{A("lcp",{metric:e}),y=e}),{reportAllChanges:!0})}function x(){return(0,p.onTTFB)((e=>{A("ttfb",{metric:e}),g=e}))}function R(){return(0,c.onINP)((e=>{A("inp",{metric:e}),v=e}))}function O(e,t,r,n,o=!1){let i;return P(e,t),f[e]||(i=r(),f[e]=!0),n&&t({metric:n}),D(e,t,o?i:void 0)}function P(e,t){d[e]=d[e]||[],d[e].push(t)}function D(e,t,r){return()=>{r&&r();const n=d[e];if(!n)return;const o=n.indexOf(t);-1!==o&&n.splice(o,1)}}function N(e){return"duration"in e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CLSThresholds:()=>u,onCLS:()=>l});var n=r(288),o=r(289),i=r(293),s=r(294),a=r(295),c=r(296);const u=[.1,.25],l=(e,t={})=>{(0,c.onFCP)((0,a.runOnce)((()=>{const r=(0,o.initMetric)("CLS",0);let a,c=0,l=[];const p=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=l[0],r=l[l.length-1];c&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(c+=e.value,l.push(e)):(c=e.value,l=[e])}})),c>r.value&&(r.value=c,r.entries=l,a())},d=(0,i.observe)("layout-shift",p);d&&(a=(0,n.bindReporter)(e,r,u,t.reportAllChanges),(0,s.onHidden)((()=>{p(d.takeRecords()),a(!0)})),setTimeout(a,0))})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindReporter:()=>n});const n=(e,t,r,n)=>{let o,i;return s=>{t.value>=0&&(s||n)&&(i=t.value-(o||0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initMetric:()=>a});var n=r(257),o=r(290),i=r(291),s=r(292);const a=(e,t)=>{const r=(0,s.getNavigationEntry)();let a="navigate";r&&(n.WINDOW.document?.prerendering||(0,i.getActivationStart)()>0?a="prerender":n.WINDOW.document?.wasDiscarded?a="restore":r.type&&(a=r.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:(0,o.generateUniqueID)(),navigationType:a}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateUniqueID:()=>n});const n=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getActivationStart:()=>o});var n=r(292);const o=()=>{const e=(0,n.getNavigationEntry)();return e?.activationStart||0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getNavigationEntry:()=>o});var n=r(257);const o=(e=!0)=>{const t=n.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{observe:()=>n});const n=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onHidden:()=>o});var n=r(257);const o=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==n.WINDOW.document?.visibilityState||e(t)};n.WINDOW.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{runOnce:()=>n});const n=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FCPThresholds:()=>u,onFCP:()=>l});var n=r(288),o=r(291),i=r(297),s=r(289),a=r(293),c=r(298);const u=[1800,3e3],l=(e,t={})=>{(0,c.whenActivated)((()=>{const r=(0,i.getVisibilityWatcher)(),c=(0,s.initMetric)("FCP");let l;const p=(0,a.observe)("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(p.disconnect(),e.startTime<r.firstHiddenTime&&(c.value=Math.max(e.startTime-(0,o.getActivationStart)(),0),c.entries.push(e),l(!0)))}))}));p&&(l=(0,n.bindReporter)(e,c,u,t.reportAllChanges))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getVisibilityWatcher:()=>a});var n=r(257);let o=-1;const i=e=>{"hidden"===n.WINDOW.document.visibilityState&&o>-1&&(o="visibilitychange"===e.type?e.timeStamp:0,s())},s=()=>{removeEventListener("visibilitychange",i,!0),removeEventListener("prerenderingchange",i,!0)},a=()=>(n.WINDOW.document&&o<0&&(o="hidden"!==n.WINDOW.document.visibilityState||n.WINDOW.document.prerendering?1/0:0,addEventListener("visibilitychange",i,!0),addEventListener("prerenderingchange",i,!0)),{get firstHiddenTime(){return o}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{whenActivated:()=>o});var n=r(257);const o=e=>{n.WINDOW.document?.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FIDThresholds:()=>l,onFID:()=>p});var n=r(288),o=r(297),i=r(289),s=r(293),a=r(294),c=r(295),u=r(298);const l=[100,300],p=(e,t={})=>{(0,u.whenActivated)((()=>{const r=(0,o.getVisibilityWatcher)(),u=(0,i.initMetric)("FID");let p;const d=e=>{e.startTime<r.firstHiddenTime&&(u.value=e.processingStart-e.startTime,u.entries.push(e),p(!0))},f=e=>{e.forEach(d)},h=(0,s.observe)("first-input",f);p=(0,n.bindReporter)(e,u,l,t.reportAllChanges),h&&(0,a.onHidden)((0,c.runOnce)((()=>{f(h.takeRecords()),h.disconnect()})))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INPThresholds:()=>d,onINP:()=>f});var n=r(257),o=r(288),i=r(289),s=r(301),a=r(293),c=r(294),u=r(302),l=r(298),p=r(303);const d=[200,500],f=(e,t={})=>{"PerformanceEventTiming"in n.WINDOW&&"interactionId"in PerformanceEventTiming.prototype&&(0,l.whenActivated)((()=>{(0,u.initInteractionCountPolyfill)();const r=(0,i.initMetric)("INP");let n;const l=e=>{(0,p.whenIdle)((()=>{e.forEach(s.processInteractionEntry);const t=(0,s.estimateP98LongestInteraction)();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())}))},f=(0,a.observe)("event",l,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:s.DEFAULT_DURATION_THRESHOLD});n=(0,o.bindReporter)(e,r,d,t.reportAllChanges),f&&(f.observe({type:"first-input",buffered:!0}),(0,c.onHidden)((()=>{l(f.takeRecords()),n(!0)})))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_DURATION_THRESHOLD:()=>s,entryPreProcessingCallbacks:()=>c,estimateP98LongestInteraction:()=>a,longestInteractionList:()=>o,longestInteractionMap:()=>i,processInteractionEntry:()=>u});var n=r(302);const o=[],i=new Map,s=40;const a=()=>{const e=Math.min(o.length-1,Math.floor(((0,n.getInteractionCount)()-0)/50));return o[e]},c=[],u=e=>{if(c.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=o[o.length-1],r=i.get(e.interactionId);if(r||o.length<10||t&&e.duration>t.latency){if(r)e.duration>r.latency?(r.entries=[e],r.latency=e.duration):e.duration===r.latency&&e.startTime===r.entries[0]?.startTime&&r.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};i.set(t.id,t),o.push(t)}o.sort(((e,t)=>t.latency-e.latency)),o.length>10&&o.splice(10).forEach((e=>i.delete(e.id)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteractionCount:()=>u,initInteractionCountPolyfill:()=>l});var n=r(293);let o=0,i=1/0,s=0;const a=e=>{e.forEach((e=>{e.interactionId&&(i=Math.min(i,e.interactionId),s=Math.max(s,e.interactionId),o=s?(s-i)/7+1:0)}))};let c;const u=()=>c?o:performance.interactionCount||0,l=()=>{"interactionCount"in performance||c||(c=(0,n.observe)("event",a,{type:"event",buffered:!0,durationThreshold:0}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{whenIdle:()=>s});var n=r(257),o=r(294),i=r(295);const s=e=>{const t=n.WINDOW.requestIdleCallback||n.WINDOW.setTimeout;let r=-1;return e=(0,i.runOnce)(e),"hidden"===n.WINDOW.document?.visibilityState?e():(r=t(e),(0,o.onHidden)(e)),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LCPThresholds:()=>f,onLCP:()=>m});var n=r(257),o=r(288),i=r(291),s=r(297),a=r(289),c=r(293),u=r(294),l=r(295),p=r(298),d=r(303);const f=[2500,4e3],h={},m=(e,t={})=>{(0,p.whenActivated)((()=>{const r=(0,s.getVisibilityWatcher)(),p=(0,a.initMetric)("LCP");let m;const y=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<r.firstHiddenTime&&(p.value=Math.max(e.startTime-(0,i.getActivationStart)(),0),p.entries=[e],m())}))},g=(0,c.observe)("largest-contentful-paint",y);if(g){m=(0,o.bindReporter)(e,p,f,t.reportAllChanges);const r=(0,l.runOnce)((()=>{h[p.id]||(y(g.takeRecords()),g.disconnect(),h[p.id]=!0,m(!0))}));["keydown","click"].forEach((e=>{n.WINDOW.document&&addEventListener(e,(()=>(0,d.whenIdle)(r)),{once:!0,capture:!0})})),(0,u.onHidden)(r)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TTFBThresholds:()=>u,onTTFB:()=>p});var n=r(257),o=r(288),i=r(291),s=r(292),a=r(289),c=r(298);const u=[800,1800],l=e=>{n.WINDOW.document?.prerendering?(0,c.whenActivated)((()=>l(e))):"complete"!==n.WINDOW.document?.readyState?addEventListener("load",(()=>l(e)),!0):setTimeout(e,0)},p=(e,t={})=>{const r=(0,a.initMetric)("TTFB"),n=(0,o.bindReporter)(e,r,u,t.reportAllChanges);l((()=>{const e=(0,s.getNavigationEntry)();e&&(r.value=Math.max(e.responseStart-(0,i.getActivationStart)(),0),r.entries=[e],n(!0))}))}},(e,t,r)=>{"use strict";function n(e,t){const r=t?.getDsn(),n=t?.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){if(!t)return!1;return o(e)===o(t)}(e,n)}function o(e){return"/"===e[e.length-1]?e.slice(0,-1):e}r.r(t),r.d(t,{isSentryRequestUrl:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getBodyString:()=>s,getFetchRequestArgBody:()=>a,serializeFormData:()=>i});var n=r(212),o=r(277);function i(e){return new URLSearchParams(e).toString()}function s(e,t=n.logger){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[i(e)];if(!e)return[void 0]}catch(r){return o.DEBUG_BUILD&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return o.DEBUG_BUILD&&t.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function a(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBrowser:()=>i});var n=r(309),o=r(203);function i(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||function(){const e=o.GLOBAL_OBJ.process;return"renderer"===e?.type}())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNodeEnv:()=>o,loadModule:()=>s});var n=r(249);function o(){return!(0,n.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}function s(e,t=module){let r;try{r=i(t,e)}catch(e){}if(!r)try{const{cwd:n}=i(t,"process");r=i(t,`${n()}/node_modules/${e}`)}catch(e){}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>w,browserTracingIntegration:()=>A,getMetaContent:()=>C,startBrowserTracingNavigationSpan:()=>k,startBrowserTracingPageLoadSpan:()=>T});var n=r(325),o=r(327),i=r(261),s=r(323),a=r(324),c=r(203),u=r(231),l=r(199),p=r(234),d=r(230),f=r(209),h=r(212),m=r(216),y=r(237),g=r(214),v=r(208),S=r(252),b=r(222),_=r(311),E=r(312);const w="BrowserTracing",I={...s.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...E.defaultRequestInstrumentationOptions},A=(e={})=>{const t=b.WINDOW.document;(0,a.registerSpanErrorInstrumentation)();const{enableInp:r,enableLongTask:v,enableLongAnimationFrame:A,_experiments:{enableInteractions:x,enableStandaloneClsSpans:P},beforeStartSpan:D,idleTimeout:N,finalTimeout:M,childSpanTimeout:L,markBackgroundSpan:U,traceFetch:B,traceXHR:j,trackFetchStreamPerformance:F,shouldCreateSpanForRequest:q,enableHTTPTimings:W,instrumentPageLoad:H,instrumentNavigation:z}={...I,...e},$=(0,n.startTrackingWebVitals)({recordClsStandaloneSpans:P||!1});r&&(0,o.startTrackingINP)(),A&&c.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?(0,n.startTrackingLongAnimationFrames)():v&&(0,n.startTrackingLongTasks)(),x&&(0,n.startTrackingInteractions)();const G={name:void 0,source:void 0};function V(e,r){const o="pageload"===r.op,i=D?D(r):r,a=i.attributes||{};r.name!==i.name&&(a[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",i.attributes=a),G.name=i.name,G.source=a[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const c=(0,s.startIdleSpan)(i,{idleTimeout:N,finalTimeout:M,childSpanTimeout:L,disableAutoFinish:o,beforeSpanEnd:t=>{$(),(0,n.addPerformanceEntries)(t,{recordClsOnPageloadSpan:!P}),O(e,void 0);const r=(0,l.getCurrentScope)(),o=r.getPropagationContext();r.setPropagationContext({...o,traceId:c.spanContext().traceId,sampled:(0,p.spanIsSampled)(c),dsc:(0,d.getDynamicSamplingContextFromSpan)(t)})}});function f(){t&&["interactive","complete"].includes(t.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}O(e,c),o&&t&&(t.addEventListener("readystatechange",(()=>{f()})),f())}return{name:w,afterAllSetup(e){let t=(0,f.getLocationHref)();function n(){const t=R(e);t&&!(0,p.spanToJSON)(t).timestamp&&(S.DEBUG_BUILD&&h.logger.log(`[Tracing] Finishing current active span with op: ${(0,p.spanToJSON)(t).op}`),t.end())}if(e.on("startNavigationSpan",(t=>{(0,l.getClient)()===e&&(n(),(0,l.getIsolationScope)().setPropagationContext({traceId:(0,m.generateTraceId)(),sampleRand:Math.random()}),(0,l.getCurrentScope)().setPropagationContext({traceId:(0,m.generateTraceId)(),sampleRand:Math.random()}),V(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,r={})=>{if((0,l.getClient)()!==e)return;n();const o=r.sentryTrace||C("sentry-trace"),i=r.baggage||C("baggage"),s=(0,y.propagationContextFromHeaders)(o,i);(0,l.getCurrentScope)().setPropagationContext(s),V(e,{op:"pageload",...t})})),b.WINDOW.location){if(H){const t=(0,g.browserPerformanceTimeOrigin)();T(e,{name:b.WINDOW.location.pathname,startTime:t?t/1e3:void 0,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}z&&(0,i.addHistoryInstrumentationHandler)((({to:r,from:n})=>{void 0!==n||-1===t?.indexOf(r)?n!==r&&(t=void 0,k(e,{name:b.WINDOW.location.pathname,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}})):t=void 0}))}U&&(0,_.registerBackgroundTabDetection)(),x&&function(e,t,r,n,o){const i=b.WINDOW.document;let a;const c=()=>{const i="ui.action.click",c=R(e);if(c){const e=(0,p.spanToJSON)(c).op;if(["navigation","pageload"].includes(e))return void(S.DEBUG_BUILD&&h.logger.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`))}a&&(a.setAttribute(u.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),a.end(),a=void 0),o.name?a=(0,s.startIdleSpan)({name:o.name,op:i,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o.source||"url"}},{idleTimeout:t,finalTimeout:r,childSpanTimeout:n}):S.DEBUG_BUILD&&h.logger.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`)};i&&addEventListener("click",c,{once:!1,capture:!0})}(e,N,M,L,G),r&&(0,o.registerInpInteractionListener)(),(0,E.instrumentOutgoingRequests)(e,{traceFetch:B,traceXHR:j,trackFetchStreamPerformance:F,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:q,enableHTTPTimings:W})}}};function T(e,t,r){return e.emit("startPageLoadSpan",t,r),(0,l.getCurrentScope)().setTransactionName(t.name),R(e)}function k(e,t){return e.emit("startNavigationSpan",t),(0,l.getCurrentScope)().setTransactionName(t.name),R(e)}function C(e){const t=b.WINDOW.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}const x="_sentry_idleSpan";function R(e){return e[x]}function O(e,t){(0,v.addNonEnumerableProperty)(e,x,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerBackgroundTabDetection:()=>c});var n=r(234),o=r(212),i=r(235),s=r(252),a=r(222);function c(){a.WINDOW.document?a.WINDOW.document.addEventListener("visibilitychange",(()=>{const e=(0,n.getActiveSpan)();if(!e)return;const t=(0,n.getRootSpan)(e);if(a.WINDOW.document.hidden&&t){const e="cancelled",{op:r,status:a}=(0,n.spanToJSON)(t);s.DEBUG_BUILD&&o.logger.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),a||t.setStatus({code:i.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):s.DEBUG_BUILD&&o.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultRequestInstrumentationOptions:()=>w,instrumentOutgoingRequests:()=>I,shouldAttachHeaders:()=>k,xhrCallback:()=>C});var n=r(258),o=r(286),i=r(322),s=r(259),a=r(313),c=r(265),u=r(234),l=r(214),p=r(209),d=r(213),f=r(233),h=r(235),m=r(315),y=r(231),g=r(314),v=r(199),S=r(321),b=r(222);const _=new WeakMap,E=new Map,w={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function I(e,t){const{traceFetch:r,traceXHR:o,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:u,enableHTTPTimings:l,tracePropagationTargets:p}={traceFetch:w.traceFetch,traceXHR:w.traceXHR,trackFetchStreamPerformance:w.trackFetchStreamPerformance,...t},d="function"==typeof u?u:e=>!0,f=e=>k(e,p),h={};r&&(e.addEventProcessor((e=>("transaction"===e.type&&e.spans&&e.spans.forEach((e=>{if("http.client"===e.op){const t=E.get(e.span_id);t&&(e.timestamp=t/1e3,E.delete(e.span_id))}})),e))),i&&(0,s.addFetchEndInstrumentationHandler)((e=>{if(e.response){const t=_.get(e.response);t&&e.endTimestamp&&E.set(t,e.endTimestamp)}})),(0,s.addFetchInstrumentationHandler)((e=>{const t=(0,a.instrumentFetchRequest)(e,d,f,h);if(e.response&&e.fetchData.__span&&_.set(e.response,e.fetchData.__span),t){const r=x(e.fetchData.url),n=r?(0,c.parseUrl)(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n})}l&&t&&A(t)}))),o&&(0,n.addXhrInstrumentationHandler)((e=>{const t=C(e,d,f,h);l&&t&&A(t)}))}function A(e){const{url:t}=(0,u.spanToJSON)(e).data;if(!t||"string"!=typeof t)return;const r=(0,o.addPerformanceInstrumentationHandler)("resource",(({entries:n})=>{n.forEach((n=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(n)&&n.name.endsWith(t)){(function(e){const{name:t,version:r}=(0,i.extractNetworkProtocol)(e.nextHopProtocol),n=[];if(n.push(["network.protocol.version",r],["network.protocol.name",t]),!(0,l.browserPerformanceTimeOrigin)())return n;return[...n,["http.request.redirect_start",T(e.redirectStart)],["http.request.fetch_start",T(e.fetchStart)],["http.request.domain_lookup_start",T(e.domainLookupStart)],["http.request.domain_lookup_end",T(e.domainLookupEnd)],["http.request.connect_start",T(e.connectStart)],["http.request.secure_connection_start",T(e.secureConnectionStart)],["http.request.connection_end",T(e.connectEnd)],["http.request.request_start",T(e.requestStart)],["http.request.response_start",T(e.responseStart)],["http.request.response_end",T(e.responseEnd)]]})(n).forEach((t=>e.setAttribute(...t))),setTimeout(r)}}))}))}function T(e=0){return(((0,l.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3}function k(e,t){const r=(0,p.getLocationHref)();if(r){let n,o;try{n=new URL(e,r),o=new URL(r).origin}catch(e){return!1}const i=n.origin===o;return t?(0,d.stringMatchesSomePattern)(n.toString(),t)||i&&(0,d.stringMatchesSomePattern)(n.pathname,t):i}{const r=!!e.match(/^\/(?!\/)/);return t?(0,d.stringMatchesSomePattern)(e,t):r}}function C(e,t,r,o){const i=e.xhr,s=i?.[n.SENTRY_XHR_DATA_KEY];if(!i||i.__sentry_own_request__||!s)return;const{url:a,method:l}=s,p=(0,f.hasSpansEnabled)()&&t(a);if(e.endTimestamp&&p){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=o[e];return void(t&&void 0!==s.status_code&&((0,h.setHttpStatus)(t,s.status_code),t.end(),delete o[e]))}const d=x(a),b=d?(0,c.parseUrl)(d):(0,c.parseUrl)(a),_=(0,c.stripUrlQueryAndFragment)(a),E=!!(0,u.getActiveSpan)(),w=p&&E?(0,m.startInactiveSpan)({name:`${l} ${_}`,attributes:{url:a,type:"xhr","http.method":l,"http.url":d,"server.address":b?.host,[y.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[y.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...b?.search&&{"http.query":b?.search},...b?.hash&&{"http.fragment":b?.hash}}}):new g.SentryNonRecordingSpan;i.__sentry_xhr_span_id__=w.spanContext().spanId,o[i.__sentry_xhr_span_id__]=w,r(a)&&function(e,t){const{"sentry-trace":r,baggage:n}=(0,S.getTraceData)({span:t});r&&function(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader("baggage",r)}catch(e){}}(e,r,n)}(i,(0,f.hasSpansEnabled)()&&E?w:void 0);const I=(0,v.getClient)();return I&&I.emit("beforeOutgoingRequestSpan",w,e),w}function x(e){try{return new URL(e,b.WINDOW.location.origin).href}catch{return}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentFetchRequest:()=>h});var n=r(199),o=r(231),i=r(210),s=r(233),a=r(234),c=r(232),u=r(314),l=r(235),p=r(315),d=r(265),f=r(321);function h(e,t,r,c,h="auto.http.browser"){if(!e.fetchData)return;const{method:y,url:g}=e.fetchData,v=(0,s.hasSpansEnabled)()&&t(g);if(e.endTimestamp&&v){const t=e.fetchData.__span;if(!t)return;const r=c[t];return void(r&&(!function(e,t){if(t.response){(0,l.setHttpStatus)(e,t.response.status);const r=t.response?.headers&&t.response.headers.get("content-length");if(r){const t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:l.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(r,e),delete c[t]))}const S=function(e){try{return new URL(e).href}catch{return}}(g),b=S?(0,d.parseUrl)(S):(0,d.parseUrl)(g),_=!!(0,a.getActiveSpan)(),E=v&&_?(0,p.startInactiveSpan)({name:`${y} ${(0,d.stripUrlQueryAndFragment)(g)}`,attributes:{url:g,type:"fetch","http.method":y,"http.url":S,"server.address":b?.host,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:h,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...b?.search&&{"http.query":b?.search},...b?.hash&&{"http.fragment":b?.hash}}}):new u.SentryNonRecordingSpan;if(e.fetchData.__span=E.spanContext().spanId,c[E.spanContext().spanId]=E,r(e.fetchData.url)){const t=e.args[0],r=e.args[1]||{},n=function(e,t,r){const n=(0,f.getTraceData)({span:r}),o=n["sentry-trace"],s=n.baggage;if(!o)return;const a=t.headers||(function(e){return"undefined"!=typeof Request&&(0,i.isInstanceOf)(e,Request)}(e)?e.headers:void 0);if(a){if(function(e){return"undefined"!=typeof Headers&&(0,i.isInstanceOf)(e,Headers)}(a)){const e=new Headers(a);if(e.set("sentry-trace",o),s){const t=e.get("baggage");if(t){const r=m(t);e.set("baggage",r?`${r},${s}`:s)}else e.set("baggage",s)}return e}if(Array.isArray(a)){const e=[...a.filter((e=>!(Array.isArray(e)&&"sentry-trace"===e[0]))).map((e=>{if(Array.isArray(e)&&"baggage"===e[0]&&"string"==typeof e[1]){const[t,r,...n]=e;return[t,m(r),...n]}return e})),["sentry-trace",o]];return s&&e.push(["baggage",s]),e}{const e="baggage"in a?a.baggage:void 0;let t=[];return Array.isArray(e)?t=e.map((e=>"string"==typeof e?m(e):e)).filter((e=>""===e)):e&&t.push(m(e)),s&&t.push(s),{...a,"sentry-trace":o,baggage:t.length>0?t.join(","):void 0}}}return{...n}}(t,r,(0,s.hasSpansEnabled)()&&_?E:void 0);n&&(e.args[1]=r,r.headers=n)}const w=(0,n.getClient)();if(w){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};w.emit("beforeOutgoingRequestSpan",E,t)}return E}function m(e){return e.split(",").filter((e=>!e.split("=")[0].startsWith(c.SENTRY_BAGGAGE_KEY_PREFIX))).join(",")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryNonRecordingSpan:()=>i});var n=r(216),o=r(234);class i{constructor(e={}){this._traceId=e.traceId||(0,n.generateTraceId)(),this._spanId=e.spanId||(0,n.generateSpanId)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:o.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{continueTrace:()=>k,startInactiveSpan:()=>T,startNewTrace:()=>R,startSpan:()=>I,startSpanManual:()=>A,suppressTracing:()=>x,withActiveSpan:()=>C});var n=r(201),o=r(199),i=r(200),s=r(224),a=r(231),c=r(212),u=r(216),l=r(237),p=r(316),d=r(233),f=r(238),h=r(218),m=r(234),y=r(230),g=r(317),v=r(318),S=r(314),b=r(319),_=r(235),E=r(236);const w="__SENTRY_SUPPRESS_TRACING__";function I(e,t){const r=D();if(r.startSpan)return r.startSpan(e,t);const n=P(e),{forceTransaction:i,parentSpan:s,scope:a}=e,c=a?.clone();return(0,o.withScope)(c,(()=>L(s)((()=>{const r=(0,o.getCurrentScope)(),s=M(r),a=e.onlyIfParent&&!s?new S.SentryNonRecordingSpan:O({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return(0,h._setSpanForScope)(r,a),(0,p.handleCallbackErrors)((()=>t(a)),(()=>{const{status:e}=(0,m.spanToJSON)(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})}),(()=>{a.end()}))}))))}function A(e,t){const r=D();if(r.startSpanManual)return r.startSpanManual(e,t);const n=P(e),{forceTransaction:i,parentSpan:s,scope:a}=e,c=a?.clone();return(0,o.withScope)(c,(()=>L(s)((()=>{const r=(0,o.getCurrentScope)(),s=M(r),a=e.onlyIfParent&&!s?new S.SentryNonRecordingSpan:O({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return(0,h._setSpanForScope)(r,a),(0,p.handleCallbackErrors)((()=>t(a,(()=>a.end()))),(()=>{const{status:e}=(0,m.spanToJSON)(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})}))}))))}function T(e){const t=D();if(t.startInactiveSpan)return t.startInactiveSpan(e);const r=P(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>(0,o.withScope)(e.scope,t):void 0!==i?e=>C(i,e):e=>e())((()=>{const t=(0,o.getCurrentScope)(),i=M(t);return e.onlyIfParent&&!i?new S.SentryNonRecordingSpan:O({parentSpan:i,spanArguments:r,forceTransaction:n,scope:t})}))}const k=(e,t)=>{const r=(0,n.getMainCarrier)(),s=(0,i.getAsyncContextStrategy)(r);if(s.continueTrace)return s.continueTrace(e,t);const{sentryTrace:a,baggage:c}=e;return(0,o.withScope)((e=>{const r=(0,l.propagationContextFromHeaders)(a,c);return e.setPropagationContext(r),t()}))};function C(e,t){const r=D();return r.withActiveSpan?r.withActiveSpan(e,t):(0,o.withScope)((r=>((0,h._setSpanForScope)(r,e||void 0),t(r))))}function x(e){const t=D();return t.suppressTracing?t.suppressTracing(e):(0,o.withScope)((t=>(t.setSDKProcessingMetadata({[w]:!0}),e())))}function R(e){return(0,o.withScope)((t=>(t.setPropagationContext({traceId:(0,u.generateTraceId)(),sampleRand:Math.random()}),s.DEBUG_BUILD&&c.logger.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),C(null,e))))}function O({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){if(!(0,d.hasSpansEnabled)()){const n=new S.SentryNonRecordingSpan;if(r||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,y.getDynamicSamplingContextFromSpan)(n)};(0,y.freezeDscOnSpan)(n,e)}return n}const i=(0,o.getIsolationScope)();let s;if(e&&!r)s=function(e,t,r){const{spanId:n,traceId:i}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[w]&&(0,m.spanIsSampled)(e),a=s?new b.SentrySpan({...r,parentSpanId:n,traceId:i,sampled:s}):new S.SentryNonRecordingSpan({traceId:i});(0,m.addChildSpanToSpan)(e,a);const c=(0,o.getClient)();c&&(c.emit("spanStart",a),r.endTimestamp&&c.emit("spanEnd",a));return a}(e,n,t),(0,m.addChildSpanToSpan)(e,s);else if(e){const r=(0,y.getDynamicSamplingContextFromSpan)(e),{traceId:o,spanId:i}=e.spanContext(),a=(0,m.spanIsSampled)(e);s=N({traceId:o,parentSpanId:i,...t},n,a),(0,y.freezeDscOnSpan)(s,r)}else{const{traceId:e,dsc:r,parentSpanId:o,sampled:a}={...i.getPropagationContext(),...n.getPropagationContext()};s=N({traceId:e,parentSpanId:o,...t},n,a),r&&(0,y.freezeDscOnSpan)(s,r)}return(0,g.logSpanStart)(s),(0,E.setCapturedScopesOnSpan)(s,n,i),s}function P(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...t};return r.startTimestamp=(0,m.spanTimeInputToSeconds)(e.startTime),delete r.startTime,r}return t}function D(){const e=(0,n.getMainCarrier)();return(0,i.getAsyncContextStrategy)(e)}function N(e,t,r){const n=(0,o.getClient)(),i=n?.getOptions()||{},{name:u="",attributes:l}=e,p=t.getPropagationContext(),[d,h,m]=t.getScopeData().sdkProcessingMetadata[w]?[!1]:(0,v.sampleSpan)(i,{name:u,parentSampled:r,attributes:l,parentSampleRate:(0,f.parseSampleRate)(p.dsc?.sample_rate)},p.sampleRand),y=new b.SentrySpan({...e,attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==h&&m?h:void 0,...e.attributes},sampled:d});return!d&&n&&(s.DEBUG_BUILD&&c.logger.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",y),y}function M(e){const t=(0,h._getSpanForScope)(e);if(!t)return;const r=(0,o.getClient)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,m.getRootSpan)(t):t}function L(e){return void 0!==e?t=>C(e,t):e=>e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleCallbackErrors:()=>o});var n=r(210);function o(e,t,r=()=>{}){let o;try{o=e()}catch(e){throw t(e),r(),e}return function(e,t,r){if((0,n.isThenable)(e))return e.then((e=>(r(),e)),(e=>{throw t(e),r(),e}));return r(),e}(o,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{logSpanEnd:()=>a,logSpanStart:()=>s});var n=r(224),o=r(212),i=r(234);function s(e){if(!n.DEBUG_BUILD)return;const{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:s}=(0,i.spanToJSON)(e),{spanId:a}=e.spanContext(),c=(0,i.spanIsSampled)(e),u=(0,i.getRootSpan)(e),l=u===e,p=`[Tracing] Starting ${c?"sampled":"unsampled"} ${l?"root ":""}span`,d=[`op: ${r}`,`name: ${t}`,`ID: ${a}`];if(s&&d.push(`parent ID: ${s}`),!l){const{op:e,description:t}=(0,i.spanToJSON)(u);d.push(`root ID: ${u.spanContext().spanId}`),e&&d.push(`root op: ${e}`),t&&d.push(`root description: ${t}`)}o.logger.log(`${p}\n ${d.join("\n ")}`)}function a(e){if(!n.DEBUG_BUILD)return;const{description:t="< unknown name >",op:r="< unknown op >"}=(0,i.spanToJSON)(e),{spanId:s}=e.spanContext(),a=`[Tracing] Finishing "${r}" ${(0,i.getRootSpan)(e)===e?"root ":""}span "${t}" with ID ${s}`;o.logger.log(a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{sampleSpan:()=>a});var n=r(224),o=r(212),i=r(233),s=r(238);function a(e,t,r){if(!(0,i.hasSpansEnabled)(e))return[!1];let a,c;"function"==typeof e.tracesSampler?(c=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),a=!0):void 0!==t.parentSampled?c=t.parentSampled:void 0!==e.tracesSampleRate&&(c=e.tracesSampleRate,a=!0);const u=(0,s.parseSampleRate)(c);if(void 0===u)return n.DEBUG_BUILD&&o.logger.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(c)} of type ${JSON.stringify(typeof c)}.`),[!1];if(!u)return n.DEBUG_BUILD&&o.logger.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,u,a];const l=r<u;return l||n.DEBUG_BUILD&&o.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(c)})`),[l,u,a]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentrySpan:()=>y});var n=r(199),o=r(224),i=r(242),s=r(231),a=r(212),c=r(208),u=r(216),l=r(214),p=r(234),d=r(230),f=r(317),h=r(320),m=r(236);class y{constructor(e={}){this._traceId=e.traceId||(0,u.generateTraceId)(),this._spanId=e.spanId||(0,u.generateSpanId)(),this._startTime=e.startTimestamp||(0,l.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?p.TRACE_FLAG_SAMPLED:p.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}updateStartTime(e){this._startTime=(0,p.spanTimeInputToSeconds)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=(0,p.spanTimeInputToSeconds)(e),(0,f.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return(0,c.dropUndefinedKeys)({data:this._attributes,description:this._name,op:this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,p.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[s.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[s.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:(0,h.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,p.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,p.getRootSpan)(this).spanContext().spanId:void 0,links:(0,p.convertSpanLinksForEnvelope)(this._links)})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){o.DEBUG_BUILD&&a.logger.log("[Tracing] Adding an event to span:",e);const n=g(t)?t:r||(0,l.timestampInSeconds)(),i=g(t)?{}:t||{},s={name:e,time:(0,p.spanTimeInputToSeconds)(n),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,n.getClient)();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===(0,p.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,n.getClient)();if(!t)return;const r=e[1];if(!r||0===r.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}((0,i.createSpanEnvelope)([this],e)):(o.DEBUG_BUILD&&a.logger.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){((0,m.getCapturedScopesOnSpan)(this).scope||(0,n.getCurrentScope)()).captureEvent(t)}}_convertSpanToTransaction(){if(!v((0,p.spanToJSON)(this)))return;this._name||(o.DEBUG_BUILD&&a.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=(0,m.getCapturedScopesOnSpan)(this);if(!0!==this._sampled)return;const r=(0,p.getSpanDescendants)(this).filter((e=>e!==this&&!function(e){return e instanceof y&&e.isStandaloneSpan()}(e))).map((e=>(0,p.spanToJSON)(e))).filter(v),n=this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],r.forEach((e=>{delete e.data[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]}));const i={contexts:{trace:(0,p.spanToTransactionTraceContext)(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,c.dropUndefinedKeys)({dynamicSamplingContext:(0,d.getDynamicSamplingContextFromSpan)(this)})},...n&&{transaction_info:{source:n}}},u=(0,h.timedEventsToMeasurements)(this._events);return u&&Object.keys(u).length&&(o.DEBUG_BUILD&&a.logger.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),i.measurements=u),i}}function g(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function v(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setMeasurement:()=>a,timedEventsToMeasurements:()=>c});var n=r(224),o=r(231),i=r(212),s=r(234);function a(e,t,r,a=(0,s.getActiveSpan)()){const c=a&&(0,s.getRootSpan)(a);c&&(n.DEBUG_BUILD&&i.logger.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),c.addEvent(e,{[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r}))}function c(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const r=e.attributes||{},n=r[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=r[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})})),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getTraceData:()=>d});var n=r(200),o=r(201),i=r(199),s=r(223),a=r(212),c=r(234),u=r(230),l=r(237),p=r(232);function d(e={}){const t=(0,i.getClient)();if(!(0,s.isEnabled)()||!t)return{};const r=(0,o.getMainCarrier)(),d=(0,n.getAsyncContextStrategy)(r);if(d.getTraceData)return d.getTraceData(e);const f=(0,i.getCurrentScope)(),h=e.span||(0,c.getActiveSpan)(),m=h?(0,c.spanToTraceHeader)(h):function(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,l.generateSentryTraceHeader)(t,n,r)}(f),y=h?(0,u.getDynamicSamplingContextFromSpan)(h):(0,u.getDynamicSamplingContextFromScope)(t,f),g=(0,p.dynamicSamplingContextToSentryBaggageHeader)(y);return l.TRACEPARENT_REGEXP.test(m)?{"sentry-trace":m,baggage:g}:(a.logger.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractNetworkProtocol:()=>d,getBrowserPerformanceAPI:()=>l,isMeasurementValue:()=>a,msToSec:()=>p,startAndEndSpan:()=>c,startStandaloneWebVitalSpan:()=>u});var n=r(234),o=r(315),i=r(199),s=r(257);function a(e){return"number"==typeof e&&isFinite(e)}function c(e,t,r,{...i}){const s=(0,n.spanToJSON)(e).start_timestamp;return s&&s>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,o.withActiveSpan)(e,(()=>{const e=(0,o.startInactiveSpan)({startTime:t,...i});return e&&e.end(r),e}))}function u(e){const t=(0,i.getClient)();if(!t)return;const{name:r,transaction:n,attributes:a,startTime:c}=e,{release:u,environment:l,sendDefaultPii:p}=t.getOptions(),d=t.getIntegrationByName("Replay"),f=d?.getReplayId(),h=(0,i.getCurrentScope)(),m=h.getUser(),y=void 0!==m?m.email||m.id||m.ip_address:void 0;let g;try{g=h.getScopeData().contexts.profile.profile_id}catch{}const v={release:u,environment:l,user:y||void 0,profile_id:g||void 0,replay_id:f||void 0,transaction:n,"user_agent.original":s.WINDOW.navigator?.userAgent,"client.address":p?"{{auto}}":void 0,...a};return(0,o.startInactiveSpan)({name:r,attributes:v,startTime:c,experimental:{standalone:!0}})}function l(){return s.WINDOW.addEventListener&&s.WINDOW.performance}function p(e){return e/1e3}function d(e){let t="unknown",r="unknown",n="";for(const o of e){if("/"===o){[t,r]=e.split("/");break}if(!isNaN(Number(o))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=o}return n===e&&(t=n),{name:t,version:r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACING_DEFAULTS:()=>m,startIdleSpan:()=>b});var n=r(199),o=r(224),i=r(231),s=r(212),a=r(214),c=r(233),u=r(218),l=r(234),p=r(230),d=r(314),f=r(235),h=r(315);const m={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},y="heartbeatFailed",g="idleTimeout",v="finalTimeout",S="externalFinish";function b(e,t={}){const r=new Map;let b,_=!1,E=S,w=!t.disableAutoFinish;const I=[],{idleTimeout:A=m.idleTimeout,finalTimeout:T=m.finalTimeout,childSpanTimeout:k=m.childSpanTimeout,beforeSpanEnd:C}=t,x=(0,n.getClient)();if(!x||!(0,c.hasSpansEnabled)()){const e=new d.SentryNonRecordingSpan,t={sample_rate:"0",sampled:"false",...(0,p.getDynamicSamplingContextFromSpan)(e)};return(0,p.freezeDscOnSpan)(e,t),e}const R=(0,n.getCurrentScope)(),O=(0,l.getActiveSpan)(),P=function(e){const t=(0,h.startInactiveSpan)(e);return(0,u._setSpanForScope)((0,n.getCurrentScope)(),t),o.DEBUG_BUILD&&s.logger.log("[Tracing] Started span is an idle span"),t}(e);function D(){b&&(clearTimeout(b),b=void 0)}function N(e){D(),b=setTimeout((()=>{!_&&0===r.size&&w&&(E=g,P.end(e))}),A)}function M(e){b=setTimeout((()=>{!_&&w&&(E=y,P.end(e))}),k)}function L(e){_=!0,r.clear(),I.forEach((e=>e())),(0,u._setSpanForScope)(R,O);const t=(0,l.spanToJSON)(P),{start_timestamp:n}=t;if(!n)return;t.data[i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||P.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,E),s.logger.log(`[Tracing] Idle span "${t.op}" finished`);const a=(0,l.getSpanDescendants)(P).filter((e=>e!==P));let c=0;a.forEach((t=>{t.isRecording()&&(t.setStatus({code:f.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),o.DEBUG_BUILD&&s.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const r=(0,l.spanToJSON)(t),{timestamp:n=0,start_timestamp:i=0}=r,a=i<=e,u=n-i<=(T+A)/1e3;if(o.DEBUG_BUILD){const e=JSON.stringify(t,void 0,2);a?u||s.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",e):s.logger.log("[Tracing] Discarding span since it happened after idle span was finished",e)}u&&a||((0,l.removeChildSpanFromSpan)(P,t),c++)})),c>0&&P.setAttribute("sentry.idle_span_discarded_spans",c)}return P.end=new Proxy(P.end,{apply(e,t,r){if(C&&C(P),t instanceof d.SentryNonRecordingSpan)return;const[n,...o]=r,i=n||(0,a.timestampInSeconds)(),s=(0,l.spanTimeInputToSeconds)(i),c=(0,l.getSpanDescendants)(P).filter((e=>e!==P));if(!c.length)return L(s),Reflect.apply(e,t,[s,...o]);const u=c.map((e=>(0,l.spanToJSON)(e).timestamp)).filter((e=>!!e)),p=u.length?Math.max(...u):void 0,f=(0,l.spanToJSON)(P).start_timestamp,h=Math.min(f?f+T/1e3:1/0,Math.max(f||-1/0,Math.min(s,p||1/0)));return L(h),Reflect.apply(e,t,[h,...o])}}),I.push(x.on("spanStart",(e=>{if(_||e===P||(0,l.spanToJSON)(e).timestamp)return;var t;(0,l.getSpanDescendants)(P).includes(e)&&(t=e.spanContext().spanId,D(),r.set(t,!0),M((0,a.timestampInSeconds)()+k/1e3))}))),I.push(x.on("spanEnd",(e=>{var t;_||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&N((0,a.timestampInSeconds)()+A/1e3))}))),I.push(x.on("idleSpanEnableAutoFinish",(e=>{e===P&&(w=!0,N(),r.size&&M())}))),t.disableAutoFinish||N(),setTimeout((()=>{_||(P.setStatus({code:f.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),E=v,P.end())}),T),P}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerSpanErrorInstrumentation:()=>l});var n=r(224),o=r(269),i=r(270),s=r(212),a=r(234),c=r(235);let u=!1;function l(){u||(u=!0,(0,o.addGlobalErrorInstrumentationHandler)(p),(0,i.addGlobalUnhandledRejectionInstrumentationHandler)(p))}function p(){const e=(0,a.getActiveSpan)(),t=e&&(0,a.getRootSpan)(e);if(t){const e="internal_error";n.DEBUG_BUILD&&s.logger.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:c.SPAN_STATUS_ERROR,message:e})}}p.tag="sentry_tracingErrorCallback"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_addMeasureSpans:()=>T,_addResourceSpans:()=>C,addPerformanceEntries:()=>A,startTrackingInteractions:()=>I,startTrackingLongAnimationFrames:()=>w,startTrackingLongTasks:()=>E,startTrackingWebVitals:()=>_});var n=r(214),o=r(234),i=r(231),s=r(209),a=r(320),c=r(265),u=r(257),l=r(326),p=r(286),d=r(322),f=r(291),h=r(292),m=r(297);const y=2147483647;let g,v,S=0,b={};function _({recordClsStandaloneSpans:e}){const t=(0,d.getBrowserPerformanceAPI)();if(t&&(0,n.browserPerformanceTimeOrigin)()){t.mark&&u.WINDOW.performance.mark("sentry-tracing-init");const r=(0,p.addFidInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const r=(0,d.msToSec)((0,n.browserPerformanceTimeOrigin)()),o=(0,d.msToSec)(t.startTime);b.fid={value:e.value,unit:"millisecond"},b["mark.fid"]={value:r+o,unit:"second"}})),o=(0,p.addLcpInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(b.lcp={value:e.value,unit:"millisecond"},g=t)}),!0),i=(0,p.addTtfbInstrumentationHandler)((({metric:e})=>{e.entries[e.entries.length-1]&&(b.ttfb={value:e.value,unit:"millisecond"})})),s=e?(0,l.trackClsAsStandaloneSpan)():(0,p.addClsInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(b.cls={value:e.value,unit:""},v=t)}),!0);return()=>{r(),o(),i(),s?.()}}return()=>{}}function E(){(0,p.addPerformanceInstrumentationHandler)("longtask",(({entries:e})=>{const t=(0,o.getActiveSpan)();if(!t)return;const{op:r,start_timestamp:s}=(0,o.spanToJSON)(t);for(const o of e){const e=(0,d.msToSec)((0,n.browserPerformanceTimeOrigin)()+o.startTime),a=(0,d.msToSec)(o.duration);"navigation"===r&&s&&e<s||(0,d.startAndEndSpan)(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}}))}function w(){new PerformanceObserver((e=>{const t=(0,o.getActiveSpan)();if(t)for(const r of e.getEntries()){if(!r.scripts[0])continue;const e=(0,d.msToSec)((0,n.browserPerformanceTimeOrigin)()+r.startTime),{start_timestamp:s,op:a}=(0,o.spanToJSON)(t);if("navigation"===a&&s&&e<s)continue;const c=(0,d.msToSec)(r.duration),u={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},l=r.scripts[0],{invoker:p,invokerType:f,sourceURL:h,sourceFunctionName:m,sourceCharPosition:y}=l;u["browser.script.invoker"]=p,u["browser.script.invoker_type"]=f,h&&(u["code.filepath"]=h),m&&(u["code.function"]=m),-1!==y&&(u["browser.script.source_char_position"]=y),(0,d.startAndEndSpan)(t,e,e+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:u})}})).observe({type:"long-animation-frame",buffered:!0})}function I(){(0,p.addPerformanceInstrumentationHandler)("event",(({entries:e})=>{const t=(0,o.getActiveSpan)();if(t)for(const r of e)if("click"===r.name){const e=(0,d.msToSec)((0,n.browserPerformanceTimeOrigin)()+r.startTime),o=(0,d.msToSec)(r.duration),a={name:(0,s.htmlTreeAsString)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},c=(0,s.getComponentName)(r.target);c&&(a.attributes["ui.component_name"]=c),(0,d.startAndEndSpan)(t,e,e+o,a)}}))}function A(e,t){const r=(0,d.getBrowserPerformanceAPI)(),c=(0,n.browserPerformanceTimeOrigin)();if(!r?.getEntries||!c)return;const l=(0,d.msToSec)(c),p=r.getEntries(),{op:y,start_timestamp:_}=(0,o.spanToJSON)(e);if(p.slice(S).forEach((t=>{const r=(0,d.msToSec)(t.startTime),n=(0,d.msToSec)(Math.max(0,t.duration));if(!("navigation"===y&&_&&l+r<_))switch(t.entryType){case"navigation":!function(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{k(e,t,n,r)})),k(e,t,"secureConnection",r,"TLS/SSL"),k(e,t,"fetch",r,"cache"),k(e,t,"domainLookup",r,"DNS"),function(e,t,r){const n=r+(0,d.msToSec)(t.requestStart),o=r+(0,d.msToSec)(t.responseEnd),s=r+(0,d.msToSec)(t.responseStart);t.responseEnd&&((0,d.startAndEndSpan)(e,n,o,{op:"browser.request",name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),(0,d.startAndEndSpan)(e,s,o,{op:"browser.response",name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,r)}(e,t,l);break;case"mark":case"paint":case"measure":{T(e,t,r,n,l);const o=(0,m.getVisibilityWatcher)(),i=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&i&&(b.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&i&&(b.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":C(e,t,t.name,r,n,l)}})),S=Math.max(p.length-1,0),function(e){const t=u.WINDOW.navigator;if(!t)return;const r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),(0,d.isMeasurementValue)(r.rtt)&&(b["connection.rtt"]={value:r.rtt,unit:"millisecond"}));(0,d.isMeasurementValue)(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);(0,d.isMeasurementValue)(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===y){!function(e){const t=(0,h.getNavigationEntry)(!1);if(!t)return;const{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(b);const r=b["mark.fid"];r&&b.fid&&((0,d.startAndEndSpan)(e,r.value,r.value+(0,d.msToSec)(b.fid.value),{name:"first input delay",op:"ui.action",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),delete b["mark.fid"]),"fcp"in b&&t.recordClsOnPageloadSpan||delete b.cls,Object.entries(b).forEach((([e,t])=>{(0,a.setMeasurement)(e,t.value,t.unit)})),e.setAttribute("performance.timeOrigin",l),e.setAttribute("performance.activationStart",(0,f.getActivationStart)()),function(e){g&&(g.element&&e.setAttribute("lcp.element",(0,s.htmlTreeAsString)(g.element)),g.id&&e.setAttribute("lcp.id",g.id),g.url&&e.setAttribute("lcp.url",g.url.trim().slice(0,200)),null!=g.loadTime&&e.setAttribute("lcp.loadTime",g.loadTime),null!=g.renderTime&&e.setAttribute("lcp.renderTime",g.renderTime),e.setAttribute("lcp.size",g.size));v?.sources&&v.sources.forEach(((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,s.htmlTreeAsString)(t.node))))}(e)}g=void 0,v=void 0,b={}}function T(e,t,r,n,o){const s=(0,h.getNavigationEntry)(!1),a=(0,d.msToSec)(s?s.requestStart:0),c=o+Math.max(r,a),u=o+r,l=u+n,p={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};c!==u&&(p["sentry.browser.measure_happened_before_request"]=!0,p["sentry.browser.measure_start_time"]=c),c<=l&&(0,d.startAndEndSpan)(e,c,l,{name:t.name,op:t.entryType,attributes:p})}function k(e,t,r,n,o=r){const s=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(r),a=t[s],c=t[`${r}Start`];c&&a&&(0,d.startAndEndSpan)(e,n+(0,d.msToSec)(c),n+(0,d.msToSec)(a),{op:`browser.${o}`,name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}function C(e,t,r,n,o,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a=(0,c.parseUrl)(r),l={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};x(l,t,"transferSize","http.response_transfer_size"),x(l,t,"encodedBodySize","http.response_content_length"),x(l,t,"decodedBodySize","http.decoded_response_content_length");const p=t.deliveryType;null!=p&&(l["http.response_delivery_type"]=p);const f=t.renderBlockingStatus;f&&(l["resource.render_blocking_status"]=f),a.protocol&&(l["url.scheme"]=a.protocol.split(":").pop()),a.host&&(l["server.address"]=a.host),l["url.same_origin"]=r.includes(u.WINDOW.location.origin);const{name:h,version:m}=(0,d.extractNetworkProtocol)(t.nextHopProtocol);l["network.protocol.name"]=h,l["network.protocol.version"]=m;const y=s+n,g=y+o;(0,d.startAndEndSpan)(e,y,g,{name:r.replace(u.WINDOW.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:l})}function x(e,t,r,n){const o=t[r];null!=o&&o<y&&(e[n]=o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{trackClsAsStandaloneSpan:()=>h});var n=r(199),o=r(234),i=r(212),s=r(214),a=r(209),c=r(208),u=r(231),l=r(277),p=r(286),d=r(322),f=r(294);function h(){let e,t,r=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}())return;let h=!1;function m(){h||(h=!0,t&&function(e,t,r){l.DEBUG_BUILD&&i.logger.log(`Sending CLS span (${e})`);const o=(0,d.msToSec)(((0,s.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),p=(0,n.getCurrentScope)().getScopeData().transactionName,f=t?(0,a.htmlTreeAsString)(t.sources[0]?.node):"Layout shift",h=(0,c.dropUndefinedKeys)({[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[u.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t?.duration||0,"sentry.pageload.span_id":r}),m=(0,d.startStandaloneWebVitalSpan)({name:f,transaction:p,attributes:h,startTime:o});m&&(m.addEvent("cls",{[u.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[u.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),m.end(o))}(r,e,t),y())}const y=(0,p.addClsInstrumentationHandler)((({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(r=t.value,e=n)}),!0);(0,f.onHidden)((()=>{m()})),setTimeout((()=>{const e=(0,n.getClient)();if(!e)return;const r=e.on("startNavigationSpan",(()=>{m(),r?.()})),i=(0,o.getActiveSpan)();if(i){const e=(0,o.getRootSpan)(i);"pageload"===(0,o.spanToJSON)(e).op&&(t=e.spanContext().spanId)}}),0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerInpInteractionListener:()=>m,startTrackingINP:()=>f});var n=r(214),o=r(234),i=r(199),s=r(209),a=r(208),c=r(231),u=r(286),l=r(322);const p=[],d=new Map;function f(){if((0,l.getBrowserPerformanceAPI)()&&(0,n.browserPerformanceTimeOrigin)()){const e=(0,u.addInpInstrumentationHandler)((({metric:e})=>{if(null==e.value)return;const t=e.entries.find((t=>t.duration===e.value&&h[t.name]));if(!t)return;const{interactionId:r}=t,u=h[t.name],p=(0,l.msToSec)((0,n.browserPerformanceTimeOrigin)()+t.startTime),f=(0,l.msToSec)(e.value),m=(0,o.getActiveSpan)(),y=m?(0,o.getRootSpan)(m):void 0,g=(null!=r?d.get(r):void 0)||y,v=g?(0,o.spanToJSON)(g).description:(0,i.getCurrentScope)().getScopeData().transactionName,S=(0,s.htmlTreeAsString)(t.target),b=(0,a.dropUndefinedKeys)({[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${u}`,[c.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t.duration}),_=(0,l.startStandaloneWebVitalSpan)({name:S,transaction:v,attributes:b,startTime:p});_&&(_.addEvent("inp",{[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),_.end(p+f))}));return()=>{e()}}return()=>{}}const h={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function m(){const e=({entries:e})=>{const t=(0,o.getActiveSpan)(),r=t&&(0,o.getRootSpan)(t);e.forEach((e=>{if(!(0,u.isPerformanceEventTiming)(e)||!r)return;const t=e.interactionId;if(null!=t&&!d.has(t)){if(p.length>10){const e=p.shift();d.delete(e)}p.push(t),d.set(t,r)}}))};(0,u.addPerformanceInstrumentationHandler)("event",e),(0,u.addPerformanceInstrumentationHandler)("first-input",e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{excludeGraphQLFetch:()=>n,withoutGraphQLFetch:()=>o});const n=e=>{if("fetch"===e.category){if((e.data?.url??"").includes("/graphql"))return null}return e};function o(e){return(t,r)=>{const o=n(t,r);return null===o?null:e(o,r)}}},e=>{"use strict";e.exports=JSON.parse('{"App":{"title":"Repair Kit","rebootServerSuccess":"Server was restarted successefully.","diskCleanUpSuccess":"Plesk freed up %%size%% of disk space.","diskCleanUpNothing":"Plesk could not free up any disk space. We recommend connecting to the server via SSH or RDP and cleaning up some disk space manually.","memoryCleanUpSuccess":"Plesk freed up %%size%% of RAM. If you continue experiencing issues caused by a lack of memory, we recommend stopping some non-essential processes or adding more RAM to the server.","memoryCleanUpNothing":"Plesk could not free up any RAM. We recommend stopping some non-essential processes or adding more RAM to the server.","restartServiceSuccess":"Plesk has restarted %%serviceName%% service it needs to operate. Try logging in now. If any services stop or become unresponsive again, try troubleshooting the issue or contact support."},"Overview":{"description":"Is Plesk unavailable? This may be caused by technical issues or by a shortage of resources, such as memory or disk space. You can try bringing Plesk back online by following the suggestions found on this page.","loginDescription":"If you believe you have resolved the issues, you can try logging in to Plesk.","loginButton":"Log In to Plesk","helpCenterDescription":"Could not resolve the issue on your own? Visit our %%link%%.","helpCenter":"Help Center","terminalDescription":"You can use %%link%% to resolve the issue","terminalLink":"the SSH terminal"},"RestartServer":{"description":"Sometimes, restarting the server is enough to bring things back to normal.","button":"Restart the Server","dialogText":"Note that after you restart the server, both Plesk and hosted websites will become unavailable for a short time. Keep refreshing the page until you see the Plesk login page."},"Disk":{"title":"Disk Space","description":"Both Plesk and Plesk services need sufficient disk space to operate properly. If you have run out of free disk space on the disk where Plesk is installed, try freeing some up.","loadingError":"Can not retrieve information about disks usage:","volume":"Disk","volumeFormat":"%%name%% on %%mount_point%%","directories":"Important directories","free":"Free disk space","recommend":"Plesk can try freeing up some disk space by removing temporary files.","recommend2":"If you are permanently experiencing issues with insufficient disk space, consider %%limitingBackupsLink%% on the server. You can also use the %%duExtensionLink%% extension by Plesk to get the detailed analysis of disk space usage.","limitingBackups":"limiting the number of full backups","duExtension":"Diskspace Usage Viewer","cleanUp":"Free Up Disk Space"},"Memory":{"title":"RAM","description":"Hosted websites consume memory. Plesk can malfunction if there is not enough memory for it to operate. You can try freeing up some memory by resetting active connections to hosted websites. If this does not help, we suggest logging in to the server via SSH or RDP and investigating which processes consume the most memory.","loadingError":"Can not retrieve information about memory usage:","free":"Available","recommend":"Plesk can try freeing up some memory by restarting the web server processes.","cleanUp":"Free Up Memory"},"Services":{"PleskSQLServer.title":"MariaDB/MySQL server","PleskSQLServer.description":"Plesk can operate properly only if database server service is running without issues.","SwEngine.title":"Plesk service","SwEngine.description":"Plesk can operate properly only if Plesk service is running without issues.","name":"Service","status":"Status","responding":"Responding","notResponding":"Not Responding","PleskSQLServer.fix":"Restart","SwEngine.fix":"Restart","InnoDB.fix":"Repair","InnoDB.check":"Check","InnoDB.name":"InnoDB files","MysqlFilesPermissions.fix":"Repair","MysqlFilesPermissions.check":"Check","MysqlFilesPermissions.name":"File permissions"},"ServiceStatus":{"PleskSQLServer":{"invalid":"Invalid","disabled":"Disabled","starting":"Starting","running":"Running","stopping":"Stopping","stopped":"Stopped","pausing":"Pausing","paused":"Paused","continuing":"Continuing"},"SwEngine":{"invalid":"Invalid","disabled":"Disabled","starting":"Starting","running":"Running","stopping":"Stopping","stopped":"Stopped","pausing":"Pausing","paused":"Paused","continuing":"Continuing"},"InnoDB":{"ok":"No corrupted tablespace files","corrupted":"Corrupted tablespace files","failed":"Something went wrong","error":"Something went wrong","inactive":"Not checked yet"},"MysqlFilesPermissions":{"ok":"No issues detected","corrupted":"Incorrect permissions detected","failed":"Something went wrong","error":"Something went wrong","inactive":"Not checked yet"}},"Available":{"format":"%%percent%% (%%free%% of %%total%% total)"},"Bytes":{"suffix":"B","kilo":"K","mega":"M","giga":"G","tera":"T"},"SubmitPopover":{"checkDescription":"InnoDB tablespace files check operation requires time to execute. During this time MariaDB/MySQL server will be stopped and websites that rely on it will not be available.","repairList":"Automatic repair of corrupted InnoDB tablespace files:","repairListOption1":"Consumes disk space because Plesk attempts to back up the data.","repairListOption2":"May cause data loss because corrupted databases are dropped before the repair attempt. If automatic repair fails, you may try to restore the data from the backup.","repairTroubleshootingArticleText":"You can also try to manually repair corrupted InnoDB tablespace files by following the steps from the %%troubleshootingArticle%%.","repairConfirmationText":"Continue automatic repair?","repairTroubleshootingArticle":"KB article","ok":"Continue","cancel":"Cancel"}}')}],t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.nc=void 0;var n={};(()=>{"use strict";r.r(n);var e=r(1),t=r(4),o=r(2);(0,e.createRoot)(document.getElementById("app")).render((0,o.jsx)(t.default,{}))})()})(); //# sourceMappingURL=app.js.map?06a8c869b14aa40626c2