/*! For license information please see nodeModules.4763bf178c9e97f543ea.js.LICENSE.txt */ (self.webpackChunksr_checkout=self.webpackChunksr_checkout||[]).push([[422],{6451:(e,t,n)=>{"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return e<=1?"".concat(100*Number(e),"%"):e}function i(e){return 1===e.length?"0"+e:String(e)}function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e){return l(e)/255}function l(e){return parseInt(e,16)}n.r(t),n.d(t,{blue:()=>I,cyan:()=>A,geekblue:()=>L,generate:()=>k,gold:()=>R,green:()=>N,grey:()=>U,lime:()=>M,magenta:()=>z,orange:()=>P,presetDarkPalettes:()=>T,presetPalettes:()=>x,presetPrimaryColors:()=>E,purple:()=>j,red:()=>C,volcano:()=>O,yellow:()=>D});var c={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function u(e){var t,n,i,u={r:0,g:0,b:0},d=1,f=null,p=null,g=null,y=!1,v=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(c[e])e=c[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=h.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=h.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=h.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=h.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=h.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=h.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=h.hex8.exec(e))?{r:l(n[1]),g:l(n[2]),b:l(n[3]),a:s(n[4]),format:t?"name":"hex8"}:(n=h.hex6.exec(e))?{r:l(n[1]),g:l(n[2]),b:l(n[3]),format:t?"name":"hex"}:(n=h.hex4.exec(e))?{r:l(n[1]+n[1]),g:l(n[2]+n[2]),b:l(n[3]+n[3]),a:s(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=h.hex3.exec(e))&&{r:l(n[1]+n[1]),g:l(n[2]+n[2]),b:l(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(m(e.r)&&m(e.g)&&m(e.b)?(t=e.r,n=e.g,i=e.b,u={r:255*r(t,255),g:255*r(n,255),b:255*r(i,255)},y=!0,v="%"===String(e.r).substr(-1)?"prgb":"rgb"):m(e.h)&&m(e.s)&&m(e.v)?(f=o(e.s),p=o(e.v),u=function(e,t,n){e=6*r(e,360),t=r(t,100),n=r(n,100);var o=Math.floor(e),i=e-o,a=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),c=o%6;return{r:255*[n,s,a,a,l,n][c],g:255*[l,n,n,s,a,a][c],b:255*[a,a,l,n,n,s][c]}}(e.h,f,p),y=!0,v="hsv"):m(e.h)&&m(e.s)&&m(e.l)&&(f=o(e.s),g=o(e.l),u=function(e,t,n){var o,i,s;if(e=r(e,360),t=r(t,100),n=r(n,100),0===t)i=n,s=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=a(c,l,e+1/3),i=a(c,l,e),s=a(c,l,e-1/3)}return{r:255*o,g:255*i,b:255*s}}(e.h,f,g),y=!0,v="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(d=e.a)),d=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(d),{ok:y,format:e.format||v,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:d}}var d="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),f="[\\s|\\(]+(".concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")\\s*\\)?"),p="[\\s|\\(]+(".concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")\\s*\\)?"),h={CSS_UNIT:new RegExp(d),rgb:new RegExp("rgb"+f),rgba:new RegExp("rgba"+p),hsl:new RegExp("hsl"+f),hsla:new RegExp("hsla"+p),hsv:new RegExp("hsv"+f),hsva:new RegExp("hsva"+p),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function m(e){return Boolean(h.CSS_UNIT.exec(String(e)))}var g=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function y(e){var t=function(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=o,l=o-i,c=0===o?0:l/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function w(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function S(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function k(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=u(e),o=5;o>0;o-=1){var i=y(r),a=v(u({h:b(i,o,!0),s:w(i,o,!0),v:S(i,o,!0)}));n.push(a)}n.push(v(r));for(var s=1;s<=4;s+=1){var l=y(r),c=v(u({h:b(l,s),s:w(l,s),v:S(l,s)}));n.push(c)}return"dark"===t.theme?g.map((function(e){var r=e.index,o=e.opacity;return v(_(u(t.backgroundColor||"#141414"),u(n[r]),100*o))})):n}var E={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},x={},T={};Object.keys(E).forEach((function(e){x[e]=k(E[e]),x[e].primary=x[e][5],T[e]=k(E[e],{theme:"dark",backgroundColor:"#141414"}),T[e].primary=T[e][5]}));var C=x.red,O=x.volcano,R=x.gold,P=x.orange,D=x.yellow,M=x.lime,N=x.green,A=x.cyan,I=x.blue,L=x.geekblue,j=x.purple,z=x.magenta,U=x.grey},1025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"}},4532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"}},65:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"}},7214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},2277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"}},2554:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(3942))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},6064:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(7133))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},7954:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(9853))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},8491:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(8454))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},9251:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(710))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},7830:(e,t,n)=>{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(2122)),a=r(n(7424)),s=r(n(1670)),l=r(n(215)),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(7313)),u=r(n(6123)),d=r(n(4573)),f=r(n(9063)),p=n(1468),h=n(9018),m=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}(0,p.setTwoToneColor)("#1890ff");var y=c.forwardRef((function(e,t){var n,r=e.className,o=e.icon,p=e.spin,g=e.rotate,y=e.tabIndex,v=e.onClick,_=e.twoToneColor,b=(0,l.default)(e,m),w=c.useContext(d.default),S=w.prefixCls,k=void 0===S?"anticon":S,E=w.rootClassName,x=(0,u.default)(E,k,(n={},(0,s.default)(n,"".concat(k,"-").concat(o.name),!!o.name),(0,s.default)(n,"".concat(k,"-spin"),!!p||"loading"===o.name),n),r),T=y;void 0===T&&v&&(T=-1);var C=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,O=(0,h.normalizeTwoToneColors)(_),R=(0,a.default)(O,2),P=R[0],D=R[1];return c.createElement("span",(0,i.default)((0,i.default)({role:"img","aria-label":o.name},b),{},{ref:t,tabIndex:T,onClick:v,className:x}),c.createElement(f.default,{icon:o,primaryColor:P,secondaryColor:D,style:C}))}));y.displayName="AntdIcon",y.getTwoToneColor=p.getTwoToneColor,y.setTwoToneColor=p.setTwoToneColor;var v=y;t.default=v},4573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(7313).createContext)({});t.default=r},9063:(e,t,n)=>{"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(215)),i=r(n(2122)),a=n(9018),s=["icon","className","onClick","style","primaryColor","secondaryColor"],l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},c=function(e){var t=e.icon,n=e.className,r=e.onClick,c=e.style,u=e.primaryColor,d=e.secondaryColor,f=(0,o.default)(e,s),p=l;if(u&&(p={primaryColor:u,secondaryColor:d||(0,a.getSecondaryColor)(u)}),(0,a.useInsertStyles)(),(0,a.warning)((0,a.isIconDefinition)(t),"icon should be icon definiton, but got ".concat(t)),!(0,a.isIconDefinition)(t))return null;var h=t;return h&&"function"==typeof h.icon&&(h=(0,i.default)((0,i.default)({},h),{},{icon:h.icon(p.primaryColor,p.secondaryColor)})),(0,a.generate)(h.icon,"svg-".concat(h.name),(0,i.default)({className:n,onClick:r,style:c,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f))};c.displayName="IconReact",c.getTwoToneColors=function(){return(0,i.default)({},l)},c.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;l.primaryColor=t,l.secondaryColor=n||(0,a.getSecondaryColor)(t),l.calculated=!!n};var u=c;t.default=u},1468:(e,t,n)=>{"use strict";var r=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.getTwoToneColor=function(){var e=i.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},t.setTwoToneColor=function(e){var t=(0,a.normalizeTwoToneColors)(e),n=(0,o.default)(t,2),r=n[0],s=n[1];return i.default.setTwoToneColors({primaryColor:r,secondaryColor:s})};var o=r(n(7424)),i=r(n(9063)),a=n(9018)},3942:(e,t,n)=>{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(2122)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(7313)),s=r(n(1025)),l=r(n(7830));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var u=function(e,t){return a.createElement(l.default,(0,i.default)((0,i.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="CloseCircleFilled";var d=a.forwardRef(u);t.default=d},7133:(e,t,n)=>{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(2122)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(7313)),s=r(n(4532)),l=r(n(7830));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var u=function(e,t){return a.createElement(l.default,(0,i.default)((0,i.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="EyeInvisibleOutlined";var d=a.forwardRef(u);t.default=d},9853:(e,t,n)=>{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(2122)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(7313)),s=r(n(65)),l=r(n(7830));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var u=function(e,t){return a.createElement(l.default,(0,i.default)((0,i.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="EyeOutlined";var d=a.forwardRef(u);t.default=d},8454:(e,t,n)=>{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(2122)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(7313)),s=r(n(7214)),l=r(n(7830));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var u=function(e,t){return a.createElement(l.default,(0,i.default)((0,i.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="LoadingOutlined";var d=a.forwardRef(u);t.default=d},710:(e,t,n)=>{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(2122)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(7313)),s=r(n(2277)),l=r(n(7830));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var u=function(e,t){return a.createElement(l.default,(0,i.default)((0,i.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="SearchOutlined";var d=a.forwardRef(u);t.default=d},9018:(e,t,n)=>{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(t,"__esModule",{value:!0}),t.generate=function e(t,n,r){return r?l.default.createElement(t.tag,(0,i.default)((0,i.default)({key:n},h(t.attrs)),r),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))):l.default.createElement(t.tag,(0,i.default)({key:n},h(t.attrs)),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})))},t.getSecondaryColor=function(e){return(0,s.generate)(e)[0]},t.iconStyles=void 0,t.isIconDefinition=function(e){return"object"===(0,a.default)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,a.default)(e.icon)||"function"==typeof e.icon)},t.normalizeAttrs=h,t.normalizeTwoToneColors=function(e){return e?Array.isArray(e)?e:[e]:[]},t.useInsertStyles=t.svgBaseProps=void 0,t.warning=function(e,t){(0,c.default)(e,"[@ant-design/icons] ".concat(t))};var i=r(n(2122)),a=r(n(8698)),s=n(6451),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(7313)),c=r(n(6176)),u=n(7663),d=r(n(4573)),f=r(n(9746));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[(0,f.default)(n)]=r),t}),{})}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var m="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t.iconStyles=m,t.useInsertStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=(0,l.useContext)(d.default),n=t.csp;(0,l.useEffect)((function(){(0,u.updateCSS)(e,"@ant-design-icons",{prepend:!0,csp:n})}),[])}},1445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},9753:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}},7663:(e,t,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.clearContainerCache=function(){c.clear()},t.injectCSS=h,t.removeCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(e,t);if(n){var r=d(t);r.removeChild(n)}},t.updateCSS=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=d(n);g(r,n);var o,i,a,s=m(t,n);if(s)return null!==(o=n.csp)&&void 0!==o&&o.nonce&&s.nonce!==(null===(i=n.csp)||void 0===i?void 0:i.nonce)&&(s.nonce=null===(a=n.csp)||void 0===a?void 0:a.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;var l=h(e,n);return l.setAttribute(u(n),t),l};var o=r(n(1445)),i=r(n(9753)),a="data-rc-order",s="data-rc-priority",l="rc-util-key",c=new Map;function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):l}function d(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function p(e){return Array.from((c.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,l=void 0===i?0:i,c=f(r),u="prependQueue"===c,h=document.createElement("style");h.setAttribute(a,c),u&&l&&h.setAttribute(s,"".concat(l)),null!=n&&n.nonce&&(h.nonce=null==n?void 0:n.nonce),h.innerHTML=e;var m=d(t),g=m.firstChild;if(r){if(u){var y=p(m).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(a)))return!1;var t=Number(e.getAttribute(s)||0);return l>=t}));if(y.length)return m.insertBefore(h,y[y.length-1].nextSibling),h}m.insertBefore(h,g)}else m.appendChild(h);return h}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(t);return p(n).find((function(n){return n.getAttribute(u(t))===e}))}function g(e,t){var n=c.get(e);if(!n||!(0,i.default)(document,n)){var r=h("",t),o=r.parentNode;c.set(e,o),e.removeChild(r)}}},6176:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.call=l,t.default=void 0,t.note=a,t.noteOnce=u,t.preMessage=void 0,t.resetWarned=s,t.warning=i,t.warningOnce=c;var n={},r=[],o=function(e){r.push(e)};function i(e,t){}function a(e,t){}function s(){n={}}function l(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function c(e,t){l(i,e,t)}function u(e,t){l(a,e,t)}t.preMessage=o,c.preMessage=o,c.resetWarned=s,c.noteOnce=u;var d=c;t.default=d},8202:()=>{},564:(e,t,n)=>{"use strict";n.d(t,{gE:()=>re});var r=n(1048),o=n(9204),i=n(1921),a=n(1224);class s{__init(){this.spans=[]}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;s.prototype.__init.call(this),this._maxlen=e}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class l{__init2(){this.traceId=(0,i.DM)()}__init3(){this.spanId=(0,i.DM)().substring(16)}__init4(){this.startTimestamp=(0,r.ph)()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(e){if(l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),l.prototype.__init5.call(this),l.prototype.__init6.call(this),l.prototype.__init7.call(this),!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp),e.instrumenter&&(this.instrumenter=e.instrumenter)}startChild(e){const t=new l({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){const n=e&&e.op||"< unknown op >",r=t.transaction.name||"< unknown name >",i=t.transaction.spanId,a="[Tracing] Starting '".concat(n,"' span on transaction '").concat(r,"' (").concat(i,").");t.transaction.metadata.spanMetadata[t.spanId]={logMessage:a},o.kg.log(a)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e));const t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&o.kg.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:(0,r.ph)()}toTraceparent(){let e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),"".concat(this.traceId,"-").concat(this.spanId).concat(e)}toContext(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}var c=n(8594),u=n(7152);class d extends l{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(e,t){super(e),d.prototype.__init.call(this),d.prototype.__init2.call(this),d.prototype.__init3.call(this),this._hub=t||(0,u.Gd)(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom";this._name=e,this.metadata.source=t}initSpanRecorder(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new s(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);const r=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this.name,".")),this._hub.captureEvent(i)}toContext(){const e=super.toContext();return(0,a.Jr)({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||(0,u.Gd)(),t=e&&e.getClient();if(!t)return{};const{environment:n,release:r}=t.getOptions()||{},{publicKey:o}=t.getDsn()||{},i=this.metadata.sampleRate,s=void 0!==i?i.toString():void 0,{segment:l}=e.getScope().getUser()||{},d=this.metadata.source,f=d&&"url"!==d?this.name:void 0,p=(0,a.Jr)({environment:n||c.J,release:r,transaction:f,user_segment:l,public_key:o,trace_id:this.traceId,sample_rate:s});return t.emit&&t.emit("createDsc",p),p}setHub(e){this._hub=e}}const f={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},p=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class h extends s{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,r.ph)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class m extends d{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._idleTimeoutCanceledPermanently=!1}__init5(){this._beforeFinishCallbacks=[]}__init6(){this._finishReason=p[4]}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.idleTimeout,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.finalTimeout,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.heartbeatInterval,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=a,m.prototype.__init.call(this),m.prototype.__init2.call(this),m.prototype.__init3.call(this),m.prototype.__init4.call(this),m.prototype.__init5.call(this),m.prototype.__init6.call(this),a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Setting idle transaction on scope. Span ID: ".concat(this.spanId)),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=p[3],this.finish())}),this._finalTimeout)}finish(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.ph)();if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const n=t.startTimestamp{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new h(t,n,this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e){let{restartOnChildSpanChange:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{restartOnChildSpanChange:!0};this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=p[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=p[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] pushActivity: ".concat(e)),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] popActivity ".concat(e)),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=(0,r.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason=p[5],this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=p[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}var g=n(4440);function y(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=(0,u.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}var v=n(325);function _(e){return(e||(0,u.Gd)()).getScope().getTransaction()}let b=!1;function w(){const e=_();if(e){const t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Transaction: ".concat(t," -> Global error occured")),e.setStatus(t)}}function S(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function k(e,t,n){if(!y(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})):(r=1,e.setMetadata({sampleRate:r})),i=r,((0,g.i2)(i)||"number"!=typeof i&&"boolean"!=typeof i?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(i)," of type ").concat(JSON.stringify(typeof i),".")),0):!(i<0||i>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(i,".")),0))?r?(e.sampled=Math.random(){let[r,i]=t;const a="".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(i)),s=0===n?a:"".concat(e,",").concat(a);return s.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Not adding key: ".concat(r," with val: ").concat(i," to baggage header due to exceeding baggage size limits.")),e):s}),"")}(Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return r&&(e["".concat(O).concat(n)]=r),e}),{}))}function D(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,t)=>{let[n,r]=t;return e[n]=r,e}),{})}var M=n(9587);const N=n(76).n2,A=(e,t,n)=>{let r,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(r||0),(o||void 0===r)&&(r=t.value,t.delta=o,e(t)))}},I=()=>N.__WEB_VITALS_POLYFILL__?N.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=N.performance.timing,t=N.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):N.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],L=()=>{const e=I();return e&&e.activationStart||0},j=(e,t)=>{const n=I();let r="navigate";return n&&(r=N.document.prerendering||L()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},z=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},U=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==N.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let B=-1;const F=()=>(B<0&&(B="hidden"!==N.document.visibilityState||N.document.prerendering?1/0:0,U((e=>{let{timeStamp:t}=e;B=t}),!0)),{get firstHiddenTime(){return B}}),Y={};function H(e){return"number"==typeof e&&isFinite(e)}function W(e,t){let{startTimestamp:n,...r}=t;return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild({startTimestamp:n,...r})}function G(e){return e/1e3}function q(){return N&&N.addEventListener&&N.performance}let V,Z,K=0,X={};function $(){const e=q();if(e&&r.Z1){e.mark&&N.performance.mark("sentry-tracing-init"),(e=>{const t=F(),n=j("FID");let i;const a=e=>{e.startTime{e.forEach(a)},l=z("first-input",s);i=A((e=>{const t=e.entries.pop();if(!t)return;const n=G(r.Z1),i=G(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding FID"),X.fid={value:e.value,unit:"millisecond"},X["mark.fid"]={value:n+i,unit:"second"}}),n),l&&U((()=>{s(l.takeRecords()),l.disconnect()}),!0)})();const t=(e=>{const t=j("CLS",0);let n,r=0,i=[];const a=e=>{e.forEach((e=>{if(!e.hadRecentInput){const o=i[0],a=i[i.length-1];r&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-o.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>t.value&&(t.value=r,t.entries=i,n&&n())}}))},s=z("layout-shift",a);if(s){n=A((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding CLS"),X.cls={value:e.value,unit:""},Z=t)}),t);const e=()=>{a(s.takeRecords()),n(!0)};return U(e),e}})(),n=(e=>{const t=F(),n=j("LCP");let r;const i=e=>{const o=e[e.length-1];if(o){const e=Math.max(o.startTime-L(),0);e{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding LCP"),X.lcp={value:e.value,unit:"millisecond"},V=t)}),n);const e=()=>{Y[n.id]||(i(a.takeRecords()),a.disconnect(),Y[n.id]=!0,r(!0))};return["keydown","click"].forEach((t=>{addEventListener(t,e,{once:!0,capture:!0})})),U(e,!0),e}})();return()=>{t&&t(),n&&n()}}return()=>{}}function J(e,t,n,r,o,i){const a=i?t[i]:t["".concat(n,"End")],s=t["".concat(n,"Start")];s&&a&&W(e,{op:"browser",description:o||n,startTimestamp:r+G(s),endTimestamp:r+G(a)})}var Q=n(5507);const ee=["localhost",/^\//],te={traceFetch:!0,traceXHR:!0,tracingOrigins:ee,tracePropagationTargets:ee};const ne={...f,markBackgroundTransactions:!0,routingInstrumentation:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!N||!N.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not initialize routing instrumentation due to invalid location"));let i,a=N.location.href;t&&(i=e({name:N.location.pathname,startTimestamp:r.Z1?r.Z1/1e3:void 0,op:"pageload",metadata:{source:"url"}})),n&&(0,v.oq)("history",(t=>{let{to:n,from:r}=t;void 0===r&&a&&-1!==a.indexOf(n)?a=void 0:r!==n&&(a=void 0,i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Finishing current transaction with op: ".concat(i.op)),i.finish()),i=e({name:N.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...te};class re{__init(){this.name="BrowserTracing"}constructor(e){re.prototype.__init.call(this),function(){const e=(0,u.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=E),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=S),b||(b=!0,(0,v.oq)("error",w),(0,v.oq)("unhandledrejection",w)))}(),this.options={...ne,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=$(),this.options.enableLongTask&&z("longtask",(e=>{for(const t of e){const e=_();if(!e)return;const n=G(r.Z1+t.startTime),o=G(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+o})}})),this.options._experiments.enableInteractions&&z("event",(e=>{for(const t of e){const e=_();if(!e)return;if("click"===t.name){const n=G(r.Z1+t.startTime),o=G(t.duration);e.startChild({description:(0,M.Rt)(t.target),op:"ui.interaction.".concat(t.name),startTimestamp:n,endTimestamp:n+o})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;const{routingInstrumentation:n,startTransactionOnLocationChange:r,startTransactionOnPageLoad:i,markBackgroundTransactions:a,traceFetch:s,traceXHR:l,tracePropagationTargets:c,shouldCreateSpanForRequest:d,_experiments:f}=this.options;n((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),i,r),a&&(N&&N.document?N.document.addEventListener("visibilitychange",(()=>{const e=_();if(N.document.hidden&&e){const t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Transaction: ".concat(t," -> since tab moved to the background, op: ").concat(e.op)),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),f.enableInteractions&&this._registerInteractionListener(),function(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:o,shouldCreateSpanForRequest:i}={traceFetch:te.traceFetch,traceXHR:te.traceXHR,...e},a="function"==typeof i?i:e=>!0,s=e=>function(e,t){return(0,Q.U0)(e,t||ee)}(e,r||o),l={};t&&(0,v.oq)("fetch",(e=>{!function(e,t,n,r){if(!y()||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(e.response?n.setHttpStatus(e.response.status):e.error&&n.setStatus("internal_error"),n.finish(),delete r[t]))}const o=e.response&&e.response.headers&&e.response.headers.get("content-length"),i=(0,u.Gd)().getScope(),a=i&&i.getSpan(),s=a&&a.transaction;if(a&&s){const{method:t,url:i}=e.fetchData,l=a.startChild({data:{url:i,type:"fetch",...o?{"http.response_content_length":o}:{},"http.method":t},description:"".concat(t," ").concat(i),op:"http.client"});e.fetchData.__span=l.spanId,r[l.spanId]=l;const c=e.args[0];e.args[1]=e.args[1]||{};const u=e.args[1];n(e.fetchData.url)&&(u.headers=function(e,t,n,r){const o=P(t),i=n.toTraceparent(),a="undefined"!=typeof Request&&(0,g.V9)(e,Request)?e.headers:r.headers;if(a){if("undefined"!=typeof Headers&&(0,g.V9)(a,Headers)){const e=new Headers(a);return e.append("sentry-trace",i),o&&e.append(C,o),e}if(Array.isArray(a)){const e=[...a,["sentry-trace",i]];return o&&e.push([C,o]),e}{const e="baggage"in a?a.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),o&&t.push(o),{...a,"sentry-trace":i,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":i,baggage:o}}(c,s.getDynamicSamplingContext(),l,u))}}(e,a,s,l)})),n&&(0,v.oq)("xhr",(e=>{!function(e,t,n,r){const o=e.xhr,i=o&&o[v.xU];if(!y()||o&&o.__sentry_own_request__||!(o&&i&&t(i.url)))return;if(e.endTimestamp){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&(t.setHttpStatus(i.status_code),t.finish(),delete r[e]))}const a=(0,u.Gd)().getScope(),s=a&&a.getSpan(),l=s&&s.transaction;if(s&&l){const e=s.startChild({data:{...i.data,type:"xhr","http.method":i.method,url:i.url},description:"".concat(i.method," ").concat(i.url),op:"http.client"});if(o.__sentry_xhr_span_id__=e.spanId,r[o.__sentry_xhr_span_id__]=e,o.setRequestHeader&&n(i.url))try{o.setRequestHeader("sentry-trace",e.toTraceparent());const t=P(l.getDynamicSamplingContext());t&&o.setRequestHeader(C,t)}catch(e){}}}(e,a,s,l)}))}({traceFetch:s,traceXHR:l,tracePropagationTargets:c,shouldCreateSpanForRequest:d})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("[Tracing] Did not create ".concat(e.op," transaction because _getCurrentHub is invalid.")));const{beforeNavigate:t,idleTimeout:n,finalTimeout:i,heartbeatInterval:a}=this.options,s="pageload"===e.op,l=s?oe("sentry-trace"):null,c=s?oe("baggage"):null,u=l?function(e){const t=e.match(T);if(!e||!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(l):void 0,d=c?function(e){if(!(0,g.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>({...e,...D(t)})),{});else{if(!e)return;t=D(e)}const n=Object.entries(t).reduce(((e,t)=>{let[n,r]=t;return n.match(R)&&(e[n.slice(O.length)]=r),e}),{});return Object.keys(n).length>0?n:void 0}(c):void 0,f={...e,...u,metadata:{...e.metadata,dynamicSamplingContext:u&&!d?{}:d},trimEnd:!0},p="function"==typeof t?t(f):f,h=void 0===p?{...f,sampled:!1}:p;h.metadata=h.name!==f.name?{...h.metadata,source:"custom"}:h.metadata,this._latestRouteName=h.name,this._latestRouteSource=h.metadata&&h.metadata.source,!1===h.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Will not send ".concat(h.op," transaction because of beforeNavigate.")),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Starting ".concat(h.op," transaction on scope"));const m=this._getCurrentHub(),{location:y}=N,v=x(m,h,n,i,!0,{location:y},a);return v.registerBeforeFinishCallback((e=>{this._collectWebVitals(),function(e){const t=q();if(!t||!N.performance.getEntries||!r.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=G(r.Z1),i=t.getEntries();let a,s;if(i.slice(K).forEach((t=>{const r=G(t.startTime),i=G(t.duration);if(!("navigation"===e.op&&n+r{J(e,t,r,n)})),J(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),J(e,t,"fetch",n,"cache","domainLookupStart"),J(e,t,"domainLookup",n,"DNS"),function(e,t,n){W(e,{op:"browser",description:"request",startTimestamp:n+G(t.requestStart),endTimestamp:n+G(t.responseEnd)}),W(e,{op:"browser",description:"response",startTimestamp:n+G(t.responseStart),endTimestamp:n+G(t.responseEnd)})}(e,t,n)}(e,t,n),a=n+G(t.responseStart),s=n+G(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o){const i=o+n,a=i+r;W(e,{description:t.name,endTimestamp:a,op:t.entryType,startTimestamp:i})}(e,t,r,i,n);const a=F(),s=t.startTime{if(!X[t]||n>=e.startTimestamp)return;const r=X[t].value,i=n+G(r),a=Math.abs(1e3*(i-e.startTimestamp)),s=a-r;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Normalized ".concat(t," from ").concat(r," to ").concat(a," (").concat(s,")")),X[t].value=a}));const t=X["mark.fid"];t&&X.fid&&(W(e,{description:"first input delay",endTimestamp:t.value+G(X.fid.value),op:"ui.action",startTimestamp:t.value}),delete X["mark.fid"]),"fcp"in X||delete X.cls,Object.keys(X).forEach((t=>{e.setMeasurement(t,X[t].value,X[t].unit)})),function(e){V&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding LCP Data"),V.element&&e.setTag("lcp.element",(0,M.Rt)(V.element)),V.id&&e.setTag("lcp.id",V.id),V.url&&e.setTag("lcp.url",V.url.trim().slice(0,200)),e.setTag("lcp.size",V.size)),Z&&Z.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding CLS Data"),Z.sources.forEach(((t,n)=>e.setTag("cls.source.".concat(n+1),(0,M.Rt)(t.node)))))}(e)}V=void 0,Z=void 0,X={}}(e)})),v}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",a=_();if(a&&a.op&&["navigation","pageload"].includes(a.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("[Tracing] Did not create ".concat(i," transaction because a pageload or navigation transaction is in progress.")));if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("[Tracing] Did not create ".concat(i," transaction because _getCurrentHub is invalid.")));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("[Tracing] Did not create ".concat(i," transaction because _latestRouteName is missing.")));const s=this._getCurrentHub(),{location:l}=N,c={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=x(s,c,t,n,!0,{location:l},r)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}function oe(e){const t=(0,M.qT)("meta[name=".concat(e,"]"));return t?t.getAttribute("content"):null}},2740:(e,t,n)=>{"use strict";n.d(t,{S1:()=>Qe,jp:()=>et});var r=n(1921),o=n(9204),i=n(7152),a=n(184);const s=[];function l(e){const t=e.defaultIntegrations||[],n=e.integrations;let o;t.forEach((e=>{e.isDefaultInstance=!0})),o=Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,r.lE)(n(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(o),a=function(e,t){for(let t=0;t0&&void 0!==arguments[0]?arguments[0]:{};this._options=e,_.prototype.__init.call(this)}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(_);if(t){const i=n.getClient(),a=i?i.getOptions():{},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...v],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,a);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat((0,r.jH)(e))),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return["".concat(n),"".concat(t,": ").concat(n)]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Cannot extract message for event ".concat((0,r.jH)(e))),[]}return[]}(e).some((e=>(0,y.U0)(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat((0,r.jH)(e))),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,y.U0)(n,t)}(e,t.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat((0,r.jH)(e))),!0):function(e,t){if(!t||!t.length)return!1;const n=b(e);return!!n&&(0,y.U0)(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat((0,r.jH)(e),".\nUrl: ").concat(b(e))),!0):!function(e,t){if(!t||!t.length)return!0;const n=b(e);return!n||(0,y.U0)(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat((0,r.jH)(e),".\nUrl: ").concat(b(e))),!0)}(e,s)?null:e}}return e};n.id=this.name,e(n)}}function b(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Cannot extract url for event ".concat((0,r.jH)(e))),null}}let w;_.__initStatic();class S{constructor(){S.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=S.id}setupOnce(){w=Function.prototype.toString;try{Function.prototype.toString=function(){const e=(0,d.HK)(this)||this;for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||"".concat(h(e),"?").concat(m(e,r))}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if((0,r.YO)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(M));let i=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{i=e}))),i}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=(0,T.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(i.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&(0,r.YO)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(M));let i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{i=e}))),i}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,P.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("SDK not enabled, will not capture session.")}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._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):(0,C.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){const t={};return e.forEach((e=>{e&&c(e,t)})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}addIntegration(e){c(e,this._integrations)}sendEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._dsn){let n=function(e,t,n,r){const o=(0,O.HY)(n),i=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,n&&n.sdk);const a=(0,O.Cd)(e,o,r,t);delete e.sdkProcessingMetadata;const s=[{type:i},e];return(0,O.Jd)(a,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=(0,O.BO)(n,(0,O.zQ)(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}}sendSession(e){if(this._dsn){const t=function(e,t,n,r){const o=(0,O.HY)(n),i={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&{dsn:(0,f.RA)(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return(0,O.Jd)(i,[a])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n="".concat(e,":").concat(t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log('Adding outcome: "'.concat(n,'"')),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re(...n)))}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&((0,P.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new C.cW((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const r=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),(0,D.R)(r,e,t,n)}_captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?o.kg.log(t.message):o.kg.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r;if(!this._isEnabled())return(0,C.$2)(new R.b("SDK not enabled, will not capture event.","log"));const i=I(e),a=A(e),s=e.type||"error",l="before send for type `".concat(s,"`");if(a&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),(0,C.$2)(new R.b("Discarding event because it's not included in the random sample (sampling rate = ".concat(o,")"),"log"));const c="replay_event"===s?"replay":s;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new R.b("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return A(t)&&r?r(t,n):I(t)&&o?o(t,n):t}(r,n,t);return function(e,t){const n="".concat(t," must return `null` or a valid event.");if((0,T.J8)(e))return e.then((e=>{if(!(0,T.PO)(e)&&null!==e)throw new R.b(n);return e}),(e=>{throw new R.b("".concat(t," rejected with ").concat(e))}));if(!(0,T.PO)(e)&&null!==e)throw new R.b(n);return e}(o,l)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new R.b("".concat(l," returned `null`, will not send event."),"log");const o=n&&n.getSession();!i&&o&&this._updateSessionFromEvent(o,r);const a=r.transaction_info;if(i&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof R.b)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new R.b("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function A(e){return void 0===e.type}function I(e){return"transaction"===e.type}var L=n(1175),j=n(6895),z=n(1048),U=n(1990);function B(e,t){const n=Y(e,t),r={type:t&&t.name,value:W(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function F(e,t){return{exception:{values:[B(e,t)]}}}function Y(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(H.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const H=/Minified React error #\d+;/i;function W(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function G(e,t,n,o,a){let s;if((0,T.VW)(t)&&t.error)return F(e,t.error);if((0,T.TX)(t)||(0,T.fm)(t)){const i=t;if("stack"in t)s=F(e,t);else{const t=i.name||((0,T.TX)(i)?"DOMError":"DOMException"),a=i.message?"".concat(t,": ").concat(i.message):t;s=q(e,a,n,o),(0,r.Db)(s,a)}return"code"in i&&(s.tags={...s.tags,"DOMException.code":"".concat(i.code)}),s}return(0,T.VZ)(t)?F(e,t):(0,T.PO)(t)||(0,T.cO)(t)?(s=function(e,t,n,r){const o=(0,i.Gd)().getClient(),a=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:(0,T.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error ".concat(r?"promise rejection":"exception"," captured with keys: ").concat((0,d.zf)(t))}]},extra:{__serialized__:(0,U.Qy)(t,a)}};if(n){const t=Y(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}(e,t,n,a),(0,r.EG)(s,{synthetic:!0}),s):(s=q(e,t,n,o),(0,r.Db)(s,"".concat(t),void 0),(0,r.EG)(s,{synthetic:!0}),s)}function q(e,t,n,r){const o={message:t};if(r&&n){const r=Y(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}return o}var V=n(2199);const Z=n(76).n2;let K=0;function X(){return K>0}function $(){K++,setTimeout((()=>{K--}))}function J(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,d.HK)(e))return e}catch(t){return e}const o=function(){const o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const r=o.map((e=>J(e,t)));return e.apply(this,r)}catch(e){throw $(),(0,V.$e)((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,r.Db)(e,void 0,void 0),(0,r.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:o},e))),(0,V.Tb)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}catch(e){}(0,d.$Q)(o,e),(0,d.xp)(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch(e){}return o}var Q=n(9587);const ee=["fatal","error","warning","log","info","debug"];function te(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const ne=1024,re="Breadcrumbs";class oe{static __initStatic(){this.id=re}__init(){this.name=oe.id}constructor(e){oe.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&(0,x.oq)("console",ie),this.options.dom&&(0,x.oq)("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0,a="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;a&&a>ne&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("`dom.maxStringLength` cannot exceed ".concat(ne,", but a value of ").concat(a," was configured. Sentry will use ").concat(ne," instead.")),a=ne),"string"==typeof r&&(r=[r]);try{const e=t.event;n=function(e){return e&&!!e.target}(e)?(0,Q.Rt)(e.target,{keyAttrs:r,maxStringLength:a}):(0,Q.Rt)(e,{keyAttrs:r,maxStringLength:a})}catch(e){n=""}0!==n.length&&(0,i.Gd)().addBreadcrumb({category:"ui.".concat(t.name),message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&(0,x.oq)("xhr",ae),this.options.fetch&&(0,x.oq)("fetch",se),this.options.history&&(0,x.oq)("history",le)}addSentryBreadcrumb(e){this.options.sentry&&(0,i.Gd)().addBreadcrumb({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,r.jH)(e)},{event:e})}}function ie(e){for(let t=0;t{"hidden"===Z.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,o){const i=G(e,t,n&&n.syntheticException||void 0,o);return(0,r.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,C.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;const i=r&&r.syntheticException||void 0,a=q(e,t,i,o);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),(0,C.WD)(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){const n=this.getIntegrationById(re);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(e),super.sendEvent(e,t)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("SDK not enabled, will not capture user feedback."));const t=function(e,t){let{metadata:n,tunnel:r,dsn:o}=t;const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!r&&!!o&&{dsn:(0,f.RA)(o)}},a=function(e){return[{type:"user_report"},e]}(e);return(0,O.Jd)(i,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Sending outcomes:",e);const t=function(e,t,n){const r=[{type:"client_report"},{timestamp:(0,z.yW)(),discarded_events:e}];return(0,O.Jd)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,f.RA)(this._dsn));this._sendEnvelope(t)}}class ue{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=ue.id}__init2(){this._installFunc={onerror:de,onunhandledrejection:fe}}constructor(e){ue.prototype.__init.call(this),ue.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const r=this._installFunc[n];r&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Global Handler attached: ".concat(t)),r(),this._installFunc[n]=void 0)}var t}}function de(){(0,x.oq)("error",(e=>{const[t,n,r]=me();if(!t.getIntegration(ue))return;const{msg:o,url:i,line:a,column:s,error:l}=e;if(X()||l&&l.__sentry_own_request__)return;const c=void 0===l&&(0,T.HD)(o)?function(e,t,n,r){let o=(0,T.VW)(e)?e.message:e,i="Error";const a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(i=a[1],o=a[2]),pe({exception:{values:[{type:i,value:o}]}},t,n,r)}(o,i,a,s):pe(G(n,l||o,void 0,r,!1),i,a,s);c.level="error",he(t,l,c,"onerror")}))}function fe(){(0,x.oq)("unhandledrejection",(e=>{const[t,n,r]=me();if(!t.getIntegration(ue))return;let o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(e){}if(X()||o&&o.__sentry_own_request__)return!0;const i=(0,T.pt)(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(o))}]}}:G(n,o,void 0,r,!0);i.level="error",he(t,o,i,"onunhandledrejection")}))}function pe(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=(0,T.HD)(t)&&t.length>0?t:(0,Q.l4)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function he(e,t,n,o){(0,r.EG)(n,{handled:!1,type:o}),e.captureEvent(n,{originalException:t})}function me(){const e=(0,i.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}ue.__initStatic();const ge=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class ye{static __initStatic(){this.id="TryCatch"}__init(){this.name=ye.id}constructor(e){ye.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&(0,d.hl)(Z,"setTimeout",ve),this._options.setInterval&&(0,d.hl)(Z,"setInterval",ve),this._options.requestAnimationFrame&&(0,d.hl)(Z,"requestAnimationFrame",_e),this._options.XMLHttpRequest&&"XMLHttpRequest"in Z&&(0,d.hl)(XMLHttpRequest.prototype,"send",be);const e=this._options.eventTarget;e&&(Array.isArray(e)?e:ge).forEach(we)}}function ve(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r{e in t&&"function"==typeof t[e]&&(0,d.hl)(t,e,(function(t){const n={mechanism:{data:{function:e,handler:(0,k.$P)(t)},handled:!0,type:"instrument"}},r=(0,d.HK)(t);return r&&(n.mechanism.data.handler=(0,k.$P)(r)),J(t,n)}))}));for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};Se.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){const e=(0,i.Gd)().getClient();e&&(0,a.c)(((t,n)=>{const r=(0,i.Gd)().getIntegration(Se);return r?function(e,t,n,r,o){if(!(r.exception&&r.exception.values&&o&&(0,T.V9)(o.originalException,Error)))return r;const i=ke(e,n,o.originalException,t);return r.exception.values=[...i,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function ke(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(!(0,T.V9)(n[r],Error)||o.length+1>=t)return o;const i=B(e,n[r]);return ke(e,t,n[r],r,[i,...o])}Se.__initStatic();class Ee{constructor(){Ee.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Ee.id}setupOnce(){(0,a.c)((e=>{if((0,i.Gd)().getIntegration(Ee)){if(!Z.navigator&&!Z.location&&!Z.document)return e;const t=e.request&&e.request.url||Z.location&&Z.location.href,{referrer:n}=Z.document||{},{userAgent:r}=Z.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};return{...e,request:i}}return e}))}}Ee.__initStatic();class xe{constructor(){xe.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=xe.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(xe);if(n){try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Ce(e,t)&&!!Te(e,t))))}(e,t)||!!function(e,t){const n=Oe(t),r=Oe(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Ce(e,t)&&!!Te(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function Te(e,t){let n=Re(e),r=Re(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let e=0;e|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ne=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ae=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ie=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Le=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,je=[[30,e=>{const t=Me.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Ne.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Ue(t[1]||Pe,t[2]);return De(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Ae.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Ie.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Pe;return[n,e]=Ue(n,e),De(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Le.exec(e);return t?De(t[2],t[1]||Pe,+t[3],t[4]?+t[4]:void 0):void 0}]],ze=(0,k.pE)(...je),Ue=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Pe,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]};function Be(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new C.cW(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,C.WD)(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}function Fe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();const n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;const r=Date.parse("".concat(e));return isNaN(r)?6e4:r-t}function Ye(e,t){return e[t]||e.all||0}function He(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return Ye(e,t)>n}function We(e,t){let{statusCode:n,headers:r}=t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();const i={...e},a=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n]=e.split(":",2),r=parseInt(t,10),a=1e3*(isNaN(r)?60:r);if(n)for(const e of n.split(";"))i[e]=o+a;else i.all=o+a}else s?i.all=o+Fe(s,o):429===n&&(i.all=o+6e4);return i}function Ge(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Be(e.bufferSize||30),r={};const i=e=>n.drain(e);function a(i){const a=[];if((0,O.gv)(i,((t,n)=>{const o=(0,O.mL)(n);if(He(r,o)){const r=qe(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else a.push(t)})),0===a.length)return(0,C.WD)();const s=(0,O.Jd)(i[0],a),l=t=>{(0,O.gv)(s,((n,r)=>{const o=qe(n,r);e.recordDroppedEvent(t,(0,O.mL)(r),o)}))};return n.add((()=>t({body:(0,O.V$)(s,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=We(r,e),e)),(e=>{throw l("network_error"),e})))).then((e=>e),(e=>{if(e instanceof R.b)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,C.WD)();throw e}))}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function qe(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Ve;function Ze(){if(Ve)return Ve;if((0,E.Du)(Z.fetch))return Ve=Z.fetch.bind(Z);const e=Z.document;let t=Z.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Ve=t.bind(Z)}function Ke(){Ve=void 0}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze(),n=0,r=0;function o(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=i,r--,{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 Ke(),n-=i,r--,(0,C.$2)(e)}}return Ge(e,o)}function $e(e){return Ge(e,(function(t){return new C.cW(((n,r)=>{const o=new XMLHttpRequest;o.onerror=r,o.onreadystatechange=()=>{4===o.readyState&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)}))}))}const Je=[new _,new S,new ye,new oe,new ue,new Se,new xe,new Ee];function Qe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0===e.defaultIntegrations&&(e.defaultIntegrations=Je),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),Z.SENTRY_RELEASE&&Z.SENTRY_RELEASE.id&&(e.release=Z.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(0,k.Sq)(e.stackParser||ze),integrations:l(e),transport:e.transport||((0,E.Ak)()?Xe:$e)};u(ce,t),e.autoSessionTracking&&nt()}function et(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.Gd)();if(!Z.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Global document not defined in showReportDialog call"));const{client:n,scope:r}=t.getStackTop(),a=e.dsn||n&&n.getDsn();if(!a)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("DSN not configured for showReportDialog call"));r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const s=Z.document.createElement("script");s.async=!0,s.src=g(a,e),e.onLoad&&(s.onload=e.onLoad);const l=Z.document.head||Z.document.body;l?l.appendChild(s):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Not injecting report dialog. No injection point found in HTML")}function tt(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function nt(){if(void 0===Z.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=(0,i.Gd)();e.captureSession&&(tt(e),(0,x.oq)("history",(e=>{let{from:t,to:n}=e;void 0!==t&&t!==n&&tt((0,i.Gd)())})))}},8594:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r="production"},2199:(e,t,n)=>{"use strict";n.d(t,{n_:()=>a,Tb:()=>o,uT:()=>i,v:()=>s,$e:()=>l});var r=n(7152);function o(e,t){return(0,r.Gd)().captureException(e,{captureContext:t})}function i(e,t){const n="string"==typeof t?t:void 0,o="string"!=typeof t?{captureContext:t}:void 0;return(0,r.Gd)().captureMessage(e,n,o)}function a(e){(0,r.Gd)().addBreadcrumb(e)}function s(e,t){(0,r.Gd)().setContext(e,t)}function l(e){(0,r.Gd)().withScope(e)}},7152:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>h,cu:()=>f});var r=n(1921),o=n(1048),i=n(9204),a=n(76),s=n(8594),l=n(184),c=n(7673);const u=100;class d{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new l.s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{r.captureException(e,{originalException:e,syntheticException:o,...t,event_id:n},i)})),n}captureMessage(e,t,n){const o=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),i=new Error(e);return this._withClient(((r,a)=>{r.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:o},a)})),o}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,r.DM)();return e.type||(this._lastEventId=n),this._withClient(((r,o)=>{r.captureEvent(e,{...t,event_id:n},o)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=u}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const l={timestamp:(0,o.yW)(),...e},c=a?(0,i.Cf)((()=>a(l,t))):l;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=p(this);try{e(this)}finally{p(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,c.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=s.J}=n&&n.getOptions()||{},{userAgent:i}=a.n2.navigator||{},l=(0,c.Hv)({release:r,environment:o,user:t.getUser(),...i&&{userAgent:i},...e}),u=t.getSession&&t.getSession();return u&&"ok"===u.status&&(0,c.CT)(u,{status:"exited"}),this.endSession(),t.setSession(l),l}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e){const t=f().__SENTRY__;if(t&&t.extensions&&"function"==typeof t.extensions[e]){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:f();return m(e)&&!g(e).isOlderThan(4)||y(e,new d),g(e)}(e)}function m(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function g(e){return(0,a.YO)("hub",(()=>new d),e)}function y(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},184:(e,t,n)=>{"use strict";n.d(t,{s:()=>u,c:()=>f});var r=n(4440),o=n(1048),i=n(9693),a=n(9204),s=n(1921),l=n(76),c=n(7673);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new u;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,c.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}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}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof u?t:this}return e instanceof u?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,r.PO)(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),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._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,o.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),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}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new i.cW(((i,s)=>{const l=e[o];if(null===t||"function"!=typeof l)i(t);else{const c=l({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.id&&null===c&&a.kg.log('Event processor "'.concat(l.id,'" dropped event')),(0,r.J8)(c)?c.then((t=>this._notifyEventProcessors(e,t,n,o+1).then(i))).then(null,s):this._notifyEventProcessors(e,c,n,o+1).then(i).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,s.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function d(){return(0,l.YO)("globalEventProcessors",(()=>[]))}function f(e){d().push(e)}},7673:(e,t,n)=>{"use strict";n.d(t,{RJ:()=>l,Hv:()=>a,CT:()=>s});var r=n(1048),o=n(1921),i=n(1224);function a(e){const t=(0,r.ph)(),n={sid:(0,o.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,i.Jr)({sid:"".concat(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?"".concat(e.did):void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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,r.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,o.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(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 l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},3306:(e,t,n)=>{"use strict";n.d(t,{R:()=>d});var r=n(1921),o=n(1048),i=n(9693),a=n(5507),s=n(76),l=n(1990),c=n(8594),u=n(184);function d(e,t,n,d){const{normalizeDepth:p=3,normalizeMaxBreadth:h=1e3}=e,m={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,o.yW)()},g=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:c.J),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=(0,a.$G)(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,a.$G)(s.value,i));const l=e.request;l&&l.url&&(l.url=(0,a.$G)(l.url,i))}(m,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(m,g),void 0===t.type&&function(e,t){const n=s.n2._sentryDebugIds;if(!n)return;let r;const o=f.get(t);o?r=o:(r=new Map,f.set(t,r));const i=Object.keys(n).reduce(((e,o)=>{let i;const a=r.get(o);a?i=a:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{}),a=new Set;try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&a.add(e.filename)}))}))}catch(e){}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const l=e.debug_meta.images;a.forEach((e=>{i[e]&&l.push({type:"sourcemap",code_file:e,debug_id:i[e]})}))}(m,e.stackParser);let y=d;n.captureContext&&(y=u.s.clone(y).update(n.captureContext));let v=(0,i.WD)(m);if(y){if(y.getAttachments){const e=[...n.attachments||[],...y.getAttachments()];e.length&&(n.attachments=e)}v=y.applyToEvent(m,n)}return v.then((e=>"number"==typeof p&&p>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,l.Fv)(e.data,t,n)}})))},...e.user&&{user:(0,l.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,l.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,l.Fv)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,l.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=(0,l.Fv)(e.data,t,n)),e)))),r}(e,p,h):e))}const f=new WeakMap},1175:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r="7.51.0"},2440:(e,t,n)=>{"use strict";n.d(t,{SV:()=>u});var r=n(7152),o=n(2740),i=n(2199),a=n(4440),s=n(9204),l=(n(7861),n(7313));const c={componentStack:null,error:null,eventId:null};class u extends l.Component{__init(){this.state=c}__init2(){this._openFallbackReportDialog=!0}constructor(e){super(e),u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this);const t=(0,r.Gd)().getClient();t&&t.on&&e.showDialog&&(this._openFallbackReportDialog=!1,t.on("afterSendEvent",(t=>{t.type||t.event_id!==this._lastEventId||(0,o.jp)({...e.dialogOptions,eventId:this._lastEventId})})))}componentDidCatch(e,t){let{componentStack:n}=t;const{beforeCapture:r,onError:s,showDialog:c,dialogOptions:u}=this.props;(0,i.$e)((t=>{if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(l.version)&&(0,a.VZ)(e)){const t=new Error(e.message);t.name="React ErrorBoundary ".concat(t.name),t.stack=n,function(e,t){const n=new WeakMap;!function e(t,r){if(!n.has(t))return t.cause?(n.set(t,!0),e(t.cause,r)):void(t.cause=r)}(e,t)}(e,t)}r&&r(t,e,n);const d=(0,i.Tb)(e,{contexts:{react:{componentStack:n}}});s&&s(e,n,d),c&&(this._lastEventId=d,this._openFallbackReportDialog&&(0,o.jp)({...u,eventId:d})),this.setState({error:e,componentStack:n,eventId:d})}))}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(e,t,n)}__init3(){this.resetErrorBoundary=()=>{const{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(c)}}render(){const{fallback:e,children:t}=this.props,n=this.state;if(n.error){let t;return t="function"==typeof e?e({error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):e,l.isValidElement(t)?t:(e&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}}},8061:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(1175),o=n(2740);function i(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:r.J}],version:r.J},(0,o.S1)(e)}},8371:(e,t,n)=>{"use strict";n.d(t,{U:()=>Tn});var r=n(7152),o=n(2199),i=n(184),a=n(3306),s=n(76),l=n(9204),c=n(1921),u=n(1990),d=n(9587),f=n(325),p=n(1224),h=n(5507),m=n(1048),g=n(2678),y=n(3331);const v=s.n2,_="sentryReplaySession",b="Unable to send Replay",w=5e3,S=5500,k=15e4,E=5e3;var x;function T(e){const t=null==e?void 0:e.host;return Boolean(t&&t.shadowRoot&&t.shadowRoot===e)}function C(e){let{maskInputOptions:t,tagName:n,type:r}=e;"option"===n.toLowerCase()&&(n="select");const o="string"==typeof r?r.toLowerCase():void 0;return t[n.toLowerCase()]||o&&t[o]||"password"===o||"input"===n&&!r&&t.text}function O(e){let{input:t,maskInputSelector:n,unmaskInputSelector:r,maskInputOptions:o,tagName:i,type:a,value:s,maskInputFn:l}=e,c=s||"";return r&&t.matches(r)||(t.hasAttribute("rr_is_password")&&(a="password"),(C({maskInputOptions:o,tagName:i,type:a})||n&&t.matches(n))&&(c=l?l(c):"*".repeat(c.length))),c}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(x||(x={}));let R=1;const P=new RegExp("[^a-z0-9-_:]");function D(e){return e?e.replace(/[\S]/g,"*"):""}function M(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(N).join(""):null}catch(e){return null}}function N(e){let t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=M(e.styleSheet)||t}catch(e){}return t}let A,I;const L=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,j=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,z=/^(data:)([^,]*),(.*)/i;function U(e,t){return(e||"").replace(L,((e,n,r,o,i,a)=>{const s=r||i||a,l=n||o||"";if(!s)return e;if(!j.test(s))return"url(".concat(l).concat(s).concat(l,")");if(z.test(s))return"url(".concat(l).concat(s).concat(l,")");if("/"===s[0])return"url(".concat(l).concat(function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s).concat(l,")");const c=t.split("/"),u=s.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return"url(".concat(l).concat(c.join("/")).concat(l,")")}))}const B=/^[^ \t\n\r\u000c]+/,F=/^[, \t\n\r\u000c]+/;function Y(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function H(){const e=document.createElement("a");return e.href="",e.href}function W(e,t,n,r,o,i,a,s){if(!o)return o;const l=r.toLowerCase(),c=n.toLowerCase();return"src"===l||"href"===l||"xlink:href"===l&&"#"!==o[0]?Y(e,o):"background"!==l||"table"!==c&&"td"!==c&&"th"!==c?"srcset"===l?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r,o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}let o=[];for(;r(F),!(n>=t.length);){let i=r(B);if(","===i.slice(-1))i=Y(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=Y(e,i);let a=!1;for(;;){let e=t.charAt(n);if(""===e){o.push((i+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,o.push((i+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return o.join(", ")}(e,o):"style"===l?U(o,H()):"object"===c&&"data"===l?Y(e,o):i&&function(e,t,n,r){return(!r||!e.matches(r))&&(["placeholder","title","aria-label"].indexOf(t)>-1||"input"===n&&"value"===t&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1)}(t,l,c,a)?s?s(o):D(o):o:Y(e,o)}function G(e,t,n,r,o){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return G(e.parentNode,t,n,r,o);if(r&&(e.matches(r)||e.closest(r)))return!1;if(o)return!0;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n!1)}=t;let{preserveWhiteSpace:N=!0}=t;const L=function(e,t){var n;const{doc:r,blockClass:o,blockSelector:i,unblockSelector:a,maskTextClass:s,maskTextSelector:l,unmaskTextSelector:c,inlineStylesheet:u,maskInputSelector:d,unmaskInputSelector:f,maskAllText:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:_,keepIframeSrcFn:b}=t;let w;if(r.__sn){const e=r.__sn.id;w=1===e?void 0:e}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:x.Document,childNodes:[],compatMode:e.compatMode,rootId:w}:{type:x.Document,childNodes:[],rootId:w};case e.DOCUMENT_TYPE_NODE:return{type:x.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:const t=function(e,t,n,r){if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;nt.href===e.href));let n=null;t&&(n=M(t)),n&&(delete T.rel,delete T.href,T._cssText=U(n,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=M(e.sheet);t&&(T._cssText=U(t,H()))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const t=e,n=function(e,t,n){return"input"!==e||"radio"!==n.type&&"checkbox"!==n.type?t.value:t.getAttribute("value")||""}(E,t,T),r=e.checked;"submit"!==T.type&&"button"!==T.type&&n&&(T.value=O({input:t,type:T.type,tagName:E,value:n,maskInputSelector:d,unmaskInputSelector:f,maskInputOptions:h,maskInputFn:g})),r&&(T.checked=r)}if("option"===E&&(e.selected&&!h.select?T.selected=!0:delete T.selected),"canvas"===E&&_)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n0!==e)))return!1}return!0})(e)||(T.rr_dataURL=e.toDataURL(y.type,y.quality));else if(!("__context"in e)){const t=e.toDataURL(y.type,y.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(y.type,y.quality)&&(T.rr_dataURL=t)}if("img"===E&&v){A||(A=r.createElement("canvas"),I=A.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{try{A.width=t.naturalWidth,A.height=t.naturalHeight,I.drawImage(t,0,0),T.rr_dataURL=A.toDataURL(y.type,y.quality)}catch(e){console.warn("Cannot inline img src=".concat(t.currentSrc,"! Error: ").concat(e))}n?T.crossOrigin=n:delete T.crossOrigin};t.complete&&0!==t.naturalWidth?o():t.onload=o}if("audio"!==E&&"video"!==E||(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop),t){const{width:t,height:n}=e.getBoundingClientRect();T={class:T.class,rr_width:"".concat(t,"px"),rr_height:"".concat(n,"px")}}return"iframe"!==E||b(T.src)||(e.contentDocument||(T.rr_src=T.src),delete T.src),{type:x.Element,tagName:E,attributes:T,childNodes:[],isSVG:(k=e,Boolean("svg"===k.tagName||k.ownerSVGElement)||void 0),needBlock:t,rootId:w};case e.TEXT_NODE:const C=e.parentNode&&e.parentNode.tagName;let R=e.textContent;const N="STYLE"===C||void 0,L="SCRIPT"===C||void 0;if(N&&R){try{e.nextSibling||e.previousSibling||(null===(n=e.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(R=(S=e.parentNode.sheet).cssRules?Array.from(S.cssRules).map((e=>e.cssText||"")).join(""):"")}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(t),e)}R=U(R,H())}return L&&(R="SCRIPT_PLACEHOLDER"),"TEXTAREA"===C&&R?R="":"OPTION"===C&&R?R=O({input:e.parentNode,type:null,tagName:C,value:R,maskInputSelector:d,unmaskInputSelector:f,maskInputOptions:h,maskInputFn:g}):!N&&!L&&G(e,s,l,c,p)&&R&&(R=m?m(R):D(R)),{type:x.Text,textContent:R||"",isStyle:N,rootId:w};case e.CDATA_SECTION_NODE:return{type:x.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:x.Comment,textContent:e.textContent||"",rootId:w};default:return!1}var S,k}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:a,maskTextClass:s,maskTextSelector:l,unmaskTextSelector:c,inlineStylesheet:d,maskInputSelector:f,unmaskInputSelector:p,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,dataURLOptions:_,inlineImages:b,recordCanvas:w,keepIframeSrcFn:C});if(!L)return console.warn(e,"not serialized"),null;let j;j="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===x.Comment)return!0;if(e.type===x.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===q(e.attributes.name)||"icon"===q(e.attributes.rel)||"apple-touch-icon"===q(e.attributes.rel)||"shortcut icon"===q(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===q(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===q(e.attributes.name)||"googlebot"===q(e.attributes.name)||"bingbot"===q(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===q(e.attributes.name)||"generator"===q(e.attributes.name)||"framework"===q(e.attributes.name)||"publisher"===q(e.attributes.name)||"progid"===q(e.attributes.name)||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===q(e.attributes.name)||"yandex-verification"===q(e.attributes.name)||"csrf-token"===q(e.attributes.name)||"p:domain_verify"===q(e.attributes.name)||"verify-v1"===q(e.attributes.name)||"verification"===q(e.attributes.name)||"shopify-checkout-api-token"===q(e.attributes.name)))return!0}}return!1}(L,v)&&(N||L.type!==x.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?R++:-2;const z=Object.assign(L,{id:j});if(e.__sn=z,-2===j)return null;r[j]=e,S&&S(e);let B=!u;if(z.type===x.Element&&(B=B&&!z.needBlock,delete z.needBlock,e.shadowRoot&&(z.isShadowHost=!0)),(z.type===x.Document||z.type===x.Element)&&B){v.headWhitespace&&L.type===x.Element&&"head"===L.tagName&&(N=!1);const t={doc:n,map:r,blockClass:o,blockSelector:i,unblockSelector:a,maskTextClass:s,maskTextSelector:l,unmaskTextSelector:c,skipChild:u,inlineStylesheet:d,maskInputSelector:f,unmaskInputSelector:p,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:E,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=V(n,t);e&&z.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const e=V(n,t);e&&(e.isShadow=!0,z.childNodes.push(e))}}return e.parentNode&&T(e.parentNode)&&(z.isShadow=!0),z.type===x.Element&&"iframe"===z.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=setTimeout((()=>{i||(t(),i=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),i=!0,t()}))}const a="about:blank";r.location.href===a&&e.src!==a&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}(e,(()=>{const t=e.contentDocument;if(t&&k){const n=V(t,{doc:t,map:r,blockClass:o,blockSelector:i,unblockSelector:a,maskTextClass:s,maskTextSelector:l,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputSelector:f,unmaskInputSelector:p,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:E,keepIframeSrcFn:C});n&&k(e,n)}}),E),z}function Z(e,t){const{blockClass:n="rr-block",blockSelector:r=null,unblockSelector:o=null,maskTextClass:i="rr-mask",maskTextSelector:a=null,unmaskTextSelector:s=null,inlineStylesheet:l=!0,inlineImages:c=!1,recordCanvas:u=!1,maskInputSelector:d=null,unmaskInputSelector:f=null,maskAllText:p=!1,maskAllInputs:h=!1,maskTextFn:m,maskInputFn:g,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:_,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:S,keepIframeSrcFn:k=(()=>!1)}=t||{},E={};return[V(e,{doc:e,map:E,blockClass:n,blockSelector:r,unblockSelector:o,maskTextClass:i,maskTextSelector:a,unmaskTextSelector:s,skipChild:!1,inlineStylesheet:l,maskInputSelector:d,unmaskInputSelector:f,maskAllText: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,maskTextFn:m,maskInputFn:g,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:c,recordCanvas:u,preserveWhiteSpace:_,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:S,keepIframeSrcFn:k}),E]}function K(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}var X,$,J,Q,ee,te;function ne(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}!function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin"}(X||(X={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration"}($||($={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(J||(J={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(Q||(Q={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"}(ee||(ee={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"}(te||(te={}));const re="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 oe={map:{},getId:()=>(console.error(re),-1),getNode:()=>(console.error(re),null),removeNodeFromMap(){console.error(re)},has:()=>(console.error(re),!1),reset(){console.error(re)}};function ie(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=0;return function(i){let a=Date.now();o||!1!==n.leading||(o=a);let s=t-(a-o),l=this,c=arguments;s<=0||s>t?(r&&(clearTimeout(r),r=null),o=a,e.apply(l,c)):r||!1===n.trailing||(r=setTimeout((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(l,c)}),s))}}function ae(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window;const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>ae(e,t,i||{},!0)}function se(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}function le(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ce(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ue(e,t,n,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let o=!1;const i=r&&e.matches(r);return"string"==typeof t?o=void 0!==e.closest?!i&&null!==e.closest("."+t):!i&&e.classList.contains(t):!i&&e.classList.forEach((e=>{t.test(e)&&(o=!0)})),!o&&n&&(o=e.matches(n)),!i&&o||ue(e.parentNode,t,n,r)}return e.nodeType,e.TEXT_NODE,ue(e.parentNode,t,n,r)}function de(e){return"__sn"in e&&-2===e.__sn.id}function fe(e,t){if(T(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||fe(e.parentNode,t))}function pe(e){return Boolean(e.changedTouches)}function he(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}function me(e){return"__sn"in e&&e.__sn.type===x.Element&&"iframe"===e.__sn.tagName}function ge(e){return Boolean(null==e?void 0:e.shadowRoot)}function ye(e){return"__ln"in e}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(oe=new Proxy(oe,{get:(e,t,n)=>("map"===t&&console.error(re),Reflect.get(e,t,n))}));class ve{constructor(){this.length=0,this.head=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n"".concat(e,"@").concat(t);function be(e){return"__sn"in e}class we{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new ve,n=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},r=r=>{var o,i,a,s,l;const c=r.getRootNode?null===(o=r.getRootNode())||void 0===o?void 0:o.host:null;let u=c;for(;null===(a=null===(i=null==u?void 0:u.getRootNode)||void 0===i?void 0:i.call(u))||void 0===a?void 0:a.host;)u=(null===(l=null===(s=null==u?void 0:u.getRootNode)||void 0===s?void 0:s.call(u))||void 0===l?void 0:l.host)||null;const d=!(this.doc.contains(r)||u&&this.doc.contains(u));if(!r.parentNode||d)return;const f=T(r.parentNode)?this.mirror.getId(c):this.mirror.getId(r.parentNode),p=n(r);if(-1===f||-1===p)return t.addNode(r);let h=V(r,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{me(e)&&this.iframeManager.addIframe(e),ge(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,document)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)}});h&&e.push({parentId:f,nextId:p,node:h})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)ke(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||r(e);for(const e of this.addedSet)Ee(this.droppedSet,e)||ke(this.removes,e,this.mirror)?Ee(this.movedSet,e)?r(e):this.droppedSet.add(e):r(e);let o=null;for(;t.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),r=n(o.value);-1!==t&&-1!==r&&(e=o)}if(!e)for(let r=t.length-1;r>=0;r--){const o=t.get(r);if(o){const t=this.mirror.getId(o.value.parentNode),r=n(o.value);if(-1!==t&&-1!==r){e=o;break}}}if(!e){for(;t.head;)t.removeNode(t.head.value);break}o=e.previous,t.removeNode(e.value),r(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>({id:this.mirror.getId(e.node),attributes:e.attributes}))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!de(e.target))switch(e.type){case"characterData":{const t=e.target.textContent;ue(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||t===e.oldValue||this.texts.push({value:G(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=t.getAttribute(e.attributeName);if("value"===e.attributeName&&(n=O({input:t,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:t.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),ue(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===e.oldValue)return;let r=this.attributes.find((t=>t.node===e.target));if(r||(r={node:e.target,attributes:{}},this.attributes.push(r)),"type"===e.attributeName&&"INPUT"===e.target.tagName&&"password"===(e.oldValue||"").toLowerCase()&&e.target.setAttribute("rr_is_password","true"),"style"===e.attributeName){const n=this.doc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue),void 0!==r.attributes.style&&null!==r.attributes.style||(r.attributes.style={});try{const e=r.attributes.style;for(const r of Array.from(t.style)){const o=t.style.getPropertyValue(r),i=t.style.getPropertyPriority(r);o===n.style.getPropertyValue(r)&&i===n.style.getPropertyPriority(r)||(e[r]=""===i?o:[o,i])}for(const r of Array.from(n.style))""===t.style.getPropertyValue(r)&&(e[r]=!1)}catch(e){console.warn("[rrweb] Error when parsing update to style attribute:",e)}}else{const t=e.target;r.attributes[e.attributeName]=W(this.doc,t,t.tagName,e.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=T(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ue(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||de(t)||(this.addedSet.has(t)?(Se(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||fe(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[_e(n,r)]?Se(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!T(e.target)||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!t||!ue(t,this.blockClass,this.blockSelector,this.unblockSelector)){if(be(e)){if(de(e))return;this.movedSet.add(e);let n=null;t&&be(t)&&(n=t.__sn.id),n&&(this.movedMap[_e(e.__sn.id,n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ue(e,this.blockClass,this.blockSelector,this.unblockSelector)||e.childNodes.forEach((e=>this.genAdds(e)))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].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 Se(e,t){e.delete(t),t.childNodes.forEach((t=>Se(e,t)))}function ke(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return!!e.some((e=>e.id===o))||ke(e,r,n)}function Ee(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Ee(e,n))}const xe=e=>function(){try{return e(...arguments)}catch(e){try{e.__rrweb__=!0}catch(e){}throw e}},Te=[];function Ce(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(e){}return e&&e.target}function Oe(e,t){var n,r;const o=new we;Te.push(o),o.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const a=null===(r=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");a&&window[a]&&(i=window[a]);const s=new i(xe((t=>{e.onMutation&&!1===e.onMutation(t)||o.processMutations(t)})));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function Re(e){let{mousemoveCb:t,sampling:n,doc:r,mirror:o}=e;if(!1===n.mousemove)return()=>{};const i="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500;let s,l=[];const c=ie((e=>{const n=Date.now()-s;xe(t)(l.map((e=>(e.timeOffset-=n,e))),e),l=[],s=null}),a),u=ie((e=>{const t=Ce(e),{clientX:n,clientY:r}=pe(e)?e.changedTouches[0]:e;s||(s=Date.now()),l.push({x:n,y:r,id:o.getId(t),timeOffset:Date.now()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?$.Drag:e instanceof MouseEvent?$.MouseMove:$.TouchMove)}),i,{trailing:!1}),d=[ne("mousemove",xe(u),r),ne("touchmove",xe(u),r),ne("drag",xe(u),r)];return xe((()=>{d.forEach((e=>e()))}))}function Pe(e){let{mouseInteractionCb:t,doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,sampling:s}=e;if(!1===s.mouseInteraction)return()=>{};const l=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];return Object.keys(J).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==l[e])).forEach((e=>{const s=e.toLowerCase(),l=xe((e=>n=>{const s=Ce(n);if(ue(s,o,i,a))return;const l=pe(n)?n.changedTouches[0]:n;if(!l)return;const c=r.getId(s),{clientX:u,clientY:d}=l;xe(t)({type:J[e],id:c,x:u,y:d})})(e));c.push(ne(s,l,n))})),xe((()=>{c.forEach((e=>e()))}))}function De(e){let{scrollCb:t,doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,sampling:s}=e;const l=ie((e=>{const s=Ce(e);if(!s||ue(s,o,i,a))return;const l=r.getId(s);if(s===n){const e=n.scrollingElement||n.documentElement;xe(t)({id:l,x:e.scrollLeft,y:e.scrollTop})}else xe(t)({id:l,x:s.scrollLeft,y:s.scrollTop})}),s.scroll||100);return ne("scroll",xe(l),n)}function Me(e){let{viewportResizeCb:t}=e,n=-1,r=-1;const o=ie((()=>{const e=le(),o=ce();n===e&&r===o||(xe(t)({width:Number(o),height:Number(e)}),n=e,r=o)}),200);return ne("resize",xe(o),window)}function Ne(e,t){const n=Object.assign({},e);return t||delete n.userTriggered,n}const Ae=["INPUT","TEXTAREA","SELECT"],Ie=new WeakMap;function Le(e){let{inputCb:t,doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,ignoreClass:s,ignoreSelector:l,maskInputSelector:c,unmaskInputSelector:u,maskInputOptions:d,maskInputFn:f,sampling:p,userTriggeredOnInput:h}=e;function m(e){let t=Ce(e);const r=t&&t.tagName,p=e.isTrusted;if("OPTION"===r&&(t=t.parentElement),!t||!r||Ae.indexOf(r)<0||ue(t,o,i,a))return;let m=t.type;if(t.classList.contains(s)||l&&t.matches(l))return;let y=t.value,v=!1;t.hasAttribute("rr_is_password")&&(m="password"),"radio"===m||"checkbox"===m?v=t.checked:function(e){let{tagName:t,type:n,maskInputOptions:r,maskInputSelector:o}=e;return o||C({maskInputOptions:r,tagName:t,type:n})}({maskInputOptions:d,maskInputSelector:c,tagName:r,type:m})&&(y=O({input:t,maskInputOptions:d,maskInputSelector:c,unmaskInputSelector:u,tagName:r,type:m,value:y,maskInputFn:f})),g(t,xe(Ne)({text:y,isChecked:v,userTriggered:p},h));const _=t.name;"radio"===m&&_&&v&&n.querySelectorAll('input[type="radio"][name="'.concat(_,'"]')).forEach((e=>{e!==t&&g(e,xe(Ne)({text:e.value,isChecked:!v,userTriggered:!1},h))}))}function g(e,n){const o=Ie.get(e);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){Ie.set(e,n);const o=r.getId(e);t(Object.assign(Object.assign({},n),{id:o}))}}const y=("last"===p.input?["change"]:["input","change"]).map((e=>ne(e,xe(m),n))),v=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),_=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return v&&v.set&&y.push(..._.map((e=>ae(e[0],e[1],{set(){xe(m)({target:this})}})))),xe((()=>{y.forEach((e=>e()))}))}function je(e){return function(e,t){if(We("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||We("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||We("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||We("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else{const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function ze(e,t){let{styleSheetRuleCb:n,mirror:r}=e,{win:o}=t;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};const i=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:xe(((e,t,o)=>{const[i,a]=o,s=r.getId(t.ownerNode);return-1!==s&&n({id:s,adds:[{rule:i,index:a}]}),e.apply(t,o)}))});const a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:xe(((e,t,o)=>{const[i]=o,a=r.getId(t.ownerNode);return-1!==a&&n({id:a,removes:[{index:i}]}),e.apply(t,o)}))});const s={};Ge("CSSGroupingRule")?s.CSSGroupingRule=o.CSSGroupingRule:(Ge("CSSMediaRule")&&(s.CSSMediaRule=o.CSSMediaRule),Ge("CSSConditionRule")&&(s.CSSConditionRule=o.CSSConditionRule),Ge("CSSSupportsRule")&&(s.CSSSupportsRule=o.CSSSupportsRule));const l={};return Object.entries(s).forEach((e=>{let[t,o]=e;l[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(l[t].insertRule,{apply:xe(((e,t,o)=>{const[i,a]=o,s=r.getId(t.parentStyleSheet.ownerNode);return-1!==s&&n({id:s,adds:[{rule:i,index:[...je(t),a||0]}]}),e.apply(t,o)}))}),o.prototype.deleteRule=new Proxy(l[t].deleteRule,{apply:xe(((e,t,o)=>{const[i]=o,a=r.getId(t.parentStyleSheet.ownerNode);return-1!==a&&n({id:a,removes:[{index:[...je(t),i]}]}),e.apply(t,o)}))})})),xe((()=>{o.CSSStyleSheet.prototype.insertRule=i,o.CSSStyleSheet.prototype.deleteRule=a,Object.entries(s).forEach((e=>{let[t,n]=e;n.prototype.insertRule=l[t].insertRule,n.prototype.deleteRule=l[t].deleteRule}))}))}function Ue(e,t){let{styleDeclarationCb:n,mirror:r}=e,{win:o}=t;const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:xe(((e,t,o)=>{var i,a;const[s,l,c]=o,u=r.getId(null===(a=null===(i=t.parentRule)||void 0===i?void 0:i.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==u&&n({id:u,set:{property:s,value:l,priority:c},index:je(t.parentRule)}),e.apply(t,o)}))});const a=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:xe(((e,t,o)=>{var i,a;const[s]=o,l=r.getId(null===(a=null===(i=t.parentRule)||void 0===i?void 0:i.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==l&&n({id:l,remove:{property:s},index:je(t.parentRule)}),e.apply(t,o)}))}),xe((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=a}))}function Be(e){let{mediaInteractionCb:t,blockClass:n,blockSelector:r,unblockSelector:o,mirror:i,sampling:a}=e;const s=e=>ie(xe((a=>{const s=Ce(a);if(!s||ue(s,n,r,o))return;const{currentTime:l,volume:c,muted:u}=s;t({type:e,id:i.getId(s),currentTime:l,volume:c,muted:u})})),a.media||500),l=[ne("play",s(0)),ne("pause",s(1)),ne("seeked",s(2)),ne("volumechange",s(3))];return xe((()=>{l.forEach((e=>e()))}))}function Fe(e){let{fontCb:t,doc:n}=e;const r=n.defaultView;if(!r)return()=>{};const o=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,n){const r=new a(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const s=se(n.fonts,"add",(function(e){return function(n){return setTimeout((()=>{const e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return o.push((()=>{r.FontFace=a})),o.push(s),xe((()=>{o.forEach((e=>e()))}))}function Ye(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:o,scrollCb:i,viewportResizeCb:a,inputCb:s,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:d,fontCb:f}=e;e.mutationCb=function(){t.mutation&&t.mutation(...arguments),n(...arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove(...arguments),r(...arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction(...arguments),o(...arguments)},e.scrollCb=function(){t.scroll&&t.scroll(...arguments),i(...arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize(...arguments),a(...arguments)},e.inputCb=function(){t.input&&t.input(...arguments),s(...arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction(...arguments),l(...arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule(...arguments),c(...arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration(...arguments),u(...arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation(...arguments),d(...arguments)},e.fontCb=function(){t.font&&t.font(...arguments),f(...arguments)}}function He(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.doc.defaultView;if(!n)return()=>{};Ye(e,t);const r=Oe(e,e.doc),o=Re(e),i=Pe(e),a=De(e),s=Me(e),l=Le(e),c=Be(e),u=ze(e,{win:n}),d=Ue(e,{win:n}),f=e.collectFonts?Fe(e):()=>{},p=[];for(const t of e.plugins)p.push(t.observer(t.callback,n,t.options));return xe((()=>{Te.forEach((e=>e.reset())),r.disconnect(),o(),i(),a(),s(),l(),c();try{u(),d()}catch(e){}f(),p.forEach((e=>e()))}))}function We(e){return void 0!==window[e]}function Ge(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class qe{constructor(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}addIframe(e){this.iframes.set(e,!0)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)}}class Ve{constructor(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;const t=this;this.restorePatches.push(se(HTMLElement.prototype,"attachShadow",(function(e){return function(){const n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(e,t){Oe(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),De(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))}observeAttachShadow(e){if(e.contentWindow){const t=this;this.restorePatches.push(se(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const r=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}})))}}reset(){this.restorePatches.forEach((e=>e()))}}for(var Ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ke="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Xe=0;Xe{if(!e||!tt(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=$e.get(e);return n||(n=new Map,$e.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};function Qe(e,t,n){if(e instanceof Array)return e.map((e=>Qe(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t>2],o+=Ze[(3&n[t])<<4|n[t+1]>>4],o+=Ze[(15&n[t+1])<<2|n[t+2]>>6],o+=Ze[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:t,base64:n}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Qe(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[Qe(e.data,t,n),e.width,e.height]}:tt(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Je(e,t,n)}:e}const et=(e,t,n)=>[...e].map((e=>Qe(e,t,n))),tt=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function nt(e,t,n,r,o,i,a,s){const l=[],c=Object.getOwnPropertyNames(e);for(const u of c)try{if("function"!=typeof e[u])continue;const c=se(e,u,(function(l){return function(){for(var c=arguments.length,d=new Array(c),f=0;f1?i-1:0),s=1;s{o.forEach((e=>e()))}}(e,t,r,n),i=function(e,t,n,r,o,i){const a=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;const s=se(t.CanvasRenderingContext2D.prototype,i,(function(t){return function(){for(var a=arguments.length,s=new Array(a),l=0;l{const t=[...s];if("drawImage"===i&&t[0]&&t[0]instanceof HTMLCanvasElement){const e=t[0],n=e.getContext("2d");let r=null==n?void 0:n.getImageData(0,0,e.width,e.height),o=null==r?void 0:r.data;t[0]=JSON.stringify(o)}e(this.canvas,{type:Q["2D"],property:i,args:t})}),0),t.apply(this,s)}}));a.push(s)}catch(n){const r=ae(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:Q["2D"],property:i,args:[t],setter:!0})}});a.push(r)}return()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n,this.mirror),a=function(e,t,n,r,o,i){const a=[];return a.push(...nt(t.WebGLRenderingContext.prototype,Q.WebGL,e,n,r,o,i,t)),void 0!==t.WebGL2RenderingContext&&a.push(...nt(t.WebGL2RenderingContext.prototype,Q.WebGL2,e,n,r,o,i,t)),()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.resetObservers=()=>{o(),i(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map((e=>{const t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe&&e.__sn?e.__sn.id:-1,getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}};function lt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskTextClass:c="rr-mask",maskTextSelector:u=null,maskInputSelector:d=null,unmaskTextSelector:f=null,unmaskInputSelector:p=null,inlineStylesheet:h=!0,maskAllText:m=!1,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:v,maskInputFn:_,maskTextFn:b,hooks:w,packFn:S,sampling:k={},mousemoveWait:E,recordCanvas:x=!1,userTriggeredOnInput:T=!1,collectFonts:C=!1,inlineImages:O=!1,plugins:R,keepIframeSrcFn:P=(()=>!1),onMutation:D}=e;if(!t)throw new Error("emit function is required");void 0!==E&&void 0===k.mousemove&&(k.mousemove=E);const M=!0===g?{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:{},N=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};let A;he();let I=0;const L=e=>{for(const t of R||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&(e=S(e)),e};it=(e,o)=>{var i;if(!(null===(i=Te[0])||void 0===i?void 0:i.isFrozen())||e.type===X.FullSnapshot||e.type===X.IncrementalSnapshot&&e.data.source===$.Mutation||Te.forEach((e=>e.unfreeze())),t(L(e),o),e.type===X.FullSnapshot)A=e,I=0;else if(e.type===X.IncrementalSnapshot){if(e.data.source===$.Mutation&&e.data.isAttachIframe)return;I++;const t=r&&I>=r,o=n&&e.timestamp-A.timestamp>n;(t||o)&&at(!0)}};const j=e=>{it(ot({type:X.IncrementalSnapshot,data:Object.assign({source:$.Mutation},e)}))},z=e=>it(ot({type:X.IncrementalSnapshot,data:Object.assign({source:$.Scroll},e)})),U=e=>it(ot({type:X.IncrementalSnapshot,data:Object.assign({source:$.CanvasMutation},e)})),B=new qe({mutationCb:j}),F=new rt({recordCanvas:x,mutationCb:U,win:window,blockClass:o,blockSelector:i,unblockSelector:a,mirror:st}),Y=new Ve({mutationCb:j,scrollCb:z,bypassOptions:{onMutation:D,blockClass:o,blockSelector:i,unblockSelector:a,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:f,maskInputSelector:d,unmaskInputSelector:p,inlineStylesheet:h,maskAllText:m,maskInputOptions:M,maskTextFn:b,maskInputFn:_,recordCanvas:x,inlineImages:O,sampling:k,slimDOMOptions:N,iframeManager:B,canvasManager:F},mirror:st});at=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t,n,r,s;it(ot({type:X.Meta,data:{href:window.location.href,width:ce(),height:le()}}),e),Te.forEach((e=>e.lock()));const[l,g]=Z(document,{blockClass:o,blockSelector:i,unblockSelector:a,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:f,maskInputSelector:d,unmaskInputSelector:p,inlineStylesheet:h,maskAllText:m,maskAllInputs:M,maskTextFn:b,slimDOM:N,recordCanvas:x,inlineImages:O,onSerialize:e=>{me(e)&&B.addIframe(e),ge(e)&&Y.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{B.attachIframe(e,t),Y.observeAttachShadow(e)},keepIframeSrcFn:P});if(!l)return console.warn("Failed to snapshot the document");st.map=g,it(ot({type:X.FullSnapshot,data:{node:l,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(s=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===s?void 0:s.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),Te.forEach((e=>e.unlock()))};try{const e=[];e.push(ne("DOMContentLoaded",(()=>{it(ot({type:X.DomContentLoaded,data:{}}))})));const t=e=>{var t;return xe(He)({onMutation:D,mutationCb:j,mousemoveCb:(e,t)=>it(ot({type:X.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>it(ot({type:X.IncrementalSnapshot,data:Object.assign({source:$.MouseInteraction},e)})),scrollCb:z,viewportResizeCb:e=>it(ot({type:X.IncrementalSnapshot,data:Object.assign({source:$.ViewportResize},e)})),inputCb:e=>it(ot({type:X.IncrementalSnapshot,data:Object.assign({source:$.Input},e)})),mediaInteractionCb:e=>it(ot({type:X.IncrementalSnapshot,data:Object.assign({source:$.MediaInteraction},e)})),styleSheetRuleCb:e=>it(ot({type:X.IncrementalSnapshot,data:Object.assign({source:$.StyleSheetRule},e)})),styleDeclarationCb:e=>it(ot({type:X.IncrementalSnapshot,data:Object.assign({source:$.StyleDeclaration},e)})),canvasMutationCb:U,fontCb:e=>it(ot({type:X.IncrementalSnapshot,data:Object.assign({source:$.Font},e)})),blockClass:o,ignoreClass:s,ignoreSelector:l,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:f,maskInputSelector:d,unmaskInputSelector:p,maskInputOptions:M,inlineStylesheet:h,sampling:k,recordCanvas:x,inlineImages:O,userTriggeredOnInput:T,collectFonts:C,doc:e,maskAllText:m,maskInputFn:_,maskTextFn:b,blockSelector:i,unblockSelector:a,slimDOMOptions:N,mirror:st,iframeManager:B,shadowDomManager:Y,canvasManager:F,plugins:(null===(t=null==R?void 0:R.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>it(ot({type:X.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},w)};B.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{at(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():e.push(ne("load",(()=>{it(ot({type:X.Load,data:{}})),n()}),window)),()=>{e.forEach((e=>e()))}}catch(e){console.warn(e)}}lt.addCustomEvent=(e,t)=>{if(!it)throw new Error("please add custom event after start recording");it(ot({type:X.Custom,data:{tag:e,payload:t}}))},lt.freezePage=()=>{Te.forEach((e=>e.freeze()))},lt.takeFullSnapshot=e=>{if(!at)throw new Error("please take full snapshot after start recording");at(e)},lt.mirror=st;const ct=["name","type","startTime","transferSize","duration"];function ut(e){return function(t){return ct.every((n=>e[n]===t[n]))}}function dt(e){return e>9999999999?e:1e3*e}class ft{constructor(){this.events=[]}get hasEvents(){return this.events.length>0}destroy(){this.events=[]}async addEvent(e){this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.events=[],e(JSON.stringify(t))}))}clear(){this.events=[]}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?dt(e):null}}class pt{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(n=>{let{data:r}=n;r.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const i=t=>{let{data:a}=t;const s=a;if(s.method===e&&s.id===n){if(this._worker.removeEventListener("message",i),!s.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay]",s.response),void o(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class ht{constructor(e){this._worker=new pt(e),this._earliestTimestamp=null}get hasEvents(){return!!this._earliestTimestamp}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=dt(e.timestamp);return(!this._earliestTimestamp||t2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=n}function yt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return gt(e.started,t.maxSessionLife,n)||gt(e.lastActivity,t.sessionIdleExpire,n)}function vt(e){return void 0!==e&&Math.random(){if(!Et(n)&&!xt(n))return;const o=r&&r.statusCode;if(!t||!(!o||o<200||o>=300))if(xt(n)&&n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id)e.getContext().traceIds.add(n.contexts.trace.trace_id);else if(Et(n)&&(n.event_id&&e.getContext().errorIds.add(n.event_id),"buffer"===e.recordingMode&&n.exception&&n.message!==b)){if(!vt(e.getOptions().errorSampleRate))return;setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}}}var Ot;function Rt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}function Pt(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(kt(e,{type:X.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,u.Fv)(t,10,1e3)}}),"console"===t.category))))}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Ot||(Ot={}));const Dt=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid"]);function Mt(e){const t={};for(const n in e)if(Dt.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function Nt(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&(!(!t.originalException||!t.originalException.__rrweb__)||e.exception.values.some((e=>!!(e.stacktrace&&e.stacktrace.frames&&e.stacktrace.frames.length)&&e.stacktrace.frames.some((e=>e.filename&&e.filename.includes("/rrweb/src/"))))))}function At(e){const{category:t,level:n,message:r,...i}=e;(0,o.n_)({category:t||"console",level:n||"debug",message:"[debug]: ".concat(r),...i})}function It(e){return{type:"Unknown",value:"n/a",...e.exception&&e.exception.values&&e.exception.values[0]}}function Lt(e,t){return t.map((t=>{let{type:n,start:r,end:o,name:i,data:a}=t;return kt(e,{type:X.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:a}}})}))}function jt(e,t){e.isEnabled()&&null!==t&&(function(e,t){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!e.getOptions()._experiments.traceInternals)&&function(e){const t=(0,r.Gd)().getClient(),n=t&&t.getDsn();return!!n&&e.includes(n.host)}(t)}(e,t.name)||e.addUpdate((()=>(Lt(e,[t]),!0))))}const zt=10,Ut=13,Bt=15,Ft=20,Yt=21,Ht=23,Wt=["true","false","null"];function Gt(e,t,n){const r=e[e.length-1],o=t[n];if(!/\s/.test(o))if('"'!==o||qt(t,n))switch(o){case"{":!function(e,t){t&&t!==Ut?(t===Yt&&e.push(zt),t===Ft&&e.push(zt)):e.push(zt)}(e,r);break;case"[":!function(e,t){t?t===Ut?(e.push(Ft),e.push(Yt)):(t===Yt&&(e.push(Ft),e.push(Yt)),t===Ft&&(e.push(Ft),e.push(Yt))):(e.push(Ft),e.push(Yt))}(e,r);break;case":":!function(e,t){11===t&&(e.pop(),e.push(Ut))}(e,r);break;case",":!function(e,t){if(t!==Ut)return t===Bt?(e.pop(),void e.pop()):void(t!==Yt&&t===Ht&&e.pop());e.pop()}(e,r);break;case"}":!function(e,t){t===zt&&e.pop(),t===Ut&&(e.pop(),e.pop()),t===Bt&&(e.pop(),e.pop(),e.pop()),e[e.length-1]===Ut&&e.push(Bt),e[e.length-1]===Yt&&e.push(Ht)}(e,r);break;case"]":!function(e,t){t===Ft&&e.pop(),t===Yt&&(e.pop(),e.pop()),t===Ht&&(e.pop(),e.pop(),e.pop()),e[e.length-1]===Ut&&e.push(Bt),e[e.length-1]===Yt&&e.push(Ht)}(e,r)}else!function(e,t){14===t?(e.pop(),e.push(Bt)):22===t?(e.pop(),e.push(Ht)):t!==Ut?t!==Yt?t!==zt?12===t&&(e.pop(),e.push(11)):e.push(12):e.push(22):e.push(14)}(e,r)}function qt(e,t){return"\\"===e[t-1]&&!qt(e,t-1)}function Vt(e){return function(e,t){if(!t.length)return e;let n=e;const r=t.length-1;n=function(e,t){switch(t){case zt:return"".concat(e,'"~~":"~~"');case 11:return"".concat(e,':"~~"');case 12:return"".concat(e,'~~":"~~"');case Ut:return function(e){const t=e.lastIndexOf(":"),n=e.slice(t+1);return Wt.includes(n.trim())?"".concat(e,',"~~":"~~"'):"".concat(e.slice(0,t+1),'"~~"')}(e);case 14:return"".concat(e,'~~"');case Bt:return"".concat(e,',"~~":"~~"');case Ft:return"".concat(e,'"~~"');case Yt:return function(e){const t=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(","===n||"["===n)return t}return-1}(e);if(t>-1){const n=e.slice(t+1);return Wt.includes(n.trim())?"".concat(e,',"~~"'):"".concat(e.slice(0,t+1),'"~~"')}return e}(e);case 22:return"".concat(e,'~~"');case Ht:return"".concat(e,',"~~"')}return e}(n,t[r]);for(let e=r;e>=0;e--)switch(t[e]){case zt:n="".concat(n,"}");break;case Ft:n="".concat(n,"]")}return n}(e,function(e){const t=[];for(let n=0;nk;if(function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e))try{const n=t?Vt(e.slice(0,k)):e;return{body:JSON.parse(n),warnings:t?["JSON_TRUNCATED"]:[]}}catch(n){return{body:t?"".concat(e.slice(0,k),"…"):e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?"".concat(e.slice(0,k),"…"):e,warnings:t?["TEXT_TRUNCATED"]:[]}}(n);return r.body=o,i.length>0&&(r._meta={warnings:i}),r}function en(e,t){return Object.keys(e).reduce(((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n}),{})}function tn(e){return new URLSearchParams(e).toString()}function nn(e,t){return(0,h.U0)(e,t)}function rn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(2===e.length&&"object"==typeof e[1])return e[1].body}function on(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function an(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?on(n,t):Array.isArray(n)?{}:en(n,t):{}}function sn(e){const t=(0,r.Gd)().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a}=e.getOptions(),s={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(function(e,t,n){const{xhr:r,input:o}=t,i=Zt(o,n.textEncoder),a=r.getResponseHeader("content-length")?Kt(r.getResponseHeader("content-length")):Zt(r.response,n.textEncoder);void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,n,e),async function(e,t,n){try{const r=function(e,t,n){const{startTimestamp:r,endTimestamp:o,input:i,xhr:a}=t,{url:s,method:l,status_code:c=0,request_body_size:u,response_body_size:d}=e.data;if(!s)return null;if(!nn(s,n.networkDetailAllowUrls))return{startTimestamp:r,endTimestamp:o,url:s,method:l,statusCode:c,request:Jt(u),response:Jt(d)};const p=a[f.xU],h=p?en(p.request_headers,n.networkRequestHeaders):{},m=en(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{}):{}}(a),n.networkResponseHeaders);return{startTimestamp:r,endTimestamp:o,url:s,method:l,statusCode:c,request:Qt(h,u,n.networkCaptureBodies?Xt(i):void 0),response:Qt(m,d,n.networkCaptureBodies?t.xhr.responseText:void 0)}}(e,t,n),o=$t("resource.xhr",r);jt(n.replay,o)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay] Failed to capture fetch breadcrumb",e)}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(function(e,t,n){const{input:r,response:o}=t,i=Zt(rn(r),n.textEncoder),a=o?Kt(o.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,n,e),async function(e,t,n){try{const r=await async function(e,t,n){const{startTimestamp:r,endTimestamp:o}=t,{url:i,method:a,status_code:s=0,request_body_size:l,response_body_size:c}=e.data,u=nn(i,n.networkDetailAllowUrls),d=u?function(e,t,n){let{networkCaptureBodies:r,networkRequestHeaders:o}=e;const i=(s=o,1===(a=t).length&&"string"!=typeof a[0]?an(a[0],s):2===a.length?an(a[1],s):{});var a,s;return Qt(i,n,r?Xt(rn(t)):void 0)}(n,t.input,l):Jt(l),f=await async function(e,t,n,r){let{networkCaptureBodies:o,textEncoder:i,networkResponseHeaders:a}=t;if(!e&&void 0!==r)return Jt(r);const s=on(n.headers,a);if(!o&&void 0!==r)return Qt(s,r,void 0);try{const t=n.clone(),a=await async function(e){try{return await e.text()}catch(e){return}}(t),l=a&&a.length&&void 0===r?Zt(a,i):r;return e?Qt(s,l,o?a:void 0):Jt(l)}catch(e){return Qt(s,r,void 0)}}(u,n,t.response,c);return{startTimestamp:r,endTimestamp:o,url:i,method:a,statusCode:s,request:d,response:f}}(e,t,n),o=$t("resource.fetch",r);jt(n.replay,o)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay] Failed to capture fetch breadcrumb",e)}}(t,n,e))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Error when enriching network breadcrumb")}}(s,e,t))):((0,f.oq)("fetch",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:i,url:a}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:a,data:{method:i,statusCode:o&&o.status}}}(t);jt(e,n)}}(e)),(0,f.oq)("xhr",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[f.xU];if(!t||!n||!o)return null;const{method:i,url:a,status_code:s}=o;return void 0===a?null:{type:"resource.xhr",name:a,start:t/1e3,end:n/1e3,data:{method:i,statusCode:s}}}(t);jt(e,n)}}(e)))}catch(e){}}let ln=null;function cn(e){const t=(0,r.Gd)().getScope(),n=(0,r.Gd)().getClient();t&&t.addScopeListener((e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return ln!==t&&t?(ln=t,t.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:"console"===t.category?function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Rt(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>E?(n=!0,"".concat(e.slice(0,E),"…")):e;if("object"==typeof e)try{const t=(0,u.Fv)(e,7),r=JSON.stringify(t);if(r.length>E){const e=Vt(r.slice(0,E)),t=JSON.parse(e);return n=!0,t}return t}catch(e){}return e}));return Rt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):Rt(t)):null}(t);n&&Pt(e,n)})(e)),(0,f.oq)("dom",(e=>t=>{if(!e.isEnabled())return;const n=function(e){let t,n;try{n=function(e){return e.event.target?e.event.target:e.event}(e),t=(0,d.Rt)(n)}catch(e){t=""}const r=n&&"__sn"in n&&n.__sn.type===Ot.Element?n.__sn:null;return Rt({category:"ui.".concat(e.name),message:t,data:r?{nodeId:r.id,node:{id:r.id,tagName:r.tagName,textContent:n?Array.from(n.childNodes).map((e=>"__sn"in e&&e.__sn.type===Ot.Text&&e.__sn.textContent)).filter(Boolean).map((e=>e.trim())).join(""):"",attributes:Mt(r.attributes)}}:{}})}(t);n&&Pt(e,n)})(e)),(0,f.oq)("history",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Lt(e,[n]),!1))))}}(e)),sn(e),(0,i.c)(function(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?Ct(e):void 0;return(n,r)=>{if(Tt(n))return delete n.breadcrumbs,n;if(!Et(n)&&!xt(n))return n;if(Nt(n,r)&&!e.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Ignoring error from rrweb internals",n),null;if((Et(n)||xt(n)&&"session"===e.recordingMode)&&(n.tags={...n.tags,replayId:e.getSessionId()}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.getOptions()._experiments.traceInternals&&Et(n)){const e=It(n);At({message:"Tagging event (".concat(n.event_id,") - ").concat(n.message," - ").concat(e.type,": ").concat(e.value)})}return t&&t(n,{statusCode:200}),n}}(e,!un(n))),un(n)&&(n.on("afterSendEvent",Ct(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&(t.replay_id=n)})))}function un(e){return!(!e||!e.on)}function dn(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const fn={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:"".concat(t,".").concat(n),start:hn(i),end:hn(o),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=hn(o);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return 0===o?null:{type:"".concat(t,".").concat(m),start:hn(p),end:hn(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:a,duration:o,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:i,redirectCount:f}}},"largest-contentful-paint":function(e){const{entryType:t,startTime:n,size:r}=e;let o=0;if(v.performance){const e=v.performance.getEntriesByType("navigation")[0];o=e&&e.activationStart||0}const i=Math.max(n-o,0),a=hn(o)+i/1e3;return{type:t,name:t,start:a,end:a,data:{value:i,size:r,nodeId:lt.mirror.getId(e.element)}}}};function pn(e){return void 0===fn[e.entryType]?null:fn[e.entryType](e)}function hn(e){return((m.Z1||v.performance.timeOrigin)+e)/1e3}function mn(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("[Replay] Received replay event after session expired."));const o=r||!t;t=!0,e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),kt(e,n,o),!o)return!1;if(e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(e.session.started=t,e.getOptions().stickySession&&_t(e.session))}return"session"===e.recordingMode&&e.flushImmediate(),!0}))}}async function gn(e){let{recordingData:t,replayId:n,segmentId:o,eventContext:i,timestamp:s,session:c,options:u}=e;const d=function(e){let t,{recordingData:n,headers:r}=e;const o="".concat(JSON.stringify(r),"\n");if("string"==typeof n)t="".concat(o).concat(n);else{const e=(new TextEncoder).encode(o);t=new Uint8Array(e.length+n.length),t.set(e),t.set(n,e.length)}return t}({recordingData:t,headers:{segment_id:o}}),{urls:f,errorIds:p,traceIds:h,initialTimestamp:m}=i,y=(0,r.Gd)(),v=y.getClient(),_=y.getScope(),w=v&&v.getTransport(),S=v&&v.getDsn();if(!(v&&_&&w&&S&&c.sampled))return;const k={type:"replay_event",replay_start_timestamp:m/1e3,timestamp:s/1e3,error_ids:p,trace_ids:h,urls:f,replay_id:n,segment_id:o,replay_type:c.sampled},E=await async function(e){let{client:t,scope:n,replayId:r,event:o}=e;const i="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),s=await(0,a.R)(t.getOptions(),o,{event_id:r,integrations:i},n);if(!s)return null;s.platform=s.platform||"javascript";const l=t.getSdkMetadata&&t.getSdkMetadata(),{name:c,version:u}=l&&l.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}({scope:_,client:v,replayId:n,event:k});if(!E)return v.recordDroppedEvent("event_processor","replay",k),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("An event processor returned `null`, will not send event."));E.contexts={...E.contexts,replay:{...E.contexts&&E.contexts.replay,session_sample_rate:u.sessionSampleRate,error_sample_rate:u.errorSampleRate}};const x=function(e,t,n,r){return(0,g.Jd)((0,g.Cd)(e,(0,g.HY)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(E,d,S,v.getOptions().tunnel);let T;try{T=await w.send(x)}catch(e){const t=new Error(b);try{t.cause=e}catch(e){}throw t}if(!T)return T;if("number"==typeof T.statusCode&&(T.statusCode<200||T.statusCode>=300))throw new yn(T.statusCode);return T}class yn extends Error{constructor(e){super("Transport returned status code ".concat(e))}}async function vn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{count:0,interval:5e3};const{recordingData:n,options:r}=e;if(n.length)try{return await gn(e),!0}catch(n){if(n instanceof yn)throw n;if((0,o.v)("Replays",{_retryCount:t.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&(0,o.Tb)(n),t.count>=3){const e=new Error("".concat(b," - max retries exceeded"));try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,await new Promise(((n,r)=>{setTimeout((async()=>{try{await vn(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}class _n{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5,maxSessionLife:36e5}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""}}constructor(e){let{options:t,recordingOptions:n}=e;_n.prototype.__init.call(this),_n.prototype.__init2.call(this),_n.prototype.__init3.call(this),_n.prototype.__init4.call(this),_n.prototype.__init5.call(this),_n.prototype.__init6.call(this),_n.prototype.__init7.call(this),_n.prototype.__init8.call(this),_n.prototype.__init9.call(this),_n.prototype.__init10.call(this),_n.prototype.__init11.call(this),_n.prototype.__init12.call(this),_n.prototype.__init13.call(this),_n.prototype.__init14.call(this),_n.prototype.__init15.call(this),_n.prototype.__init16.call(this),_n.prototype.__init17.call(this),this._recordingOptions=n,this._options=t,this._debouncedFlush=function(e,t,n){let r,o,i;const a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),r=e(),r}function l(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function c(){return o&&clearTimeout(o),o=setTimeout(s,t),a&&void 0===i&&(i=setTimeout(s,a)),r}return c.cancel=l,c.flush=function(){return void 0!==o||void 0!==i?s():r},c}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(){const{errorSampleRate:e,sessionSampleRate:t}=this._options;e<=0&&t<=0||this._loadAndCheckSession()&&(this.session?(this.session.sampled&&"session"!==this.session.sampled&&(this.recordingMode="buffer"),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");const e=this.session&&this.session.id,{session:t}=St({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:1,allowBuffering:!1});t.previousSessionId=e,this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");const e=this.session&&this.session.id,{session:t}=St({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:0,allowBuffering:!0});t.previousSessionId=e,this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=lt({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:mn(this),onMutation:this._onMutationHandler})}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(e){if(this._isEnabled)try{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t="[Replay] Stopping Replay".concat(e?" triggered by ".concat(e):"");(this.getOptions()._experiments.traceInternals?console.warn:l.kg.log)(t)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,t=this,function(){if("sessionStorage"in v)try{v.sessionStorage.removeItem(_)}catch(e){}}(),t.session=void 0}catch(e){this._handleException(e)}var t}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush(){let{continueRecording:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("session"===this.recordingMode)return this.flushImmediate();await this.flushImmediate();const t=this.stopRecording();e&&t&&(this.recordingMode="session",this.session&&(this.session.shouldRefresh=!1,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._loadAndCheckSession())return;this.resume()}}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){const e=this.getSessionId();if(this._lastActivity&>(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled)this.pause();else if(this._loadAndCheckSession())return e===this.getSessionId()||(this._triggerFullSnapshot(),!1)}setInitialState(){const e="".concat(v.location.pathname).concat(v.location.hash).concat(v.location.search),t="".concat(v.location.origin).concat(e);this.performanceEvents=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function(e){let{useCompression:t}=e;if(t&&window.Worker)try{const e=function(){const e=new Blob(['/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&sr){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_watern&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&nt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<>>=p,c-=p),c<15&&(f+=z[a++]<>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a>3,a-=k,c-=k<<3,f&=(1<{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whavexe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Using compression worker");const t=new Worker(e);return new mt(t)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Failed to create compression worker")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Using simple buffer"),new ft}({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this.startRecording()}_handleException(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay]",e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,o.Tb)(e)}_loadAndCheckSession(){const{type:e,session:t}=St({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0});"new"===e&&this.setInitialState();const n=this.getSessionId();return t.id!==n&&(t.previousSessionId=n),this.session=t,!!this.session.sampled||(this.stop("session unsampled"),!1)}_addListeners(){try{v.document.addEventListener("visibilitychange",this._handleVisibilityChange),v.addEventListener("blur",this._handleWindowBlur),v.addEventListener("focus",this._handleWindowFocus),this._hasInitializedCoreListeners||(cn(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"PerformanceObserver"in v&&(this._performanceObserver=function(e){const t=new PerformanceObserver((t=>{const n=function(e,t){const[n,r,o]=e.reduce(((e,t)=>("navigation"===t.entryType?e[0].push(t):"largest-contentful-paint"===t.entryType?e[1].push(t):e[2].push(t),e)),[[],[],[]]),i=[],a=[];let s=r.length?r[r.length-1]:void 0;return t.forEach((e=>{if("largest-contentful-paint"!==e.entryType)if("navigation"!==e.entryType)i.push(e);else{const t=e;e.duration>0&&!n.find(ut(t))&&!a.find(ut(t))&&a.push(t)}else(!s||s.startTimee.startTime-t.startTime))}(e.performanceEvents,t.getEntries());e.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((e=>{try{t.observe({type:e,buffered:!0})}catch(e){}})),t}(this))}_removeListeners(){try{v.document.removeEventListener("visibilitychange",this._handleVisibilityChange),v.removeEventListener("blur",this._handleWindowBlur),v.removeEventListener("focus",this._handleWindowFocus),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(e){this._handleException(e)}}__init13(){this._handleVisibilityChange=()=>{"visible"===v.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const e=Rt({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init15(){this._handleWindowFocus=()=>{const e=Rt({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;const t=yt(this.session,this.timeouts);e&&!t&&this._createCustomBreadcrumb(e),this._conditionalFlush()}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Document has become active, but session has expired"))}_triggerFullSnapshot(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Taking full rrweb snapshot"),lt.takeFullSnapshot(e)}catch(e){this._handleException(e)}}_updateUserActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}_updateSessionActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{kt(this,{type:X.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(Lt(this,function(e){return e.map(pn).filter(Boolean)}(e)))}_conditionalFlush(){"buffer"!==this.recordingMode&&this.flushImmediate()}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n0&&void 0!==arguments[0]?arguments[0]:{};if(e._isEnabled||t)if(e.checkAndHandleExpiredSession())if(e.session){if(e._debouncedFlush.cancel(),!e._flushLock)return e._flushLock=e._runFlush(),await e._flushLock,void(e._flushLock=null);try{await e._flushLock}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error(e)}finally{e._debouncedFlush()}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay] No session found to flush.");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay] Attempting to finish replay event after session expired.")}}_maybeSaveSession(){this.session&&this._options.stickySession&&_t(this.session)}__init17(){this._onMutationHandler=e=>{const t=e.length,n=this._options._experiments.mutationLimit||0,r=n&&t>n;if(t>(this._options._experiments.mutationBreadcrumbLimit||1e3)||r){const e=Rt({category:"replay.mutations",data:{count:t}});this._createCustomBreadcrumb(e)}return!r||(this._triggerFullSnapshot(!1),!1)}}}function bn(e,t,n,r){const o=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&o.push(".".concat(n)),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),o.join(",")}function wn(e){let{mask:t,unmask:n,block:r,unblock:o,ignore:i,blockClass:a,blockSelector:s,maskTextClass:l,maskTextSelector:c,ignoreClass:u}=e;const d=bn(t,[".sentry-mask","[data-sentry-mask]"],l,c),f=bn(n,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:d,unmaskTextSelector:f,maskInputSelector:d,unmaskInputSelector:f,blockSelector:bn(r,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,s),unblockSelector:bn(o,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:bn(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return a instanceof RegExp&&(p.blockClass=a),l instanceof RegExp&&(p.maskTextClass=l),p}function Sn(){return"undefined"!=typeof window&&(!(0,y.KV)()||"undefined"!=typeof process&&"renderer"===process.type)}const kn='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',En=["content-length","content-type","accept"];let xn=!1;class Tn{static __initStatic(){this.id="Replay"}__init(){this.name=Tn.id}constructor(){let{flushMinDelay:e=w,flushMaxDelay:t=S,stickySession:n=!0,useCompression:r=!0,_experiments:o={},sessionSampleRate:i,errorSampleRate:a,maskAllText:s=!0,maskAllInputs:l=!0,blockAllMedia:c=!0,networkDetailAllowUrls:u=[],networkCaptureBodies:d=!0,networkRequestHeaders:f=[],networkResponseHeaders:p=[],mask:h=[],unmask:m=[],block:g=[],unblock:y=[],ignore:v=[],maskFn:_,blockClass:b,blockSelector:k,maskInputOptions:E,maskTextClass:x,maskTextSelector:T,ignoreClass:C}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Tn.prototype.__init.call(this),this._recordingOptions={maskAllInputs:l,maskAllText:s,maskInputOptions:{...E||{},password:!0},maskTextFn:_,maskInputFn:_,...wn({mask:h,unmask:m,block:g,unblock:y,ignore:v,blockClass:b,blockSelector:k,maskTextClass:x,maskTextSelector:T,ignoreClass:C}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,stickySession:n,sessionSampleRate:i,errorSampleRate:a,useCompression:r,blockAllMedia:c,networkDetailAllowUrls:u,networkCaptureBodies:d,networkRequestHeaders:Cn(f),networkResponseHeaders:Cn(p),_experiments:o},"number"==typeof i&&(console.warn("[Replay] You are passing `sessionSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysSessionSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ".concat(i," })")),this._initialOptions.sessionSampleRate=i),"number"==typeof a&&(console.warn("[Replay] You are passing `errorSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysOnErrorSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ".concat(a," })")),this._initialOptions.errorSampleRate=a),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(kn):kn),this._isInitialized&&Sn())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return xn}set _isInitialized(e){xn=e}setupOnce(){Sn()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop():Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const e=function(e){const t=(0,r.Gd)().getClient(),n=t&&t.getOptions(),o={sessionSampleRate:0,errorSampleRate:0,...(0,p.Jr)(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),"number"==typeof n.replaysSessionSampleRate&&(o.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(o.errorSampleRate=n.replaysOnErrorSampleRate),o):(console.warn("SDK client is not available."),o)}(this._initialOptions);this._replay=new _n({options:e,recordingOptions:this._recordingOptions})}}function Cn(e){return[...En,...e.map((e=>e.toLowerCase()))]}Tn.__initStatic()},9587:(e,t,n)=>{"use strict";n.d(t,{qT:()=>l,l4:()=>s,Rt:()=>i});var r=n(4440);const o=(0,n(76).Rf)();function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let n=e;const r=5,o=[];let i=0,s=0;const l=" > ",c=l.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++1&&s+o.length*c+u.length>=f));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(l)}catch(e){return""}}function a(e,t){const n=e,o=[];let i,a,s,l,c;if(!n||!n.tagName)return"";o.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{o.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(n.id&&o.push("#".concat(n.id)),i=n.className,i&&(0,r.HD)(i))for(a=i.split(/\s+/),c=0;c{"use strict";n.d(t,{RA:()=>i,vK:()=>s});var r=n(9797);const o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:l}=e;return"".concat(s,"://").concat(l).concat(t&&o?":".concat(o):"")+"@".concat(n).concat(i?":".concat(i):"","/").concat(r?"".concat(r,"/"):r).concat(a)}function a(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function s(e){const t="string"==typeof e?function(e){const t=o.exec(e);if(!t)throw new r.b("Invalid Sentry Dsn: ".concat(e));const[n,i,s="",l,c="",u]=t.slice(1);let d="",f=u;const p=f.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),f=p.pop()),f){const e=f.match(/^\d+/);e&&(f=e[0])}return a({host:l,pass:s,path:d,projectId:f,port:c,protocol:n,publicKey:i})}(e):a(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:o}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new r.b("Invalid Sentry Dsn: ".concat(t," missing"))})),!n.match(/^\d+$/))throw new r.b("Invalid Sentry Dsn: Invalid projectId ".concat(n));if(!function(e){return"http"===e||"https"===e}(o))throw new r.b("Invalid Sentry Dsn: Invalid protocol ".concat(o));if(t&&isNaN(parseInt(t,10)))throw new r.b("Invalid Sentry Dsn: Invalid port ".concat(t))}(t),t}},6895:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{S:()=>o,n:()=>r})},2678:(e,t,n)=>{"use strict";n.d(t,{BO:()=>s,zQ:()=>d,Jd:()=>a,Cd:()=>m,mL:()=>p,gv:()=>l,HY:()=>h,V$:()=>u});var r=n(8525),o=n(1990),i=n(1224);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,t]}function s(e,t){const[n,r]=e;return[n,[...r,t]]}function l(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function c(e,t){return(t||new TextEncoder).encode(e)}function u(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(e){"string"==typeof i?i="string"==typeof e?i+e:[c(i,t),e]:i.push("string"==typeof e?c(e,t):e)}for(const e of r){const[t,n]=e;if(a("\n".concat(JSON.stringify(t),"\n")),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,o.Fv)(n))}a(e)}}return"string"==typeof i?i:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(i)}function d(e,t){const n="string"==typeof e.data?c(e.data,t):e.data;return[(0,i.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const f={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function p(e){return f[e]}function h(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function m(e,t,n,o){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:(0,r.RA)(o)},...a&&{trace:(0,i.Jr)({...a})}}}},9797:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});class r extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},325:(e,t,n)=>{"use strict";n.d(t,{xU:()=>d,oq:()=>h});var r=n(4440),o=n(9204),i=n(1224),a=n(6414),s=n(1017),l=n(76);const c=(0,l.Rf)(),u=(0,l.Rf)(),d="__sentry_xhr_v2__",f={},p={};function h(e,t){f[e]=f[e]||[],f[e].push(t),function(e){if(!p[e])switch(p[e]=!0,e){case"console":"console"in u&&o.RU.forEach((function(e){e in u.console&&(0,i.hl)(u.console,e,(function(t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o{const n=u[t]&&u[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,i.hl)(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){const r=E(e);a.handler=r,t.call(this,n,r,o)}a.refCount++}catch(e){}return t.call(this,n,r,o)}})),(0,i.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in u))return;const e=XMLHttpRequest.prototype;(0,i.hl)(e,"open",(function(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o{const e=this[d];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}m("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,i.hl)(this,"onreadystatechange",(function(e){return function(){l();for(var t=arguments.length,n=new Array(t),r=0;r(m("fetch",{...a,endTimestamp:Date.now(),response:e}),e)),(e=>{throw m("fetch",{...a,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(!function(){const e=c.chrome,t=e&&e.app&&e.app.runtime,n="history"in c&&!!c.history.pushState&&!!c.history.replaceState;return!t&&n}())return;const e=u.onpopstate;function t(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r2?n[2]:void 0;if(o){const e=_,t=String(o);_=t,m("history",{from:e,to:t})}return e.apply(this,n)}}u.onpopstate=function(){const t=u.location.href,n=_;if(_=t,m("history",{from:n,to:t}),e)try{for(var r=arguments.length,o=new Array(r),i=0;i1&&void 0!==arguments[1]&&arguments[1];return n=>{if(!n||w===n)return;if(k(n))return;const r="keypress"===n.type?"input":n.type;(void 0===b||S(w,n))&&(e({event:n,name:r,global:t}),w=n),clearTimeout(b),b=u.setTimeout((()=>{b=void 0}),1e3)}}let x=null,T=null},4440:(e,t,n)=>{"use strict";n.d(t,{TX:()=>s,fm:()=>l,kK:()=>p,VZ:()=>o,VW:()=>a,cO:()=>f,V9:()=>v,i2:()=>y,PO:()=>d,pt:()=>u,Kj:()=>h,HD:()=>c,Cy:()=>g,J8:()=>m});const r=Object.prototype.toString;function o(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(e,Error)}}function i(e,t){return r.call(e)==="[object ".concat(t,"]")}function a(e){return i(e,"ErrorEvent")}function s(e){return i(e,"DOMError")}function l(e){return i(e,"DOMException")}function c(e){return i(e,"String")}function u(e){return null===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 p(e){return"undefined"!=typeof Element&&v(e,Element)}function h(e){return i(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e){return"number"==typeof e&&e!=e}function v(e,t){try{return e instanceof t}catch(e){return!1}}},9204:(e,t,n)=>{"use strict";n.d(t,{RU:()=>i,Cf:()=>a,kg:()=>l});var r=n(76);const o="Sentry Logger ",i=["debug","info","warn","error","log","assert","trace"];function a(e){if(!("console"in r.n2))return e();const t=r.n2.console,n={};i.forEach((e=>{const r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)}));try{return e()}finally{Object.keys(n).forEach((e=>{t[e]=n[e]}))}}function s(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.forEach((n=>{t[n]=function(){for(var t=arguments.length,i=new Array(t),s=0;s{r.n2.console[n]("".concat(o,"[").concat(n,"]:"),...i)}))}})):i.forEach((e=>{t[e]=()=>{}})),t}let l;l="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.YO)("logger",s):s()},1921:(e,t,n)=>{"use strict";n.d(t,{EG:()=>c,Db:()=>l,lE:()=>d,YO:()=>u,jH:()=>s,DM:()=>i});var r=n(1224),o=n(76);function i(){const e=o.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;const r=a(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"":n||""}function l(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function c(e,t){const n=a(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},3331:(e,t,n)=>{"use strict";n.d(t,{l$:()=>i,KV:()=>o});var r=n(6895);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}e=n.hmd(e)},1990:(e,t,n)=>{"use strict";n.d(t,{Fv:()=>s,Qy:()=>l});var r=n(4440);function o(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return c("",e,t,n)}catch(e){return{ERROR:"**non-serializable** (".concat(e,")")}}}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400;const r=s(e,t);return d(r)>n?l(e,t-1,n):r}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o();const[l,d]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!(0,r.i2)(t))return t;const f=u(e,t);if(!f.startsWith("[object "))return f;if(t.__sentry_skip_normalization__)return t;const p="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===p)return f.replace("object ","");if(l(t))return"[Circular ~]";const h=t;if(h&&"function"==typeof h.toJSON)try{return c("",h.toJSON(),p-1,a,s)}catch(e){}const m=Array.isArray(t)?[]:{};let g=0;const y=(0,i.Sh)(t);for(const e in y){if(!Object.prototype.hasOwnProperty.call(y,e))continue;if(g>=a){m[e]="[MaxProperties ~]";break}const t=y[e];m[e]=c(e,t,p-1,a,s),g++}return d(t),m}function u(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return"[Function: ".concat((0,a.$P)(t),"]");if("symbol"==typeof t)return"[".concat(String(t),"]");if("bigint"==typeof t)return"[BigInt: ".concat(String(t),"]");const o=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(o)?"[HTMLElement: ".concat(o,"]"):"[object ".concat(o,"]")}catch(e){return"**non-serializable** (".concat(e,")")}}function d(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}},1224:(e,t,n)=>{"use strict";n.d(t,{xp:()=>s,Sh:()=>d,Jr:()=>m,zf:()=>h,hl:()=>a,HK:()=>c,$Q:()=>l,_j:()=>u});var r=n(9587),o=n(4440),i=n(5507);function a(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);if("function"==typeof o)try{l(o,r)}catch(e){}e[t]=o}function s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function l(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function u(e){return Object.keys(e).map((t=>"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t])))).join("&")}function d(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if((0,o.cO)(e)){const t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function f(e){try{return(0,o.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(e){return""}}function p(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40;const n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,i.$G)(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:(0,i.$G)(r,t)}return""}function m(e){return g(e,new Map)}function g(e,t){if((0,o.PO)(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=g(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(g(e,t))})),r}return e}},6414:(e,t,n)=>{"use strict";n.d(t,{pE:()=>o,$P:()=>l,Sq:()=>i});const r=/\(error: (.*)\)/;function o(){for(var e=arguments.length,t=new Array(e),n=0;ne[0]-t[0])).map((e=>e[1]));return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=[],i=e.split("\n");for(let e=t;e1024)continue;const a=r.test(t)?t.replace(r,"$1"):t;if(!a.match(/\S*Error: /)){for(const e of o){const t=e(a);if(t){n.push(t);break}}if(n.length>=50)break}}return a(n)}}function i(e){return Array.isArray(e)?o(...e):e}function a(e){if(!e.length)return[];const t=e.slice(0,50),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop(),t.reverse();const r=t[t.length-1].function;return r&&/captureMessage|captureException/.test(r)&&t.pop(),t.map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}const s="";function l(e){try{return e&&"function"==typeof e&&e.name||s}catch(e){return s}}},5507:(e,t,n)=>{"use strict";n.d(t,{nK:()=>i,U0:()=>s,$G:()=>o});var r=n(4440);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof e||0===t||e.length<=t?e:"".concat(e.slice(0,t),"...")}function i(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t2&&void 0!==arguments[2]&&arguments[2];return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.some((t=>a(e,t,n)))}},1017:(e,t,n)=>{"use strict";n.d(t,{Du:()=>a,Ak:()=>i,t$:()=>s});var r=n(9204);const o=(0,n(76).Rf)();function i(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!i())return!1;if(a(o.fetch))return!0;let e=!1;const t=o.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},9693:(e,t,n)=>{"use strict";n.d(t,{cW:()=>s,$2:()=>a,WD:()=>i});var r,o=n(4440);function i(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,o.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},1048:(e,t,n)=>{"use strict";n.d(t,{Z1:()=>f,yW:()=>c,ph:()=>u});var r=n(3331),o=n(76);e=n.hmd(e);const i=(0,o.Rf)(),a={nowSeconds:()=>Date.now()/1e3},s=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=i;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=a.nowSeconds.bind(a),u=l.nowSeconds.bind(l);let d;const f=(()=>{const{performance:e}=i;if(!e||!e.now)return void(d="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=o{"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{n2:()=>o,Rf:()=>i,YO:()=>a});const o="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function i(){return o}function a(e,t,n){const r=n||o,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},4227:(e,t,n)=>{"use strict";n.d(t,{Z:()=>tr});var r=n(7313),o=n(9538),i=n.n(o),a=n(4646);const s=function(e,t){for(var n=(0,a.Z)({},e),r=0;r1&&void 0!==arguments[1]?arguments[1]:1,n=Ne++,r=t;function o(){(r-=1)<=0?(e(),delete Ae[n]):Ae[n]=Me()(o)}return Ae[n]=Me()(o),n}function Le(e){return Le="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},Le(e)}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ze(e,t){for(var n=0;n=0)){var r=e.props.insertExtraNode;e.extraNode=document.createElement("div");var o=Fe(e).extraNode;o.className="ant-click-animating-node";var i=e.getAttributeName();t.setAttribute(i,"true"),Pe=Pe||document.createElement("style"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&Ge(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n&&(e.csp&&e.csp.nonce&&(Pe.nonce=e.csp.nonce),o.style.borderColor=n,Pe.innerHTML="\n [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {\n --antd-wave-shadow-color: ".concat(n,";\n }"),document.body.contains(Pe)||document.body.appendChild(Pe)),r&&t.appendChild(o),Te(t,e.onTransitionStart),Oe(t,e.onTransitionEnd)}},e.onTransitionStart=function(t){if(!e.destroyed){var n=(0,_e.findDOMNode)(Fe(e));t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!We(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),Ie.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=Ie((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;return e.csp=n,r},e}return n=a,(o=[{key:"componentDidMount",value:function(){var e=(0,_e.findDOMNode)(this);e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){return this.props.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}},{key:"resetEffect",value:function(e){if(e&&e!==this.extraNode&&e instanceof Element){var t=this.props.insertExtraNode,n=this.getAttributeName();e.setAttribute(n,"false"),Pe&&(Pe.innerHTML=""),t&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),Ce(e,this.onTransitionStart),Re(e,this.onTransitionEnd)}}},{key:"render",value:function(){return r.createElement(q,null,this.renderWave)}}])&&ze(n.prototype,o),a}(r.Component),Ve=n(386),Ze=n(420),Ke=n(7996),Xe=n(6583),$e=n(4401),Je=n(5192),Qe=n.n(Je);function et(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function tt(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function nt(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}et.__suppressDeprecationWarning=!0,tt.__suppressDeprecationWarning=!0,nt.__suppressDeprecationWarning=!0;var rt=n(6123),ot=n.n(rt),it=!("undefined"==typeof window||!window.document||!window.document.createElement);function at(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var st,lt,ct,ut=(st=it,lt="undefined"!=typeof window?window:{},ct={animationend:at("Animation","AnimationEnd"),transitionend:at("Transition","TransitionEnd")},st&&("AnimationEvent"in lt||delete ct.animationend.animation,"TransitionEvent"in lt||delete ct.transitionend.transition),ct),dt={};it&&(dt=document.createElement("div").style);var ft={};function pt(e){if(ft[e])return ft[e];var t=ut[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o0&&setTimeout((function(){e.onMotionEnd({deadline:!0})}),r)}}))},e.nextFrame=function(t){e.cancelNextFrame(),e.raf=Me()(t)},e.cancelNextFrame=function(){e.raf&&(Me().cancel(e.raf),e.raf=null)},e.state={status:vt,statusActive:!1,newStatus:!1,statusStyle:null},e.$cacheEle=null,e.node=null,e.raf=null,e}return(0,$e.Z)(t,e),(0,Ke.Z)(t,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame()}},{key:"render",value:function(){var e,t=this.state,n=t.status,r=t.statusActive,i=t.statusStyle,s=this.props,l=s.children,c=s.motionName,u=s.visible,d=s.removeOnLeave,f=s.leavedClassName,p=s.eventProps;return l?n!==vt&&o(this.props)?l((0,a.Z)({},p,{className:ot()((e={},(0,Ve.Z)(e,yt(c,n),n!==vt),(0,Ve.Z)(e,yt(c,n+"-active"),n!==vt&&r),(0,Ve.Z)(e,c,"string"==typeof c),e)),style:i}),this.setNodeRef):u?l((0,a.Z)({},p),this.setNodeRef):d?null:l((0,a.Z)({},p,{className:f}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.status;if(!o(e))return{};var i=e.visible,a=e.motionAppear,s=e.motionEnter,l=e.motionLeave,c=e.motionLeaveImmediately,u={prevProps:e};return(r===_t&&!a||r===bt&&!s||r===wt&&!l)&&(u.status=vt,u.statusActive=!1,u.newStatus=!1),!n&&i&&a&&(u.status=_t,u.statusActive=!1,u.newStatus=!0),n&&!n.visible&&i&&s&&(u.status=bt,u.statusActive=!1,u.newStatus=!0),(n&&n.visible&&!i&&l||!n&&c&&!i&&l)&&(u.status=wt,u.statusActive=!1,u.newStatus=!0),u}}]),t}(r.Component);return i.propTypes=(0,a.Z)({},St,{internalRef:Qe().oneOfType([Qe().object,Qe().func])}),i.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=et,t.componentWillReceiveProps=tt),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=nt;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}}(i),n?r.forwardRef((function(e,t){return r.createElement(i,(0,a.Z)({internalRef:t},e))})):i}(gt);var Et=function(){return{width:0,opacity:0,transform:"scale(0)"}},xt=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}};function Tt(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?r.createElement("span",{className:"".concat(t,"-loading-icon")},r.createElement(me(),null)):r.createElement(kt,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:Et,onAppearActive:xt,onEnterStart:Et,onEnterActive:xt,onLeaveStart:xt,onLeaveActive:Et},(function(e,n){var o=e.className,a=e.style;return r.createElement("span",{className:"".concat(t,"-loading-icon"),style:a,ref:n},r.createElement(me(),{className:i()(o)}))}))}function Ct(){return Ct=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(w,"` at https://ant.design/components/icon"));var x=p("btn",o),T=!1!==h,C="";switch(f||e){case"large":C="lg";break;case"small":C="sm"}var O=a?"loading":w,R=i()(x,_,(Ot(t={},"".concat(x,"-").concat(l),l),Ot(t,"".concat(x,"-").concat(d),d),Ot(t,"".concat(x,"-").concat(C),C),Ot(t,"".concat(x,"-icon-only"),!b&&0!==b&&O),Ot(t,"".concat(x,"-background-ghost"),S),Ot(t,"".concat(x,"-loading"),a),Ot(t,"".concat(x,"-two-chinese-chars"),u&&T),Ot(t,"".concat(x,"-block"),k),Ot(t,"".concat(x,"-dangerous"),!!c),Ot(t,"".concat(x,"-rtl"),"rtl"===m),t)),P=w&&!a?w:r.createElement(Tt,{existIcon:!!w,prefixCls:x,loading:a}),D=b||0===b?function(e,t){var n=!1,o=[];return r.Children.forEach(e,(function(e){var t=Dt(e),r="string"===t||"number"===t;if(n&&r){var i=o.length-1,a=o[i];o[i]="".concat(a).concat(e)}else o.push(e);n=r})),r.Children.map(o,(function(e){return function(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&At(e.props.children)?r.cloneElement(e,{},e.props.children.split("").join(n)):"string"==typeof e?(At(e)&&(e=e.split("").join(n)),r.createElement("span",null,e)):e}}(e,t)}))}(b,y()&&T):null,M=s(E,["htmlType","loading"]);if(void 0!==M.href)return r.createElement("a",Ct({},M,{className:R,onClick:v,ref:g}),P,D);var N=E,A=N.htmlType,I=Mt(N,["htmlType"]),L=r.createElement("button",Ct({},s(I,["loading"]),{type:A,className:R,onClick:v,ref:g}),P,D);return"link"===l?L:r.createElement(qe,null,L)}))};It.defaultProps={loading:!1,ghost:!1,block:!1,htmlType:"button"},It.Group=function(e){return r.createElement(q,null,(function(t){var n,o=t.getPrefixCls,a=t.direction,s=e.prefixCls,l=e.size,c=e.className,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(rn(e)):(0,nn.isFragment)(e)&&e.props?n=n.concat(rn(e.props.children,t)):n.push(e))})),n}var on={},an=[];function sn(e,t){}function ln(e,t){}function cn(e,t,n){t||on[n]||(e(!1,n),on[n]=!0)}function un(e,t){cn(sn,e,t)}un.preMessage=function(e){an.push(e)},un.resetWarned=function(){on={}},un.noteOnce=function(e,t){cn(ln,e,t)};const dn=un;function fn(e,t){"function"==typeof e?e(t):"object"===(0,en.Z)(e)&&e&&"current"in e&&(e.current=t)}function pn(){for(var e=arguments.length,t=new Array(e),n=0;n1)dn(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===e.length)return dn(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var t,n,o,i,a=e[0];if(r.isValidElement(a)&&(t=a,("function"!=typeof(i=(0,nn.isMemo)(t)?t.type.type:t.type)||null!==(n=i.prototype)&&void 0!==n&&n.render)&&("function"!=typeof t||null!==(o=t.prototype)&&void 0!==o&&o.render))){var s=a.ref;e[0]=r.cloneElement(a,{ref:pn(s,this.setChildNode)})}return 1===e.length?e[0]:e.map((function(e,t){return!r.isValidElement(e)||"key"in e&&null!==e.key?e:r.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}])&&$t(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(r.Component);mn.displayName="ResizeObserver";const gn=mn;var yn,vn="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",_n=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],bn={};function wn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&bn[n])return bn[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=_n.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(bn[n]=l),l}function Sn(e){return Sn="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},Sn(e)}function kn(){return kn=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;yn||((yn=document.createElement("textarea")).setAttribute("tab-index","-1"),yn.setAttribute("aria-hidden","true"),document.body.appendChild(yn)),e.getAttribute("wrap")?yn.setAttribute("wrap",e.getAttribute("wrap")):yn.removeAttribute("wrap");var o=wn(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;yn.setAttribute("style","".concat(l,";").concat(vn)),yn.value=e.value||e.placeholder||"";var c,u=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,f=yn.scrollHeight;if("border-box"===s?f+=a:"content-box"===s&&(f-=i),null!==n||null!==r){yn.value=" ";var p=yn.scrollHeight-i;null!==n&&(u=p*n,"border-box"===s&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===s&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}return{height:f,minHeight:u,maxHeight:d,overflowY:c}}(t.textArea,!1,n,r);t.setState({textareaStyles:o,resizeStatus:1},(function(){Ie.cancel(t.resizeFrameId),t.resizeFrameId=Ie((function(){t.setState({resizeStatus:2},(function(){t.resizeFrameId=Ie((function(){t.setState({resizeStatus:0}),t.fixFirefoxAutoScroll()}))}))}))}))}},t.renderTextArea=function(){var e,n,o,a=t.props,l=a.prefixCls,c=a.autoSize,u=a.onResize,d=a.className,f=a.disabled,p=t.state,h=p.textareaStyles,m=p.resizeStatus,g=s(t.props,["prefixCls","onPressEnter","autoSize","defaultValue","allowClear","onResize"]),y=i()(l,d,(e={},o=f,(n="".concat(l,"-disabled"))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e));"value"in g&&(g.value=g.value||"");var v=kn(kn(kn({},t.props.style),h),1===m?{overflowX:"hidden",overflowY:"hidden"}:null);return r.createElement(gn,{onResize:t.handleResize,disabled:!(c||u)},r.createElement("textarea",kn({},g,{className:y,style:v,ref:t.saveTextArea})))},t.state={textareaStyles:{},resizeStatus:0},t}return n=l,(o=[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){Ie.cancel(this.nextFrameActionId),Ie.cancel(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}])&&En(n.prototype,o),l}(r.Component);const Pn=Rn;function Dn(e){return Dn="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},Dn(e)}function Mn(){return Mn=Object.assign||function(e){for(var t=1;t{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{e.exports=n(6948)},7570:(e,t,n)=>{"use strict";var r=n(899),o=n(8980),i=n(2508),a=n(3917),s=n(6551),l=n(7652),c=n(8652),u=n(775),d=n(4685),f=n(7691);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,m=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(_+":"+b)}var w=s(e.baseURL,e.url);function S(){if(v){var r="getAllResponseHeaders"in v?l(v.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=S:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(S)},v.onabort=function(){v&&(n(u("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(u("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||c(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in v&&r.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),g&&"json"!==g&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){v&&(n(!e||e&&e.type?new f("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),v.send(h)}))}},6948:(e,t,n)=>{"use strict";var r=n(899),o=n(8813),i=n(5141),a=n(6276),s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(4685));s.Axios=i,s.Cancel=n(7691),s.CancelToken=n(3914),s.isCancel=n(7797),s.VERSION=n(2102).version,s.all=function(e){return Promise.all(e)},s.spread=n(2922),s.isAxiosError=n(7079),e.exports=s,e.exports.default=s},7691:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},3914:(e,t,n)=>{"use strict";var r=n(7691);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5141:(e,t,n)=>{"use strict";var r=n(899),o=n(3917),i=n(2564),a=n(1253),s=n(6276),l=n(7828),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(u),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var f=t;r.length;){var p=r.shift(),h=r.shift();try{f=p(f)}catch(e){h(e);break}}try{i=a(f)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},u.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},2564:(e,t,n)=>{"use strict";var r=n(899);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},6551:(e,t,n)=>{"use strict";var r=n(7826),o=n(572);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},775:(e,t,n)=>{"use strict";var r=n(6813);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},1253:(e,t,n)=>{"use strict";var r=n(899),o=n(9486),i=n(7797),a=n(4685),s=n(7691);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},6813:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},6276:(e,t,n)=>{"use strict";var r=n(899);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},8980:(e,t,n)=>{"use strict";var r=n(775);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},9486:(e,t,n)=>{"use strict";var r=n(899),o=n(4685);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},4685:(e,t,n)=>{"use strict";var r=n(899),o=n(9428),i=n(6813),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(7570)),l),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(a)})),e.exports=c},2102:e=>{e.exports={version:"0.25.0"}},8813:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(899);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},572:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2508:(e,t,n)=>{"use strict";var r=n(899);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},7826:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},7079:(e,t,n)=>{"use strict";var r=n(899);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},8652:(e,t,n)=>{"use strict";var r=n(899);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},9428:(e,t,n)=>{"use strict";var r=n(899);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},7652:(e,t,n)=>{"use strict";var r=n(899),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},2922:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7828:(e,t,n)=>{"use strict";var r=n(2102).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=void 0===s||a(s,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},899:(e,t,n)=>{"use strict";var r=n(8813),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===o.call(e)}function l(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n{e.exports={default:n(467),__esModule:!0}},3062:(e,t,n)=>{e.exports={default:n(7425),__esModule:!0}},6793:(e,t,n)=>{e.exports={default:n(2966),__esModule:!0}},8629:(e,t,n)=>{e.exports={default:n(9044),__esModule:!0}},3132:(e,t,n)=>{e.exports={default:n(4177),__esModule:!0}},1010:(e,t,n)=>{e.exports={default:n(3185),__esModule:!0}},420:(e,t)=>{"use strict";t.Z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},7996:(e,t,n)=>{"use strict";var r,o=(r=n(6793))&&r.__esModule?r:{default:r};t.Z=function(){function e(e,t){for(var n=0;n{"use strict";var r,o=(r=n(6793))&&r.__esModule?r:{default:r};t.Z=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},4646:(e,t,n)=>{"use strict";var r,o=(r=n(220))&&r.__esModule?r:{default:r};t.Z=o.default||function(e){for(var t=1;t{"use strict";var r=a(n(8629)),o=a(n(3062)),i=a(n(5259));function a(e){return e&&e.__esModule?e:{default:e}}t.Z=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},6583:(e,t,n)=>{"use strict";var r,o=(r=n(5259))&&r.__esModule?r:{default:r};t.Z=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},5259:(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(1010)),o=a(n(3132)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},467:(e,t,n)=>{n(3524),e.exports=n(5754).Object.assign},7425:(e,t,n)=>{n(7449);var r=n(5754).Object;e.exports=function(e,t){return r.create(e,t)}},2966:(e,t,n)=>{n(2879);var r=n(5754).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},9044:(e,t,n)=>{n(8338),e.exports=n(5754).Object.setPrototypeOf},4177:(e,t,n)=>{n(9028),n(801),n(4819),n(9309),e.exports=n(5754).Symbol},3185:(e,t,n)=>{n(7445),n(1450),e.exports=n(7891).f("iterator")},4402:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},4223:e=>{e.exports=function(){}},9516:(e,t,n)=>{var r=n(7095);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},7539:(e,t,n)=>{var r=n(2290),o=n(2957),i=n(1421);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},6701:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},5754:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},4569:(e,t,n)=>{var r=n(4402);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},5542:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},7829:(e,t,n)=>{e.exports=!n(6705)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},6915:(e,t,n)=>{var r=n(7095),o=n(740).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},5773:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},8526:(e,t,n)=>{var r=n(7282),o=n(9553),i=n(4863);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),l=i.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},3013:(e,t,n)=>{var r=n(740),o=n(5754),i=n(4569),a=n(9067),s=n(6139),l=function(e,t,n){var c,u,d,f=e&l.F,p=e&l.G,h=e&l.S,m=e&l.P,g=e&l.B,y=e&l.W,v=p?o:o[t]||(o[t]={}),_=v.prototype,b=p?r:h?r[t]:(r[t]||{}).prototype;for(c in p&&(n=t),n)(u=!f&&b&&void 0!==b[c])&&s(v,c)||(d=u?b[c]:n[c],v[c]=p&&"function"!=typeof b[c]?n[c]:g&&u?i(d,r):y&&b[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?i(Function.call,d):d,m&&((v.virtual||(v.virtual={}))[c]=d,e&l.R&&_&&!_[c]&&a(_,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},6705:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},740:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},6139:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},9067:(e,t,n)=>{var r=n(6728),o=n(7869);e.exports=n(7829)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},1015:(e,t,n)=>{var r=n(740).document;e.exports=r&&r.documentElement},8416:(e,t,n)=>{e.exports=!n(7829)&&!n(6705)((function(){return 7!=Object.defineProperty(n(6915)("div"),"a",{get:function(){return 7}}).a}))},2999:(e,t,n)=>{var r=n(6701);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},4683:(e,t,n)=>{var r=n(6701);e.exports=Array.isArray||function(e){return"Array"==r(e)}},7095:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},294:(e,t,n)=>{"use strict";var r=n(759),o=n(7869),i=n(9157),a={};n(9067)(a,n(102)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},3906:(e,t,n)=>{"use strict";var r=n(4159),o=n(3013),i=n(8004),a=n(9067),s=n(6469),l=n(294),c=n(9157),u=n(49),d=n(102)("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",h="values",m=function(){return this};e.exports=function(e,t,n,g,y,v,_){l(n,t,g);var b,w,S,k=function(e){if(!f&&e in C)return C[e];switch(e){case p:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",x=y==h,T=!1,C=e.prototype,O=C[d]||C["@@iterator"]||y&&C[y],R=O||k(y),P=y?x?k("entries"):R:void 0,D="Array"==t&&C.entries||O;if(D&&(S=u(D.call(new e)))!==Object.prototype&&S.next&&(c(S,E,!0),r||"function"==typeof S[d]||a(S,d,m)),x&&O&&O.name!==h&&(T=!0,R=function(){return O.call(this)}),r&&!_||!f&&!T&&C[d]||a(C,d,R),s[t]=R,s[E]=m,y)if(b={values:x?R:k(h),keys:v?R:k(p),entries:P},_)for(w in b)w in C||i(C,w,b[w]);else o(o.P+o.F*(f||T),t,b);return b}},7102:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},6469:e=>{e.exports={}},4159:e=>{e.exports=!0},9578:(e,t,n)=>{var r=n(7650)("meta"),o=n(7095),i=n(6139),a=n(6728).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(6705)((function(){return l(Object.preventExtensions({}))})),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!i(e,r)&&u(e),e}}},6293:(e,t,n)=>{"use strict";var r=n(7829),o=n(7282),i=n(9553),a=n(4863),s=n(6164),l=n(2999),c=Object.assign;e.exports=!c||n(6705)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=i.f,f=a.f;c>u;)for(var p,h=l(arguments[u++]),m=d?o(h).concat(d(h)):o(h),g=m.length,y=0;g>y;)p=m[y++],r&&!f.call(h,p)||(n[p]=h[p]);return n}:c},759:(e,t,n)=>{var r=n(9516),o=n(4184),i=n(5773),a=n(906)("IE_PROTO"),s=function(){},l=function(){var e,t=n(6915)("iframe"),r=i.length;for(t.style.display="none",n(1015).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("